/* ═══════════════════════════════════════════════
   Bharatam Website - Stylesheet
   ═══════════════════════════════════════════════ */

:root {
    --saffron: #FF9933;
    --saffron-dark: #E68A2E;
    --green: #138808;
    --green-dark: #0E6B06;
    --navy: #1B2A4A;
    --navy-light: #2C3E6B;
    --white: #FFFFFF;
    --bg: #FAFAFA;
    --bg-warm: #FFF8F0;
    --text-primary: #1A1A2E;
    --text-secondary: #555770;
    --text-muted: #8E90A6;
    --border: #E8E8ED;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--saffron);
    color: var(--white);
    border-color: var(--saffron);
}

.btn-primary:hover {
    background: var(--saffron-dark);
    border-color: var(--saffron-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

/* ── Navbar ─────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(27, 42, 74, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav-legal-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    overflow: hidden;
    list-style: none;
    z-index: 100;
}

.nav-legal-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--text-primary) !important;
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--bg-warm) !important;
    color: var(--saffron) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Hero ───────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #3D5A99 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,153,51,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(19,136,8,0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 24px 80px;
}

.hero-tagline {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--saffron);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(135deg, var(--saffron), #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Phone mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    margin: 0 auto;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #111;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.phone-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: contain;
}

.phone-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

/* ── Sections ───────────────────────────────── */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--saffron);
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* ── About Section ──────────────────────────── */
.about-section {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--saffron);
}

.about-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--navy);
}

.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Features Section ───────────────────────── */
.features-section {
    background: var(--white);
}

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

.feature-item {
    padding: 28px;
}

.feature-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 153, 51, 0.15);
    margin-bottom: 12px;
    line-height: 1;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Explore Section ────────────────────────── */
.explore-section {
    background: var(--bg-warm);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.explore-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.explore-emoji {
    font-size: 48px;
    margin-bottom: 16px;
}

.explore-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.explore-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Download Section ───────────────────────── */
.download-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(255,153,51,0.12) 0%, transparent 60%);
}

.download-content {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.download-section .section-title {
    color: var(--white);
}

.download-description {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    color: var(--white);
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.store-btn small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    text-align: left;
}

.store-btn strong {
    display: block;
    font-size: 16px;
    text-align: left;
}

/* ── Footer ─────────────────────────────────── */
.footer {
    background: #0D1B30;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links-group h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group li {
    margin-bottom: 10px;
}

.footer-links-group a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-links-group a:hover {
    color: var(--saffron);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ── Legal Pages ────────────────────────────── */
.legal-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--bg);
}

.legal-page .navbar {
    background: var(--navy);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px 56px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.legal-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.legal-content .last-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--saffron);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--saffron-dark);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }

    .hero-title { font-size: 40px; }
    .hero-description { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-image { display: none; }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title { font-size: 32px; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
    }

    .dropdown-menu a {
        color: rgba(255,255,255,0.8) !important;
    }

    .nav-legal-dropdown:hover .dropdown-menu,
    .nav-legal-dropdown .dropdown-menu {
        display: block;
    }

    .hero-title { font-size: 32px; }

    .about-grid,
    .features-grid,
    .explore-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section { padding: 60px 0; }

    .legal-content {
        padding: 28px 24px;
    }

    .legal-content h1 { font-size: 26px; }
}
