/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove mobile tap highlight */
}

:root {
    /* Main Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-sage: #f0fdf4;
    --bg-sky: #f0f9ff;

    /* Brand Colors (Premium) */
    --color-blue-deep: #0f172a;
    --color-blue-sky: #38bdf8;
    --color-gold: #f59e0b;
    --color-orange: #eab308;
    --color-green: #10b981;

    /* Neutral Typography & Borders */
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-light: #64748b;
    --color-border: #e2e8f0;

    /* Mapped variables for compatibility with existing selectors */
    --bg-color: var(--bg-primary);
    --surface-color: var(--bg-secondary);
    --bg-alt: var(--bg-secondary);
    --text-primary: var(--text-body);
    --text-secondary: var(--text-light);
    --text-tertiary: var(--text-light);
    --color-solar: var(--color-blue-deep);
    --color-sky: var(--color-blue-sky);
    --color-gray: var(--color-border);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.section-label {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    /* Massive hero text */
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    /* remains white on hero background */
}

/* Ensure all headings inside the dark scroll sequence overlays are white for contrast */
#scroll-sequence h1,
#scroll-sequence h2,
#scroll-sequence h3,
#scroll-sequence h4,
#scroll-sequence h5,
#scroll-sequence h6 {
    color: #ffffff !important;
}

#scroll-sequence .stat-number {
    color: #ffffff !important;
}

/* --- SCROLL SEQUENCE (Sticky Hero & About) --- */
.seq-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.seq-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.seq-content-wrapper {
    z-index: 10 !important;
}

@media (min-width: 992px) {
    #scroll-sequence {
        height: 100vh !important;
    }

    .seq-content-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .seq-step,
    .seq-hero {
        height: 100% !important;
    }

    .hero-bottom-row {
        position: absolute !important;
        bottom: 10vh !important;
        left: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #scroll-sequence .hero-text-box {
        max-width: min(100%, 460px);
    }
}

@media (max-width: 991px) and (max-height: 720px) {
    #scroll-sequence {
        min-height: 0 !important;
        overflow: visible !important;
    }

    .seq-content-wrapper {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .seq-step,
    .seq-hero {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .seq-foreground {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 15 !important;
        pointer-events: none !important;
    }

    .seq-hero {
        padding-top: 72px !important;
        padding-bottom: 10px !important;
    }

    .hero-bottom-row {
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .hero-approval-showcase {
        padding: 10px 8px 8px 8px !important;
        gap: 8px !important;
    }

    .approval-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .approval-hero-card {
        padding: 8px 8px 12px 8px !important;
    }

    .approval-card-title {
        font-size: 0.64rem !important;
        margin-bottom: 6px !important;
    }

    .approval-card-content {
        gap: 6px !important;
    }

    .approval-corp-name {
        font-size: 0.56rem !important;
    }

    .approval-role-tag,
    .approval-ministry-en {
        font-size: 0.5rem !important;
    }

    .approval-gov-tag {
        font-size: 0.52rem !important;
        padding: 2px 5px !important;
    }

    .approval-gold-seal {
        bottom: -8px !important;
        right: 8px !important;
    }

    .gold-seal-img {
        width: 28px !important;
    }

    .stats-columns.hero-showcase-stats .stat-row h3 {
        font-size: 1.1rem !important;
    }

    .stats-columns.hero-showcase-stats .stat-row p {
        font-size: 0.5rem !important;
    }

    .approval-bottom-pill {
        font-size: 0.52rem !important;
        padding: 6px 10px !important;
        letter-spacing: 0.04em !important;
    }
}

.seq-foreground img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
}

.seq-step {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

/* Creaenergy Hero Layout */
.seq-hero {
    justify-content: space-between;
    padding-top: 15vh;
    padding-bottom: 10vh;
}

.massive-title {
    font-size: clamp(3rem, 7.8vw, 8.5rem);
    color: white;
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 0.9;
    z-index: 20;
    position: relative;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1440px) {
    .massive-title {
        font-size: clamp(2.5rem, 7.2vw, 6.5rem);
        letter-spacing: -0.01em;
    }
}

@media (max-width: 1200px) {
    .massive-title {
        font-size: clamp(2.2rem, 6.8vw, 5.2rem);
        letter-spacing: 0;
    }
}

/* --- Fix for 769–990px: Title visibility over foreground image --- */
@media (min-width: 769px) and (max-width: 990px) {
    #hero-main-title.massive-title {
        font-size: clamp(1.8rem, 4.8vw, 3.2rem) !important;
        top: 2vh !important;
        z-index: 30 !important;
        letter-spacing: 0.01em !important;
        text-shadow: 0 6px 25px rgba(0, 0, 0, 0.7),
            0 2px 8px rgba(0, 0, 0, 0.5) !important;
        color: #ffffff !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .seq-foreground {
        z-index: 18 !important;
    }

    .hero-bottom-row {
        z-index: 32 !important;
    }
}

@media (max-width: 768px) {
    .seq-hero {
        padding: 85px 24px 20px 24px !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .massive-title {
        font-size: clamp(2.2rem, 9.8vw, 4.5rem) !important;
        top: 22vh !important;
        z-index: 20 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        text-align: left !important;
        font-size: clamp(1.4rem, 6vw, 2.2rem) !important;
        font-weight: 800 !important;
        color: #5AB6F2 !important;
        opacity: 1 !important;
        z-index: 35 !important;
        margin: 0 0 10px 0 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
        white-space: normal !important;
    }

    .seq-foreground {
        z-index: 15 !important;
        background-size: cover !important;
        background-position: bottom center !important;
    }

    .hero-bottom-row {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        padding: 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        z-index: 35 !important;
    }

    .hero-text-box h2 {
        font-size: clamp(1rem, 4vw, 1.8rem) !important;
        line-height: 1.2 !important;
        color: #FFFFFF !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    }
}

@media (max-width: 480px) {
    .seq-hero {
        padding: 80px 16px 20px 16px !important;
    }

    .massive-title {
        font-size: clamp(1.05rem, 4.6vw, 1.4rem) !important;
    }

    .hero-text-box h2 {
        font-size: clamp(0.95rem, 3.8vw, 1.25rem) !important;
        line-height: 1.2 !important;
    }
}

.hero-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    position: relative;
    z-index: 30;
}

.hero-text-box h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    color: white;
    margin: 0;
    line-height: 1.18;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    gap: 30px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-row h3 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: white;
    font-weight: 800;
}

.stat-row p {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 150px;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Hero Government Approvals & Recognition Showcase (TGREDCO & MNRE)
   ========================================================================== */
.hero-approval-showcase {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    padding: 22px 26px 18px 26px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 820px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approval-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

.approval-hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 22px;
    padding: 20px 20px 24px 20px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 175px;
    box-sizing: border-box;
}

.approval-hero-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.approval-card-title {
    margin: 0 0 12px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.10rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.approval-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.approval-seal-badge {
    width: 82px;
    height: 82px;
    min-width: 82px;
    background: #ffffff;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    border: 2px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.approval-hero-card:hover .approval-seal-badge {
    transform: scale(1.04);
}

.approval-seal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.approval-card-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.approval-corp-name {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.approval-role-tag,
.approval-ministry-en {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.approval-ministry-en strong {
    color: #ffffff;
    font-weight: 700;
}

.approval-gov-tag {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.approval-gold-seal {
    position: absolute;
    bottom: -16px;
    right: 18px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    pointer-events: none;
}

.approval-hero-card:hover .approval-gold-seal {
    transform: scale(1.1) rotate(3deg);
}

.gold-seal-img {
    width: 48px;
    height: auto;
    display: block;
}

/* Bottom Pill Button */
.approval-bottom-pill-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

.approval-bottom-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50px;
    padding: 8px 24px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.approval-bottom-pill:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

/* Integrated Renewable Growth Statistics Row */
.hero-stats-row-integrated {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.showcase-horizontal-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.stats-columns.hero-showcase-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 520px;
    gap: 20px;
}

.stats-columns.hero-showcase-stats .stat-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stats-columns.hero-showcase-stats .stat-row h3 {
    font-size: clamp(2.0rem, 3.5vw, 2.6rem);
    margin: 0 0 2px 0;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.stats-columns.hero-showcase-stats .stat-row p {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.25;
    text-align: center;
    max-width: 160px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.stats-vertical-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.about-stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

/* ------------------------------------------- */

h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #preloader-video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
    min-width: 48px;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--color-blue-deep);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.39);
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.23);
}

.btn-cta {
    background-color: var(--color-gold);
    color: #ffffff;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

.btn-cta:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.23);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--color-blue-deep);
    border: 2px solid var(--color-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--color-blue-deep);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 5%;
    }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s, box-shadow 0.3s;
}

/* Glassmorphism Header when scrolled or solid */
.main-header.scrolled,
.main-header.solid-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 40px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Site Logo Styling --- */
.logo,
.mobile-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.logo:hover,
.mobile-logo:hover {
    transform: translateY(-1px) scale(1.02);
}

.logo img,
.site-logo-img {
    height: 48px;
    max-height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: all 0.25s ease;
}

.logo:hover img,
.logo:hover .site-logo-img {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* Scrolled Header Logo */
.main-header.scrolled .logo img,
.main-header.solid-header .logo img {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Logo */
.mobile-logo img,
.mobile-logo-img {
    height: 42px;
    max-height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a:not(.btn-primary) {
    color: #ffffff;
    /* White default on transparent hero overlay */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

/* Active Nav Tab Underline Indicator Bar */
.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: #112f3c;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.main-nav a:not(.btn-primary):hover::after,
.main-nav a:not(.btn-primary).active::after {
    width: 100%;
}

.main-nav a:not(.btn-primary).active {
    color: #190e3d;
    font-weight: 600;
}

.main-header.scrolled .main-nav a:not(.btn-primary),
.main-header.solid-header .main-nav a:not(.btn-primary) {
    color: var(--text-heading);
}

.main-nav a:hover:not(.btn-primary) {
    color: var(--color-blue-sky);
}

.main-header.scrolled .main-nav a:hover:not(.btn-primary),
.main-header.solid-header .main-nav a:hover:not(.btn-primary) {
    color: var(--color-blue-deep);
}

.main-header.scrolled .main-nav a:not(.btn-primary).active,
.main-header.solid-header .main-nav a:not(.btn-primary).active {
    color: var(--color-blue-deep);
    font-weight: 600;
}

.main-header.scrolled .main-nav a:not(.btn-primary)::after,
.main-header.solid-header .main-nav a:not(.btn-primary)::after {
    background: var(--color-blue-deep);
}

/* Dropdown CSS */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: -15px;
    background-color: #ffffff !important;
    min-width: 320px !important;
    width: max-content !important;
    max-width: 380px !important;
    padding: 10px 0 !important;
    box-shadow: 0px 14px 45px rgba(0, 0, 0, 0.16) !important;
    z-index: 10000 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Hover bridge to prevent closing when mouse moves over the margin gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.main-header.scrolled .dropdown-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.dropdown-content a,
.main-nav .dropdown-content a {
    color: var(--text-body, #1f2937) !important;
    padding: 12px 24px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: left !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.dropdown-content a:hover,
.main-nav .dropdown-content a:hover {
    background-color: #EDF6FF !important;
    color: var(--color-blue-deep, #0b4a93) !important;
    padding-left: 28px !important;
}

.dropdown-content a::after,
.main-nav .dropdown-content a::after {
    display: none !important;
}



.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 1002;
    min-height: 48px;
    min-width: 48px;
    align-items: center;
    justify-content: center;
}

.main-header.scrolled .mobile-toggle,
.main-header.solid-header .mobile-toggle {
    color: var(--text-heading, #0f172a);
}

/* Mobile Nav Overlay (Premium Dark Glassmorphic Theme & Flawless UX) */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #040d18 0%, #071728 50%, #0a2038 100%) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 0 140px 0 !important;
    box-sizing: border-box !important;
}

.mobile-overlay-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Header bar inside mobile overlay */
.mobile-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: rgba(4, 13, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-overlay-header .mobile-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.mobile-close-btn {
    position: static !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-close-btn:hover,
.mobile-close-btn:active {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
    transform: scale(0.96);
}

.mobile-close-btn i,
.mobile-close-btn svg {
    width: 22px !important;
    height: 22px !important;
}

/* Nav links list inside mobile drawer */
.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 18px 0 18px;
    box-sizing: border-box;
    transform: translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-overlay-menu.active .mobile-nav-content {
    transform: translateY(0);
}

.mobile-link {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 18px !important;
    border-radius: 12px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.mobile-link:hover,
.mobile-link:active {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
}

.mobile-nav-arrow {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-link:hover .mobile-nav-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.mobile-dropbtn {
    width: 100%;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-dropbtn .dropdown-chevron {
    width: 20px;
    height: 20px;
    opacity: 0.75;
    transition: transform 0.25s ease;
}

/* Expanded mobile dropdown container - Vertical Stack */
.mobile-dropdown-content {
    display: none;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(2, 9, 18, 0.8) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-radius: 14px !important;
    margin: 8px 0 14px 0 !important;
    padding: 10px !important;
    gap: 8px !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Service Card Row on Mobile */
.mobile-service-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    min-height: 52px !important;
    color: #f8fafc !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.mobile-service-item .service-item-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.mobile-service-item .service-icon-box {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.08) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 8px !important;
    color: #38bdf8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.mobile-service-item .service-icon-box svg,
.mobile-service-item .service-icon-box i {
    width: 18px !important;
    height: 18px !important;
}

.mobile-service-item .service-name {
    color: #ffffff !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    word-break: break-word !important;
    transition: color 0.2s ease !important;
}

.mobile-service-item .service-item-arrow {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

/* Service Card Interactive Active/Hover State */
.mobile-service-item:hover,
.mobile-service-item:active {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    transform: translateX(3px) !important;
}

.mobile-service-item:hover .service-name,
.mobile-service-item:active .service-name {
    color: #38bdf8 !important;
}

.mobile-service-item:hover .service-icon-box,
.mobile-service-item:active .service-icon-box {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
}

.mobile-service-item:hover .service-item-arrow,
.mobile-service-item:active .service-item-arrow {
    color: #38bdf8 !important;
    transform: translateX(3px) !important;
}

.mobile-menu-cta {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
    width: 100%;
}

.mobile-menu-cta .btn-primary {
    justify-content: center;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 50px;
}

.mobile-menu-cta .btn-secondary {
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
    gap: 8px;
}

.mobile-menu-cta .btn-secondary:hover,
.mobile-menu-cta .btn-secondary:active {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

/* Hide background sticky CTA while mobile menu is open */
body.body-menu-open .mobile-sticky-cta,
body.body-menu-open .mobile-action-bar,
.mobile-overlay-menu.active~.mobile-sticky-cta {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mobile-nav-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

/* Desktop Hero Canvas */
.desktop-hero {
    display: block;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 35, 64, 0.4) 0%, rgba(26, 35, 64, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero-headline span {
    background: linear-gradient(135deg, var(--color-solar), var(--color-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.hero-features i {
    color: var(--color-sky);
}

/* Mobile Hero (Static Fallback) */
.mobile-hero {
    display: none;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.mobile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/solar-bg-1.webp') center/cover no-repeat;
    z-index: 1;
}

.mobile-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 64, 0.85);
}

.mobile-hero-content {
    justify-content: flex-end;
    padding-bottom: 15vh;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Brands Marquee */
.brands-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-gray);
    background: var(--surface-color);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    width: 200%;
    animation: marquee 20s linear infinite;
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.marquee-content h3 {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.6;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Typography & Layout Shared */
.section-label {
    color: #0284c7;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
    font-weight: 700;
}

section h2 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Premium Text Scrub Reveal */
.gs_text_scrub {
    background: linear-gradient(to right, var(--text-heading) 50%, rgba(30, 41, 59, 0.25) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Ensure text scrub inside the dark hero scroll sequence overlay is solid white */
#scroll-sequence .gs_text_scrub {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
}

.hero-subtitle {
    color: var(--text-primary);
}

/* Image wrappers for sections */
.section-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About Section */
.about-section {
    padding: 160px 0;
    background: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.stat-item {
    border-left: 3px solid var(--color-solar);
    padding-left: 24px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-number {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-solar);
    margin-bottom: 5px;
    line-height: 1;
    font-weight: 500;
}

/* Bento Grid */
.services-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.bento-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    border: 1px solid #EEF2F7;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    will-change: transform;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.bento-card h3 {
    color: #ffffff !important;
}

.bento-card p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.bento-card .bento-icon {
    color: #ffffff !important;
}

.bento-card:active {
    transform: scale(0.98);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}


.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Image background for bento card */
.bento-large-img {
    position: cover;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    /* Oversized for parallax */
    background: url('../../images/solar-bg-2.webp') center/cover no-repeat;
    z-index: 0;
}

.bento-large-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.bento-card>* {
    z-index: 1;
    /* Bring text above background */
    position: relative;
}

/* Background image for small bento cards */
.bento-bg {
    position: absolute;
    top: -15%;
    /* Oversized for parallax */
    left: 0;
    width: 100%;
    height: 130%;
    /* Oversized for parallax */
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
}

.bento-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.about-image {
    overflow: hidden;
    border-radius: 24px;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.about-image img {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
}

.bento-icon {
    color: var(--color-sky);
    width: 32px;
    height: 32px;
    margin-bottom: auto;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.bento-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Calculator Section */
.calc-section {
    padding: 160px 0;
    background: var(--bg-alt);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.calc-ui {
    background: var(--bg-color);
    border: 1px solid var(--color-gray);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 24px;
}

.calc-field {
    margin-bottom: 24px;
}

/* Advanced Calculator Dashboard */
.advanced-calc-section {
    padding: 60px 0;
    background: var(--bg-sky);
    color: var(--text-body);
}

.advanced-calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 992px) {
    .advanced-calc-wrapper {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 30px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dash-card {
        padding: 15px;
    }

    .dash-card h3 {
        font-size: clamp(1.2rem, 4vw, 2rem) !important;
    }

    .dash-card h3.dash-card-sub,
    .dash-card h4 {
        font-size: clamp(1rem, 3.5vw, 1.5rem) !important;
    }

    .dash-card span {
        font-size: 0.75rem !important;
    }

    .dash-math-bar {
        flex-direction: row;
        gap: 5px;
        padding: 15px 10px;
        justify-content: space-between;
    }

    .math-operator {
        transform: none;
        margin: 0;
        font-size: 1.2rem;
    }

    .math-item h3,
    .math-item h4 {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem) !important;
    }

    .math-item h3 {
        font-size: clamp(1rem, 4vw, 1.5rem) !important;
    }

    .math-item span {
        font-size: 0.65rem !important;
        text-align: center;
    }

    .math-item small {
        font-size: 0.55rem !important;
        text-align: center;
    }

    .math-item.highlight {
        padding: 8px;
    }

    .math-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }

    .math-icon svg {
        width: 14px;
        height: 14px;
    }

    /* Small Mobile Viewport Fix (<= 480px, e.g. iPhone SE) */
    @media (max-width: 480px) {
        .dash-math-bar {
            flex-direction: column !important;
            gap: 10px !important;
            padding: 20px 15px !important;
            align-items: center !important;
        }

        .math-operator {
            font-size: 1.5rem !important;
            margin: 2px 0 !important;
            color: var(--color-solar) !important;
        }

        .math-item {
            width: 100% !important;
        }

        .math-item.highlight {
            width: 100% !important;
            box-sizing: border-box !important;
            padding: 12px !important;
        }
    }
}

/* --- Left Sidebar --- */
.calc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calc-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
}

.calc-subtitle {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.5;
}

.calc-toggle-group {
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid var(--color-border);
}

.calc-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-body);
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-toggle-btn.active {
    background: var(--color-blue-deep);
    color: #ffffff;
}

.calc-input-group {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-body);
    border: 1px solid var(--color-border);
}

.calc-input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}


.input-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.input-with-icon input {
    border: none;
    outline: none;
    font-size: 1.5rem;
    font-weight: 700;
    width: 100%;
    color: var(--color-blue-deep);
    background: transparent;
}

.calc-submit-btn {
    background: var(--color-gold);
    color: #02140D;
    font-size: 1.2rem;
    padding: 16px;
    width: 100%;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.calc-submit-btn:hover {
    transform: translateY(-2px);
    background: #B97C16;
}

/* --- Right Dashboard --- */
.calc-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dash-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    color: var(--text-body);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.dash-card span {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
}

.dash-card h3 {
    font-size: 3rem;
    color: var(--color-blue-deep);
    font-weight: 800;
}

.dash-card h3.dash-card-sub,
.dash-card h4 {
    font-size: 1.8rem;
    color: var(--color-blue-deep);
    font-weight: 700;
}

.dash-math-bar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border);
}

.math-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    align-items: center;
}

.math-item.highlight {
    background: rgba(216, 154, 43, 0.06);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(216, 154, 43, 0.15);
}

.math-icon {
    background: rgba(11, 74, 147, 0.1);
    color: var(--color-blue-deep);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.math-item span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.math-item h3,
.math-item h4 {
    font-size: 1.5rem;
    color: var(--text-heading);
}

.math-item h3 {
    font-size: 2rem;
    color: var(--color-blue-deep);
}

.math-item.highlight h3 {
    color: #047857;
}

.math-item small {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.math-operator {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-blue-sky);
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-card {
    position: relative;
    padding-left: 80px;
}

.timeline-num {
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(11, 74, 147, 0.07);
}

/* FAQ */
.faq-section {
    padding: 40px 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-gray);
}

.faq-question {
    padding: 24px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    min-height: 48px;
    color: var(--text-primary);
}

.faq-question:hover {
    color: var(--color-sky);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

/* CTA */
.cta-section {
    padding: 160px 0;
    text-align: center;
    background: linear-gradient(135deg, #0B4A93 0%, #2A76C6 100%);
    position: relative;
    border-top: 1px solid var(--color-gray);
    overflow: hidden;
    color: #ffffff;
}

.cta-section h2,
.cta-section p {
    color: #ffffff !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/solar-bg-2.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--bg-color);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    text-shadow: none;
}

.cta-main-btn {
    background: var(--color-gold) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(216, 154, 43, 0.3) !important;
}

.cta-main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(216, 154, 43, 0.5) !important;
    background: #B97C16 !important;
}

/* Footer */
.site-footer {
    padding: 80px 0 40px;
    background: #082A4F;
    color: #D6E3F0;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .footer-logo-text {
    color: #ffffff !important;
}

.site-footer a {
    color: #D6E3F0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-gold) !important;
}

.site-footer .container {
    max-width: 1400px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 4vw, 40px) !important;
    padding-right: clamp(16px, 4vw, 40px) !important;
    box-sizing: border-box !important;
}

.footer-top {
    display: grid;
    grid-template-columns: 34% 1fr;
    gap: clamp(24px, 3.2vw, 56px);
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-logo {
    max-width: 380px;
    width: 100%;
}

.footer-logo p {
    text-align: left;
}

.footer-logo img,
.footer-logo-img {
    height: 52px;
    max-height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.footer-logo a:hover img {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.footer-links {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.95fr;
    gap: clamp(20px, 2.5vw, 48px);
    align-items: flex-start;
}

.footer-col {
    min-width: 0;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 24px;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-col a {
    display: flex;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    line-height: 1.45;
    transition: color 0.3s;
    min-height: 28px;
    word-break: normal;
    overflow-wrap: break-word;
}

.footer-col a:hover {
    color: #fff;
}

/* Footer Large Brand Text Reveal */
.footer-brand-reveal {
    margin: 40px 0 20px;
    text-align: center;
    position: relative;
    user-select: none;
    z-index: 10;
}

.site-footer h2.footer-giant-text,
.footer-giant-text {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(2rem, 7.8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #FFFFFF !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #7DD3FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: none !important;
    display: block !important;
    visibility: visible !important;
    white-space: nowrap;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    transition: opacity 0.5s ease;
}

.footer-brand-reveal.revealed .footer-giant-text,
.site-footer.revealed .footer-giant-text {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Footer Brand Logo Text Reveal Effect */
.site-footer .footer-logo-text {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-text-reveal {
    display: inline-block;
    opacity: 1 !important;
    position: relative;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #fbbf24 50%, #ffffff 60%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: footerTextShine 4s infinite linear;
}

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

    100% {
        background-position: -200% 0;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0 !important;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.footer-bottom p {
    color: #E2E8F0 !important;
    margin: 0;
}

.footer-bottom a {
    color: #60A5FA !important;
    text-decoration: underline;
    font-weight: 600;
}

/* Mobile Sticky Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--color-gray);
    z-index: 990;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 4px;
    padding: 8px 12px;
}

.action-btn i {
    width: 20px;
    height: 20px;
}

.action-btn.whatsapp-btn {
    color: #25D366;
}

.action-btn.quote-btn {
    color: var(--color-sky);
}


/* =========================================
   MEDIA QUERIES - MOBILE FIRST ARCHITECTURE
   ========================================= */

/* Default states for desktop-only items */
.mobile-action-bar {
    display: none;
}

/* Large Desktop */
@media (max-width: 1280px) {

    .about-grid,
    .calc-grid,
    .process-grid {
        gap: 40px;
    }

    section h2 {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

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

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

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

/* Tablet Portrait & Mobile Breakpoint */
@media (max-width: 768px) {

    /* Hide Desktop Hero & Show Mobile Hero */
    .desktop-hero {
        display: none;
    }

    .mobile-hero {
        display: flex;
    }

    /* Show Mobile Action Bar */
    .mobile-action-bar {
        display: flex;
    }

    /* Adjust body padding for sticky bar */
    body {
        padding-bottom: 70px;
    }

    /* Navigation */
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-header {
        padding: 15px 24px;
    }

    /* Layouts */
    .about-grid,
    .calc-grid,
    .footer-top {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 40px;
    }

    .footer-logo {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo p {
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: space-between;
    }

    .footer-col {
        min-width: 140px;
        flex: 1;
    }

    .footer-col h3,
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .footer-col a {
        font-size: 0.9rem;
        margin-bottom: 10px;
        min-height: 28px;
        line-height: 1.4;
        word-break: normal;
    }

    .footer-social-links {
        gap: 12px !important;
        margin-top: 10px !important;
    }

    .footer-giant-text,
    .site-footer h2.footer-giant-text {
        font-size: clamp(1.6rem, 6.8vw, 3.6rem) !important;
        white-space: nowrap;
    }

    .footer-brand-reveal {
        margin: 30px 0 16px;
    }

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

    .bento-large {
        grid-column: span 1;
    }

    .bento-card {
        border-radius: 16px;
        padding: 32px 24px;
        min-height: auto;
    }

    /* Sections Spacing */
    .about-section,
    .services-section,
    .calc-section,
    .advanced-calc-section,
    .process-section,
    .faq-section,
    .cta-section {
        padding: 40px 0;
    }

    .services-header {
        margin: 0 auto 35px;
    }

    /* Hero Adjustments */
    .hero-features {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .stacked-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .stacked-buttons .btn-primary,
    .stacked-buttons .btn-secondary {
        width: 100%;
        margin: 0;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons button {
        width: 100%;
    }

    .timeline-card {
        margin-bottom: 32px;
    }

    .timeline-card:last-child {
        margin-bottom: 0;
    }

    .site-footer {
        padding: 50px 0 110px !important;
    }

    .footer-top {
        gap: 32px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
    }

    .footer-col h3,
    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .footer-col a {
        font-size: 0.88rem;
        margin-bottom: 8px;
        min-height: 26px;
        line-height: 1.4;
        word-break: normal;
    }

    .footer-social-links {
        gap: 16px !important;
        margin-top: 8px !important;
    }

    .footer-social-links a svg {
        width: 24px !important;
        height: 24px !important;
    }

    .footer-giant-text,
    .site-footer h2.footer-giant-text {
        font-size: clamp(1.35rem, 6.2vw, 2.2rem) !important;
        color: #FFFFFF !important;
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
        white-space: nowrap;
        text-align: center;
    }

    .footer-brand-reveal {
        margin: 24px 0 16px;
        display: block !important;
        visibility: visible !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding-top: 20px;
        position: relative;
        z-index: 10;
        font-size: 0.85rem;
        color: #E2E8F0 !important;
    }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .main-header {
        padding: 10px 16px !important;
    }

    .main-header.scrolled,
    .main-header.solid-header {
        padding: 8px 16px !important;
    }

    .logo img {
        height: 34px !important;
        width: auto !important;
    }

    .seq-step {
        padding-top: 80px !important;
        padding-bottom: 20px !important;
        box-sizing: border-box !important;
    }

    .seq-about {
        padding-top: 85px !important;
        justify-content: flex-start !important;
    }

    .seq-about h2 {
        font-size: clamp(1.35rem, 6vw, 2.0rem) !important;
        line-height: 1.25 !important;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
    }

    .seq-about p {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Solar Calculator Container & Cards (Fix Horizontal Overflow < 480px) */
    .calc-section {
        padding: 30px 0 !important;
        overflow: hidden !important;
    }

    .calc-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .calc-ui {
        padding: 16px 12px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .calc-sidebar,
    .calc-dashboard {
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 16px !important;
    }

    .calc-title {
        font-size: 1.75rem !important;
    }

    .calc-subtitle {
        font-size: 0.95rem !important;
    }

    .calc-input-group {
        padding: 12px 14px !important;
    }

    .calc-input-group label {
        font-size: 0.85rem !important;
    }

    .input-with-icon {
        font-size: 1.25rem !important;
    }

    .input-with-icon input {
        font-size: 1.25rem !important;
    }

    .calc-mode-toggle {
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
        justify-content: flex-start !important;
    }

    .calc-mode-toggle span {
        font-size: 0.8rem !important;
    }

    /* Stack Dashboard Grid to 1 Column under 480px so cards never cut off */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .dash-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .dash-card span {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }

    .dash-card h3 {
        font-size: 2.2rem !important;
    }

    .dash-card h3.dash-card-sub,
    .dash-card h4 {
        font-size: 1.4rem !important;
    }

    /* Stack Math Bar vertically under 480px */
    .dash-math-bar {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px 12px !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
    }

    .math-operator {
        transform: none !important;
        margin: 2px 0 !important;
        font-size: 1.4rem !important;
        color: var(--color-blue-deep) !important;
    }

    .math-item {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .math-item.highlight {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 10px !important;
    }

    .math-item h3 {
        font-size: 1.5rem !important;
    }

    .math-item span {
        font-size: 0.8rem !important;
    }
}

/* Micro Devices & Narrow Viewports (<= 360px down to 250px) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px !important;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    /* Calculator Wrapper & Cards for Micro Devices */
    .calc-ui {
        padding: 12px 8px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .calc-toggle-group {
        padding: 4px !important;
        gap: 4px !important;
        border-radius: 20px !important;
    }

    .calc-toggle-btn {
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
        gap: 4px !important;
    }

    .calc-toggle-btn svg,
    .calc-toggle-btn i {
        width: 14px !important;
        height: 14px !important;
    }

    .calc-input-group,
    #input-group-bill,
    #input-group-size {
        padding: 10px 10px !important;
        border-radius: 10px !important;
    }

    .calc-input-group label {
        font-size: 0.78rem !important;
        margin-bottom: 4px !important;
    }

    .input-with-icon {
        font-size: 1.1rem !important;
        gap: 6px !important;
    }

    .input-with-icon input {
        font-size: 1.1rem !important;
    }

    .calc-mode-toggle {
        gap: 6px 8px !important;
        margin-bottom: 16px !important;
    }

    .calc-mode-toggle span {
        font-size: 0.75rem !important;
    }

    .btn-solar.calc-submit-btn {
        padding: 12px 8px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .dash-card,
    .dash-card.primary-card,
    .dash-card.small-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .dash-card span {
        font-size: 0.78rem !important;
        margin-bottom: 4px !important;
        word-break: break-word;
    }

    .dash-card h3,
    #out-system-size,
    #out-annual-savings {
        font-size: clamp(1.3rem, 7vw, 1.7rem) !important;
        word-break: break-word;
    }

    .dash-card h3.dash-card-sub,
    .dash-card h4,
    #out-energy,
    #out-roof-space {
        font-size: clamp(1.05rem, 6vw, 1.25rem) !important;
        word-break: break-word;
    }

    /* Math Bar */
    .dash-math-bar {
        padding: 12px 8px !important;
        border-radius: 12px !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .math-item {
        width: 100% !important;
        padding: 4px 0 !important;
        box-sizing: border-box !important;
    }

    .math-item.highlight {
        width: 100% !important;
        padding: 10px 8px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    .math-item span,
    #lbl-subsidy {
        font-size: 0.75rem !important;
        word-break: break-word;
    }

    .math-item h3,
    .math-item h4,
    #out-price,
    #out-subsidy,
    #out-effective {
        font-size: clamp(1.1rem, 6.5vw, 1.35rem) !important;
        word-break: break-word;
    }

    .math-item small {
        font-size: 0.65rem !important;
    }

    .site-footer {
        padding: 36px 0 90px !important;
    }

    .footer-top {
        gap: 24px;
    }

    .footer-links {
        gap: 22px;
    }

    .footer-col h3,
    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .footer-col a {
        font-size: 0.84rem;
        margin-bottom: 6px;
        min-height: 24px;
    }

    .footer-social-links a svg {
        width: 22px !important;
        height: 22px !important;
    }

    .footer-giant-text,
    .site-footer h2.footer-giant-text {
        font-size: clamp(1.1rem, 5.6vw, 1.5rem) !important;
        white-space: nowrap;
    }

    .footer-brand-reveal {
        margin: 16px 0 10px;
    }

    .footer-bottom {
        padding-top: 14px;
        font-size: 0.78rem;
        gap: 8px;
    }
}

/* Ultra-Micro Devices (<= 300px down to 250px) */
@media (max-width: 300px) {
    .container {
        padding: 0 4px !important;
    }

    .calc-ui {
        padding: 8px 6px !important;
        border-radius: 10px !important;
    }

    .calc-toggle-btn {
        padding: 6px 4px !important;
        font-size: 0.7rem !important;
    }

    .btn-solar.calc-submit-btn {
        padding: 10px 6px !important;
        font-size: 0.9rem !important;
    }

    .dash-card,
    .dash-card.primary-card,
    .dash-card.small-card {
        padding: 10px 6px !important;
    }

    .dash-card h3,
    #out-system-size,
    #out-annual-savings {
        font-size: 1.2rem !important;
    }

    .math-item h3,
    #out-effective {
        font-size: 1.05rem !important;
    }
}

/* Handle reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .gs_reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

.marquee-wrapper {
    --s: 150px;
    --d: 15s;
    --n: 4;

    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 90px;
    background: #ffffff;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.marquee-wrapper .partner-logo {
    position: absolute;
    height: 50px;
    width: var(--s);
    object-fit: contain;
    offset: shape(from calc(var(--s)/-2) 50%, hline by calc(sibling-count()*max(100%/var(--n), var(--s))));
    animation: scrollMarquee var(--d) linear infinite calc(-1*sibling-index()*var(--d)/sibling-count());
    filter: grayscale(100%) opacity(70%);
    transition: filter 0.3s ease;
}

.marquee-wrapper .partner-logo:hover {
    filter: grayscale(0%) opacity(100%);
}

@keyframes scrollMarquee {
    to {
        offset-distance: 100%;
    }
}

/* Mobile styles for the Detailed About Section */
@media (max-width: 991px) {
    #about-detailed .container {
        grid-template-columns: 1fr !important;
    }

    #about-detailed .container>div:first-child>div {
        padding: 30px !important;
    }

    #about-detailed .container>div:last-child {
        padding: 40px 20px !important;
        min-height: auto !important;
    }

    /* Stack annotations on mobile to prevent overflow */
    #about-detailed .container>div:last-child>div:last-child>div {
        position: relative !important;
        z-index: 10 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        text-align: center;
        margin-top: 15px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    /* Hide the visual connectors on mobile since annotations are stacked */
    #about-detailed .container>div:last-child>div:last-child>div>div {
        display: none !important;
    }
}

/* General Mobile Fixes */
@media (max-width: 991px) {
    .hero-bottom-row {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .hero-approval-showcase {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px 14px 14px !important;
        gap: 14px !important;
        border-radius: 22px !important;
        background: rgba(15, 23, 42, 0.55) !important;
    }

    .approval-showcase-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .approval-hero-card {
        padding: 16px 14px 22px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.14) !important;
    }

    .approval-card-title {
        font-size: 0.98rem !important;
        margin-bottom: 12px !important;
    }

    .approval-seal-badge {
        width: 68px !important;
        height: 68px !important;
        min-width: 68px !important;
    }

    .approval-corp-name {
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
    }

    .approval-role-tag,
    .approval-ministry-en {
        font-size: 0.70rem !important;
    }

    .approval-gov-tag {
        font-size: 0.72rem !important;
        margin-top: 4px !important;
    }

    .approval-gold-seal {
        bottom: -14px !important;
        right: 14px !important;
    }

    .gold-seal-img {
        width: 44px !important;
    }

    .approval-bottom-pill {
        width: 100% !important;
        padding: 8px 14px !important;
        font-size: 0.70rem !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .approval-main-column {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .hero-showcase-divider {
        width: 100% !important;
        height: 1px !important;
        margin: 4px 0 !important;
        background: rgba(255, 255, 255, 0.25) !important;
    }

    .stats-columns.hero-showcase-stats {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-around !important;
        width: 100% !important;
        gap: 12px !important;
        box-sizing: border-box !important;
        padding: 4px 0 !important;
    }

    .stats-columns.hero-showcase-stats .stat-row {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        text-align: center !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .stats-columns.hero-showcase-stats .stat-row h3 {
        font-size: clamp(1.8rem, 5vw, 2.2rem) !important;
        margin: 0 0 2px 0 !important;
        color: #ffffff !important;
    }

    .stats-columns.hero-showcase-stats .stat-row p {
        font-size: 0.70rem !important;
        line-height: 1.25 !important;
        max-width: 100% !important;
        margin: 0 !important;
        color: rgba(255, 255, 255, 0.88) !important;
        text-align: center !important;
    }

    .stats-inner-divider {
        width: 1px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.25) !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    .about-stats-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .about-stats-row>div,
    .about-stats-row .stat-item {
        width: auto;
        border-left: none;
        border-top: none;
        padding-left: 10px;
        padding-top: 0;
        text-align: center;
    }

    .about-stats-row .stat-item {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }

    .about-stats-row>div:first-child {
        padding-left: 0;
    }

    .about-stats-row .stat-number {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    }

    .about-stats-row p {
        font-size: 0.65rem !important;
        letter-spacing: 0;
    }

    .calc-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* Keep the hero and approval stack usable on mobile/tablet widths without altering desktop behavior */
@media (max-width: 991px) {
    #scroll-sequence {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .seq-content-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .seq-step,
    .seq-hero {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .seq-foreground {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 15 !important;
        pointer-events: none !important;
    }

    .seq-hero {
        padding-top: 72px !important;
        padding-bottom: 12px !important;
    }

    .hero-bottom-row {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        padding: 0 !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    .hero-approval-showcase {
        padding: 12px 10px 10px 10px !important;
        gap: 10px !important;
        border-radius: 18px !important;
        max-width: 100% !important;
    }

    .approval-showcase-grid {
        gap: 10px !important;
    }

    .approval-hero-card {
        min-height: 0 !important;
        padding: 10px 10px 16px 10px !important;
        border-radius: 14px !important;
    }

    .approval-card-title {
        font-size: 0.72rem !important;
        margin-bottom: 8px !important;
        letter-spacing: 0.04em !important;
    }

    .approval-card-content {
        gap: 8px !important;
    }

    .approval-seal-badge {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }

    .approval-corp-name {
        font-size: 0.62rem !important;
        line-height: 1.2 !important;
    }

    .approval-role-tag,
    .approval-ministry-en {
        font-size: 0.54rem !important;
        line-height: 1.2 !important;
    }

    .approval-gov-tag {
        font-size: 0.56rem !important;
        padding: 2px 6px !important;
        margin-top: 3px !important;
    }

    .approval-gold-seal {
        bottom: -10px !important;
        right: 10px !important;
    }

    .gold-seal-img {
        width: 34px !important;
    }

    .hero-stats-row-integrated {
        margin-top: 2px !important;
    }

    .stats-columns.hero-showcase-stats .stat-row h3 {
        font-size: 1.4rem !important;
    }

    .stats-columns.hero-showcase-stats .stat-row p {
        font-size: 0.56rem !important;
    }

    .approval-bottom-pill {
        font-size: 0.58rem !important;
        padding: 7px 12px !important;
    }

    .mobile-sticky-cta {
        padding: 10px 12px !important;
    }
}

/* Solutions Bento Card Descriptions */
.bento-card p {
    color: #ffffff;
}

/* Calculator Mode Toggle Switch */
#calc-mode-switch:checked+.calc-slider .calc-slider-circle {
    transform: translateX(20px);
}

#calc-mode-switch:focus+.calc-slider {
    box-shadow: 0 0 1px #B5D554;
}

/* ReactBits Line Sidebar */
.line-sidebar {
    --accent-color: #B5D554;
    /* Sravanthi Solar green */
    --text-color: #ffffff;
    --marker-color: rgba(255, 255, 255, 0.3);
    --marker-length: 60px;
    --marker-gap: 0px;
    --tick-scale: 0.5;
    --max-shift: 30px;
    --item-gap: 20px;
    --font-size: 1.1rem;
    --smoothing: 100ms;

    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: flex-start;
}

.line-sidebar--markers {
    padding-left: calc(var(--marker-length) + var(--marker-gap));
}

.line-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: var(--item-gap);
}

.line-sidebar__item {
    position: relative;
    cursor: pointer;
}

.line-sidebar__item::before {
    content: '';
    position: absolute;
    inset: -6px -48px;
}

.line-sidebar__label {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    font-size: var(--font-size);
    font-weight: 500;
    line-height: 1.2;
    color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--text-color));
    transform: translateX(calc(var(--effect, 0) * var(--max-shift)));
    transition: color 0.1s linear, transform 0.1s linear;
}

.line-sidebar__index {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin-right: 0.6rem;
    font-size: 0.85em;
    opacity: calc(0.55 + var(--effect, 0) * 0.45);
}

.line-sidebar__marker {
    position: absolute;
    top: 50%;
    left: calc(-1 * var(--marker-length) - var(--marker-gap));
    height: 2px;
    width: var(--marker-length);
    background-color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--marker-color));
    transform-origin: left center;
    transform: translateY(-50%) scaleX(calc(0.7 + var(--effect, 0) * 0.5));
    transition: background-color 0.1s linear, transform 0.1s linear;
}

/* Removed the ::after dividers between items */

@media (max-width: 1200px) {
    .line-sidebar {
        display: none !important;
    }
}

/* Ultimate mobile horizontal overflow prevention */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Unified Mobile Sticky Bottom CTA Bar (Dark Navy + Green Outline Style) - Hidden on tablet/desktop (>700px) */
.mobile-sticky-cta {
    display: none !important;
}

@media (max-width: 700px) {
    .mobile-sticky-cta {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 2000 !important;
        background: #0d1b2a !important;
        padding: 12px 16px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        gap: 12px !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    .mobile-sticky-cta a,
    .mobile-sticky-cta .btn-primary,
    .mobile-sticky-cta .btn-secondary {
        flex: 1 !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        box-shadow: none !important;
    }

    /* Call Now Button: Dark Navy with Vibrant Green Outline & Text */
    .mobile-sticky-cta a.btn-secondary,
    .mobile-sticky-cta .btn-secondary {
        background: transparent !important;
        color: #10B981 !important;
        border: 1.5px solid #10B981 !important;
    }

    .mobile-sticky-cta a.btn-secondary i,
    .mobile-sticky-cta .btn-secondary i,
    .mobile-sticky-cta a.btn-secondary svg,
    .mobile-sticky-cta .btn-secondary svg {
        color: #10B981 !important;
        stroke: #10B981 !important;
    }

    /* WhatsApp Button: Solid Vibrant Green with White Text */
    .mobile-sticky-cta a.btn-primary,
    .mobile-sticky-cta .btn-primary {
        background: #10B981 !important;
        color: #ffffff !important;
        border: 1.5px solid #10B981 !important;
    }

    .mobile-sticky-cta a.btn-primary i,
    .mobile-sticky-cta .btn-primary i,
    .mobile-sticky-cta a.btn-primary svg,
    .mobile-sticky-cta .btn-primary svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
    }

    body {
        padding-bottom: 75px !important;
    }
}

/* Timeline Highlighting Animations (Desktop & Mobile) */
.t-element {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Default state: semi-transparent, inactive styles (optimized for light backgrounds) */
.t-step .t-num {
    transition: all 0.5s ease;
    color: rgba(13, 27, 42, 0.25) !important;
    transform: translateX(-50%) scale(0.9);
}

.t-step .t-icon-wrap {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #ffffff !important;
    border: 3px solid var(--color-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.t-step .t-icon-wrap i {
    transition: all 0.5s ease;
    color: var(--text-light) !important;
}

.t-step .t-text {
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: translateY(10px);
}

.t-step .t-text h3 {
    transition: all 0.5s ease;
    color: rgba(30, 41, 59, 0.7) !important;
}

.t-step .t-text p {
    color: rgba(71, 85, 105, 0.7) !important;
}

/* Active State: Highlighted glowing styles (highly readable on light backgrounds) */
.t-step.active .t-num {
    color: #334155 !important;
    transform: translateX(-50%) scale(1.15);
}

.t-step.active .t-icon-wrap {
    background: #B5D554 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(181, 213, 84, 0.7) !important;
    transform: translateX(-50%) scale(1.18);
}

@media (max-width: 991px) {
    .t-step.active .t-icon-wrap {
        transform: scale(1.18) !important;
    }

    .t-step .t-num {
        display: none !important;
    }

    /* Mobile Timeline Full Contrast & Zero Blur */
    .t-step .t-text {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .t-step .t-text h3 {
        color: #0f172a !important;
        opacity: 1 !important;
        font-weight: 700 !important;
    }

    .t-step .t-text p {
        color: #334155 !important;
        opacity: 1 !important;
    }

    .t-element {
        opacity: 1 !important;
        filter: none !important;
        backdrop-filter: none !important;
        transform: none !important;
    }
}


.t-step.active .t-icon-wrap i {
    color: #12355B !important;
    transform: scale(1.12);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45));
}

.t-step.active .t-text {
    opacity: 1;
    transform: translateY(0);
}

.t-step.active .t-text h3 {
    color: #0f172a !important;
}

.t-step.active .t-text p {
    color: #334155 !important;
}

/* Hide mobile sticky CTA on tablet & desktop (> 700px) */
@media (min-width: 701px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

/* Fix text visibility on dark background sections */
.safety-section h2,
.service-cta h2,
.service-cta h3,
.sustain-section h2,
.sustain-section h3,
.sustain-content h2,
.sustain-content h3,
.premium-industries h2,
.premium-industries h3,
.premium-industries .glass-card h3,
.cta-section h2,
.cta-section h3 {
    color: #ffffff !important;
}

.safety-section p,
.service-cta p,
.sustain-content p,
.cta-section p,
.premium-industries .premium-header p,
.premium-industries .glass-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Contact Page Specific Styles */
.contact-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(11, 74, 147, 0.95)), url('../../images/breathtaking_solar_banner.png');
    background-size: cover;
    background-position: center;
    padding: 140px 5% 60px;
    color: #fff;
    text-align: center;
}

.contact-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

.contact-section {
    padding: 80px 5%;
    background: #ffffff;
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: #0d1f3d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: #0b4a93;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.info-details h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.info-details p,
.info-details a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.6;
}

.info-details a:hover {
    color: #0b4a93;
}

.form-card {
    background: #0d1f3d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.form-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #061325;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0b4a93;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: #0b4a93;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #0a3d7a;
    transform: translateY(-2px);
}

.form-submit-options {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 600px) {
    .form-submit-options {
        flex-direction: column;
        gap: 12px;
    }
}

.btn-submit-wa {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-submit-wa:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-submit-email {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b4a93, #083870);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-submit-email:hover {
    background: linear-gradient(135deg, #083870, #062850);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 74, 147, 0.35);
}

/* Gallery Page Specific Styles */
.gallery-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.gallery-header h1 {
    font-size: 3rem;
    color: var(--text-primary, #1A2340);
    margin-bottom: 20px;
}

.gallery-header p {
    font-size: 1.2rem;
    color: var(--text-secondary, #4A5568);
    max-width: 650px;
    margin: 0 auto;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--primary-color, #0B4A93);
    background: transparent;
    color: var(--primary-color, #0B4A93);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color, #0B4A93);
    color: #fff;
}

.gallery-container {
    flex-grow: 1;
    padding: 0 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

.gallery-item img[src*="founder"] {
    object-fit: cover;
    object-position: center top;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #ffffff !important;
}

.gallery-overlay span {
    font-size: 0.9rem;
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: bold;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .gallery-header h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   UI/UX PRO MAX & DESIGN SPELLS ENHANCEMENTS
   ========================================================================== */

/* Luxury cubic bezier transitions */
.btn-primary,
.btn-secondary,
.btn-cta,
.bento-card,
.glass-panel,
.trust-badge-icon,
.gallery-item,
.t-step {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Glassmorphic lit-border hover effect */
.bento-card::before,
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    pointer-events: none;
}

.bento-card:hover::before,
.glass-panel:hover::before {
    opacity: 1;
}

/* Magnetic element adjustments */
.btn-primary:active,
.btn-cta:active,
.trust-badge-icon:active {
    transform: scale(0.95) !important;
}

/* Section entrance reveal elements initial state adjustments */
.gs_reveal {
    will-change: transform, opacity;
}

/* Restore color on split characters inside text scrubs to override transparent fill */
.gs_text_scrub .char {
    -webkit-text-fill-color: var(--text-heading);
    color: var(--text-heading);
}

#scroll-sequence .gs_text_scrub .char {
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

/* ==========================================================================
   LETTER-BY-LETTER HEADING REVEAL & ACCORDION ANIMATIONS
   ========================================================================== */

/* Universal Character Splitter Classes with 3D Perspective */
.char-word {
    display: inline-block;
    white-space: nowrap;
    perspective: 1000px;
}

.char-letter {
    display: inline-block;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

/* Glassmorphic Callout Cards (About Section) */
.about-callouts-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    margin-top: 30px;
}

.about-callout-card {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    width: 210px;
    z-index: 15;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.about-callout-card:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
}

/* Desktop Callout Layout (≥ 1200px) */
@media (min-width: 1200px) {
    .callout-card-1 {
        position: absolute !important;
        top: -2% !important;
        right: -10% !important;
    }

    .callout-card-2 {
        position: absolute !important;
        top: 38% !important;
        left: -16% !important;
    }

    .callout-card-3 {
        position: absolute !important;
        bottom: -2% !important;
        right: -8% !important;
    }
}

/* Tablet Callout Layout (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .callout-card-1 {
        position: absolute !important;
        top: 0% !important;
        right: -4% !important;
        width: 190px !important;
    }

    .callout-card-2 {
        position: absolute !important;
        top: 40% !important;
        left: -6% !important;
        width: 190px !important;
    }

    .callout-card-3 {
        position: absolute !important;
        bottom: 0% !important;
        right: -4% !important;
        width: 190px !important;
    }
}

/* Mobile Non-Overlapping Stacked Callout Layout (< 768px) */
@media (max-width: 767px) {
    .about-callout-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 12px !important;
    }

    .about-callout-card .line-connector {
        display: none !important;
    }
}

/* Clip-path Line Reveal Helper */
.line-reveal-mask {
    display: inline-block;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: clip-path;
}

.line-reveal-mask.revealed {
    clip-path: inset(0 0 0% 0);
}

/* Solar Solutions Bento Card Hover Effects */
.bento-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.bento-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15) !important;
}

.bento-card .bento-bg {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.bento-card:hover .bento-bg {
    transform: scale(1.05) !important;
}

/* FAQ Accordion Smooth CSS Grid Expansion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    display: grid;
    grid-template-rows: auto 0fr;
    border-radius: 16px;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--color-border, #e2e8f0);
    overflow: hidden;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.faq-item.active {
    grid-template-rows: auto 1fr;
    border-color: var(--color-blue-sky, #38bdf8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.faq-question {
    padding: 24px 28px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading, #0f172a);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--color-blue-deep, #0f172a);
}

.faq-question svg,
.faq-question .lucide {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg,
.faq-item.active .faq-question .lucide {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    opacity: 0;
    padding: 0 28px 0 28px;
    color: var(--text-body, #334155);
    font-size: 1.05rem;
    line-height: 1.7;
    transition: opacity 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    opacity: 1;
    padding: 0 28px 24px 28px;
}

/* ==========================================================================
   ULTRA-PREMIUM UI PRO MAX STYLES (Top Progress Bar, Glowing Cursor & 3D Tilt)
   ========================================================================== */

/* 1. Top Glowing Scroll Progress Meter */
#top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #38bdf8 50%, #f59e0b 100%);
    z-index: 10000;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
    transition: width 0.1s ease-out;
    pointer-events: none;
}

/* 2. Custom Magnetic Glow Cursor (Desktop Devices Only) */
@media (min-width: 992px) {
    .custom-cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: #38bdf8;
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease-out, background-color 0.2s ease;
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
    }

    .custom-cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 38px;
        height: 38px;
        border: 1.5px solid rgba(56, 189, 248, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, width 0.3s ease, height 0.3s ease;
        backdrop-filter: blur(1px);
    }

    /* Active Hover State on Interactive Elements */
    body.cursor-hover .custom-cursor-dot {
        transform: translate(-50%, -50%) scale(1.8);
        background: #10b981;
    }

    body.cursor-hover .custom-cursor-ring {
        width: 54px;
        height: 54px;
        border-color: rgba(16, 185, 129, 0.8);
        background: rgba(16, 185, 129, 0.06);
    }
}

@media (max-width: 991px) {

    .custom-cursor-dot,
    .custom-cursor-ring {
        display: none !important;
    }
}

/* 3. Bento Card Glass Shine Overlay */
.bento-card {
    position: relative;
    overflow: hidden;
}

.bento-glass-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 4;
}

.bento-card:hover .bento-glass-shine {
    opacity: 1;
}

/* 4. PM Surya Ghar Path Glow & Pulse Effect */
.timeline-path-active {
    filter: drop-shadow(0 0 8px rgba(181, 213, 84, 0.7));
}

/* ============================================================================
   5. FULL LINE-BASED REVEAL ANIMATION SYSTEM (FIXED)
   - Uses real DOM elements (not pseudo-elements) to avoid ::before/::after conflicts
   - No overflow:hidden on sections (would clip content)
   - Clip-path wipes only on safe containers
   ============================================================================ */

/* --- 5a. Horizontal Section Divider Line (Injected DOM element) --- */
.section-line-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 85%;
    max-width: 800px;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            #F4B400 15%,
            #10B981 50%,
            #F4B400 85%,
            transparent 100%);
    transform-origin: center center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.section-line-bar.line-active {
    transform: translateX(-50%) scaleX(1);
}

/* Glow companion */
.section-line-glow {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 85%;
    max-width: 800px;
    height: 9px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(244, 180, 0, 0.6) 15%,
            rgba(16, 185, 129, 0.7) 50%,
            rgba(244, 180, 0, 0.6) 85%,
            transparent 100%);
    filter: blur(6px);
    transform-origin: center center;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 4;
    pointer-events: none;
}

.section-line-glow.line-active {
    transform: translateX(-50%) scaleX(1);
}

/* Dark variant colors */
.section-line-bar.section-line--dark {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(181, 213, 84, 0.8) 15%,
            #B5D554 50%,
            rgba(181, 213, 84, 0.8) 85%,
            transparent 100%);
    box-shadow: 0 0 12px rgba(181, 213, 84, 0.6);
}

.section-line-glow.section-line--dark {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(181, 213, 84, 0.4) 15%,
            rgba(181, 213, 84, 0.8) 50%,
            rgba(181, 213, 84, 0.4) 85%,
            transparent 100%);
}

/* --- 5b. Section Sweep Line (Injected DOM element) --- */
.section-sweep-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            #10B981 30%,
            #B5D554 50%,
            #F4B400 70%,
            transparent);
    z-index: 6;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

.section-sweep-line.sweep-active {
    animation: sweepLine 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bottom sweep line */
.section-sweep-line--bottom {
    top: auto;
    bottom: 0;
    left: auto;
    right: -100%;
    background: linear-gradient(90deg,
            transparent,
            #F4B400 30%,
            #B5D554 50%,
            #10B981 70%,
            transparent);
}

.section-sweep-line--bottom.sweep-active {
    animation: sweepLineReverse 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.section-sweep-line--bottom.sweep-active {
    animation: sweepLineReverse 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

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

    100% {
        left: 100%;
    }
}

@keyframes sweepLineReverse {
    0% {
        right: -100%;
    }

    100% {
        right: 100%;
    }
}

/* --- 5c. Vertical Side Line (Scroll-Tracking Progress) --- */
.section-vline {
    position: relative;
}

/* Background track line */
.section-vline-track {
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: rgba(16, 185, 129, 0.08);
    z-index: 2;
    border-radius: 1px;
    pointer-events: none;
}

/* Active progress overlay drawn by GSAP */
.section-vline-progress {
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg,
            var(--color-green, #10B981) 0%,
            var(--color-gold, #F4B400) 100%);
    z-index: 3;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    pointer-events: none;
}

/* Pulsating dot at the end of the progress line */
.section-vline-dot {
    position: absolute;
    left: 14px;
    width: 14px;
    height: 14px;
    background: var(--color-green, #10B981);
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.section-vline-dot.visible {
    opacity: 1;
    animation: vlineDotPulse 2s ease-in-out infinite;
}

@keyframes vlineDotPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
        transform: translateY(-50%) scale(1);
    }

    50% {
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.8);
        transform: translateY(-50%) scale(1.2);
    }
}

/* Hide vertical lines on mobile (too narrow) */
@media (max-width: 768px) {

    .section-vline-track,
    .section-vline-progress,
    .section-vline-dot {
        display: none;
    }
}

/* --- 5d. Content Line Wipe Reveal (SAFE - only on containers with no GSAP autoAlpha) --- */
.line-wipe-up {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-wipe-up.revealed {
    clip-path: inset(0 0 0 0);
}

.line-wipe-center {
    clip-path: inset(0 50% 0 50%);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-wipe-center.revealed {
    clip-path: inset(0 0 0 0);
}

/* --- 5e. Section Label Underline Grow --- */
.section-label-line {
    position: relative;
    display: inline-block;
}

.section-label-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-green, #10B981);
    border-radius: 1px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section-label-line.line-active::after {
    width: 100%;
}

/* --- 5f. Smooth Scroll Enhancements for Lenis --- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* --- 5g. Ensure sections have position:relative for absolute children --- */
.section-line-reveal {
    position: relative;
}

/* ==========================================================================
   Premium Upgrade CSS - Glassmorphism, Cursor & Interactions
   ========================================================================== */

/* Enhanced Custom Cursor - Desktop Only */
@media (pointer: fine) {
    .custom-cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background-color: #ffffff;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease;
    }

    .custom-cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    }

    /* Hover state for cursor */
    .custom-cursor-ring.hover {
        width: 60px;
        height: 60px;
        background-color: rgba(255, 255, 255, 0.1);
        border-color: transparent;
        backdrop-filter: grayscale(1);
    }
}

/* Refined Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

/* Magnetic Button Reset for Smoothness */
.btn-primary,
.about-cta-btn {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* Spline Container tweaks */
spline-viewer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Parallax Depth enhancement */
.bento-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-bg {
    transition: transform 0.5s ease-out;
}

.bento-card:hover .bento-bg {
    transform: scale(1.05) translateZ(-20px);
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #02140D;
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
}

/* Accessibility Focus States for Keyboard Navigation (WCAG 2.2) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #10b981 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
}

/* ==========================================================================
   Hero Section Alignment System - Strict Vertical Alignment with Site Logo
   ========================================================================== */

/* Universal Left Alignment for Hero Text Box, Heading & CTA Button */
.hero-text-box,
#scroll-sequence .hero-text-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

#hero-tagline-heading,
.hero-text-box h2,
#scroll-sequence .hero-text-box h2 {
    text-align: left !important;
    margin-left: 0 !important;
    white-space: normal;
}

.hero-text-box .btn-primary,
#scroll-sequence .hero-text-box .btn-primary {
    align-self: flex-start !important;
    margin-left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    transform-origin: left center !important;
}

/* ==========================================================================
   TRUE 2D RESPONSIVE HERO & GOVERNMENT APPROVAL ENGINE (WIDTH + HEIGHT)
   Eliminates Title Overlap, Shrinks Height on Laptops, & Accurately Styles MNRE
   ========================================================================== */

/* Universal MNRE Official Seal Badge & Logo Styling */
.approval-seal-badge.mnre-seal-badge {
    border-radius: clamp(6px, 1vh, 10px) !important;
    width: auto !important;
    min-width: clamp(56px, min(7vw, 9vh), 96px) !important;
    max-width: clamp(75px, min(10vw, 13vh), 130px) !important;
    height: clamp(28px, min(3.8vw, 4.8vh), 46px) !important;
    padding: 2px 6px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.approval-seal-img.mnre-official-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 2px !important;
    display: block !important;
}

/* Base Desktop (>= 992px) Layout with 2D Height Responsiveness */
@media (min-width: 992px) {
    #scroll-sequence {
        height: 100vh !important;
        overflow: hidden !important;
    }

    #scroll-sequence .seq-hero,
    .seq-hero {
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        position: relative !important;
        box-sizing: border-box !important;
        padding-top: 98px !important;
    }

    #hero-main-title.massive-title,
    .massive-title {
        font-size: clamp(3.5rem, min(7.5vw, 10vh), 8rem) !important;
        line-height: 1 !important;
        margin-top: 0px !important;
        padding-top: 0px !important;
        margin-bottom: clamp(6px, 1.2vh, 18px) !important;
        max-width: 100% !important;
        white-space: nowrap !important;
    }

    #scroll-sequence .hero-bottom-row,
    .hero-bottom-row {
        position: absolute !important;
        bottom: clamp(12px, 2.2vh, 36px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 1480px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: clamp(20px, 2.8vw, 40px) !important;
        padding-right: clamp(20px, 2.8vw, 40px) !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        gap: clamp(16px, 2.5vw, 44px) !important;
        z-index: 30 !important;
    }

    #scroll-sequence .hero-text-box,
    .hero-text-box {
        flex: 0 1 clamp(230px, 26vw, 380px) !important;
        max-width: clamp(230px, 26vw, 380px) !important;
        position: relative !important;
        z-index: 31 !important;
    }

    #hero-tagline-heading,
    .hero-text-box h2 {
        font-size: clamp(1.1rem, min(2.2vw, 3.8vh), 2.3rem) !important;
        line-height: 1.15 !important;
        margin-bottom: clamp(8px, 1.2vh, 16px) !important;
    }

    .hero-text-box .btn-primary {
        margin-top: clamp(6px, 1vh, 16px) !important;
        padding: clamp(7px, 1.1vh, 12px) clamp(14px, 1.6vw, 22px) !important;
        font-size: clamp(0.78rem, min(0.9vw, 1.5vh), 0.95rem) !important;
    }

    #scroll-sequence .hero-stats-box,
    .hero-stats-box,
    .hero-approval-showcase {
        flex: 0 1 clamp(380px, 45vw, 640px) !important;
        max-width: clamp(380px, 45vw, 640px) !important;
        width: 100% !important;
        padding: clamp(8px, 1.4vh, 18px) clamp(10px, 1.4vw, 18px) !important;
        gap: clamp(6px, 1vh, 12px) !important;
        border-radius: clamp(14px, 1.8vh, 22px) !important;
        box-sizing: border-box !important;
        z-index: 32 !important;
    }

    .approval-showcase-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: clamp(8px, 1vw, 14px) !important;
        width: 100% !important;
    }

    .approval-hero-card {
        padding: clamp(8px, 1.3vh, 15px) clamp(8px, 1vw, 13px) !important;
        border-radius: clamp(10px, 1.4vh, 16px) !important;
        min-height: 0 !important;
        position: relative !important;
    }

    .approval-card-title {
        font-size: clamp(0.66rem, min(0.85vw, 1.5vh), 0.92rem) !important;
        margin-bottom: clamp(4px, 0.7vh, 9px) !important;
        letter-spacing: 0.04em !important;
    }

    .approval-card-content {
        display: flex !important;
        align-items: center !important;
        gap: clamp(6px, 0.8vw, 11px) !important;
    }

    .approval-seal-badge {
        width: clamp(44px, min(4.4vw, 6.2vh), 68px) !important;
        height: clamp(44px, min(4.4vw, 6.2vh), 68px) !important;
        min-width: clamp(44px, min(4.4vw, 6.2vh), 68px) !important;
        padding: 2px !important;
    }

    .approval-corp-name {
        font-size: clamp(0.66rem, min(0.78vw, 1.3vh), 0.82rem) !important;
        line-height: 1.25 !important;
    }

    .approval-role-tag,
    .approval-ministry-en {
        font-size: clamp(0.58rem, min(0.7vw, 1.1vh), 0.72rem) !important;
        line-height: 1.25 !important;
    }

    .approval-gov-tag {
        font-size: clamp(0.54rem, min(0.65vw, 1vh), 0.66rem) !important;
        padding: clamp(2px, 0.35vh, 3px) clamp(4px, 0.5vw, 6px) !important;
        margin-top: clamp(2px, 0.4vh, 5px) !important;
    }

    .approval-gold-seal {
        position: absolute !important;
        bottom: clamp(-9px, -1.1vh, -14px) !important;
        right: clamp(4px, 0.7vw, 9px) !important;
    }

    .gold-seal-img {
        width: clamp(26px, min(2.6vw, 3.6vh), 40px) !important;
        height: auto !important;
    }

    .hero-stats-row-integrated {
        gap: clamp(3px, 0.6vh, 8px) !important;
    }

    .stats-columns.hero-showcase-stats .stat-row h3 {
        font-size: clamp(1rem, min(1.5vw, 2.3vh), 1.5rem) !important;
    }

    .stats-columns.hero-showcase-stats .stat-row p {
        font-size: clamp(0.56rem, min(0.68vw, 1vh), 0.68rem) !important;
    }

    .approval-bottom-pill {
        font-size: clamp(0.56rem, min(0.68vw, 1vh), 0.68rem) !important;
        padding: clamp(3px, 0.55vh, 6px) clamp(8px, 1vw, 14px) !important;
    }
}

/* === TIER 1: Wide + Moderately Short (Height ≤ 750px at ≥ 992px) ===
   Mild compression. Title stays massive. Panel/spacing tightened slightly. */
@media (min-width: 992px) and (max-height: 750px) {
    .main-header {
        padding: 8px 40px !important;
    }

    #scroll-sequence .seq-hero,
    .seq-hero {
        padding-top: 82px !important;
    }

    #hero-main-title.massive-title {
        font-size: clamp(2.8rem, min(7vw, 9vh), 4.6rem) !important;
        margin-top: 0px !important;
        margin-bottom: 2px !important;
    }

    .seq-foreground {
        height: 94% !important;
        bottom: 0 !important;
    }

    #scroll-sequence .hero-bottom-row,
    .hero-bottom-row {
        bottom: clamp(6px, 1.2vh, 14px) !important;
        gap: 16px !important;
    }

    #hero-tagline-heading {
        font-size: clamp(0.95rem, 2.6vh, 1.35rem) !important;
        margin-bottom: 4px !important;
    }

    .hero-text-box .btn-primary {
        margin-top: 4px !important;
        padding: 5px 12px !important;
        font-size: 0.78rem !important;
    }

    #scroll-sequence .hero-stats-box,
    .hero-stats-box,
    .hero-approval-showcase {
        max-width: clamp(340px, 42vw, 520px) !important;
        padding: 6px 10px !important;
        gap: 4px !important;
        border-radius: 14px !important;
    }

    .approval-showcase-grid {
        gap: 6px !important;
    }

    .approval-hero-card {
        padding: 5px 8px !important;
        border-radius: 10px !important;
    }

    .approval-card-title {
        font-size: 0.62rem !important;
        margin-bottom: 2px !important;
    }

    .approval-card-content {
        gap: 6px !important;
    }

    .approval-seal-badge {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .approval-seal-badge.mnre-seal-badge {
        min-width: 54px !important;
        max-width: 80px !important;
        height: 26px !important;
    }

    .approval-corp-name {
        font-size: 0.62rem !important;
        line-height: 1.2 !important;
    }

    .approval-role-tag,
    .approval-ministry-en {
        font-size: 0.55rem !important;
        line-height: 1.2 !important;
    }

    .approval-gov-tag {
        font-size: 0.5rem !important;
        padding: 1px 4px !important;
        margin-top: 1px !important;
    }

    .gold-seal-img {
        width: 22px !important;
    }

    .approval-gold-seal {
        bottom: -7px !important;
    }

    .hero-stats-row-integrated {
        gap: 2px !important;
    }

    .stats-columns.hero-showcase-stats .stat-row h3 {
        font-size: 0.95rem !important;
    }

    .stats-columns.hero-showcase-stats .stat-row p {
        font-size: 0.52rem !important;
    }

    .approval-bottom-pill {
        font-size: 0.52rem !important;
        padding: 2px 8px !important;
    }

    .showcase-horizontal-divider {
        margin: 1px 0 !important;
    }
}

/* === TIER 2: Wide + Short (Height ≤ 660px at ≥ 992px) ===
   Moderate compression. Title reduced but still recognizably massive.
   Panel typography/spacing significantly tightened. */
@media (min-width: 992px) and (max-height: 660px) {
    .main-header {
        padding: 7px 40px !important;
    }

    #scroll-sequence .seq-hero,
    .seq-hero {
        padding-top: 74px !important;
    }

    #hero-main-title.massive-title {
        font-size: clamp(2.4rem, min(6.2vw, 8.6vh), 3.8rem) !important;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        z-index: 30 !important;
        text-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    }

    .seq-foreground {
        height: 88% !important;
        bottom: 0 !important;
        z-index: 12 !important;
    }

    #scroll-sequence .hero-bottom-row,
    .hero-bottom-row {
        bottom: clamp(4px, 0.8vh, 8px) !important;
        gap: 12px !important;
        z-index: 32 !important;
    }

    #hero-tagline-heading {
        font-size: clamp(0.85rem, 2.2vh, 1.15rem) !important;
        margin-bottom: 3px !important;
    }

    .hero-text-box .btn-primary {
        margin-top: 3px !important;
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
    }

    #scroll-sequence .hero-stats-box,
    .hero-stats-box,
    .hero-approval-showcase {
        max-width: clamp(320px, 40vw, 480px) !important;
        padding: 5px 8px !important;
        gap: 3px !important;
        border-radius: 12px !important;
    }

    .approval-showcase-grid {
        gap: 5px !important;
    }

    .approval-hero-card {
        padding: 4px 6px !important;
        border-radius: 9px !important;
    }

    .approval-card-title {
        font-size: 0.58rem !important;
        margin-bottom: 1px !important;
    }

    .approval-seal-badge {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .approval-seal-badge.mnre-seal-badge {
        min-width: 48px !important;
        max-width: 72px !important;
        height: 22px !important;
    }

    .approval-corp-name {
        font-size: 0.58rem !important;
        line-height: 1.15 !important;
    }

    .approval-role-tag,
    .approval-ministry-en {
        font-size: 0.5rem !important;
        line-height: 1.15 !important;
    }

    .approval-gov-tag {
        font-size: 0.46rem !important;
        padding: 1px 3px !important;
        margin-top: 1px !important;
    }

    .gold-seal-img {
        width: 18px !important;
    }

    .approval-gold-seal {
        bottom: -5px !important;
    }

    .stats-columns.hero-showcase-stats .stat-row h3 {
        font-size: 0.85rem !important;
    }

    .stats-columns.hero-showcase-stats .stat-row p {
        font-size: 0.48rem !important;
    }

    .approval-bottom-pill {
        font-size: 0.48rem !important;
        padding: 2px 6px !important;
    }
}

/* === TIER 3: Wide + Very Short (Height ≤ 600px at ≥ 992px) ===
   Maximum compression. Title still prominent but compact.
   Panel extremely tight. Everything must fit without clipping. */
@media (min-width: 992px) and (max-height: 600px) {
    .main-header {
        padding: 6px 40px !important;
    }

    #scroll-sequence .seq-hero,
    .seq-hero {
        padding-top: 68px !important;
    }

    #hero-main-title.massive-title {
        font-size: clamp(2.1rem, min(5.4vw, 8.4vh), 3.2rem) !important;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        z-index: 30 !important;
        text-shadow: 0 6px 20px rgba(0, 0, 0, 0.7),
            0 2px 6px rgba(0, 0, 0, 0.5) !important;
    }

    .seq-foreground {
        height: 84% !important;
        bottom: 0 !important;
        z-index: 12 !important;
    }

    #scroll-sequence .hero-bottom-row,
    .hero-bottom-row {
        bottom: 2px !important;
        gap: 10px !important;
        z-index: 32 !important;
    }

    #hero-tagline-heading {
        font-size: clamp(0.78rem, 2vh, 1rem) !important;
        margin-bottom: 2px !important;
    }

    .hero-text-box .btn-primary {
        margin-top: 2px !important;
        padding: 3px 8px !important;
        font-size: 0.68rem !important;
    }

    #scroll-sequence .hero-stats-box,
    .hero-stats-box,
    .hero-approval-showcase {
        max-width: clamp(300px, 38vw, 440px) !important;
        padding: 4px 6px !important;
        gap: 2px !important;
        border-radius: 10px !important;
    }

    .approval-showcase-grid {
        gap: 4px !important;
    }

    .approval-hero-card {
        padding: 3px 5px !important;
        border-radius: 8px !important;
    }

    .approval-card-title {
        font-size: 0.54rem !important;
        margin-bottom: 1px !important;
    }

    .approval-card-content {
        gap: 4px !important;
    }

    .approval-seal-badge {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .approval-seal-badge.mnre-seal-badge {
        min-width: 42px !important;
        max-width: 64px !important;
        height: 18px !important;
    }

    .approval-corp-name {
        font-size: 0.52rem !important;
        line-height: 1.1 !important;
    }

    .approval-role-tag,
    .approval-ministry-en {
        font-size: 0.46rem !important;
        line-height: 1.1 !important;
    }

    .approval-gov-tag {
        font-size: 0.42rem !important;
        padding: 1px 2px !important;
        margin-top: 0px !important;
    }

    .gold-seal-img {
        width: 15px !important;
    }

    .approval-gold-seal {
        bottom: -4px !important;
    }

    .hero-stats-row-integrated {
        gap: 1px !important;
    }

    .stats-columns.hero-showcase-stats .stat-row h3 {
        font-size: 0.78rem !important;
    }

    .stats-columns.hero-showcase-stats .stat-row p {
        font-size: 0.44rem !important;
    }

    .approval-bottom-pill {
        font-size: 0.44rem !important;
        padding: 1px 5px !important;
    }

    .showcase-horizontal-divider {
        margin: 0 !important;
    }
}

/* Mobile & Tablet Viewports (<= 991px):
   Natural document scrolling with solar building preserved between title and cards */
@media (max-width: 991px) {
    .main-header {
        padding: 10px 20px !important;
    }

    #about-hero-step,
    .seq-about,
    .seq-bg-2 {
        display: none !important;
    }

    #scroll-sequence {
        height: auto !important;
        min-height: max(100svh, 840px) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    #scroll-sequence .seq-hero,
    .seq-hero {
        height: auto !important;
        min-height: max(100svh, 840px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-bottom: clamp(16px, 2.5vh, 40px) !important;
        padding-top: clamp(86px, 12vh, 105px) !important;
        position: relative !important;
    }

    #hero-main-title.massive-title {
        font-size: clamp(1.65rem, 6vw, 3.2rem) !important;
        margin-top: 10px !important;
        padding-top: 4px !important;
        margin-bottom: 8px !important;
    }

    .seq-foreground {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 15 !important;
        pointer-events: none !important;
    }

    .seq-foreground img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: bottom center !important;
    }

    #scroll-sequence .hero-bottom-row,
    .hero-bottom-row {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        z-index: 35 !important;
    }

    #scroll-sequence .hero-text-box,
    .hero-text-box {
        width: 100% !important;
        max-width: 560px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        position: relative !important;
        z-index: 31 !important;
    }

    #scroll-sequence .hero-stats-box,
    .hero-stats-box {
        margin-top: clamp(100px, 24vh, 320px) !important;
        align-self: center !important;
        width: 100% !important;
        max-width: min(100%, 720px) !important;
        position: relative !important;
        z-index: 35 !important;
    }

    .approval-showcase-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .approval-hero-card {
        padding: 12px 14px !important;
        border-radius: 16px !important;
    }
}

/* Compact Mobile / Short Height Mobile (<= 991px and Height <= 640px)
   Visibly decreases vertical margins & padding when height decreases */
@media (max-width: 991px) and (max-height: 640px) {
    #scroll-sequence {
        min-height: max(100svh, 680px) !important;
    }

    #scroll-sequence .seq-hero,
    .seq-hero {
        min-height: max(100svh, 680px) !important;
        padding-top: 55px !important;
    }

    #hero-main-title.massive-title {
        font-size: clamp(1.5rem, 5.5vw, 2.5rem) !important;
    }

    #scroll-sequence .hero-stats-box,
    .hero-stats-box {
        margin-top: clamp(60px, 14vh, 120px) !important;
    }

    .approval-hero-card {
        padding: 8px 10px !important;
    }
}

/* Specific Padding Sizing for Header/Logo Alignment per Breakpoint */
@media (min-width: 769px) and (max-width: 991px) {
    #scroll-sequence .seq-hero,
    .seq-hero {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (max-width: 768px) {
    /* Mobile foreground image: Render solar house cleanly without exposing canvas or creating extra height */
    .seq-foreground {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 15 !important;
        pointer-events: none !important;
        overflow: hidden !important;
    }

    .seq-foreground picture {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .seq-foreground img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    /* Natural hero container height fitting content without extra artificial space */
    #scroll-sequence {
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }

    #scroll-sequence .seq-hero,
    .seq-hero {
        height: auto !important;
        min-height: 0 !important;
        padding-top: clamp(80px, 12vh, 100px) !important;
        padding-bottom: clamp(24px, 4vh, 36px) !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    /* Hero background image covers the hero cleanly and stays completely inside container */
    .seq-bg-1 {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        opacity: 1 !important;
    }

    /* Natural spacing for trust showcase cards */
    #scroll-sequence .hero-stats-box,
    .hero-stats-box {
        margin-top: 20px !important;
    }
}

@media (max-width: 480px) {
    #scroll-sequence .seq-hero,
    .seq-hero {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 24px !important;
    }

    .approval-showcase-grid {
        grid-template-columns: 1fr !important;
    }
}