/* ============================================
   ALLSUN NATURE — HOMEPAGE COMBINED CSS
   File: css/homepage-sections.css
============================================ */

/* ============================================
   1. IMAGE SWAP SECTION (About)
============================================ */
.img-swap-wrap {
    position: relative;
    cursor: pointer;
}

.img-swap-a {
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease,
                opacity 0.5s ease;
    will-change: transform;
}

.img-swap-b {
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease,
                opacity 0.5s ease;
    will-change: transform;
}

.img-swap-a img,
.img-swap-b img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-swap-b:hover {
    z-index: 3;
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px rgba(40, 167, 69, 0.25);
}

.img-swap-b:hover img {
    transform: scale(1.05);
}

.img-swap-wrap:has(.img-swap-b:hover) .img-swap-a {
    transform: scale(0.95);
    opacity: 0.7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.img-swap-a:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(40, 167, 69, 0.2);
}

.img-swap-a:hover img {
    transform: scale(1.05);
}


/* ============================================
   2. WHY CHOOSE US SECTION
============================================ */
.wcu-image-area {
    position: relative;
}

.wcu-spinner-pos {
    position: absolute;
    top: -30px;
    left: -30px;
    z-index: 5;
}

.wcu-spinner-outer {
    width: 170px;
    height: 170px;
    position: relative;
}

.wcu-spin-ring {
    width: 100%;
    height: 100%;
    animation: wcuSpin 15s linear infinite;
}

@keyframes wcuSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wcu-spinner-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.45);
}

.wcu-since-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1;
    margin-bottom: 2px;
    text-align: center;
}

.wcu-since-year {
    font-family: 'Outfit', var(--heading-font, sans-serif);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.wcu-checks-wrap {
    position: absolute;
    right: 10px !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 260px;
}

.wcu-check-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wcu-check-item i {
    color: #28a745;
    font-size: 1.15rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.wcu-check-item span {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .wcu-checks-wrap { right: 10px; max-width: 230px; }
    .wcu-spinner-pos { top: -20px; left: -15px; }
    .wcu-spinner-outer { width: 140px; height: 140px; }
    .wcu-spinner-center { width: 82px; height: 82px; }
    .wcu-since-year { font-size: 1.8rem; }
}

@media (max-width: 767px) {
    .wcu-spinner-pos { top: -15px; left: -10px; }
    .wcu-spinner-outer { width: 120px; height: 120px; }
    .wcu-spinner-center { width: 70px; height: 70px; }
    .wcu-since-year { font-size: 1.5rem; }
    .wcu-since-label { font-size: 0.55rem; text-align:center; }
    .wcu-checks-wrap { position: relative; right: auto; top: auto; transform: none; max-width: 100%; margin-top: 15px; }
}


/* ============================================
   3. CERTIFICATIONS SECTION
============================================ */
:root {
    --primary: #5cb85c;
    --primary-dark: #3a8a3a;
    --primary-rgb: 92, 184, 92;
    --bg-dark-1: #0d2b1a;
    --bg-dark-2: #081a10;
}

.cert-section {
    padding: 100px 0 0;
    background: var(--bg-dark-1);
    position: relative;
    overflow: hidden;
}

.cert-section::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb),.12) 0%, transparent 70%);
    pointer-events: none;
}

.cert-section h2 {
    font-family: var(--heading-font);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.cert-section h2 .op-3 { color: rgba(255,255,255,.35); }

.cert-section .lead {
    font-size: .98rem;
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 50px;
}

@media (max-width: 1024px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }

.cert-card {
    background: rgba(255,255,255,.05);
    border-radius: 12px;
    padding: 28px 16px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.08);
    position: relative;
    overflow: hidden;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1),
                box-shadow .3s ease,
                background .3s ease,
                border-color .3s ease;
    cursor: default;
}

.cert-card:hover {
    transform: translateY(-8px);
    background: rgba(245, 166, 35, 0.08) !important;
    border-color: rgba(245, 166, 35, 0.3) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,166,35,0.2) !important;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    border-radius: 12px 12px 0 0;
}

.cert-card:hover::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #f5a623, #f0c674) !important;
}

.cert-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), .15);
    border: 1px solid rgba(var(--primary-rgb), .25);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.45rem;
    color: var(--primary);
    transition: background .3s, color .3s,
                transform .35s cubic-bezier(.34,1.56,.64,1),
                border-color .3s;
}

.cert-card:hover .cert-icon {
    background: #f5a623 !important;
    border-color: #f5a623 !important;
    color: #fff !important;
    transform: scale(1.08) rotate(-5deg);
}

.cert-card:hover .cert-icon i { color: #fff !important; }

.cert-card h5 {
    font-family: var(--heading-font);
    font-size: .93rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 9px;
    line-height: 1.4;
}

.cert-card p {
    font-size: .79rem;
    color: rgba(255,255,255,.5);
    line-height: 1.65;
    margin-bottom: 16px;
}

.cert-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(var(--primary-rgb), .15);
    color: var(--primary);
    border: 1.5px solid rgba(var(--primary-rgb), .35);
    font-size: .72rem;
    font-weight: 800;
    padding: 4px 13px;
    border-radius: 30px;
    letter-spacing: .3px;
    transition: background .25s, color .25s, border-color .25s;
}

.cert-card:hover .cert-pill {
    background: #f5a623 !important;
    color: #fff !important;
    border-color: #f5a623 !important;
}

.cert-card:hover .cert-pill i { color: #fff !important; }

/* Marquee */
.marquee-wrap {
    margin-top: 52px;
    overflow: hidden;
    background: var(--primary);
    padding: 16px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    padding: 0 28px;
}

.marquee-item i { font-size: 1rem; opacity: .85; }

.marquee-sep {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    flex-shrink: 0;
}


/* ============================================
   4. BANNER INFO STRIP — Buttons & Hover
============================================ */
.info-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(40, 167, 69, 0.25);
    border: 1px solid rgba(40, 167, 69, 0.5);
    padding: 7px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.info-box-btn:hover {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.info-box-btn:hover i {
    transform: translateX(4px);
    color: #fff;
}

.info-box-btn i {
    font-size: 0.55rem;
    transition: transform 0.3s ease;
}

/* --- Banner Info Strip Responsive --- */
@media (max-width: 991px) {
    .section-dark.v-center {
        min-height: 100vh !important;
        padding-bottom: 250px !important;
    }

    .section-dark.v-center .abs.w-80 {
        bottom: 260px !important;
    }
}

@media (max-width: 767px) {
    .section-dark.v-center {
        min-height: 160vh !important;
        padding-bottom: 420px !important;
    }

    .section-dark.v-center .abs.w-80 {
        bottom: 440px !important;
    }

    .section-dark.v-center .fs-150 {
        font-size: 3rem !important;
    }

    .section-dark.v-center .d-flex.align-items-center {
        flex-wrap: wrap;
        gap: 15px;
    }

    .info-box-btn {
        font-size: 0.68rem;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    .section-dark.v-center {
        min-height: 200vh !important;
        padding-bottom: 520px !important;
    }

    .section-dark.v-center .abs.w-80 {
        bottom: 540px !important;
    }

    .section-dark.v-center .fs-150 {
        font-size: 2.2rem !important;
    }

    .section-dark.v-center .btn-main {
        margin-right: 10px !important;
    }
}


/* ============================================
   5. HOW IT WORKS — 5 STEPS TIMELINE
============================================ */
.hiw-section {
    padding: 50px 0 55px;
    position: relative;
}

.hiw-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f5a623 !important;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 12px;
}

.hiw-label::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: #f5a623;
    border-radius: 2px;
    margin: 8px auto 0;
}

.hiw-title {
    font-family: 'Outfit', var(--heading-font, sans-serif);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
}

.hiw-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-top: 10px;
}

.hiw-timeline::before {
    content: '';
    position: absolute;
    top: 72px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.5), rgba(245, 166, 35, 0.5), transparent) !important;
}

.hiw-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 8px;
}

.hiw-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(245, 166, 35, 0.12) !important;
    border: 1.5px solid rgba(245, 166, 35, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.4s ease;
}

.hiw-icon i {
    font-size: 1.1rem;
    color: #f5a623 !important;
    transition: all 0.3s ease;
}

.hiw-step:hover .hiw-icon {
    background: #f5a623 !important;
    border-color: #f5a623 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35) !important;
}

.hiw-step:hover .hiw-icon i {
    color: #fff !important;
}

.hiw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5a623 !important;
    margin: 0 auto 14px;
    position: relative;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2) !important;
}

.hiw-step-title {
    font-family: 'Outfit', var(--heading-font, sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.hiw-step-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991px) {
    .hiw-timeline { flex-wrap: wrap; justify-content: center; gap: 25px; }
    .hiw-timeline::before { display: none; }
    .hiw-step { flex: 0 0 30%; }
    .hiw-dot { display: none; }
}

@media (max-width: 575px) {
    .hiw-section { padding: 40px 0 45px; }
    .hiw-timeline { gap: 20px; }
    .hiw-step { flex: 0 0 45%; }
    .hiw-title { font-size: 1.6rem; }
}


/* ============================================
   6. PROCESS STEP CARDS
============================================ */
.process-step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    text-align: center;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.process-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.3), 0 0 0 2px rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.2);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.icon-container i {
    font-size: 2.2rem;
    color: #28a745;
    transition: all 0.4s ease;
}

.process-step-card:hover .icon-container {
    background: #28a745;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
}

.process-step-card:hover .icon-container i {
    color: #ffffff;
    transform: scale(1.1);
}

.step-title {
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    transition: color 0.3s ease;
}

.process-step-card:hover .step-title { color: #28a745; }

.step-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ============================================
   7. SHOWROOM SECTION
============================================ */
.showroom-section { background: #fff; overflow: hidden; }

.sr-image-wrap { position: relative; padding: 20px; }

.sr-image-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    transition: border-radius 0.8s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.5s ease, transform 0.6s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.sr-image-shape:hover {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    box-shadow: 0 20px 60px rgba(40,167,69,0.2);
    transform: scale(1.02);
}

.sr-image-shape img {
    width: 100%; height: 380px; object-fit: cover; display: block;
    transition: transform 0.8s ease, filter 0.5s ease;
}

.sr-image-shape:hover img { transform: scale(1.08); filter: brightness(1.05); }

.sr-float-badge {
    position: absolute; bottom: 10px; right: 10px;
    width: 95px; height: 95px; border-radius: 50%;
    background: #28a745; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 8px 25px rgba(40,167,69,0.4); z-index: 3;
    animation: srPulse 3s ease-in-out infinite;
}

.sr-badge-num { font-family: 'Outfit', sans-serif; font-size: 1.7rem; font-weight: 900; color: #fff; line-height: 1; }
.sr-badge-text { font-size: 0.55rem; font-weight: 600; color: rgba(255,255,255,0.85); text-align: center; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.5px; }

@keyframes srPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.sr-features { display: flex; flex-direction: column; gap: 10px; }
.sr-feat { font-size: 0.92rem; color: #333; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.sr-feat i { color: #28a745; font-size: 1rem; }

@media (max-width: 991px) { .sr-image-shape img { height: 300px; } }
@media (max-width: 575px) {
    .sr-image-shape, .sr-image-shape:hover { border-radius: 20px; }
    .sr-image-shape img { height: 240px; }
}


/* ============================================
   8. PREMIUM MARQUEE (Green)
============================================ */
.marquee-premium {
    background: linear-gradient(135deg, #1b5e20 0%, #102b1b 50%, #1b5e20 100%);
    padding: 22px 0;
    overflow: hidden;
    position: relative;
}

.marquee-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: mqShimmer 5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.marquee-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1b5e20 0%, transparent 5%, transparent 95%, #1b5e20 100%);
    z-index: 2;
    pointer-events: none;
}

.marquee-premium-track { width: 100%; overflow: hidden; }

.marquee-premium-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: mqScroll 30s linear infinite;
    width: max-content;
}

.mq-item {
    font-family: 'Outfit', var(--heading-font, sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    padding: 0 20px;
    text-transform: uppercase;
    transition: text-shadow 0.3s ease;
}

.mq-dot {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
}

@keyframes mqScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes mqShimmer {
    0% { left: -50%; }
    100% { left: 100%; }
}

@media (max-width: 767px) {
    .marquee-premium { padding: 16px 0; }
    .mq-item { font-size: 1rem; padding: 0 14px; }
    .marquee-premium-inner { animation-duration: 20s; }
}


/* ============================================
   9. SUBTITLE GREEN UNDERLINE
============================================ */
.subtitle {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.subtitle::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: #28a745;
    border-radius: 2px;
    margin-top: 8px;
}

/* Center aligned subtitles */
.text-center .subtitle::after {
    margin-left: auto;
    margin-right: auto;
}













/* =========================================
   Spinner Text Centering & Sizing Fix
   ========================================= */
.wcu-spinner-center {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wcu-since-label {
    display: block !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wcu-since-year {
    display: block !important;
    text-align: center !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .wcu-spinner-center {
        width: 85px !important; 
        height: 85px !important; 
    }
    .wcu-since-label {
        font-size: 10px !important; 
    }
    .wcu-since-year {
        font-size: 15px !important; 
    }
}


