/* ════════════════════════════════════════════════════════════════ */
/*  GREEN SOLAR — PROFESSIONAL STYLESHEET (Senior Frontend Dev)  */
/* ════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --brand: #3D8B2F;
    --brand-dark: #2C6A1F;
    --brand-light: #EFF8EC;
    --brand-50: #F0FBE8;
    --accent: #E87722;
    --dark: #0F1B0D;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

/* ════════════════════════════════════ */
/*  PRELOADER                          */
/* ════════════════════════════════════ */

/* Animated gradient background */
.preloader-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 30%, #050d09 60%, #000000 100%);
    background-size: 400% 400%;
    animation: preloaderGradient 4s ease infinite;
}

@keyframes preloaderGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating solar particles */
.solar-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.solar-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: floatParticle 3s ease-in-out infinite;
}

.solar-particles span:nth-child(1) {
    left: 10%;
    top: 80%;
    animation-delay: 0s;
    width: 4px;
    height: 4px;
}

.solar-particles span:nth-child(2) {
    left: 25%;
    top: 70%;
    animation-delay: 0.3s;
    width: 8px;
    height: 8px;
}

.solar-particles span:nth-child(3) {
    left: 40%;
    top: 85%;
    animation-delay: 0.6s;
    width: 5px;
    height: 5px;
}

.solar-particles span:nth-child(4) {
    left: 55%;
    top: 75%;
    animation-delay: 0.9s;
    width: 3px;
    height: 3px;
}

.solar-particles span:nth-child(5) {
    left: 70%;
    top: 90%;
    animation-delay: 1.2s;
    width: 7px;
    height: 7px;
}

.solar-particles span:nth-child(6) {
    left: 85%;
    top: 65%;
    animation-delay: 0.2s;
    width: 4px;
    height: 4px;
}

.solar-particles span:nth-child(7) {
    left: 15%;
    top: 60%;
    animation-delay: 0.8s;
    width: 6px;
    height: 6px;
}

.solar-particles span:nth-child(8) {
    left: 60%;
    top: 55%;
    animation-delay: 1.5s;
    width: 5px;
    height: 5px;
}

.solar-particles span:nth-child(9) {
    left: 80%;
    top: 80%;
    animation-delay: 0.4s;
    width: 3px;
    height: 3px;
}

.solar-particles span:nth-child(10) {
    left: 35%;
    top: 50%;
    animation-delay: 1.1s;
    width: 7px;
    height: 7px;
}

.solar-particles span:nth-child(11) {
    left: 50%;
    top: 40%;
    animation-delay: 0.7s;
    width: 4px;
    height: 4px;
}

.solar-particles span:nth-child(12) {
    left: 90%;
    top: 45%;
    animation-delay: 1.3s;
    width: 5px;
    height: 5px;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-120px) scale(0.3);
        opacity: 0;
    }
}

/* Central container */
.preloader-center {
    position: relative;
    width: 200px;
    height: 200px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbit rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.orbit-ring-1 {
    inset: 0;
    border-color: rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.6);
    border-right-color: rgba(167, 243, 208, 0.4);
    animation: spinOrbit 3s linear infinite;
}

.orbit-ring-2 {
    inset: 20px;
    border-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(52, 211, 153, 0.5);
    border-left-color: rgba(255, 255, 255, 0.3);
    animation: spinOrbit 2.2s linear infinite reverse;
}

.orbit-ring-3 {
    inset: 40px;
    border-color: rgba(255, 255, 255, 0.06);
    border-top-color: rgba(255, 255, 255, 0.4);
    animation: spinOrbit 1.6s linear infinite;
}

@keyframes spinOrbit {
    to {
        transform: rotate(360deg);
    }
}

/* Orbiting dots */
.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 24px rgba(52, 211, 153, 0.5);
}

.orbit-dot-1 {
    animation: orbitDot1 3s linear infinite;
}

.orbit-dot-2 {
    width: 6px;
    height: 6px;
    background: #a7f3d0;
    animation: orbitDot2 2.2s linear infinite;
}

.orbit-dot-3 {
    width: 5px;
    height: 5px;
    background: #6ee7b7;
    animation: orbitDot3 1.6s linear infinite;
}

@keyframes orbitDot1 {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes orbitDot2 {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
    }

    100% {
        transform: rotate(-360deg) translateX(80px) rotate(360deg);
    }
}

@keyframes orbitDot3 {
    0% {
        transform: rotate(0deg) translateX(60px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(60px) rotate(-360deg);
    }
}

/* Sun rays */
.sun-rays {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sunPulse 2s ease-in-out infinite;
}

.sun-rays .ray {
    position: absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.5));
    border-radius: 2px;
    transform-origin: center 70px;
}

.sun-rays .ray:nth-child(1) {
    transform: rotate(0deg) translateY(-55px);
}

.sun-rays .ray:nth-child(2) {
    transform: rotate(45deg) translateY(-55px);
}

.sun-rays .ray:nth-child(3) {
    transform: rotate(90deg) translateY(-55px);
}

.sun-rays .ray:nth-child(4) {
    transform: rotate(135deg) translateY(-55px);
}

.sun-rays .ray:nth-child(5) {
    transform: rotate(180deg) translateY(-55px);
}

.sun-rays .ray:nth-child(6) {
    transform: rotate(225deg) translateY(-55px);
}

.sun-rays .ray:nth-child(7) {
    transform: rotate(270deg) translateY(-55px);
}

.sun-rays .ray:nth-child(8) {
    transform: rotate(315deg) translateY(-55px);
}

@keyframes sunPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Logo */
.preloader-logo {
    position: relative;
    z-index: 3;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)) brightness(1.1);
    animation: logoBreath 2s ease-in-out infinite;
}

@keyframes logoBreath {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)) brightness(1.1);
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.7)) brightness(1.2);
    }
}

/* Progress bar */
.preloader-progress-track {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-top: 40px;
    overflow: hidden;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #a7f3d0, #fff, #6ee7b7);
    border-radius: 4px;
    animation: progressFill 3.5s ease-out forwards;
    box-shadow: 0 0 10px rgba(167, 243, 208, 0.6);
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    20% {
        width: 25%;
    }

    50% {
        width: 55%;
    }

    75% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

/* "Powering Up..." text */
.preloader-text {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
}

.dot-anim {
    animation: dotBlink 1.4s steps(4, end) infinite;
}

@keyframes dotBlink {
    0% {
        content: '';
        opacity: 0;
    }

    25% {
        content: '.';
        opacity: 0.3;
    }

    50% {
        content: '..';
        opacity: 0.6;
    }

    75% {
        content: '...';
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* ---- Exit animation ---- */
#preloader {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.loaded {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(8px);
    visibility: hidden;
    pointer-events: none;
}

/* ════════════════════════════════════ */
/*  HERO                               */
/* ════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero__content {
    min-height: calc(100svh - 2rem);
}

/* Background image slides */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.8s ease, transform 10s ease-out;
}

.hero-bg__slide.is-active {
    opacity: 1;
    transform: scale(1.12);
}

/* Dark overlay — stronger left for text readability */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg,
            rgba(8, 18, 6, 0.95) 0%,
            rgba(10, 22, 8, 0.82) 42%,
            rgba(15, 30, 12, 0.6) 100%);
}

/* Subtle grid texture */
.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255, 255, 255, .4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .4) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

/* Hero entrance animations */
.hero__badge {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn .7s var(--ease-out-expo) .2s forwards;
}

.hero__heading {
    opacity: 0;
    transform: translateY(28px);
    animation: heroIn .8s var(--ease-out-expo) .35s forwards;
}

.hero__desc {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn .7s var(--ease-out-expo) .5s forwards;
}

.hero__actions {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn .7s var(--ease-out-expo) .65s forwards;
}

.hero__metrics {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn .7s var(--ease-out-expo) .8s forwards;
}

.hero__visual {
    opacity: 0;
    transform: translateX(40px) scale(.96);
    animation: heroVisual 1s var(--ease-out-expo) 1s forwards;
}

.hero__badge img {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .2));
}

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

@keyframes heroVisual {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Gradient accent text */
.text-gradient {
    background: linear-gradient(135deg, #7ED957 0%, #4CAF50 40%, #A8E063 70%, #43A047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle green glow behind heading */
.hero__heading-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 154, 58, .12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* Typed cursor */
.typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #7ED957;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Metric pill */
.metric-pill {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: background .3s ease, border-color .3s ease;
}

.metric-pill:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(77, 154, 58, .35);
}

/* Hero wave bottom */
.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
}

.hero__wave svg {
    display: block;
    width: calc(100% + 2px);
    height: 50px;
}

/* ════════════════════════════════════ */
/*  BUTTONS                            */
/* ════════════════════════════════════ */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 139, 47, .3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.btn-primary:hover::after {
    left: 125%;
}

.btn-outline-hero {
    border: 1.5px solid rgba(255, 255, 255, .2);
    color: white;
    backdrop-filter: blur(4px);
    transition: all .3s ease;
}

.btn-outline-hero:hover {
    border-color: rgba(126, 217, 87, .5);
    background: rgba(126, 217, 87, .08);
}

/* ════════════════════════════════════ */
/*  NAVBAR                             */
/* ════════════════════════════════════ */
.nav-link {
    position: relative;
    transition: color .3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
    transition: width .3s var(--ease-out-expo), left .3s var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* ════════════════════════════════════ */
/*  SCROLL REVEALS (Single system)     */
/* ════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-zoom {
    transform: scale(0.92);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Continuous floating animation */
@keyframes float {

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

    50% {
        transform: translateY(-12px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Stagger delays */
.reveal-d1 {
    transition-delay: 80ms;
}

.reveal-d2 {
    transition-delay: 160ms;
}

.reveal-d3 {
    transition-delay: 240ms;
}

.reveal-d4 {
    transition-delay: 320ms;
}

.reveal-d5 {
    transition-delay: 400ms;
}

/* ════════════════════════════════════ */
/*  GRADIENT LINE ACCENT               */
/* ════════════════════════════════════ */
.accent-line {
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), #6FBA58, #BBF19E, #6FBA58, var(--brand));
    background-size: 200% 100%;
    animation: accentMove 4s ease infinite;
}

@keyframes accentMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

/* ════════════════════════════════════ */
/*  CARD HOVER                         */
/* ════════════════════════════════════ */
.card-lift {
    position: relative;
    transition: transform .4s var(--ease-out-expo), box-shadow .4s ease, border-color .4s ease;
}

.card-lift::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(61, 139, 47, 0.4) 0%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.card-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(61, 139, 47, 0.12);
    border-color: transparent;
}

.card-lift:hover::after {
    opacity: 1;
}

.icon-wrap {
    transition: all .4s var(--ease-spring);
}

.group:hover .icon-wrap {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white !important;
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 10px 20px -5px rgba(61, 139, 47, 0.3);
}

/* ════════════════════════════════════ */
/*  PARTNERS SLIDER — MARQUEE          */
/* ════════════════════════════════════ */
.partner-swiper {
    padding: 1rem 0;
}

.partner-swiper .swiper-wrapper,
.customer-swiper-right .swiper-wrapper,
.customer-swiper-left .swiper-wrapper {
    transition-timing-function: linear !important;
}

.partner-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: all .35s ease;
}

.partner-card img {
    width: 100%;
    max-height: 280px;
    display: block;
    object-fit: contain;
    filter: saturate(1.05);
    transition: transform .3s ease;
}

.partner-card:hover img {
    transform: scale(1.05);
}

/* Corporate Customer logo container sizing adjustments */
#corporate-customers .card-lift {
    padding: 0.875rem !important;
    /* Reduce padding from 24px (p-6) to 14px */
}

#corporate-customers .card-lift img {
    max-height: 3.5rem !important;
    /* Force max-height of 56px (max-h-14) instead of 40px (max-h-10) */
}

/* ════════════════════════════════════ */
/*  PROJECTS SLIDER                    */
/* ════════════════════════════════════ */
.projects-swiper {
    padding: 10px 0 55px;
}

.project-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all .4s var(--ease-out-expo);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .12);
    border-color: rgba(61, 139, 47, .2);
}

.project-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s ease;
}

.project-card:hover .project-card__img {
    transform: scale(1.04);
}

.project-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(15, 27, 13, 0.95) 0%, rgba(15, 27, 13, 0.6) 50%, transparent 100%);
    color: white;
    transform: translateY(12px);
    transition: transform .5s var(--ease-out-expo), background .5s ease;
}

.project-card:hover .project-card__overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(15, 27, 13, 1) 0%, rgba(15, 27, 13, 0.75) 60%, transparent 100%);
}

.project-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(61, 139, 47, .85);
    color: white;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.projects-swiper .swiper-pagination-bullet {
    background: var(--brand);
    opacity: .25;
    width: 10px;
    height: 10px;
    transition: all .3s ease;
}

.projects-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

.projects-swiper .swiper-button-next,
.projects-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    border: 1px solid #e2e8f0;
    transition: all .3s ease;
}

.projects-swiper .swiper-button-next:hover,
.projects-swiper .swiper-button-prev:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.projects-swiper .swiper-button-next::after,
.projects-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
    color: #334155;
    transition: color .3s ease;
}

.projects-swiper .swiper-button-next:hover::after,
.projects-swiper .swiper-button-prev:hover::after {
    color: white;
}

/* ════════════════════════════════════ */
/*  STATS SECTION GLOW                 */
/* ════════════════════════════════════ */
.stats-bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    animation: slowPulse 8s ease-in-out infinite alternate;
}

@keyframes slowPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* ════════════════════════════════════ */
/*  FORM FLOATING LABELS               */
/* ════════════════════════════════════ */
.fl-group {
    position: relative;
}

.fl-group input,
.fl-group textarea {
    padding-top: 20px;
}

.fl-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #94A3B8;
    pointer-events: none;
    transition: all .2s ease;
}

.fl-group textarea~label {
    top: 20px;
    transform: none;
}

.fl-group input:focus~label,
.fl-group input:not(:placeholder-shown)~label {
    top: 8px;
    transform: none;
    font-size: 9px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.fl-group textarea:focus~label,
.fl-group textarea:not(:placeholder-shown)~label {
    top: 6px;
    font-size: 9px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ════════════════════════════════════ */
/*  WARRANTY CARD                      */
/* ════════════════════════════════════ */
.warranty-card {
    position: relative;
    overflow: hidden;
    transition: all .35s var(--ease-out-expo), background .35s ease;
}

.warranty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--brand) 0%, var(--brand-dark) 100%);
    transform: scaleY(0);
    transition: transform .3s ease;
    transform-origin: bottom;
}

.warranty-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.warranty-card:hover {
    box-shadow: 0 20px 40px -10px rgba(61, 139, 47, 0.12);
    border-color: rgba(61, 139, 47, .2);
    background: linear-gradient(to bottom right, #ffffff 0%, #f7faf6 100%);
}

/* ════════════════════════════════════ */
/*  COUNTER                            */
/* ════════════════════════════════════ */
.counter-glow {
    text-shadow: 0 0 30px rgba(255, 255, 255, .1);
}

/* ════════════════════════════════════ */
/*  FOOTER                             */
/* ════════════════════════════════════ */
.footer-gradient {
    background: linear-gradient(180deg, #0C1A09 0%, #0A1407 100%);
}

.footer-link {
    transition: color .25s ease, transform .25s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #7ED957;
    transform: translateX(3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, .06);
}

/* Facebook icon in footer */
.fb-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all .3s ease;
}

.fb-icon-btn:hover {
    background: #1877F2;
    border-color: #1877F2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, .3);
}

.fb-icon-btn svg {
    transition: fill .3s ease;
}

/* ════════════════════════════════════ */
/*  RESPONSIVE                         */
/* ════════════════════════════════════ */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .projects-swiper .swiper-button-next,
    .projects-swiper .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 768px) {
    #prevLightbox {
        left: 10px !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
    #nextLightbox {
        right: 10px !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
}

@media (max-width: 640px) {
    /* (Any other 640px styles go here) */
}

/* ════════════════════════════════════ */
/*  PROJECT GALLERY MODAL (PREMIUM)    */
/* ════════════════════════════════════ */
.project-card__gallery-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(15, 27, 13, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.project-card:hover .project-card__gallery-btn {
    opacity: 1;
    transform: scale(1);
}

.project-card__gallery-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(61, 139, 47, 0.4);
    transform: scale(1.08);
}

/* Gallery Modal Backdrop & Container — Clean Light Theme */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* Image Grid Container */
.gallery-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

.gallery-grid::-webkit-scrollbar {
    width: 5px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.12);
    border-radius: 99px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.22);
}

/* Grid Item Card */
.gallery-grid-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    cursor: zoom-in;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
    border-color: rgba(61, 139, 47, 0.3);
}

.gallery-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 13, 0.2);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-grid-item:hover .gallery-grid-overlay {
    opacity: 1;
}

/* Lightbox Overlay — Full Screen Dark Inspection View */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(8, 12, 8, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(61, 139, 47, 0.4);
    transform: scale(1.05);
}

.lightbox-btn:active {
    transform: scale(0.95);
}

/* Dynamic Case Study Details Scrollbar */
.gallery-modal-details-scroll::-webkit-scrollbar {
    width: 5px;
}

.gallery-modal-details-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-modal-details-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.12);
    border-radius: 99px;
}

.gallery-modal-details-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.22);
}

/* ════════════════════════════════════ */
/*  WHY TRUST US — PREMIUM SECTION     */
/* ════════════════════════════════════ */

/* Stagger delays for cards 6 & 7 */
.reveal-d6 {
    transition-delay: 480ms;
}

.reveal-d7 {
    transition-delay: 560ms;
}

/* ── Hero Company Strength Card ── */
.trust-hero-card {
    background: linear-gradient(145deg, #1a5c12 0%, #245318 30%, #1e4a13 60%, #163e0e 100%);
    box-shadow:
        0 25px 60px -15px rgba(30, 66, 21, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}

.trust-hero-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 80px -15px rgba(30, 66, 21, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Animated mesh gradient overlay */
.trust-mesh-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(61, 139, 47, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(111, 186, 88, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(187, 241, 158, 0.08) 0%, transparent 50%);
    background-size: 200% 200%, 200% 200%, 150% 150%;
    animation: trustMeshMove 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes trustMeshMove {
    0%, 100% {
        background-position: 0% 50%, 100% 0%, 50% 50%;
    }
    25% {
        background-position: 50% 0%, 50% 100%, 0% 100%;
    }
    50% {
        background-position: 100% 50%, 0% 50%, 100% 0%;
    }
    75% {
        background-position: 50% 100%, 100% 0%, 50% 50%;
    }
}

/* Step number badge pulse glow */
.trust-step-badge {
    position: relative;
}

.trust-step-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.trust-hero-card:hover .trust-step-badge::after {
    opacity: 1;
}

/* ── Pillar Cards ── */
.trust-pillar-card {
    position: relative;
    display: flex;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 18px;
    overflow: hidden;
    transition:
        transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s ease,
        border-color 0.35s ease;
    cursor: default;
}

.trust-pillar-card:hover {
    transform: translateY(-3px);
    border-color: rgba(61, 139, 47, 0.3);
    box-shadow:
        0 12px 40px -10px rgba(61, 139, 47, 0.12),
        0 4px 16px -4px rgba(15, 23, 42, 0.06);
}

/* Vertical left accent bar */
.trust-accent-bar {
    width: 4px;
    min-height: 100%;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--brand) 0%, #6FBA58 50%, #BBF19E 100%);
    background-size: 100% 200%;
    animation: accentBarShimmer 5s ease-in-out infinite;
    border-radius: 4px 0 0 4px;
    opacity: 0.55;
    transition: opacity 0.35s ease;
}

.trust-pillar-card:hover .trust-accent-bar {
    opacity: 1;
}

@keyframes accentBarShimmer {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
}

/* Pillar inner content area */
.trust-pillar-inner {
    padding: 22px 24px;
    flex: 1;
}

/* Step number */
.trust-step-num {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 11px;
    color: var(--brand);
    background: var(--brand-50);
    border: 1px solid rgba(61, 139, 47, 0.12);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    transition: all 0.35s ease;
}

.trust-pillar-card:hover .trust-step-num {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(61, 139, 47, 0.25);
}

/* Icon box */
.trust-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-50);
    border: 1px solid rgba(61, 139, 47, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
    transition: all 0.35s var(--ease-out-expo);
}

/* Text styles */
.trust-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
    margin-bottom: 6px;
}

.trust-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.trust-desc {
    font-size: 12px;
    line-height: 1.7;
    color: #64748b;
}

/* ── Trust Counter Animation ── */
.trust-counter {
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.trust-counter::after {
    content: '+';
    font-size: 0.7em;
    opacity: 0.6;
}

.trust-counter[data-target="2016"]::after {
    content: '';
}

/* ── Responsive Adjustments ── */
@media (max-width: 1023px) {
    .trust-pillar-inner {
        padding: 18px 20px;
    }
}

@media (max-width: 639px) {
    .trust-hero-card {
        padding: 28px 24px;
    }

    .trust-pillar-inner {
        padding: 16px 18px;
    }
}