/* styles.css - FINAL UPDATES: Badge on QR + Blinking Hourglass Cursor */

/* CSS Custom Properties - Brand Colors */
:root {
    /* Light Mode - Customer App Palette */
    --primary: #103847;
    --primary-dark: #000000;
    --accent: #288DB1;
    --light-bg: #EAF4F8;
    --accent-light: #77C3DE;
    
    /* Business App Palette */
    --business-light: #E3FAF9;
    --business-accent: #8ECECB;
    --white: #FFFFFF;
    
    /* Light Mode Backgrounds */
    --bg-primary: #F8FCFF;
    --bg-secondary: #FFFFFF;
    --text-primary: #103847;
    --text-secondary: #1B1F26;
    
    /* Dark Mode Colors */
    --dark-primary: #103847;
    --dark-accent-light: #15D6CD;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #103847 0%, #288DB1 50%, #77C3DE 100%);
    --gradient-secondary: linear-gradient(135deg, #E3FAF9 0%, #8ECECB 100%);
    --gradient-dark: linear-gradient(135deg, #103847 0%, #288DB1 50%, #15D6CD 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(16, 56, 71, 0.1);
    --shadow-md: 0 20px 25px -5px rgba(16, 56, 71, 0.1), 0 10px 10px -5px rgba(16, 56, 71, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(16, 56, 71, 0.25);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

/* Dark Mode */
html.dark-mode {
    --bg-primary: #1B1F26;
    --bg-secondary: #2A2F3A;
    --text-primary: #FFFFFF;
    --text-secondary: #EAF4F8;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    --gradient-primary: var(--gradient-dark);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.theme-toggle .sun-icon {
    display: block;
}

html.dark-mode .theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: none;
}

html.dark-mode .theme-toggle .moon-icon {
    display: block;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 20px 40px rgba(16, 56, 71, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-2xl) 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(16, 56, 71, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(40, 141, 177, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(16, 56, 71, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary, .btn-secondary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn.success {
    background: #10B981;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
}

html.dark-mode .hero {
    background: var(--gradient-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.08;
    animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.05); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* BLINKING HOURGLASS CURSOR */
.typewriter-cursor {
    display: inline-block;
    font-size: 0.6em;
    animation: blink 1s infinite;
    margin-left: 0.25rem;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* QR CARD WITH COMING SOON BADGE ON TOP */
.hero-qr {
    display: flex;
    justify-content: center;
}

.qr-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.5rem 2.5rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-lg);
    animation: qrFloat 6s ease-in-out infinite;
    max-width: 320px;
    position: relative;
}

.qr-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

.qr-placeholder {
    text-align: center;
    color: white;
    padding-top: 1rem;
}

.qr-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    opacity: 0.9;
}

.qr-placeholder p {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
}

@keyframes qrFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Vision Cards */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.vision-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(16, 56, 71, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

html.dark-mode .vision-card {
    background: var(--bg-secondary);
    border-color: rgba(40, 141, 177, 0.2);
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.vision-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.vision-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.vision-card p {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Building Cards */
.building-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.building-card {
    background: rgba(227, 250, 249, 0.6);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--business-accent);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

html.dark-mode .building-card {
    background: rgba(21, 214, 205, 0.1);
    border-color: var(--dark-accent-light);
}

.building-card:hover {
    background: var(--gradient-secondary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.building-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.building-card h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
}

/* Careers */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.career-card {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--accent);
    transition: all 0.3s ease;
}

html.dark-mode .career-card {
    background: var(--bg-secondary);
}

.career-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.career-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

/* Roadmap */
.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-step {
    position: relative;
    padding: 2rem 0 2rem 3rem;
    margin-bottom: 3rem;
}

.roadmap-step::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: -3rem;
    width: 2px;
    background: var(--light-bg);
}

html.dark-mode .roadmap-step::before {
    background: var(--bg-secondary);
}

.roadmap-step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.roadmap-step.active .step-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 141, 177, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 141, 177, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 141, 177, 0); }
}

.progress-bar {
    height: 4px;
    background: var(--light-bg);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

html.dark-mode .progress-bar {
    background: var(--bg-secondary);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 2s ease;
}

/* Waitlist */
.waitlist-card {
    background: var(--bg-secondary);
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 56, 71, 0.05);
}

html.dark-mode .waitlist-card {
    background: var(--bg-secondary);
    border-color: rgba(40, 141, 177, 0.2);
}

.waitlist-card h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.waitlist-form {
    display: flex;
    max-width: 400px;
    margin: 2rem auto 1rem;
    gap: var(--space-sm);
}

.waitlist-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-bg);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

html.dark-mode .waitlist-form input {
    background: var(--bg-secondary);
    border-color: var(--bg-secondary);
    color: var(--text-primary);
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(40, 141, 177, 0.1);
}

.form-note {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.footer-brand p {
    opacity: 0.7;
    margin-top: var(--space-sm);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.social-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-light);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}
.social-icon:hover svg {
  transform: translateY(-2px) scale(1.05);
  stroke: #15D6CD;
}

/* Responsive Design */
/* Responsive Design - FIXED MOBILE QR BADGE */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-qr {
        order: -1;
        margin-bottom: var(--space-xl);
        padding-top: 2rem; /* Extra space from navbar */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
    
    .waitlist-form {
        flex-direction: column;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-grid,
    .building-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .qr-card {
        padding: 2.5rem 2rem 2.5rem; /* Increased top padding */
        margin-top: 1rem; /* Extra spacing from navbar */
    }
    
   .qr-badge {
        top: 0; 
        position: relative;
        margin-bottom: 1rem;
        left: auto;
        transform: none;
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
        background: rgba(255,255,255,0.3);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        display: inline-block;
        animation: badgeFloatMobile 3s ease-in-out infinite;
    }
    
    /* Extra safe spacing for 390x844 iPhone screens */
    @media (max-width: 400px) {
        .qr-card {
            margin-top: 1.5rem;
            padding: 3rem 1.75rem 2.5rem;
        }
        
        .qr-badge {
            top: -6px;
            padding: 0.35rem 0.9rem;
            font-size: 0.7rem;
        }
    }
}


/* Scroll Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].animate {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States */
.btn:focus,
input:focus,
.theme-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
