/* 
   Grow Up India Services - Main Stylesheet 
   Theme: Modern Fintech, Clean, Trustworthy
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Colors - Premium Gold & Black Theme (Default / Dark Mode) */
    --primary: #d4af37;
    --primary-light: #eac96e;
    --primary-dark: #aa8c2c;
    --accent: #c0c0c0;
    --accent-hover: #a0a0a0;

    /* True Dark Mode Palette */
    --dark: #f1f5f9;
    /* Body Text: Soft White */
    --gray: #94a3b8;
    /* Secondary Text: Cool Grey */
    --light: #0b0b0f;
    /* Body Background: Deep Rich Black (Eye Comfort) */
    --white: #ffffff;
    /* Headings: bright white */
    --bg-card: #18181b;
    /* Card Background: Dark Grey for depth */

    --glass: rgba(11, 11, 15, 0.9);
    --glass-border: rgba(212, 175, 55, 0.15);

    /* Spacing */
    --section-spacing: 5rem;
    --container-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

    /* Dynamic Backgrounds */
    --hero-blob: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --bg-icon-green: rgba(16, 185, 129, 0.2);
    --bg-icon-yellow: rgba(245, 158, 11, 0.2);
    --text-muted: #94a3b8;
}

[data-theme="light"] {
    --primary: #b38b15;
    /* Darker Gold for text/elements */
    --primary-light: #d4af37;
    /* Standard Gold */
    --primary-dark: #8a6a0d;
    /* Deep Gold */
    --accent: #f59e0b;
    --accent-hover: #d97706;

    /* FIX: --dark is used for Body Text, so it must be DARK in Light Mode */
    --dark: #1e293b;
    /* Main Text: Dark Slate */

    /* FIX: --gray is used for secondary text */
    --gray: #475569;
    /* Secondary text */

    /* FIX: --light is used for Body Background, so it must be LIGHT in Light Mode */
    --light: #f8fafc;
    /* Background: Very light grey */

    /* FIX: --white is used for Headings/Stats Text (on dark bg), or inverted components */
    /* In Light Mode, components like .stats often invert to light bg, so text must be dark */
    --white: #0f172a;
    /* Headings: Very Dark */
    --bg-card: #ffffff;
    /* Card Background: White */

    /* Dynamic Backgrounds */
    --hero-blob: linear-gradient(135deg, #e0f2fe 0%, #f0fdfa 100%);
    --bg-icon-green: #ecfdf5;
    --bg-icon-yellow: #fffbeb;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.05);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}


/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Image & Icons */
.hero-img-container {
    width: 100%;
    height: 400px;
    background: var(--hero-blob);
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.icon-box {
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-green {
    background: var(--bg-icon-green);
}

.icon-box-yellow {
    background: var(--bg-icon-yellow);
}

.floating-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(15, 118, 110, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(15, 118, 110, 0.39);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.39);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Components */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    /* Ensure this is readable in both modes */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    /* 3D Depth Effect */
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 2px rgba(212, 175, 55, 0.3));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--white);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -20px;
    background: var(--bg-card);
    /* Ensure visibility */
    animation-delay: 1.5s;
}

/* Features/Services */
.features {
    padding: var(--section-spacing) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(120, 120, 120, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
}

.badge-soon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gray);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.feature-card.inactive {
    opacity: 0.6;
    background: transparent;
    border: 1px dashed var(--gray);
}

.feature-card.inactive:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.feature-card.inactive::before {
    display: none;
}

/* Stats Section */
.stats {
    background: var(--dark);
    color: var(--white);
    padding: var(--section-spacing) 0;
    transition: background-color 0.3s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray);
    font-size: 1.125rem;
}

/* Form Section */
.contact {
    padding: var(--section-spacing) 0;
    background: var(--light);
}

.contact-wrapper {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    border: 1px solid rgba(120, 120, 120, 0.1);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
    color: var(--dark);
    /* Ensures text is visible in both themes */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
    color: var(--dark);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
/* Footer */
.footer {
    background: #000000;
    /* Always Black */
    color: #ffffff;
    /* Always White */
    padding: 5rem 0 2rem;
}

/* Header Scrolled State */
.header.scrolled {
    background: var(--glass);
    box-shadow: var(--shadow-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile hide for now, or burger menu */
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}