/* ========================================
   Sanatan Studio - Production CSS
   Mobile-First Responsive Design
   ======================================== */

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
:root {
    /* Primary Colors - Saffron & Gold */
    --saffron: #FF6B00;
    --saffron-light: #FF9F45;
    --saffron-dark: #E55A00;
    --gold: #FFD700;
    --gold-light: #FFE44D;
    --gold-dark: #DAA520;

    /* Secondary Colors */
    --maroon: #800020;
    --maroon-light: #A52A2A;
    --deep-red: #8B0000;

    /* Neutral Colors */
    --cream: #FFF8E7;
    --ivory: #FFFFF0;
    --warm-white: #FDF5E6;
    --copper: #B87333;

    /* Dark Theme */
    --dark-bg: #1A1410;
    --dark-card: #2D241E;
    --dark-accent: #3D302A;

    /* Text Colors */
    --text-dark: #2C1810;
    --text-light: #FFF8E7;
    --text-muted: #8B7355;

    /* Spacing Scale (8px base) */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    --space-4xl: 6rem;     /* 96px */

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(139, 69, 19, 0.15);
    --shadow-lg: 0 8px 40px rgba(139, 69, 19, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.3);
    /* Layered elevation - cards float on warm light, not a flat grey blur */
    --shadow-elevated:
        0 1px 1px rgba(44, 24, 16, 0.04),
        0 6px 16px rgba(139, 69, 19, 0.10),
        0 18px 48px rgba(139, 69, 19, 0.14);
    --shadow-elevated-hover:
        0 2px 4px rgba(44, 24, 16, 0.06),
        0 12px 28px rgba(139, 69, 19, 0.16),
        0 30px 70px rgba(139, 69, 19, 0.22);

    /* Premium accents */
    --gold-gradient: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 45%, var(--gold-light) 100%);
    --gold-foil: linear-gradient(120deg, var(--saffron-light) 0%, var(--gold) 38%, #FFF4C2 50%, var(--gold) 62%, var(--saffron-light) 100%);
    --hairline-gold: rgba(255, 215, 0, 0.18);
    --hairline-gold-strong: rgba(255, 215, 0, 0.35);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;

    /* Section Padding - Mobile First */
    --section-py: var(--space-2xl);
}

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: clamp(0.9375rem, 2vw, 1rem); /* 15px floor for mobile legibility */
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Honor landscape notch safe areas */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Anchor scroll offset under fixed navbar */
#home, #about, #apps, #features, #contact {
    scroll-margin-top: 72px;
}

/* Faster taps, branded tap highlight */
a, button, .hamburger, .nav-link, .hero-cta, .app-download-btn,
.back-to-top, .feature-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.25);
}

/* Focus States for Accessibility */
:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--saffron);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* ========================================
   Container System
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

/* ========================================
   Particles Background
   ======================================== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    opacity: 0;
    animation: floatParticle 25s infinite ease-in-out;
    filter: blur(0.5px);
    will-change: transform, opacity;
}

.particle.om {
    color: var(--gold);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.particle.lotus {
    color: var(--saffron-light);
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    text-shadow: 0 0 15px rgba(255, 159, 69, 0.5);
}

.particle.diya {
    color: var(--saffron);
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-shadow: 0 0 25px rgba(255, 107, 0, 0.7);
    animation-name: floatDiya;
}

.particle.sparkle {
    color: var(--gold-light);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    text-shadow: 0 0 12px rgba(255, 228, 77, 0.8);
    animation-name: floatSparkle;
}

.particle.swastik {
    color: var(--gold-dark);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    text-shadow: 0 0 18px rgba(218, 165, 32, 0.5);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    5% { opacity: 0.2; }
    25% { transform: translateY(75vh) translateX(30px) rotate(90deg) scale(0.8); }
    50% {
        transform: translateY(50vh) translateX(-20px) rotate(180deg) scale(1);
        opacity: 0.25;
    }
    75% { transform: translateY(25vh) translateX(25px) rotate(270deg) scale(0.9); }
    95% { opacity: 0.15; }
    100% {
        transform: translateY(-10vh) translateX(0) rotate(360deg) scale(0.6);
        opacity: 0;
    }
}

@keyframes floatDiya {
    0% { transform: translateY(100vh) translateX(0) scale(0.7); opacity: 0; }
    5% { opacity: 0.3; }
    50% {
        transform: translateY(50vh) translateX(15px) scale(1);
        opacity: 0.35;
        filter: brightness(1.3);
    }
    100% { transform: translateY(-10vh) translateX(-10px) scale(0.8); opacity: 0; }
}

@keyframes floatSparkle {
    0% { transform: translateY(100vh) scale(0.3); opacity: 0; }
    10% { opacity: 0.5; }
    30% { transform: translateY(70vh) scale(1.2); opacity: 0.7; }
    50% { transform: translateY(50vh) scale(0.8); opacity: 0.4; }
    70% { transform: translateY(30vh) scale(1); opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

/* Glowing Orbs - Hidden on small screens for performance */
.glow-orb {
    display: none;
}

/* ========================================
   Navigation - Mobile First
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(26, 20, 16, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--hairline-gold);
    transition: padding var(--transition-base), box-shadow var(--transition-base),
        background var(--transition-base), border-color var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-xs) 0;
    background: rgba(26, 20, 16, 0.99);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom-color: var(--hairline-gold-strong);
    box-shadow: var(--shadow-md), 0 1px 0 rgba(255, 215, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--gold);
    z-index: var(--z-fixed);
}

.nav-logo .om-symbol {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--saffron);
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.nav-logo .logo-text {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mobile Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height */
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    padding-top: calc(60px + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior: contain;
    overflow-y: auto;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-menu li {
    width: 100%;
    text-align: center;
}

.nav-link {
    display: block;
    padding: var(--space-lg) var(--space-md);
    color: var(--cream);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: color var(--transition-fast), background var(--transition-fast);
    min-height: 44px; /* Touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    z-index: var(--z-fixed);
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section - Mobile First
   ======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Mobile-first: portrait-friendly hero image. Desktop swaps to the wide image below. */
    background:
        linear-gradient(135deg, rgba(26, 20, 16, 0.55) 0%, rgba(128, 0, 32, 0.45) 50%, rgba(255, 107, 0, 0.25) 100%),
        url('../images/bg_mobile.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--space-4xl) var(--space-md) var(--space-2xl);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(26, 20, 16, 0.6) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: var(--space-md);
}

.hero-om {
    font-size: clamp(4rem, 15vw, 8rem);
    color: var(--gold);
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.5);
    margin-bottom: var(--space-md);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    margin-bottom: var(--space-md);
}

.title-sanskrit {
    display: block;
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    font-size: clamp(1rem, 4vw, 2rem);
    color: var(--saffron-light);
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.title-english {
    display: block;
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    font-weight: 700;
    /* Gold-foil gradient text */
    background: var(--gold-foil);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
    letter-spacing: clamp(1px, 0.5vw, 3px);
    line-height: 1.2;
    /* Glow + legibility against the photo (text-shadow can't render on clipped text) */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(255, 200, 80, 0.25));
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    color: var(--gold-light);
    margin-bottom: var(--space-xl);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-quote {
    position: relative;
    max-width: min(600px, 90%);
    margin: 0 auto var(--space-xl);
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    background:
        linear-gradient(160deg, rgba(255, 215, 0, 0.14) 0%, rgba(255, 107, 0, 0.06) 100%);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    /* Gradient rim (gold->saffron) painted between content-box and border-box */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(160deg, rgba(255, 215, 0, 0.14) 0%, rgba(255, 107, 0, 0.06) 100%),
        linear-gradient(135deg, var(--hairline-gold-strong), rgba(255, 107, 0, 0.4));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Inner top highlight for a polished glass edge */
    box-shadow: inset 0 1px 0 rgba(255, 244, 194, 0.25), 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Decorative opening quote mark */
.hero-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.35em;
    left: 0.25em;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.35;
    pointer-events: none;
}

.hero-quote p {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.hero-quote .quote-translation {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: var(--cream);
    font-style: italic;
}

.hero-quote .quote-source {
    display: block;
    margin-top: var(--space-md);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: var(--saffron-light);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    /* Glossy top sheen + grounded glow */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -2px 6px rgba(139, 69, 19, 0.25),
        var(--shadow-glow);
    min-height: 44px;
}

.hero-cta:hover,
.hero-cta:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 6px rgba(139, 69, 19, 0.25),
        0 12px 28px rgba(139, 69, 19, 0.3),
        0 0 50px rgba(255, 215, 0, 0.5);
}

.diya-icon {
    font-size: 1.25rem;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gold-light);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 16px; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* Hero Animations */
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
}

.animate-fade-up-delay {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-fade-up-delay-2 {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.animate-fade-up-delay-3 {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Section Common Styles
   ======================================== */
section, header, footer {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.lotus-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.lotus-divider .lotus {
    font-size: clamp(1.25rem, 3vw, 2rem);
    animation: pulse 3s infinite;
}

.lotus-divider .divider-line {
    width: clamp(50px, 15vw, 100px);
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
}

.lotus-divider.light .divider-line {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.section-title {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.section-title.light {
    color: var(--gold);
}

.section-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    font-weight: 300;
}

/* ========================================
   About Section
   ======================================== */
.about {
    position: relative;
    padding: var(--section-py) 0;
    /* Warm radial glow over cream so the section reads layered, not flat */
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 159, 69, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 215, 0, 0.08) 0%, transparent 55%),
        var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.about-card {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--warm-white) 100%);
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-elevated);
    transition: transform var(--transition-base), box-shadow var(--transition-base),
        border-color var(--transition-base);
    border: 1px solid rgba(255, 107, 0, 0.1);
}

/* Top accent line that grows in on hover */
.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-xl);
    right: var(--space-xl);
    height: 3px;
    border-radius: 0 0 var(--radius-full) var(--radius-full);
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
}

.about-card:hover,
.about-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated-hover), 0 0 26px rgba(255, 159, 69, 0.22);
    border-color: rgba(255, 107, 0, 0.25);
}

.about-card:hover::after,
.about-card:focus-within::after {
    transform: scaleX(1);
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(72px, 16vw, 88px);
    height: clamp(72px, 16vw, 88px);
    margin: 0 auto var(--space-md);
    font-size: clamp(2.2rem, 5vw, 3rem);
    border-radius: 50%;
    /* Soft warm halo behind the icon */
    background: radial-gradient(circle at 50% 45%, rgba(255, 215, 0, 0.22) 0%, rgba(255, 107, 0, 0.10) 45%, transparent 72%);
}

.about-card h3 {
    position: relative;
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--maroon);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    opacity: 0.7;
}

.about-card p {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.8;
}

/* Stats Container */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-xl);
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 107, 0, 0.12) 0%, transparent 60%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--hairline-gold);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 215, 0, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    /* Gold-foil gradient numerals */
    background: var(--gold-foil);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
}

.stat-label {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--cream);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* ========================================
   Apps Section
   ======================================== */
.apps {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 100%);
}

.app-card {
    margin-bottom: var(--space-xl);
}

.app-card-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 2px solid transparent;
}

.app-card:hover .app-card-inner,
.app-card:focus-within .app-card-inner {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 28px rgba(255, 159, 69, 0.30);
    border-color: var(--saffron);
}

.app-card.featured .app-card-inner {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.03) 0%, rgba(255, 107, 0, 0.05) 100%);
    border: 2px solid var(--saffron);
}

/* ----------------------------------------------------------------
   Highlighted app card: glowing saffron -> gold fill.
   Placed AFTER the .featured rule so it also wins on featured cards.
   Text/chip colors below are darkened for strong contrast on the warm fill.
   ---------------------------------------------------------------- */
.app-card:hover .app-card-inner,
.app-card:focus-within .app-card-inner {
    background: linear-gradient(135deg, var(--saffron-light) 0%, var(--gold) 60%, var(--gold-light) 100%);
    border-color: var(--gold-dark);
}

/* Hindi subtitle + description: was saffron / muted-brown (low contrast on gold) */
.app-card:hover .app-title-hindi,
.app-card:focus-within .app-title-hindi { color: var(--maroon); }

.app-card:hover .app-description,
.app-card:focus-within .app-description { color: var(--text-dark); }

/* Feature chips: solid white so they read as crisp pills on the gold fill */
.app-card:hover .feature-item,
.app-card:focus-within .feature-item {
    background: #FFFFFF;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.18);
}

/* Scripture quote: opaque light panel + maroon text/accent */
.app-card:hover .app-quote,
.app-card:focus-within .app-quote {
    background: rgba(255, 255, 255, 0.7);
    color: var(--maroon);
    border-left-color: var(--maroon);
}

/* Download button flips to deep maroon so it stands out against the gold fill */
.app-card:hover .app-download-btn,
.app-card:focus-within .app-download-btn {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--deep-red) 100%);
    color: var(--cream);
}

.app-image {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.app-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
    aspect-ratio: 1;
    object-fit: cover;
}

.app-card:hover .app-image img {
    transform: scale(1.02);
}

.app-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-badge.all-in-one {
    background: linear-gradient(135deg, var(--maroon), var(--saffron), var(--gold));
}

.app-content {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.app-header {
    margin-bottom: var(--space-md);
}

.app-title {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: var(--space-xs);
}

.app-title-hindi {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--saffron);
    letter-spacing: 1px;
}

.app-description {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-md);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-dark);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.feature-item:hover {
    background: var(--warm-white);
    transform: translateX(3px);
}

.feature-icon {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    flex-shrink: 0;
}

.app-quote {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--saffron-dark);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-left: 3px solid var(--saffron);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-lg);
    font-style: italic;
    text-align: left;
}

.app-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1rem);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-md);
    min-height: 44px;
    align-self: center;
}

.app-download-btn:hover,
.app-download-btn:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.play-store-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-py) 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: background var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.feature-card:hover,
.feature-card:focus-within {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.feature-card-icon {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.feature-card p {
    color: var(--cream);
    opacity: 0.8;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    position: relative;
    padding: var(--section-py) 0;
    /* Matches the About section's layered warm glow */
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 159, 69, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 215, 0, 0.08) 0%, transparent 55%),
        var(--cream);
}

/* Developer Info Card */
.developer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.developer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.developer-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Layered ring + glow for a struck-medallion feel */
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -3px 6px rgba(139, 69, 19, 0.3),
        0 0 0 4px rgba(255, 215, 0, 0.12),
        0 0 34px rgba(255, 215, 0, 0.45);
}

.avatar-icon {
    font-size: 2.5rem;
}

.developer-details {
    flex: 1;
}

.developer-name {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.developer-role {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid var(--saffron);
    border-radius: var(--radius-full);
    color: var(--saffron-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.developer-bio {
    color: var(--text-light);
    opacity: 0.85;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.6;
}

/* Contact Cards */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--warm-white) 100%);
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-elevated);
    transition: transform var(--transition-base), box-shadow var(--transition-base),
        border-color var(--transition-base);
    border: 1px solid rgba(255, 107, 0, 0.1);
}

/* Top accent line that grows in on hover (matches About cards) */
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-xl);
    right: var(--space-xl);
    height: 3px;
    border-radius: 0 0 var(--radius-full) var(--radius-full);
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
}

.contact-card:hover,
.contact-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated-hover), 0 0 26px rgba(255, 159, 69, 0.22);
    border-color: rgba(255, 107, 0, 0.25);
}

.contact-card:hover::after,
.contact-card:focus-within::after {
    transform: scaleX(1);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(64px, 14vw, 80px);
    height: clamp(64px, 14vw, 80px);
    margin: 0 auto var(--space-md);
    font-size: clamp(1.9rem, 4.5vw, 2.5rem);
    border-radius: 50%;
    /* Soft warm halo behind the icon (matches About cards) */
    background: radial-gradient(circle at 50% 45%, rgba(255, 215, 0, 0.22) 0%, rgba(255, 107, 0, 0.10) 45%, transparent 72%);
}

.contact-card h3 {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--maroon);
    margin-bottom: var(--space-md);
}

.contact-card a {
    color: var(--saffron);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    transition: color var(--transition-fast);
    word-break: break-word;
}

.contact-card a:hover,
.contact-card a:focus {
    color: var(--maroon);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
    background:
        radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 107, 0, 0.08) 0%, transparent 60%),
        var(--dark-bg);
    padding: var(--space-2xl) 0 max(var(--space-lg), env(safe-area-inset-bottom));
    text-align: center;
    border-top: 1px solid var(--hairline-gold);
}

/* Gold gradient hairline along the very top of the footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--saffron), var(--gold), var(--saffron), transparent);
    opacity: 0.7;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand .om-symbol {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--saffron);
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

.footer-logo {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    /* Gold-foil to echo the hero title */
    background: var(--gold-foil);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.footer-tagline {
    color: var(--cream);
    opacity: 0.8;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.footer-developer {
    margin: var(--space-sm) 0;
}

.footer-developer p {
    color: var(--saffron-light);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.footer-developer strong {
    color: var(--gold);
    font-weight: 600;
}

.footer-mantra {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    /* Gold gradient rim over a faint glass fill */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(160deg, rgba(255, 215, 0, 0.07) 0%, rgba(255, 107, 0, 0.04) 100%),
        linear-gradient(135deg, var(--hairline-gold-strong), rgba(255, 107, 0, 0.3));
    box-shadow: inset 0 1px 0 rgba(255, 244, 194, 0.12);
    margin: var(--space-md) 0;
    max-width: 90%;
}

.footer-mantra p {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.footer-mantra .mantra-translation {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: var(--cream);
    opacity: 0.8;
    font-style: italic;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}

.footer-links a {
    position: relative;
    color: var(--cream);
    text-decoration: none;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    opacity: 0.8;
    padding-bottom: 2px;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-gradient);
    transition: width var(--transition-base);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--gold);
    opacity: 1;
}

.footer-links a:hover::after,
.footer-links a:focus::after {
    width: 100%;
}

.footer-separator {
    display: none;
}

.footer-divider {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.footer-divider .diya {
    font-size: 1.25rem;
    animation: flicker 2s infinite;
}

.footer-divider .diya:nth-child(2) { animation-delay: 0.5s; }
.footer-divider .diya:nth-child(3) { animation-delay: 1s; }

.footer-copyright {
    color: var(--cream);
    opacity: 0.6;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
}

.footer-blessing {
    color: var(--saffron-light);
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    margin-top: var(--space-sm);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: max(var(--space-lg), calc(env(safe-area-inset-bottom) + var(--space-sm)));
    right: max(var(--space-lg), calc(env(safe-area-inset-right) + var(--space-md)));
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Active nav link */
.nav-link.active {
    color: var(--gold);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large Mobile (640px) */
@media (min-width: 640px) {
    :root {
        --section-py: var(--space-3xl);
    }

    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .stats-container .stat-item {
        flex: 1;
        padding-inline: var(--space-xl);
    }

    /* Hairline gold dividers between stats */
    .stats-container .stat-item + .stat-item {
        border-left: 1px solid var(--hairline-gold);
    }

    .app-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content .contact-card:last-child {
        grid-column: span 2;
        max-width: 350px;
        margin: 0 auto;
    }

    .footer-links {
        flex-direction: row;
        gap: var(--space-md);
    }

    .footer-separator {
        display: inline;
        color: var(--saffron);
        opacity: 0.5;
    }

    .footer-brand {
        flex-direction: row;
        gap: var(--space-md);
    }
}

/* Tablet (768px) */
@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-lg);
    }

    /* Wide landscape hero image from tablet up */
    .hero {
        background:
            linear-gradient(135deg, rgba(26, 20, 16, 0.55) 0%, rgba(128, 0, 32, 0.45) 50%, rgba(255, 107, 0, 0.25) 100%),
            url('../images/bg.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Navigation - Still mobile menu at this size */
    .nav-logo .logo-text {
        display: block;
    }

    .about-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-card:last-child {
        grid-column: auto;
    }

    .app-card-inner {
        grid-template-columns: 200px 1fr;
        text-align: left;
        padding: var(--space-xl);
    }

    .app-image {
        margin: 0;
    }

    .app-content {
        text-align: left;
    }

    .feature-item {
        justify-content: flex-start;
    }

    .app-download-btn {
        align-self: flex-start;
    }

    .developer-info {
        flex-direction: row;
        text-align: left;
        padding: var(--space-2xl);
    }

    .developer-avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-icon {
        font-size: 3rem;
    }

    .contact-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-content .contact-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    /* Glowing Orbs visible on tablets */
    .glow-orb {
        display: block;
        position: absolute;
        border-radius: 50%;
        filter: blur(40px);
        opacity: 0.1;
        animation: orbFloat 30s infinite ease-in-out;
    }

    .glow-orb.orb-1 {
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, var(--saffron) 0%, transparent 70%);
        top: 20%;
        left: 10%;
    }

    .glow-orb.orb-2 {
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
        top: 60%;
        right: 5%;
        animation-delay: -10s;
    }

    .glow-orb.orb-3 {
        width: 180px;
        height: 180px;
        background: radial-gradient(circle, var(--maroon) 0%, transparent 70%);
        bottom: 20%;
        left: 30%;
        animation-delay: -20s;
    }

    @keyframes orbFloat {
        0%, 100% { transform: translate(0, 0) scale(1); }
        25% { transform: translate(20px, -30px) scale(1.1); }
        50% { transform: translate(-15px, 20px) scale(0.95); }
        75% { transform: translate(25px, 15px) scale(1.05); }
    }
}

/* Tablet Landscape / Small Laptop (1024px) */
@media (min-width: 1024px) {
    :root {
        --section-py: var(--space-4xl);
    }

    /* Desktop Navigation */
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        transform: none;
        padding: 0;
        gap: var(--space-xl);
    }

    .nav-menu li {
        width: auto;
    }

    .nav-link {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.95rem;
        border-bottom: none;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        width: 0;
        height: 2px;
        border-radius: var(--radius-full);
        background: var(--gold-gradient);
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
        transform: translateX(-50%);
        transition: width var(--transition-base);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: calc(100% - 2 * var(--space-md));
    }

    .hamburger {
        display: none;
    }

    .app-card-inner {
        grid-template-columns: 250px 1fr;
        gap: var(--space-xl);
    }

    .app-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Larger orbs */
    .glow-orb {
        opacity: 0.12;
    }

    .glow-orb.orb-1 { width: 280px; height: 280px; }
    .glow-orb.orb-2 { width: 350px; height: 350px; }
    .glow-orb.orb-3 { width: 220px; height: 220px; }
}

/* Laptop (1280px) */
@media (min-width: 1280px) {
    .container {
        padding-inline: var(--space-xl);
    }

    .app-card-inner {
        grid-template-columns: 280px 1fr;
        padding: var(--space-2xl);
    }

    .nav-menu {
        gap: var(--space-2xl);
    }
}

/* Desktop (1440px) */
@media (min-width: 1440px) {
    :root {
        --container-xl: 1400px;
    }

    .hero-content {
        max-width: 900px;
    }

    .app-image {
        max-width: 280px;
    }

    /* Even larger orbs for desktop */
    .glow-orb {
        opacity: 0.15;
    }

    .glow-orb.orb-1 { width: 350px; height: 350px; }
    .glow-orb.orb-2 { width: 450px; height: 450px; }
    .glow-orb.orb-3 { width: 300px; height: 300px; }
}

/* Large Screens (1920px - 2K) */
@media (min-width: 1920px) {
    :root {
        --container-xl: 1600px;
        --section-py: 8rem;
    }

    html {
        font-size: 112.5%; /* 18px base */
    }

    .hero {
        padding-top: 10rem;
    }

    .hero-om {
        font-size: 10rem;
    }

    .app-card-inner {
        grid-template-columns: 320px 1fr;
    }

    .stats-container {
        padding: var(--space-3xl);
        gap: var(--space-4xl);
    }

    .developer-info {
        max-width: 900px;
        padding: var(--space-3xl);
    }
}

/* Ultra Wide / 4K (2560px+) */
@media (min-width: 2560px) {
    :root {
        --container-xl: 1800px;
    }

    html {
        font-size: 125%; /* 20px base */
    }

    .hero {
        padding-top: 12rem;
    }

    .glow-orb.orb-1 { width: 500px; height: 500px; }
    .glow-orb.orb-2 { width: 600px; height: 600px; }
    .glow-orb.orb-3 { width: 400px; height: 400px; }
}

/* ========================================
   Reduced Motion & Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .particle,
    .glow-orb {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    }

    .about-card,
    .contact-card,
    .app-card-inner {
        border: 2px solid var(--text-dark);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .particles,
    .back-to-top,
    .scroll-indicator,
    .glow-orb {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ========================================
   Enhanced Hover Effects & Animations
   ======================================== */

/* Hover glow effect for cards */
.app-card:hover .app-card-inner::before,
.about-card:hover::before,
.feature-card:hover::before,
.contact-card:hover::before {
    opacity: 1;
}

/* NOTE: this glow is intentionally disabled.
   It was a z-index:-1 blurred gradient meant to sit BEHIND the card, but the
   hover `transform` on each card creates a stacking context that pulls the glow
   forward, above the card background — flooding the card face with bright orange
   and washing out the text. The warm glow now lives in each card's hover
   box-shadow (which always renders outside/behind the background). */
.app-card-inner::before,
.about-card::before,
.feature-card::before,
.contact-card::before {
    content: none;
}

.app-card-inner,
.about-card,
.feature-card,
.contact-card {
    position: relative;
}

/* Enhanced card lift effect */
.app-card:hover .app-card-inner {
    transform: translateY(-8px) scale(1.01);
}

/* Image shine effect on hover */
.app-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.app-card:hover .app-image::after {
    left: 150%;
}

.app-image {
    overflow: hidden;
}

/* Button hover animations */
.app-download-btn,
.hero-cta {
    position: relative;
    overflow: hidden;
}

.app-download-btn::before,
.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.app-download-btn:hover::before,
.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Feature item animated underline */
.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    transition: width var(--transition-base);
}

.feature-item {
    position: relative;
}

.feature-item:hover::after {
    width: 100%;
}

/* Nav link glow on hover */
@media (min-width: 1024px) {
    .nav-link:hover {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

/* Floating decorative elements */
.hero::before,
.hero::after {
    content: '॥';
    position: absolute;
    font-size: clamp(3rem, 10vw, 8rem);
    color: rgba(255, 215, 0, 0.05);
    font-family: 'Noto Sans Devanagari', sans-serif;
    pointer-events: none;
    animation: floatDecor 15s ease-in-out infinite;
}

.hero::before {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.hero::after {
    bottom: 20%;
    right: 5%;
    animation-delay: -7.5s;
}

@keyframes floatDecor {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.03;
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.08;
    }
}

/* Section decorative corners */
.about::before,
.apps::before,
.features::before,
.contact::before {
    content: '✦';
    position: absolute;
    top: var(--space-xl);
    left: var(--space-xl);
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.3;
    animation: twinkle 3s ease-in-out infinite;
}

.about::after,
.apps::after,
.features::after,
.contact::after {
    content: '✦';
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    font-size: 1.5rem;
    color: var(--saffron);
    opacity: 0.3;
    animation: twinkle 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Staggered reveal animations for list items */
.app-features .feature-item:nth-child(1) { transition-delay: 0s; }
.app-features .feature-item:nth-child(2) { transition-delay: 0.05s; }
.app-features .feature-item:nth-child(3) { transition-delay: 0.1s; }
.app-features .feature-item:nth-child(4) { transition-delay: 0.15s; }
.app-features .feature-item:nth-child(5) { transition-delay: 0.2s; }
.app-features .feature-item:nth-child(6) { transition-delay: 0.25s; }

/* Gradient border animation for featured cards */
.app-card.featured .app-card-inner {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text gradient animation for section titles */
.section-title {
    background: linear-gradient(135deg, var(--maroon), var(--saffron), var(--gold), var(--maroon));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 8s ease infinite;
}

.section-title.light {
    background: linear-gradient(135deg, var(--gold), var(--saffron-light), var(--gold-light), var(--gold));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulsing effect for icons */
.about-icon,
.contact-icon,
.feature-card-icon {
    display: inline-block;
    animation: iconPulse 4s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Animated underline for links */
.contact-card a {
    position: relative;
    display: inline-block;
}

.contact-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    transition: width var(--transition-base);
}

.contact-card a:hover::after {
    width: 100%;
}

/* Floating animation for lotus divider */
.lotus-divider .lotus {
    animation: lotusFloat 4s ease-in-out infinite;
}

@keyframes lotusFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(3deg); }
    75% { transform: translateY(3px) rotate(-3deg); }
}

/* Glowing border animation for stats */
.stats-container {
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Stat number glow effect (filter-based so it renders on gold-foil clipped text) */
.stat-number {
    animation: statGlow 3s ease-in-out infinite;
}

@keyframes statGlow {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.30)); }
    50% { filter: drop-shadow(0 0 26px rgba(255, 215, 0, 0.55)); }
}

/* Hero quote floating animation */
.hero-quote {
    /* Run the fade-up entrance (from .animate-fade-up-delay-2) THEN the gentle float.
       Without re-declaring fadeUp here, this rule's animation would override the
       entrance and leave the card stuck at opacity:0. */
    animation: fadeUp 1s ease 0.6s forwards, quoteFloat 6s ease-in-out 1.6s infinite;
}

@keyframes quoteFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Diya flame flicker enhancement */
.diya-icon,
.footer-divider .diya {
    display: inline-block;
    animation: divaFlame 1.5s ease-in-out infinite;
}

@keyframes divaFlame {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    25% {
        transform: scale(1.05) rotate(-2deg);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(0.98) rotate(0deg);
        filter: brightness(0.9);
    }
    75% {
        transform: scale(1.02) rotate(2deg);
        filter: brightness(1.1);
    }
}

/* Footer mantra breathing effect */
.footer-mantra {
    animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    }
}

/* Interactive hover states disabled on mobile for performance */
@media (max-width: 1023px) {
    .app-card-inner::before,
    .about-card::before,
    .feature-card::before,
    .contact-card::before,
    .app-image::after {
        display: none;
    }

    .hero::before,
    .hero::after,
    .about::before,
    .about::after,
    .apps::before,
    .apps::after,
    .features::before,
    .features::after,
    .contact::before,
    .contact::after {
        display: none;
    }
}

/* ========================================
   Mobile Performance Optimizations
   ======================================== */

/* Ensure content is always visible on mobile */
@media (max-width: 767px) {
    /* Disable all heavy animations */
    .floating-mandala,
    .glow-orb,
    .floating-symbol {
        display: none !important;
    }

    /* Ensure cards are always visible - no opacity: 0 */
    .about-card,
    .app-card,
    .feature-card,
    .contact-card,
    .stats-container,
    .section-title,
    .section-subtitle {
        opacity: 1 !important;
    }

    /* Disable complex animations on mobile */
    .section-title,
    .lotus-divider .lotus,
    .stat-number,
    .hero-quote,
    .footer-mantra,
    .diya-icon,
    .footer-divider .diya,
    .about-icon,
    .contact-icon,
    .feature-card-icon {
        animation: none !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
    }

    /* Restore text colors that were using gradient */
    .section-title {
        color: var(--maroon) !important;
    }

    .section-title.light {
        color: var(--gold) !important;
    }

    /* Simplify particle animations */
    .particle {
        animation-duration: 30s !important;
        filter: none !important;
    }

    /* Disable stats scan line animation */
    .stats-container::before {
        display: none;
    }

    /* Simplify card hover effects */
    .app-card:hover .app-card-inner,
    .about-card:hover,
    .feature-card:hover,
    .contact-card:hover {
        transform: none !important;
    }

    /* Reduce shadow complexity */
    .app-card-inner,
    .about-card,
    .feature-card,
    .contact-card {
        box-shadow: var(--shadow-sm) !important;
    }

    /* Disable hero Om floating animation */
    .hero-om {
        animation: none !important;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Reduce animations on tablet */
    .floating-mandala {
        display: none !important;
    }

    .section-title {
        animation: none !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        color: var(--maroon) !important;
    }

    .section-title.light {
        color: var(--gold) !important;
    }

    /* Simplify particles */
    .particle {
        filter: none !important;
    }
}

/* Ensure body and main content are always visible */
body {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Safety fallback - ensure all main sections are visible */
.hero,
.about,
.apps,
.features,
.contact,
.footer {
    opacity: 1 !important;
    visibility: visible !important;
}
