:root {
    /* Solar Fusion Palette - Premium Golden Hour */
    --fusion-gold: #ffbf00;
    /* Liquid Solar Gold */
    --fusion-gold-dark: #e6ac00;
    --fusion-glow: rgba(255, 191, 0, 0.4);

    /* Backgrounds - Rich & Textured */
    --bg-main: #ffffff;
    --bg-mesh: radial-gradient(at 0% 0%, rgba(255, 191, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 191, 0, 0.05) 0px, transparent 50%);
    --bg-alt: #fefaf0;
    /* Soft Creamy White */

    /* Advanced Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: 15px;

    /* Text - High Contrast Slate */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Layout & Border */
    --border-color: rgba(15, 23, 42, 0.08);
    --border-gold: rgba(255, 191, 0, 0.2);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Depth - Multi-layered Shadows */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-soft: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    --shadow-fusion: 0 20px 40px -10px rgba(255, 191, 0, 0.15);
    --transition-premium: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    line-height: 1.625;
    color: var(--text-primary);
    background-color: var(--bg-main);
    background-image: var(--bg-mesh);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-lg) 0;
}

/* Header & Navigation - Floating Dock */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 20px;
    margin: 0 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    transition: var(--transition-premium);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 30px;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--fusion-gold);
    background: linear-gradient(135deg, var(--fusion-gold), #ff8c00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-premium);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--fusion-gold);
    transition: var(--transition-premium);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--text-primary);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-premium);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Mobile close button - hidden by default on desktop */
.mobile-close-btn {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition-premium);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Button Component - Fusion Style */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: var(--transition-premium);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--fusion-gold), #ff8c00);
    color: white;
    box-shadow: var(--shadow-fusion);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px -15px rgba(255, 191, 0, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

/* Footer Implementation - Fusion Nightfall */
footer {
    background: #0a0f1d;
    color: white;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 191, 0, 0.1), transparent 50%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: var(--fusion-gold);
    margin-bottom: 30px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: block;
}

.footer-logo span {
    color: var(--fusion-gold);
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-col ul li {
    margin-bottom: 15px;
    list-style: none;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 1rem;
    transition: var(--transition-premium);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--fusion-gold);
    transform: translateX(10px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition-premium);
}

.social-icon:hover {
    background: var(--fusion-gold);
    color: #0a0f1d;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 191, 0, 0.3);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations - Safe Implementation */
html.aos-init [data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-premium);
}

html.aos-init [data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    header {
        top: 10px;
        margin: 0 10px;
        z-index: 9999;
    }

    /* Show mobile menu toggle - stays in navbar */
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 100;
        margin-right: 15px;
    }

    /* Mobile nav menu - hidden by default */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 95vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 9998;
        visibility: hidden;
        opacity: 0;
        transform: translateX(-100%);
        margin: 0;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    /* Mobile close button inside menu */
    .mobile-close-btn {
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 3rem;
        font-weight: 300;
        color: var(--text-primary);
        cursor: pointer;
        line-height: 1;
        transition: var(--transition-premium);
        display: block !important;
    }

    .mobile-close-btn:hover {
        color: var(--fusion-gold);
        transform: rotate(90deg);
    }

    /* Hide close button on desktop */
    .nav-links .mobile-close-btn {
        display: none;
    }

    @media (max-width: 992px) {
        .nav-links .mobile-close-btn {
            display: block;
        }
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .logo-font {
        font-size: 1.5rem !important;
    }

    /* Larger logo on mobile */
    .logo img {
        width: 80px !important;
        min-width: 80px;
    }

    header .logo-text {
        display: none;
    }

    /* Container padding for mobile */
    .container {
        padding: 0 20px;
    }

    /* Footer grid responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Tablet and Mobile - Additional breakpoint */
@media (max-width: 768px) {

    /* Hero section mobile fixes */
    .hero h1 {
        font-size: clamp(2rem, 8vw, 4rem) !important;
        letter-spacing: -1px !important;
        text-align: center !important;
    }

    .hero p {
        text-align: center !important;
        padding: 0 15px;
    }

    .hero>.container>div {
        text-align: center !important;
    }

    .hero .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Hero tags responsive */
    .hero-tags {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-tag {
        width: fit-content;
    }

    /* About grid - single column */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Stats grid responsive */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }

    /* Warranty badge repositioning */
    .warranty-badge {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: -30px;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    /* Section titles responsive */
    .fusion-section h2 {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
        padding: 0 15px;
    }

    /* Subsidy box responsive */
    .subsidy-box {
        padding: 50px 25px !important;
    }

    .subsidy-box h2 {
        font-size: 1.8rem !important;
    }

    /* CTA section responsive */
    section[style*="text-align: center"] h2 {
        font-size: 2.2rem !important;
        letter-spacing: -1px !important;
    }

    /* Feature cards grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card {
        padding: 40px 30px;
    }

    /* Sections padding reduction */
    .fusion-section {
        padding: 60px 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* Buttons stacked on mobile */
    .hero>.container>div>div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    /* Stats smaller */
    .stat-item h2 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.7rem;
    }

    /* Subsidy tags wrap better */
    .subsidy-box>div[style*="display: flex"] {
        flex-direction: column;
        gap: 15px !important;
    }

    /* Brand scroll adjustments */
    .brand-scroll-container div[style*="padding: 0 40px"] {
        padding: 0 20px !important;
        width: 150px !important;
    }

    /* Nav improvements */
    nav {
        padding: 0 15px;
        height: 70px;
    }

    .logo img {
        width: 90px !important;
    }

    .nav-cta {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}