/* --- 1. VARIABLES & THEME --- */
:root {
    /* Brand Colors derived from your requirements */
    --primary: #007bff;
    --primary-dark: #0056b3;
    --accent: #ff6d06;
    --accent-glow: rgba(255, 109, 6, 0.4);
    /* Neutral Colors */
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8f9fa;
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    /* Glassmorphism Variables */
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- 2. GLOBAL RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--text-main);
    overflow-x: hidden; /* Prevent horizontal scrollbar due to animations */
    line-height: 1.6;
    width: 100%;
}

/* Custom Scrollbar for "Expert" feel */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent);
    }

/* --- 3. LAYOUT UTILITIES (Full Width Logic) --- */
/* Wrapper for limiting content width while keeping background full */
.container {
    max-width: 1400px; /* Increased from 1200px for wider look */
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Buttons */
.btn {
    padding: 14px 35px; /* Bigger touch targets */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #e65100);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 109, 6, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s ease;
    /* Default: Transparent background */
    background: transparent;
}

    /* --- SCROLLED STATE (Jab User Scroll Karega) --- */
    header.scrolled {
        background: rgba(255, 255, 255, 0.95); /* White Glass Background */
        padding: 15px 0;
        backdrop-filter: blur(15px);
        box-shadow: 0 5px 30px rgba(0,0,0,0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO STYLING --- */
.logo {
    font-size: 26px;
    font-weight: 800;
    /* Default: White Logo (Kyuki peeche dark hero image hai) */
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

/* Fix: Jab scroll ho, Logo Dark ho jaye */
header.scrolled .logo {
    color: var(--dark);
}

.logo i {
    color: var(--primary);
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

    /* --- NAVIGATION LINKS STYLING --- */
    .nav-links a {
        text-decoration: none;
        /* Default: White Text */
        color: var(--white);
        font-weight: 500;
        font-size: 1.05rem;
        position: relative;
        transition: color 0.3s;
    }

/* Fix: Jab scroll ho, Links Dark ho jaye */
header.scrolled .nav-links a {
    color: var(--dark); /* Ya var(--text-main) */
}

/* Underline Animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--accent);
    bottom: -8px;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary); /* Hover par Blue */
}

/* Hover fix for Scrolled State */
header.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Login Link Specific Fix (Agar layout mein alag se hai) */
nav > div > a:not(.btn) {
    color: var(--white) !important;
    transition: color 0.3s;
}

header.scrolled nav > div > a:not(.btn) {
    color: var(--dark) !important;
}
.dropdown-content a,
header.scrolled .dropdown-content a {
    color: #ffffff !important;
}
/* --- 5. HERO SECTION (Immersive) --- */
.hero {
    min-height: 100vh; /* Full Viewport Height */
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding-top: 80px; /* Space for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(2, 6, 23, 0.9) 0%, rgba(0, 123, 255, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px; /* Slightly wider text area */
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive Font Size */
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.8s;
}

.hero-btns {
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.1s;
}

/* Floating 3D Dashboard Card */
.hero-dashboard {
    position: absolute;
    right: 5%; /* Closer to edge for full width feel */
    top: 55%;
    transform: translateY(-50%);
    width: 450px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    display: none;
}

@media(min-width: 1200px) {
    .hero-dashboard {
        display: block;
    }
}

/* Dashboard Internal Stats */
.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
    font-size: 1.1rem;
}

.stat-val {
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* --- 6. FEATURES SECTION --- */
.features {
    padding: 120px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

    .section-title h2 {
        font-size: 3rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 15px;
    }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Wider cards */
    gap: 40px;
}

.feature-card {
    background: var(--light);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .feature-card:hover {
        transform: translateY(-15px);
        background: white;
        box-shadow: 0 30px 60px rgba(0, 123, 255, 0.15);
        border-color: rgba(0, 123, 255, 0.2);
    }

/* Feature Icon Animation */
.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 32px;
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(360deg) scale(1.1);
}

/* --- 7. TECH/INTEGRATION SECTION (Dark Mode) --- */
.tech-bg {
    background: var(--darker);
    color: white;
    padding: 120px 0;
    background-image: radial-gradient(circle at top right, #1e293b 0%, transparent 40%), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-blend-mode: overlay;
    position: relative;
}

.tech-content {
    display: flex;
    align-items: center;
    gap: 80px; /* More space between text and graphic */
    flex-wrap: wrap;
}

.tech-text {
    flex: 1;
}

    .tech-text h2 {
        font-size: 3rem;
        margin-bottom: 25px;
    }

.tech-visual {
    flex: 1;
    min-width: 350px;
}

.meter-graphic {
    width: 100%;
    height: 400px; /* Taller graphic */
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(0, 123, 255, 0.1);
}

/* Pulse Animation */
.pulse-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(255, 109, 6, 0.7);
    animation: pulse-orange 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

/* --- 8. FOOTER --- */
footer {
    background: #050505;
    color: #94a3b8;
    padding: 100px 0 30px;
    position: relative;
}

    footer::before {
        content: '';
        position: absolute;
        top: -60px;
        left: 0;
        width: 100%;
        height: 60px;
        background: #050505;
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
        transform: scaleX(1.1);
    }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-links li {
    list-style: none;
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
}

    .footer-links a:hover {
        color: var(--primary);
        padding-left: 8px;
    }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.95rem;
}

/* --- 9. KEYFRAMES & UTILITIES --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(-50%) translateY(0px);
    }

    50% {
        transform: translateY(-50%) translateY(-20px);
    }
    /* Higher float range */
    100% {
        transform: translateY(-50%) translateY(0px);
    }
}

@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 109, 6, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 30px rgba(255, 109, 6, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 109, 6, 0);
    }
}

/* Scroll Reveal Helper */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* --- MOBILE MENU STYLES --- */

/* 1. Toggle Button (Hamburger) */
.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--white); /* Default white */
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001; /* Menu se upar rehna chahiye */
}

/* Jab header scroll ho, toggle button dark ho jaye */
header.scrolled .mobile-toggle {
    color: var(--dark);
}

/* 2. Full Screen Overlay Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98); /* Dark Blue bg */
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%); /* Default hidden (upar) */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    .mobile-menu-overlay.active {
        transform: translateY(0); /* Slide down */
    }

/* 3. Mobile Links */
.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
    width: 80%;
}

    .mobile-links a {
        color: white;
        font-size: 1.5rem;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s;
    }

        .mobile-links a:hover {
            color: var(--primary);
        }

/* 4. Close Button inside Menu */
.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* --- LOGO & LOGIN LINK FIX (From previous chat) --- */
/* Login link color fix logic */
.login-link {
    color: var(--white) !important;
    transition: color 0.3s;
}

header.scrolled .login-link {
    color: var(--dark) !important;
}
/* --- SPACIOUS 5-COLUMN FOOTER CSS --- */

.footer-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px; /* Gap badha diya */
}

.footer-links li {
    list-style: none;
    margin-bottom: 15px; /* Links ke beech ka space badha diya (Height increase hogi) */
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem; /* Font size wapas normal kar diya */
    transition: all 0.3s;
}

    .footer-links a:hover {
        color: var(--primary);
        padding-left: 5px;
    }

/* Mobile Responsive */
@media (max-width: 992px) {
    .footer-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid-5 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links li a {
        justify-content: center;
    }
}