/* ==========================================
   Jeriel Construction Design System & Stylesheet
   ========================================== */

/* Design Tokens & Variables */
:root {
    --primary-green: #167a4c;
    --primary-green-light: #20935d;
    --primary-green-dark: #0f5c38;
    --secondary-blue: #2d8bb9;
    --secondary-blue-light: #3da6de;
    --secondary-blue-dark: #1e6d94;
    --text-dark: #1b1e21;
    --text-medium: #4d545e;
    --text-light: #838e9c;
    --bg-white: #ffffff;
    --bg-light: #f6f9f7;
    --bg-dark: #111417;
    --bg-dark-card: #181c20;
    --border-color: #e2e8f0;
    --border-focus: #167a4c;
    --error-color: #e53e3e;
    --success-color: #38a169;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 2px 4px rgba(22, 122, 76, 0.04);
    --shadow-md: 0 8px 24px rgba(22, 122, 76, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-input: 0 0 0 4px rgba(22, 122, 76, 0.1);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 50px;
    
    --header-height: 85px;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common Layout Utilities */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    outline: none;
}

/* Header & Navigation */
.main-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-img {
    height:60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size:35px;
    font-weight: 800;
    color:#04a459;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-family: var(--font-heading);
    font-size:19px;
    font-weight: 700;
    color: #2596be;
    letter-spacing: 2.5px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link.active {
    color: var(--primary-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.btn-quote {
   background: #01A659;
    background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(22, 122, 76, 0.2);
}

.btn-quote:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 122, 76, 0.3);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ==========================================
   Home Hero Section (Exact Match to Screenshot 1 & 2)
   ========================================== */
.home-hero-pin-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.home-hero-section {
    width: 100%;
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0; /* Zero top padding so image reaches top edge */
    overflow: hidden;
    background: #c6e0f7;
}

/* Realistic Sky & Clouds Background */
.hero-sky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #a4c9ee 0%, #cae0f8 35%, #eaf3fc 70%, #ffffff 100%);
    z-index: 1;
}

.hero-sky-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 15% 25%, rgba(255, 240, 215, 0.7) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 20%, rgba(255, 255, 255, 0.85) 0%, transparent 60%);
    pointer-events: none;
}

/* Text Content - Centered at Upper Half (Screenshot 1) */
.hero-text-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    margin-top: 35px;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-size: 5.8rem;
    font-weight: 800;
  
        background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: -3px;
    line-height: 1.02;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    color: #4b5563;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-bottom: 28px;
    line-height: 1.45;
}

.hero-btn-container {
    display: flex;
    justify-content: center;
}

.hero-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
       background: linear-gradient(117deg, rgb(1, 166, 89) 0%, rgb(37, 150, 190) 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-pill-btn:hover {
    background: #01A659;
background: linear-gradient(269deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(1, 166, 89, 0.3);
}

.hero-pill-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.hero-pill-btn:hover i {
    transform: translateX(4px);
}

/* Building Wrapper - Positioned at Bottom Center (Expands to 100% full screen on scroll to top edge) */
.hero-building-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 82%;
    max-width: 100%;
    height: 560px;
    z-index: 10;
    line-height: 0;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    /* background: #c6e0f7; */
}

.hero-building-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transform: none !important;
}

.hero-old-image {
    z-index: 1;
    opacity: 1;
}

.hero-new-image {
    z-index: 2;
    opacity: 1;
}

/* Hide White Misty Cloud Effect so bottom of image is never cut off */
.hero-cloud-mist {
    display: none;
}

/* ==========================================
   Who We Are Section (Matching Screenshot)
   ========================================== */
.who-we-are-section {
    position: relative;
    width: 100%;
    padding: 130px 24px 150px;
    background-color: #f7f5ed; /* Soft warm light cream matching screenshot */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.who-we-are-container {
    max-width: 1040px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 5;
}

.who-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #04a459;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.who-badge i {
    font-size: 0.95rem;
    color: #2596be;
}

.who-we-are-statement {
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -1px;
    color: rgba(15, 23, 42, 0.28); /* Unrevealed words start in soft muted slate */
}

.who-we-are-statement .brand-highlight {
    color: #0f172a;
    font-weight: 800;
    opacity: 1;
}

.who-we-are-statement .reveal-word {
    display: inline-block;
    transition: color 0.15s ease, opacity 0.15s ease;
    color: rgba(15, 23, 42, 0.28);
}

/* Floating Tilted Home Cards on Left & Right */
.who-floating-card {
    position: absolute;
    width: 135px;
    height: 135px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
    border: 3.5px solid #ffffff;
    z-index: 4;
    transition: transform var(--transition-normal);
}

.who-left-card {
    left: 4%;
    top: 30px; /* Aligned parallel to top WHO WE ARE badge */
    transform: rotate(-9deg);
}

.who-right-card {
    right: 4%;
    bottom: 25px; /* Positioned right after WHO WE ARE content finishes */
    transform: rotate(9deg);
}

.who-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .home-hero-pin-container {
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .home-hero-section {
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-top: 20px !important;
        padding-bottom: 25px !important;
        background: linear-gradient(180deg, #a4c9ee 0%, #cae0f8 35%, #eaf3fc 70%, #ffffff 100%) !important;
    }

    .hero-text-content {
        margin-top: 5px !important;
        margin-bottom: 16px !important;
        padding: 0 16px !important;
        max-width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-title {
        font-size: clamp(2rem, 7.5vw, 3.4rem) !important;
        letter-spacing: -1px !important;
        line-height: 1.08 !important;
        margin-bottom: 10px !important;
        word-break: break-word !important;
        background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3.6vw, 1.15rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 16px !important;
        word-break: break-word !important;
        color: #4b5563 !important;
    }

    .hero-pill-btn {
        padding: 12px 26px !important;
        font-size: 0.9rem !important;
    }

    .hero-building-wrapper {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        width: 92% !important;
        height: 360px !important;
        margin: 0 auto !important;
        border-radius: 20px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
        overflow: hidden !important;
    }

    .hero-building-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center bottom !important;
    }

    /* WHO WE ARE Section Mobile Spacing & Solid Black Text Color */
    .who-we-are-section {
        padding: 40px 20px 60px !important;
        background-color: #f7f5ed !important;
    }

    .who-we-are-statement {
        font-size: clamp(1.8rem, 5.5vw, 2.4rem) !important;
        color: #0f172a !important;
        line-height: 1.35 !important;
    }

    .who-we-are-statement .reveal-word {
        color: #0f172a !important;
        opacity: 1 !important;
    }

    .brand-highlight {
        color: #04a459 !important;
    }

    .who-floating-card {
        width: 95px;
        height: 95px;
        border-radius: 14px;
    }
    .who-left-card {
        left: 2%;
        top: 15%;
    }
    .who-right-card {
        right: 2%;
        bottom: 10%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    .hero-building-wrapper {
        width: 95% !important;
        height: 320px !important;
    }

    .who-we-are-section {
        padding: 15px 16px 50px !important;
    }

    .who-we-are-statement {
        font-size: 1.65rem !important;
        color: #0f172a !important;
    }

    .who-floating-card {
        display: none;
    }
}

/* ==========================================
   About Us Section (1 Row 2 Columns)
   ========================================== */
.about-us-section {
    position: relative;
    width: 100%;
    padding: 120px 0;
    background-color: var(--white);
    overflow: visible; /* Visible so image can travel seamlessly into Services section below */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

/* Left Image Container - GSAP Scroll-Trigger Reveal & Seamless Section Travel */
.about-image-wrapper {
    position: relative;
    width: 100%;
    height: 540px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 9999; /* Highest z-index: Floats on top of all sections, titles, backgrounds & cards */
    transform-origin: 0 0; /* Scaling & morphing locks strictly to top-left corner */
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Experience Badge Overlay */
.about-experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.exp-years {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-green-light);
    line-height: 1;
}

.exp-text {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 130px;
}

/* Right Content Column */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
}

.about-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.about-desc-paragraph {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Text Reveal Word Styling for GSAP */
.about-desc-paragraph .reveal-word,
.about-main-title .reveal-title-word {
    display: inline-block;
    transition: color 0.15s ease;
}

/* Feature Items List */
.about-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 18px;
    border: 1px solid rgba(1, 166, 89, 0.12);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-feature-item:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 25px rgba(1, 166, 89, 0.1);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Gradient About Us Read More Button */
.btn-about-gradient {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    border-radius: 50px;
    background: linear-gradient(135deg, #01A659 0%, #0d9488 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(1, 166, 89, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-about-gradient:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 35px rgba(1, 166, 89, 0.5);
    background: linear-gradient(135deg, #0d9488 0%, #01A659 100%);
}

.btn-about-gradient i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-about-gradient:hover i {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper {
        height: 380px;
    }
    .about-main-title {
        font-size: 2.2rem;
    }
}

/* ==========================================
   Services Section (3 Cards Grid)
   ========================================== */
.services-section {
    position: relative;
    width: 100%;
    padding: 120px 0 140px;
    background-color: #f8fafc;
    overflow: visible; /* Visible so traveling image floats in smoothly without clipping */
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.services-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(1, 166, 89, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(1, 166, 89, 0.15);
}

.service-card-image-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #e2e8f0;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-card-img {
    transform: scale(1.06);
}

.service-card-body {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-green);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.service-card-link:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
}

.service-card-link i {
    font-size: 0.85rem;
    transition: transform var(--transition-fast);
}

@media (max-width: 992px) {
    .services-section {
        padding: 60px 0 80px;
    }
    .services-main-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .service-card {
        width: 100% !important;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
    }
    .service-card-image-box {
        height: 220px;
    }
}

/* ==========================================
   Projects Showcase Section (Pinned 3-Project Scroll Sequence)
   ========================================== */
.projects-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    color: #3473b1;
    overflow: hidden;
}

.projects-pinned-container {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.projects-section-container {
    width: 92%;
    max-width: 1440px;
    margin: 0 auto;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
}

.projects-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 166, 89, 0.15);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(1, 166, 89, 0.3);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.projects-main-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(37, 150, 190, 1);
    margin-top: 8px;
    letter-spacing: -0.8px;
}

.project-num-indicator {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 10px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-num-indicator .active-num {
    color: var(--primary-green);
}

.project-num-indicator .total-num {
    color: #64748b;
    font-size: 1.2rem;
}

/* Projects Stage Layout */
.projects-stage {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: 75vh;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.project-slide.active-slide {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none !important;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

/* Left Info Card */
.project-left-card {
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-height: 480px;
        background: #2596be;
}

.project-tagline {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 8px 0 12px;
}

.project-desc {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.65;
    margin-bottom: 24px;
}

.project-btn-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-project-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
    color: #ffffff;
    padding: 13px 22px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(1, 166, 89, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-project-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(1, 166, 89, 0.45);
}

.btn-project-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 13px 20px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-project-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.project-spec-badge {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-spec-badge i {
    width: 42px;
    height: 42px;
    background: rgba(1, 166, 89, 0.18);
    border-radius: 12px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(1, 166, 89, 0.3);
}

.spec-text {
    display: flex;
    flex-direction: column;
}

.spec-text strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #f8fafc;
}

.spec-text span {
    font-size: 0.82rem;
    color: hsl(0, 0%, 100%);
}

/* Center Stage Building Render */
.project-center-stage {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-glow-backdrop {
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(1, 166, 89, 0.4) 0%, rgba(56, 189, 248, 0.2) 50%, transparent 75%);
    filter: blur(50px);
    border-radius: 50%;
    pointer-events: none;
}

.project-center-img {
    position: relative;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: none !important;
}

.project-slide.active-slide .project-center-img {
    animation: none !important;
    transform: none !important;
}

/* Right Facilities List */
.project-right-facilities {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.facility-card {
    background: linear-gradient(269deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal);
}

.facility-card:hover {
    transform: translateX(6px);
 background: #2596be;
}

.facility-icon {
    width: 44px;
    height: 44px;
    background: rgba(1, 166, 89, 0.15);
    border-radius: 14px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid rgba(1, 166, 89, 0.25);
}

.facility-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.facility-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
}

.facility-desc {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.5;
}

/* Bottom Specs Bar */
.project-bottom-specs-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgb(29 153 168);
    backdrop-filter: blur(20px);
    padding: 12px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spec-pill {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-pill i {
    color: var(--primary-green);
    font-size: 1rem;
}

@media (max-width: 992px) {
    .projects-pinned-container {
        height: auto !important;
        padding: 50px 0 !important;
        overflow: visible !important;
    }
    .projects-section-container {
        height: auto !important;
        width: 94% !important;
    }
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }
    .projects-main-title {
        font-size: 1.8rem;
    }
    .projects-stage {
        height: auto !important;
        display: block !important;
        position: relative !important;
    }
    .project-slide {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        display: none !important; /* Hide all slides by default on mobile; only .active-slide shows */
        pointer-events: auto !important;
        transform: none !important;
    }
    .project-slide.active-slide {
        display: block !important;
    }
    .project-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .project-left-card {
        height: auto !important;
        max-height: none !important;
        padding: 24px 20px !important;
        border-radius: 20px !important;
    }
    .project-title {
        font-size: 1.6rem !important;
    }
    .project-desc {
        font-size: 0.9rem !important;
        margin-bottom: 16px !important;
    }
    .project-btn-group {
        gap: 10px !important;
    }
    .btn-project-primary, .btn-project-secondary {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    .project-center-stage {
        height: 220px !important;
        max-height: 220px !important;
        display: flex !important;
    }
    .project-center-img {
        height: 200px !important;
        border-radius: 18px !important;
    }
    .project-bottom-specs-bar {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 12px 16px !important;
        border-radius: 16px !important;
        justify-content: flex-start !important;
    }
    .spec-pill {
        font-size: 0.8rem !important;
    }
    /* Gallery Section Mobile Styles - Vertical 1-by-1 Stack */
    .gallery-pinned-container {
        height: auto !important;
        padding: 50px 0 !important;
        overflow: visible !important;
    }
    .gallery-container {
        height: auto !important;
        width: 92% !important;
        padding: 0 !important;
    }
    .gallery-header-zone {
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 28px !important;
        margin-top: 0 !important;
    }
    .gallery-main-title {
        font-size: 1.8rem !important;
    }
    .gallery-stage {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px !important;
        position: relative !important;
        touch-action: auto !important;
    }
    .gallery-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 360px !important;
        height: 240px !important;
        opacity: 0; /* GSAP ScrollTrigger Fade-In */
        transform: translateY(40px);
        margin: 0 auto !important;
        touch-action: auto !important;
        pointer-events: auto !important;
    }
    .gallery-img-wrapper {
        width: 100% !important;
        height: 100% !important;
        border-radius: 20px !important;
        touch-action: auto !important;
    }
    .gallery-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        touch-action: auto !important;
    }
}

/* ==========================================
   Gallery Section (Pinned 3-Phase Interactive Drop & Drag)
   ========================================== */
.gallery-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    color: #2f57e6;
    overflow: hidden;
}

.gallery-pinned-container {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    text-align: center;
    position: relative;
}

.gallery-header-zone {
    opacity: 0;
    transform: translateY(40px);
    z-index: 10;
    margin-bottom: 20px;
    margin-top: 50px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-header-zone.header-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(103, 249, 249, 0.15);
    color:#2f57e6;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(22, 33, 249, 0.3);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.gallery-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #2f57e6;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.gallery-subtitle {
    font-size: 1rem;
    color:#2f57e6;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-stage {
    position: relative;
    width: 100%;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5 Draggable Items - Exact 150px x 150px Size */
.gallery-item {
    position: absolute;
    width: 150px;
    height: 150px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    z-index: 5;
    opacity: 0;
    transform: translateY(-280px) scale(0.5);
    transition: box-shadow 0.2s ease, scale 0.2s ease;
}

.gallery-item:active {
    cursor: grabbing;
    z-index: 99 !important;
    scale: 1.1;
}

.gallery-img-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 26px;
    border: 3.5px solid #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(249, 115, 22, 0.25);
    overflow: hidden;
    background: #1e293b;
}

.gallery-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.gallery-pill-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
   background: #01A659;
background: linear-gradient(269deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.service-card-link:hover i {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-card-image-box {
        height: 220px;
    }
}

/* Banner / Hero Section */
.banner-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px 0 100px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: visible; /* Allow floating image to float out of hero banner */
}

/* About Hero Floating Image (250px x 250px at Top Right Corner - 50% Transparent Start) */
.about-hero-floating-box {
    position: fixed;
    top: 120px;
    right: 50px;
    width: 250px;
    height: 250px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 25px rgba(1, 166, 89, 0.15);
    border: none;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
    opacity: 0.5; /* 50% transparent when in Hero Banner & in transit */
    will-change: transform, width, height, top, left, opacity;
    transition: visibility 0.2s ease;
}

.about-hero-floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 992px) {
    .about-hero-floating-box {
        display: none !important;
    }
}

/* =========================================================================
   Services Page: Hero Floating Image & Section 1 (Left Content, Right Target)
   ========================================================================= */

/* Hero Floating Image starting at Top LEFT Side (250px x 250px) */
.services-hero-floating-box {
    position: fixed;
    top: 120px;
    left: 50px;
    width: 250px;
    height: 250px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 25px rgba(1, 166, 89, 0.15);
    border: none;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
    opacity: 0.5; /* 50% transparent when in Hero Banner & in transit */
    will-change: transform, width, height, top, left, opacity;
    transition: visibility 0.2s ease;
}

.services-hero-floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Section 1: Services Page Company Section */
.services-page-company-section {
    position: relative;
    width: 100%;
    padding: 60px 0 80px;
    background-color: var(--white);
    overflow: visible;
}

.services-company-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr; /* Left side content, Right side image target */
    gap: 60px;
    align-items: center;
}

/* Left Side: Content */
.services-company-content {
    display: flex;
    flex-direction: column;
}

.services-company-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.services-company-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
}

.services-company-text-reveal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.services-text-p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.services-features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(1, 166, 89, 0.15);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.services-feature-pill i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.services-feature-pill:hover {
    transform: translateX(6px);
    border-color: var(--primary-green);
}

/* Right Side: Image Target Container */
.services-company-image-container {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    z-index: 10;
}

.services-company-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 992px) {
    .services-hero-floating-box {
        display: none !important;
    }
    .services-page-company-section {
        padding: 60px 0;
    }
    .services-company-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .services-company-title {
        font-size: 1.8rem;
    }
    .services-company-image-container {
        height: 320px;
        order: -1;
    }
    .services-company-img {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* =========================================================================
   Services Page: Section 2 Services Overview (Who We Are Design Style)
   ========================================================================= */
.services-overview-section {
    position: relative;
    width: 100%;
    padding: 70px 0 80px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-overview-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.services-overview-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(1, 166, 89, 0.12);
    backdrop-filter: blur(12px);
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(1, 166, 89, 0.25);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.services-overview-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
    color: #0f172a;
    margin-bottom: 24px;
}

.services-overview-statement {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8;
    color: rgba(15, 23, 42, 0.45);
    margin: 0 auto;
}

.services-overview-statement .reveal-word {
    display: inline-block;
    transition: color 0.15s ease, opacity 0.15s ease;
    color: rgba(15, 23, 42, 0.35);
}

.services-floating-card {
    position: absolute;
    width: 135px;
    height: 135px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
    border: 3.5px solid #ffffff;
    z-index: 4;
    transition: transform var(--transition-normal);
}

.services-left-card {
    left: 5%;
    top: 40px;
    transform: rotate(-9deg);
}

.services-right-card {
    right: 5%;
    bottom: 35px;
    transform: rotate(9deg);
}

.services-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .services-overview-title {
        font-size: 1.9rem;
    }
    .services-overview-statement {
        font-size: 1.05rem;
    }
    .services-floating-card {
        width: 95px;
        height: 95px;
        border-radius: 14px;
    }
    .services-left-card {
        left: 2%;
        top: 10%;
    }
    .services-right-card {
        right: 2%;
        bottom: 10%;
    }
}

@media (max-width: 576px) {
    .services-floating-card {
        display: none;
    }
}

/* =========================================================================
   Services Page Section 3: Residential Construction (Arc Image Jump & Text Reveal)
   ========================================================================= */
.services-residential-section {
    position: relative;
    width: 100%;
    padding: 70px 0 80px;
    background-color: var(--white);
    overflow: hidden;
}

.services-res-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr; /* Left: Target Image, Right: Content */
    gap: 60px;
    align-items: center;
}

/* Left Side: Target Image Container */
.services-res-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 28px;
    overflow: hidden;
    z-index: 5;
}

.services-res-docked-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Floating Arc Traveling Building Box */
.services-res-floating-box {
    position: fixed;
    bottom: 40px;
    right: 50px;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(1, 166, 89, 0.2);
    z-index: 9999;
    pointer-events: none;
    opacity: 0.3;
    scale: 0.35;
    will-change: transform, width, height, top, left, bottom, right, opacity, scale;
    transition: visibility 0.2s ease;
}

.services-res-floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Right Side: Content */
.services-res-content {
    display: flex;
    flex-direction: column;
}

.services-res-number {
    display: inline-block;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.services-res-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
}

.services-res-text-box {
    margin-bottom: 28px;
}

.services-res-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 992px) {
    .services-res-floating-box {
        display: none !important;
    }
    .services-res-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .services-res-image-container {
        height: 320px;
    }
    .services-res-docked-img {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    .services-res-title {
        font-size: 1.8rem;
    }
}

/* =========================================================================
   Section 5: Commercial Construction (Content Left, Image Target Right)
   ========================================================================= */
.services-commercial-section {
    position: relative;
    width: 100%;
    padding: 70px 0 80px;
    background-color: var(--white);
    overflow: hidden;
}

.services-comm-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr; /* Left: Content, Right: Target Image */
    gap: 60px;
    align-items: center;
}

/* Right Side: Target Image Container */
.services-comm-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 28px;
    overflow: hidden;
    z-index: 5;
}

.services-comm-docked-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Floating Traveling Commercial Building Box */
.services-comm-floating-box {
    position: fixed;
    bottom: 40px;
    left: 50px;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(37, 150, 190, 0.25);
    z-index: 9999;
    pointer-events: none;
    opacity: 0.35;
    scale: 0.35;
    will-change: transform, width, height, top, left, bottom, right, opacity, scale;
    transition: visibility 0.2s ease;
}

.services-comm-floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 992px) {
    .services-comm-floating-box {
        display: none !important;
    }
    .services-comm-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .services-comm-image-container {
        height: 320px;
    }
    .services-comm-docked-img {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* =========================================================================
   Section 7: Renovation & Remodeling (Image Target Left, Content Right)
   ========================================================================= */
.services-renovation-section {
    position: relative;
    width: 100%;
    padding: 70px 0 80px;
    background-color: var(--white);
    overflow: hidden;
}

.services-reno-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr; /* Left: Target Image, Right: Content */
    gap: 60px;
    align-items: center;
}

/* Left Side: Target Image Container */
.services-reno-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 28px;
    overflow: hidden;
    z-index: 5;
}

.services-reno-docked-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Floating Traveling Renovation Building Box */
.services-reno-floating-box {
    position: fixed;
    bottom: 40px;
    right: 50px;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(1, 166, 89, 0.25);
    z-index: 9999;
    pointer-events: none;
    opacity: 0.35;
    scale: 0.35;
    will-change: transform, width, height, top, left, bottom, right, opacity, scale;
    transition: visibility 0.2s ease;
}

.services-reno-floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 992px) {
    .services-reno-floating-box {
        display: none !important;
    }
    .services-reno-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .services-reno-image-container {
        height: 320px;
    }
    .services-reno-docked-img {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* Standalone Section 4: Residential Construction Services Include Grid */
.services-include-section {
    position: relative;
    width: 100%;
    padding: 80px 0 90px;
    background-color: #f8fafc;
    overflow: hidden;
    clear: both;
}

.services-include-heading {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.services-cards-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    min-height: 380px;
}

/* Contact.html Card Design for Services Include Cards */
.service-include-card.contact-style-card {
    background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(1, 166, 89, 0.15), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    position: relative;
    z-index: 5;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.service-include-card.contact-style-card .card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.service-include-card.contact-style-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.service-include-card.contact-style-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(1, 166, 89, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.service-include-card.contact-style-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 255, 255, 0.32);
}

/* Stacked Layer Cards matching contact.html stacked-card */
.service-include-card.contact-style-card.stacked-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    overflow: visible !important;
    z-index: 10;
}

.service-include-card.contact-style-card.stacked-card > *:not(.stack-layer) {
    position: relative;
    z-index: 2;
}

.service-include-card.contact-style-card.stacked-card .stack-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    pointer-events: none;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.service-include-card.contact-style-card.stacked-card .layer-1 {
    z-index: -1;
    opacity: 0.9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.service-include-card.contact-style-card.stacked-card .layer-2 {
    z-index: -2;
    opacity: 0.8;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.04);
}

.service-include-card.contact-style-card.stacked-card .layer-front {
    z-index: 0;
    box-shadow: 0 10px 30px rgba(1, 166, 89, 0.15), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.service-include-card.contact-style-card.stacked-card:hover .layer-1 {
    transform: rotate(-4deg) translate(-3px, -3px);
    border-color: rgba(255, 255, 255, 0.45);
}

.service-include-card.contact-style-card.stacked-card:hover .layer-2 {
    transform: rotate(4deg) translate(3px, -3px);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 992px) {
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* 12 Floating & Shaking Background Home Icons in 3-Cards Section (Positioned Behind Cards) */
.cards-home-icons-wrap, .banner-home-icons-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Placed behind cards layer */
    overflow: hidden;
}

.cards-home-icon, .banner-home-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(1, 166, 89, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(1, 166, 89, 0.15);
    transition: transform 0.3s ease;
}

.cards-home-icon i, .banner-home-icon i {
    color: var(--primary-green);
    background: linear-gradient(135deg, #01A659, #2596be);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(1, 166, 89, 0.25));
}

/* Individual Positions and Custom Sizes across the Hero Banner */
.home-pos-1 { top: 10%; left: 3%; width: 46px; height: 46px; font-size: 1.35rem; animation: floatShake1 3.2s ease-in-out infinite alternate; }
.home-pos-2 { top: 16%; right: 4%; width: 52px; height: 52px; font-size: 1.5rem; animation: floatShake2 3.8s ease-in-out infinite alternate 0.3s; }
.home-pos-3 { top: 58%; left: 5%; width: 42px; height: 42px; font-size: 1.2rem; animation: floatShake3 2.9s ease-in-out infinite alternate 0.6s; }
.home-pos-4 { top: 64%; right: 6%; width: 48px; height: 48px; font-size: 1.38rem; animation: floatShake1 3.5s ease-in-out infinite alternate 0.2s; }
.home-pos-5 { top: 6%; left: 22%; width: 38px; height: 38px; font-size: 1.1rem; animation: floatShake2 4.1s ease-in-out infinite alternate 0.8s; }
.home-pos-6 { top: 8%; right: 24%; width: 44px; height: 44px; font-size: 1.25rem; animation: floatShake3 3.4s ease-in-out infinite alternate 0.5s; }
.home-pos-7 { bottom: 12%; left: 18%; width: 50px; height: 50px; font-size: 1.4rem; animation: floatShake1 3.7s ease-in-out infinite alternate 0.4s; }
.home-pos-8 { bottom: 10%; right: 20%; width: 40px; height: 40px; font-size: 1.15rem; animation: floatShake2 3.0s ease-in-out infinite alternate 0.7s; }
.home-pos-9 { top: 38%; left: 2%; width: 54px; height: 54px; font-size: 1.55rem; animation: floatShake3 4.3s ease-in-out infinite alternate 0.1s; }
.home-pos-10 { top: 40%; right: 2%; width: 48px; height: 48px; font-size: 1.35rem; animation: floatShake1 3.1s ease-in-out infinite alternate 0.9s; }
.home-pos-11 { top: 72%; left: 34%; width: 36px; height: 36px; font-size: 1.05rem; animation: floatShake2 3.6s ease-in-out infinite alternate 0.5s; }
.home-pos-12 { top: 74%; right: 36%; width: 46px; height: 46px; font-size: 1.3rem; animation: floatShake3 3.9s ease-in-out infinite alternate 0.2s; }

/* Top to Bottom Floating + Shaking Infinite Keyframes */
@keyframes floatShake1 {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(-7deg) scale(1.06);
    }
    50% {
        transform: translateY(-20px) rotate(7deg) scale(0.96);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg) scale(1.04);
    }
    100% {
        transform: translateY(0px) rotate(5deg) scale(1);
    }
}

@keyframes floatShake2 {
    0% {
        transform: translateY(0px) rotate(0deg) scale(0.95);
    }
    30% {
        transform: translateY(-16px) rotate(9deg) scale(1.08);
    }
    60% {
        transform: translateY(-8px) rotate(-8deg) scale(0.98);
    }
    100% {
        transform: translateY(-24px) rotate(6deg) scale(1.04);
    }
}

@keyframes floatShake3 {
    0% {
        transform: translateY(0px) rotate(-6deg) scale(1.03);
    }
    40% {
        transform: translateY(-22px) rotate(8deg) scale(0.94);
    }
    80% {
        transform: translateY(-11px) rotate(-9deg) scale(1.06);
    }
    100% {
        transform: translateY(0px) rotate(4deg) scale(1);
    }
}

.banner-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
    position: relative;
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.breadcrumb-container {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--primary-green-light);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.breadcrumb-active {
    color: #9b9b9b;
    font-weight: 600;
}

/* Cards Section - Pinned and Centered for GSAP Scroll Fanning */
.cards-section {
    min-height: auto; /* Replaced vh height with auto for unified pin containment */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white); 
    padding: 40px 0; /* Tightened padding to fit in screen with banner */
    position: relative;
    overflow: hidden; 
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    position: relative;
    z-index: 5; /* Brings 3 cards above background floating home icons */
}

.info-card {
    background: #01A659;
    background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    border-radius: 24px; /* Highly rounded corners as seen in screenshot */
    padding: 36px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(1, 166, 89, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    z-index: 5; /* Ensures card content stands above background layer icons */
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(1, 166, 89, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Stacked Card Effect (Middle Card matching the user's screenshot layout) */
.info-card.stacked-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    overflow: visible !important;
    z-index: 10;
}

.stacked-card > *:not(.stack-layer) {
    position: relative;
    z-index: 2; /* Stands on top of the front layer background */
}

.stack-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    pointer-events: none;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
}

/* Background card layers default styling */
.layer-1 {
    z-index: -1;
    opacity: 0.9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.layer-2 {
    z-index: -2;
    opacity: 0.8;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.04);
}

.layer-3 {
    z-index: -3;
    opacity: 0.7;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.05);
}

/* Front card layer */
.layer-front {
    z-index: 0;
    box-shadow: 0 10px 30px rgba(1, 166, 89, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Animate background layers on hover for an interactive paper-shuffling effect */
.info-card.stacked-card:hover .layer-1 {
    transform: rotate(-5.5deg) translate(-2px, -2px);
    border-color: rgba(22, 122, 76, 0.3);
}

.info-card.stacked-card:hover .layer-2 {
    transform: rotate(6deg) translate(2px, 2px);
    border-color: rgba(45, 139, 185, 0.3);
}

.info-card.stacked-card:hover .layer-3 {
    transform: rotate(-9deg) translate(-4px, -4px);
}

.info-card.stacked-card:hover .layer-front {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(22, 122, 76, 0.05);
}

.card-icon-wrapper {
    width: 52px;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 14px; /* Squircle (soft rounded corners) as seen in screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: var(--transition-normal);
}

.info-card:hover .card-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.26) !important;
}

.card-icon-wrapper i {
    font-size: 1.25rem;
    color: white !important;
    transition: var(--transition-normal);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color:white !important;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.card-text {
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-weight: 500;
}

.contact-link {
    color: var(--white) !important;
    font-weight: 500;
    display: inline-block;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateX(2px);
}

/* Contact Form Section - Pinned and Centered for GSAP Scroll Reveal */
.form-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Prevents overflow clipping */
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0;
    align-items: center;
    position: relative;
    overflow: visible;
    width: 100%;
}

/* Decorative Floating Home Badges in Form Section */
.floating-home-badge {
    position: absolute;
    z-index: 20;
    opacity: 0; /* GSAP will reveal */
}

.float-left-home {
    top: -25px;
    left: -25px;
}

.float-right-home {
    bottom: -25px;
    right: -25px;
}

.floating-home-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(1, 166, 89, 0.25);
    border-radius: 20px;
    padding: 10px 18px 10px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(1, 166, 89, 0.15);
    transition: transform var(--transition-normal);
}

.float-left-home .floating-home-inner {
    animation: floatHomeInfiniteLeft 3.6s ease-in-out infinite alternate;
}

.float-right-home .floating-home-inner {
    animation: floatHomeInfiniteRight 4.2s ease-in-out infinite alternate;
}

.floating-home-img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1.5px solid var(--white);
}

.floating-home-info {
    display: flex;
    flex-direction: column;
}

.floating-home-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #0b130f;
    line-height: 1.2;
}

.floating-home-sub {
    font-size: 0.78rem;
    color: var(--primary-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.floating-home-sub i {
    font-size: 0.75rem;
}

/* Continuous Infinite Keyframe Floating Animations */
@keyframes floatHomeInfiniteLeft {
    0% {
        transform: translateY(0px) rotate(-3deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
    100% {
        transform: translateY(-20px) rotate(4deg);
    }
}

@keyframes floatHomeInfiniteRight {
    0% {
        transform: translateY(0px) rotate(3deg);
    }
    50% {
        transform: translateY(-14px) rotate(-1deg);
    }
    100% {
        transform: translateY(-22px) rotate(-4deg);
    }
}

/* Form Left Graphic Side - GSAP Animated */
.form-image-container {
    position: relative;
    height: 100%;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    opacity: 0; /* Start hidden for GSAP reveal */
}

.form-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .form-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(22, 122, 76, 0.85), rgba(45, 139, 185, 0.4));
} */

.image-overlay-card {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 30px;
    border-radius: var(--border-radius-md);
    color: var(--white);
    z-index: 5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.image-overlay-card h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.image-overlay-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Form Right Fields Side - Overlaps Image on Desktop, GSAP Animated */
.form-wrapper {
    background-color: white;
    border-radius: 24px;
    padding: 60px 50px;
    margin-left: -90px; /* Overlaps Left Column Image */
    position: relative;
    z-index: 2; /* Stands on top of Left Column */
    box-shadow: 0 20px 50px rgba(22, 122, 76, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0; /* Start hidden for GSAP reveal */
}

.form-header {
    margin-bottom: 35px;
}

.section-subtitle {
    display: block;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.form-desc {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group label .required {
    color: var(--error-color);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-normal);
    background-color: var(--bg-white);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

/* Style select dropdown arrow */
.form-group select::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-group textarea {
    resize: none;
}

.text-wrapper .msg-icon {
    top: 18px;
}

/* Input Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-input);
}

.form-group input:focus + .input-icon,
.form-group select:focus + .input-icon,
.form-group textarea:focus + .input-icon {
    color: var(--primary-green);
}

/* Error validation styling */
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
    border-color: var(--error-color);
}

.form-group.invalid input:focus,
.form-group.invalid select:focus,
.form-group.invalid textarea:focus {
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

.form-group.invalid .input-icon {
    color: var(--error-color);
}

.error-msg {
    display: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--error-color);
    margin-top: 2px;
}

.form-group.invalid .error-msg {
    display: block;
}

/* Submit Button */
.btn-submit {
    align-self: flex-start;
       background: #01A659;
    background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    color: white;
    border-radius: var(--border-radius-sm);
    padding: 16px 36px;
    box-shadow: 0 4px 14px rgba(22, 122, 76, 0.25);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(22, 122, 76, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    transition: var(--transition-normal);
}

.btn-submit:hover i {
    transform: translate(3px, -3px);
}

/* Map Section - Pinned and Centered for GSAP Zoom Reveal */
.map-section {
    min-height: 50vh; /* Reduced height to minimize top and bottom spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.map-wrapper {
    width: 80%; /* Start narrower for prominent fanning reveal */
    max-width: 100%; /* Allow expanding to full edge-to-edge width */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    opacity: 0.1; /* Start faint for GSAP zoom reveal */
    transform: scale(0.7); /* Start scaled down for GSAP zoom reveal */
    line-height: 0;
}

.map-wrapper iframe {
    transition: var(--transition-slow);
}

/* Footer Section */
.main-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0 0;
    border-top: 4px solid var(--primary-green);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
    gap: 40px;
    padding-bottom: 10px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo-light {
    margin-bottom: 8px;
}

.text-white {
    color: var(--white);
}

.text-green {
    color: var(--primary-green-light) !important;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

/* Footer links */
.footer-title {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-green-light);
    padding-left: 5px;
}

/* Footer contact list */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.9rem;
}

.contact-info-list li i {
    color: var(--primary-green-light);
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-info-list li a:hover {
    color: var(--white);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Success Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: -400px; /* Hidden offscreen by default */
    z-index: 9999;
    transition: right var(--transition-slow) cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast-container.active {
    right: 30px;
}

.toast-card {
    background-color: var(--white);
    border-left: 6px solid var(--success-color);
    border-radius: var(--border-radius-sm);
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    width: 360px;
    position: relative;
}

.toast-icon {
    font-size: 1.8rem;
    color: var(--success-color);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-text {
    font-size: 0.82rem;
    color: var(--text-medium);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-light);
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 12px;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-dark);
}


/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablet Portrait & Landscape (max-width: 992px) */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 28px;
        padding: 40px 24px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        transition: var(--transition-normal);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        align-items: center;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
    }

    .header-cta {
        margin-top: 12px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .header-cta .btn-quote {
        width: 100%;
        display: block;
        padding: 14px 24px;
        font-size: 1rem;
        text-align: center;
    }

    .banner-home-icon {
        transform: scale(0.7);
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        height: auto;
        min-height: 140px;
        padding: 24px 30px;
    }

    .info-card .card-icon-wrapper {
        margin-bottom: 14px;
    }

    .info-card .card-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .info-card .card-text {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-image-container {
        display: block;
        min-height: 240px;
        height: 240px;
        width: 100%;
        border-radius: 20px;
        margin-bottom: 20px;
        opacity: 0; /* Revealed by GSAP on scroll */
    }

    .form-wrapper {
        padding: 50px 30px;
        margin-left: 0; /* Reset overlap on tablet/mobile */
    }

    .map-wrapper {
        width: 85%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile Portrait (max-width: 576px) */
@media (max-width: 576px) {
    :root {
        --header-height: 75px;
    }

    .logo-brand {
        font-size:30px;
    }

    .logo-sub {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    .header-cta .btn-quote {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .banner-title {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-wrapper {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .toast-card {
        width: calc(100vw - 40px);
    }
    
    .toast-container.active {
        right: 20px;
    }
}

@media (max-width: 992px) {
    .gallery-main-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .gallery-stage {
        height: auto !important;
        gap: 20px !important;
    }
    .gallery-item {
        width: 100% !important;
        max-width: 320px !important;
        height: 220px !important;
    }
    .gallery-img-wrapper {
        width: 100% !important;
        height: 100% !important;
        border-radius: 18px !important;
    }
    .gallery-img {
        width: 100% !important;
        height: 100% !important;
    }
    .gallery-main-title {
        font-size: 1.7rem;
    }
}

/* ==========================================
   Counter Stats Section (Exact Reference Screenshot Design)
   ========================================== */
.counter-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    padding: 70px 0;
    overflow: hidden;
}

.counter-outer-wrapper {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

.counter-card-container {
    background: #f4f2f8;
    border-radius: 40px;
    padding: 44px 48px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

.counter-left-visual {
    position: relative;
    width: 100%;
    height: 520px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 36px;
    overflow: hidden;
}

.counter-orange-backdrop {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85%;
    background: #01A659;
background: linear-gradient(89deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    border-radius: 36px;
    clip-path: ellipse(85% 75% at 50% 75%);
}

.counter-building-img {
    position: relative;
    z-index: 2;
    width: 92%;
    height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

.counter-right-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.counter-pill-badge {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: #067d45;
    background: #22ff98;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.counter-main-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 800;
    color: #1e1b2e;
    line-height: 1.22;
    letter-spacing: -0.8px;
}

.counter-2x2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.counter-stat-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(30, 27, 46, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.counter-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(255, 87, 34, 0.12);
    border-color: rgba(255, 87, 34, 0.3);
}

.counter-num-wrap {
    display: flex;
    align-items: center;
    line-height: 1;
}

.counter-stroke-num,
.counter-stroke-plus {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2.2px #2f57e6;
    line-height: 1;
}

.counter-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e1b2e;
    margin-top: 4px;
}

.counter-card-sub {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .counter-card-container {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }
    .counter-left-visual {
        height: 380px;
    }
    .counter-main-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .counter-2x2-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   About Page: Section 1 (About Company)
   ========================================== */
.about-page-company-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.about-company-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

/* Left Side: Completely Borderless Clean Landing Container (NO BOX, NO BORDER) */
.about-company-image-container {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.about-company-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Right Side Content */
.about-company-content {
    display: flex;
    flex-direction: column;
}

.about-company-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 166, 89, 0.1);
    color: var(--primary-green);
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(1, 166, 89, 0.25);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 16px;
}

.about-company-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.8px;
    line-height: 1.25;
    margin-bottom: 24px;
}

.about-company-text-reveal {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-text-p {
    font-size: 1.08rem;
    color: rgba(148, 163, 184, 0.35);
    line-height: 1.8;
}

@media (max-width: 992px) {
    .about-page-company-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 60px 0;
    }
    .about-company-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-company-image-container {
        height: 280px;
        position: relative;
        overflow: hidden;
        border-radius: 24px;
    }
    .about-company-img {
        opacity: 1 !important;
        transition: none !important;
        border-radius: 24px;
    }
    .about-company-title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   About Page: Section 2 (Our Story)
   ========================================== */
.about-page-story-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Side Content */
.about-story-content {
    display: flex;
    flex-direction: column;
}

.about-story-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(14, 165, 233, 0.25);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 16px;
}

.about-story-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.8px;
    line-height: 1.25;
    margin-bottom: 24px;
}

.about-story-text-reveal {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.story-text-p {
    font-size: 1.08rem;
    color: rgba(148, 163, 184, 0.35);
    line-height: 1.8;
}

/* Right Side: Completely Borderless Clean Landing Container (NO BOX, NO BORDER) */
.about-story-image-container {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.about-story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-story-image-container:hover .about-story-img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .about-page-story-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 60px 0;
    }
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-story-image-container {
        height: 280px;
        position: relative;
        overflow: hidden;
        border-radius: 24px;
    }
    .about-story-img {
        opacity: 1 !important;
        transition: none !important;
        border-radius: 24px;
    }
    .about-story-title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   About Page: Section 3 (Mission & Vision)
   ========================================== */
.about-mission-vision-section {
    position: relative;
    width: 100%;
    padding: 50px 0 30px !important;
    background: #f8fafc;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

.mission-vision-header {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mission-vision-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(249, 115, 22, 0.25);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.mission-vision-main-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.8px;
    line-height: 1.25;
}

.mv-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.mv-card {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    padding: 15px 40px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

/* Mission & Vision Icon Styles */
.card-icon-wrapper.mission-icon-bg {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.card-icon-wrapper.vision-icon-bg {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
}

.mv-card-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    
}

.mission-badge-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.vision-badge-tag {
    background: rgba(2, 132, 199, 0.1);
    color: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.mv-card-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.mv-card-text {
    font-size: 1.02rem;
    color: hsl(0, 0%, 100%);
    line-height: 1.75;
}

@media (max-width: 992px) {
    .mv-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .mv-card {
        padding: 38px 28px;
    }
    .mission-vision-main-title {
        font-size: 2.1rem;
    }
}

/* ==========================================
   About Page: Section 4 (Our Core Values X-Pattern - Full Viewport Fit)
   ========================================== */
.about-core-values-section {
    position: relative;
    width: 100%;
    padding: 50px 0 60px; /* Reduced vertical padding for 100% viewport visibility */
    background: #ffffff;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Floating Keyframe Animations for Section 4 Blue Home Icons */
@keyframes cvHomeFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(6deg); }
}

@keyframes cvHomeFloat2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(16px) rotate(-6deg); }
}

@keyframes cvHomeFloat3 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-14px) scale(1.1); }
}

/* Section 4 Floating Home Icons (15 Icons - Reduced Size & Exact Linear Gradient) */
.cv-blue-home-icons .cards-home-icon {
    background: linear-gradient(135deg, rgb(2, 132, 199), rgb(3, 105, 161));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.45;
    font-size: 1.45rem; /* Reduced compact size for floating icons */
    position: absolute;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: cvHomeFloat1 4s ease-in-out infinite;
}

.cv-blue-home-icons .cards-home-icon:nth-child(2n) {
    animation: cvHomeFloat2 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.cv-blue-home-icons .cards-home-icon:nth-child(3n) {
    animation: cvHomeFloat3 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.cv-blue-home-icons .cards-home-icon:hover {
    opacity: 0.95;
    transform: scale(1.2) rotate(10deg);
    animation-play-state: paused;
}

/* 5 Left Side Icons */
.cv-home-pos-l1 { top: 12%; left: 4%; }
.cv-home-pos-l2 { top: 32%; left: 11%; }
.cv-home-pos-l3 { top: 52%; left: 3%; }
.cv-home-pos-l4 { top: 72%; left: 10%; }
.cv-home-pos-l5 { top: 88%; left: 5%; }

/* 5 Center Icons */
.cv-home-pos-c1 { top: 8%; left: 48%; }
.cv-home-pos-c2 { top: 28%; left: 41%; }
.cv-home-pos-c3 { top: 54%; left: 56%; }
.cv-home-pos-c4 { top: 74%; left: 46%; }
.cv-home-pos-c5 { top: 92%; left: 51%; }

/* 5 Right Side Icons */
.cv-home-pos-r1 { top: 12%; right: 4%; }
.cv-home-pos-r2 { top: 32%; right: 11%; }
.cv-home-pos-r3 { top: 52%; right: 3%; }
.cv-home-pos-r4 { top: 72%; right: 10%; }
.cv-home-pos-r5 { top: 88%; right: 5%; }

.core-values-header {
    margin-bottom: 24px; /* Compact top header margin */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cv-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    padding: 5px 16px;
    border-radius: 30px;
    border: 1px solid rgba(2, 132, 199, 0.25);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cv-top-main-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.core-values-x-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px; /* Compact gap so bottom row sits well inside viewport */
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.cv-card {
    position: relative;
    border-radius: 20px;
    padding: 24px 22px; /* Compact card padding for sleek presentation */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* 4 Corner Cards Styling (Quality, Safety, Innovation, Customer Satisfaction) */
.card-top-left,
.card-top-right,
.card-bottom-left,
.card-bottom-right {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-top-left {
    grid-column: 1;
    grid-row: 1;
}

.card-top-right {
    grid-column: 3;
    grid-row: 1;
}

.card-bottom-left {
    grid-column: 1;
    grid-row: 3;
}

.card-bottom-right {
    grid-column: 3;
    grid-row: 3;
}

/* CENTER CARD (Always Visible in Dead Center) */
.cv-center-card {
    grid-column: 2;
    grid-row: 2;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #0f172a;
    border: 2px solid rgba(2, 132, 199, 0.35);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.12);
    text-align: center;
    padding: 28px 22px;
    z-index: 10;
}

.cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(2, 132, 199, 0.25);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cv-main-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.cv-main-subtext {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

/* Icons inside Corner Cards (Matching Mission & Vision 3D Gradient Style) */
.cv-card .card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.cv-icon-quality {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.cv-icon-safety {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.cv-icon-innovation {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.cv-icon-satisfaction {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

.cv-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.cv-card-text {
    font-size: 0.90rem;
    color: #e0f2fe;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .about-core-values-section {
        padding: 70px 0;
    }
    .core-values-x-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
    .card-top-left, .card-top-right, .cv-center-card, .card-bottom-left, .card-bottom-right {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ==========================================
   About Page: Section 5 (Why Choose Us - Reference Screenshot Design)
   ========================================== */
.about-why-choose-section {
    position: relative;
    width: 100%;
    min-height: 100vh; 
    overflow: hidden;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 100vh;
    width: 100%;
    align-items: center;
}

.why-choose-left {
    position: relative;
    height: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 50px 40px;
}

.why-choose-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.why-choose-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Circular Stamp Overlay Badge matching reference screenshot */
.why-choose-circle-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #0284c7;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 5;
}

.circle-badge-inner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #0252b4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.circle-badge-text {
    display: none; /* Can be enabled for rotating text SVG */
}

/* Right Side Content Styling */
.why-choose-right {
       background: #01A659;
    background: linear-gradient(117deg, rgba(1, 166, 89, 1) 0%, rgba(37, 150, 190, 1) 100%);
    padding: 0px 0px 60px 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    height: 90%;
    border-radius: 20px 0px 0px 20px;
}

.why-choose-content-box {
    width: 100%;
    max-width: 650px;
}

.why-choose-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.why-choose-main-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.6px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.why-choose-description {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin-bottom: 24px;
}

/* Vertical Feature List Items */
.why-choose-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.why-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.why-feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.why-feature-icon-box {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #0252b4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.why-feature-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.why-feature-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .why-choose-right {
        padding: 50px 24px;
    }
    .why-choose-left {
        min-height: 380px;
        padding: 30px 20px;
    }
    .why-choose-img-wrapper {
        height: 340px;
    }
}

/* Floating Traveling Counter Building Box (index.html Stats Counter) */
.counter-floating-box {
    position: fixed;
    bottom: 40px;
    right: 50px;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(249, 115, 22, 0.3);
    z-index: 9999;
    pointer-events: none;
    opacity: 0.35;
    scale: 0.35;
    will-change: transform, width, height, top, left, bottom, right, opacity, scale;
    transition: visibility 0.2s ease;
}

.counter-floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 992px) {
    .counter-floating-box {
        display: none !important;
    }
    .counter-building-img {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =========================================================================
   OUR WORKING PROCESS SECTION (Matching Uploaded Screenshot + GSAP Pinning)
   ========================================================================= */
.process-section {
    position: relative;
    width: 100%;
    padding: 80px 0 100px;
    background-color: #f8fafc;
    overflow: hidden;
}

.process-card-wrapper {
    background: #ffffff;
    border-radius: 36px;
    padding: 20px 48px 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.process-main-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: #15803d; /* Rich green matching reference screenshot */
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: -1px;
}

.process-steps-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    align-items: flex-start;
}

.process-step-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    opacity: 0.35;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.process-step-item.active-step {
    opacity: 1;
    transform: translateY(0);
}

.process-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
    transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.process-step-item.active-step .process-icon-box {
    background: linear-gradient(117deg, #01A659 0%, #2596BE 100%);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(1, 166, 89, 0.3);
}

.process-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

.step-title-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.process-bar-segment {
    flex: 1;
    height: 10px;
    border-radius: 20px;
    background-color: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    background: linear-gradient(90deg, #01A659 0%, #2596BE 100%);
    transition: width 0.4s ease;
}

.process-step-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.process-step-item.active-step .process-step-desc {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .process-card-wrapper {
        padding: 48px 24px;
        text-align: center;
        border-radius: 36px;
    }
    .process-main-title {
        font-size: 2.2rem;
        line-height: 1.2;
        color: #15803d;
        text-align: center;
        margin-bottom: 40px;
    }
    .process-steps-track {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .process-step-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        opacity: 1 !important;
        transform: none !important;
    }
    /* 1st Element: Icon Box */
    .process-icon-box {
        margin: 0 auto 12px auto;
        width: 52px;
        height: 52px;
        border-radius: 16px;
        background: linear-gradient(117deg, #01A659 0%, #2596BE 100%);
        color: #ffffff;
        box-shadow: 0 10px 25px rgba(1, 166, 89, 0.3);
    }
    /* 2nd Element: Title Number */
    .process-step-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        margin-bottom: 6px;
    }
    .step-title-num {
        font-size: 1.15rem;
        font-weight: 700;
        color: #0f172a;
        text-align: center;
        white-space: normal;
    }
    /* 3rd Element: Description Content */
    .process-step-desc {
        font-size: 0.9rem;
        color: #475569;
        line-height: 1.55;
        text-align: center;
        margin: 4px 0 0 0;
        opacity: 1 !important;
        transform: none !important;
    }
    /* 4th Element: Vertical Line Bar below content */
    .process-bar-segment {
        width: 8px;
        height: 55px;
        border-radius: 10px;
        background-color: #e2e8f0;
        margin: 18px auto;
        overflow: hidden;
        position: relative;
        flex: none;
    }
    .bar-fill {
        width: 100% !important;
        height: 100%;
        border-radius: 10px;
        background: linear-gradient(180deg, #01A659 0%, #2596BE 100%);
        transition: height 0.4s ease;
    }
    .process-step-item:last-child .process-bar-segment {
        display: none;
    }
}

/* =========================================================================
   SCROLL TO TOP FLOATING BUTTON
   ========================================================================= */
.scroll-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(117deg, #01A659 0%, #2596BE 100%);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(1, 166, 89, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 16px 35px rgba(1, 166, 89, 0.5), 0 6px 18px rgba(37, 150, 190, 0.3);
    border-color: #ffffff;
}

.scroll-to-top i {
    transition: transform 0.25s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-3px);
}

/* =========================================================================
   Projects Page Section 1: Our Projects Overview (Left Image Target Container, Right Content)
   ========================================================================= */
.projects-company-section {
    padding: 50px 0 !important;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.projects-company-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.projects-company-image-container {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 480px;
 
}

.projects-company-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.projects-hero-floating-box {
    position: fixed;
    top: 120px;
    right: 5%;
    width: 320px;
    height: 260px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: none;
    border: none;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.5;
}

.projects-hero-floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.projects-company-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(1, 166, 89, 0.1);
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.projects-company-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.8px;
}

.projects-company-text-reveal {
    margin-bottom: 32px;
}

.projects-text-p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 18px;
}

.projects-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.projects-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 24px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.projects-feature-pill i {
    color: var(--primary-green);
}

@media (max-width: 992px) {
    .projects-hero-floating-box {
        display: none !important;
    }
    .projects-company-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .projects-company-image-container {
        height: 320px;
    }
    .projects-company-img {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    .projects-company-title {
        font-size: 2rem;
    }
}

/* =========================================================================
   Projects Page Section 2: Portfolio 3D Fanning Carousel (Matching Screenshot)
   ========================================================================= */
.projects-portfolio-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    color: #0f172a;
    padding: 20px 0 30px;
    overflow: hidden;
}

.portfolio-sticky-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    height: 100%;
}

/* Stage 1: Text Reveal Header (Compact for Viewport Fit) */
.portfolio-header-zone {
    text-align: center;
    max-width: 780px;
    margin-bottom: 15px;
    opacity: 1;
    transform: translateY(0);
}

.portfolio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 30px;
    background: rgba(1, 166, 89, 0.1);
    color: #01A659;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border: 1px solid rgba(1, 166, 89, 0.25);
}

.portfolio-reveal-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: -0.4px;
    text-align: center;
}

.portfolio-reveal-text .reveal-word {
    display: inline-block;
    transition: color 0.15s ease;
}

/* Stage 2: Half Circle Arc 3D Carousel Stage (Fitted Viewport Height) */
.portfolio-carousel-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.portfolio-fan-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D Half Circle Arc Fan Cards */
.portfolio-fan-card {
    position: absolute;
    width: 220px;
    height: 320px;
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    border: 3px solid #ffffff;
    text-decoration: none;
    transform-origin: center bottom;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.6s ease;
    cursor: pointer;
    background: #ffffff;
}

.portfolio-card-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 17px;
    overflow: hidden;
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.portfolio-fan-card:hover .portfolio-card-img {
    transform: scale(1.08);
}

/* Active Center Card: ORIGINAL FULL COLOR & Solid Green Border */
.portfolio-fan-card.active-card {
    z-index: 100 !important;
    filter: none !important;
    border-color: #01A659 !important;
    box-shadow: 0 25px 60px rgba(1, 166, 89, 0.35), 0 8px 25px rgba(0, 0, 0, 0.18) !important;
}

/* Non-Active Side Cards: GRAY SHADE */
.portfolio-fan-card:not(.active-card) {
    filter: grayscale(100%) opacity(0.55) !important;
}

/* Hover Bottom White Card Badge */
.portfolio-hover-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    padding: 12px 10px;
    border-radius: 0 0 17px 17px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 20;
}

.portfolio-fan-card:hover .portfolio-hover-card {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.hover-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hover-card-desc {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #01A659;
    margin-top: 2px;
}

.hover-card-btn i {
    transition: transform 0.2s ease;
}

.portfolio-fan-card:hover .hover-card-btn i {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .projects-portfolio-section {
        padding: 40px 0 60px;
        min-height: auto;
        overflow: visible;
    }

    .portfolio-sticky-wrapper {
        height: auto;
        padding: 0 16px;
    }

    .portfolio-header-zone {
        margin-bottom: 25px;
    }

    .portfolio-reveal-text {
        font-size: 1.35rem;
        line-height: 1.4;
    }

    .portfolio-carousel-stage {
        height: auto !important;
        max-width: 100%;
        perspective: none;
        margin-top: 10px;
    }

    .portfolio-fan-container {
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100%;
        align-items: center;
        position: relative;
    }

    /* Mobile 1-by-1 Vertical Stack Card Design (Image on top, Name below) */
    .portfolio-fan-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 400px;
        height: auto !important;
        filter: none !important;
        opacity: 1 !important;
        margin: 0 auto !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
    }

    .portfolio-card-img-wrap {
        width: 100%;
        height: 240px;
        border-radius: 19px 19px 0 0;
        overflow: hidden;
    }

    .portfolio-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Project Name Card below image on Mobile */
    .portfolio-hover-card {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: #ffffff !important;
        padding: 16px 18px !important;
        border-radius: 0 0 19px 19px !important;
        box-shadow: none !important;
        border-top: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .hover-card-title {
        font-size: 1.15rem;
        font-weight: 800;
        color: #0f172a;
    }

    .hover-card-desc {
        font-size: 0.85rem;
        color: #64748b;
        line-height: 1.4;
    }

    .hover-card-btn {
        font-size: 0.82rem;
        margin-top: 6px;
    }
}



