/* ================================================================
    GLOBAL DESIGN SYSTEM & VARIABLES
================================================================ 
*/
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #7EA8C8;         /* Deep industrial red */
    --primary-hover: #7EA8C8;
    --secondary: #EED9C4;       /* Warm beige */
    --bg-light: white;        /* Off white / light cream */
    --text-dark: #151515;       /* Charcoal black */
    --accent: #4A4A4A;          /* Dark metallic grey */
    --white: #FFFFFF;
    
    /* Layout Tokens */
    --nav-height: 90px;
    --nav-height-scrolled: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 4px;
    
    /* Spacing */
    --spacing-lg: clamp(60px, 10vw, 140px);
    --spacing-md: clamp(40px, 6vw, 80px);
    
    /* Shadows & Effects */
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.03);
    --shadow-md: 0 20px 50px rgba(0,0,0,0.06);
    --shadow-lg: 0 40px 80px rgba(139, 0, 0, 0.15);
    --glass-bg: rgba(250, 249, 246, 0.85);
    
    /* Typography */
    --font-main: 'Manrope', sans-serif;
    
    /* Animations */
    --ease-framer: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s var(--ease-framer);
    --transition-slow: 0.8s var(--ease-framer);
}

/* --- Base & Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   HEAVY-DUTY PREMIUM TYPOGRAPHY
========================================= */
h1, h2, h3, h4 { 
    font-weight: 850; /* Ultra-bold for that "Shanti Agro" strength */
    line-height: 1.05; /* Tighter line height prevents awkward breaks */
    letter-spacing: -0.03em; /* Tighter tracking for a premium "Apple-style" look */
    color: var(--text-dark); 
    text-wrap: balance; /* Magic CSS to prevent single words on a new line */
}

/* Increased all by ~4-5px and strengthened the clamps */
h1 { font-size: clamp(2rem, 5vw, 4rem); } 
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); margin-bottom: 1.2rem; }
h4 { font-size: 2rem; margin-bottom: 1rem; }

p { 
    /* Base increased from ~1.1rem to 1.4rem (approx 22px) */
    font-size: clamp(1.15rem, 1.5vw, 1.4rem); 
    color: var(--accent); 
    margin-bottom: 2rem; 
    font-weight: 500; /* Medium weight looks better on dark backgrounds */
    line-height: 1.6; /* Increased leading for readability */
    max-width: 65ch; /* Prevents lines from getting too long and breaking focus */
}

.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ================================================================
    LAYOUT UTILITIES
================================================================ 
*/
.container { max-width: 1440px; margin: 0 auto; padding: 0 5%; width: 100%; }
.section-padding { padding: var(--spacing-lg) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.5rem, 2.5vw, 2rem); }

/* ================================================================
    SHARED COMPONENTS (Buttons & Nav)
================================================================ 
*/
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 1.1rem 2.5rem; 
    border-radius: var(--radius-sm); 
    font-weight: 700; 
    text-decoration: none; 
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast); 
    cursor: pointer; 
    border: 1px solid transparent; 
    font-size: 1rem; 
}

.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-4px); 
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.2); 
}

.btn-outline { background-color: transparent; color: var(--text-dark); border-color: var(--text-dark); }
.btn-outline:hover { background-color: var(--text-dark); color: var(--white); transform: translateY(-4px); }

/* --- Navigation --- */
.navbar { 
    position: fixed; top: 0; left: 0; right: 0; 
    height: var(--nav-height); 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 5%; 
    background: var(--glass-bg); 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
    z-index: 1000; 
    transition: box-shadow 0.4s ease, height 0.4s ease; 
    border-bottom: 1px solid rgba(0,0,0,0.03); 
}

.navbar.scrolled { 
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); 
    height: var(--nav-height-scrolled); 
}

.logo-main { font-weight: 800; font-size: 1.3rem; display: block; color: var(--text-dark); text-decoration: none; }
.logo-sub { font-size: 0.75rem; font-weight: 600; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary); }

.mobile-menu-btn { display: none; background: transparent; border: none; cursor: pointer; z-index: 1001; padding: 10px; }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background-color: var(--text-dark); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* ================================================================
    HERO SLIDER SYSTEM
================================================================ 
*/
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background: var(--bg-light);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: opacity var(--transition-slow);
}

.slide.active { opacity: 1; z-index: 2; }

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: scale(1);
    transition: transform 6s ease-out;
}
.slide.active .slide-bg { transform: scale(1.03); }

.slide-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6% 0 6%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    height: 100%;
    padding-top: var(--nav-height);
    position: relative;
}

.slider-arrows {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* --- Slide Content Animations --- */
.slide-text-content h4, .slide-text-content h1, .slide-text-content p, .slide-text-content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-framer);
}

.slide.active .slide-text-content h4 { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.slide.active .slide-text-content h1 { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.slide.active .slide-text-content p { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.slide.active .slide-text-content .btn { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }

.slide-text-content h4 { color: var(--primary); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 0.8rem; }
.slide-text-content h1 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 1.2rem; }

/* --- Hero Image Wrapper --- */
.slide-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Hero Controls --- */
.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 6%;
    z-index: 20;
    display: flex;
    gap: 12px;
}

.arrow-btn {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
}

.arrow-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* ================================================================
    PREMIUM PRODUCT CARDS & GRID
================================================================ 
*/
.premium-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-framer);
    position: relative;
}

.premium-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 0, 0, 0.2);
}

.premium-card-img {
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: 4/3; /* Strict Lock */
    background: #EAE0D5;
    overflow: hidden;
    z-index: 1;
}

.premium-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s var(--ease-framer);
}

.premium-card:hover .premium-card-img img { transform: scale(1.08) rotate(-1deg); }

.premium-badge {
    position: absolute;
    top: 24px; left: 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

.premium-card-content {
    background: var(--white);
    margin-top: -40px; 
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    position: relative;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.03);
}

.premium-specs {
    display: flex; gap: 1.5rem;
    margin-bottom: 1.5rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.spec-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 700;
    color: var(--accent); text-transform: uppercase;
}

.spec-item svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; }

.btn-premium {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 1.2rem 1.5rem;
    background: #FAFAFA;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 800; text-decoration: none; text-transform: uppercase;
    letter-spacing: 1.5px; font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.premium-card:hover .btn-premium {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.2);
}

.premium-card:hover .btn-premium svg { transform: translateX(8px); }

/* --- Carousel Specifics --- */
.premium-carousel {
    display: flex; gap: 2rem;
    overflow-x: auto;
    padding: 2rem 1rem 4rem; 
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.premium-carousel::-webkit-scrollbar { display: none; }
.premium-carousel .premium-card { flex: 0 0 400px; scroll-snap-align: center; }

.carousel-progress {
    width: 100%; max-width: 250px; height: 4px;
    background: rgba(0, 0, 0, 0.05);
    margin: -1rem auto 0;
    border-radius: 4px; overflow: hidden; position: relative;
}
.carousel-progress-fill {
    height: 100%; width: 0%;
    background: var(--primary);
    transition: width 0.3s ease-out;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

/* ================================================================
    GENERIC FEATURE CARDS
================================================================ 
*/
.card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg); 
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--ease-framer);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 0;
    background: var(--primary);
    transition: height 0.4s var(--ease-framer);
    z-index: -1;
    opacity: 0.05;
}

.card:hover { transform: translateY(-15px); box-shadow: var(--shadow-lg); border-color: rgba(139, 0, 0, 0.2); }
.card:hover::after { height: 100%; }

.card-icon {
    width: 64px; height: 64px;
    background: #f8f1f1;
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem;
    transition: 0.4s var(--ease-framer);
}

.card:hover .card-icon { background: var(--primary); color: var(--white); transform: scale(1.1) rotate(-5deg); }

/* ================================================================
    MACHINE DETAIL PAGES
================================================================ 
*/
.product-hero { padding-top: calc(var(--nav-height) + 40px); background: var(--bg-light); }

.product-hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #F8F9FA;
    min-height: clamp(320px, 50vh, 550px);  /* 🔥 smarter */
    height: auto;
    box-shadow: var(--shadow-md);
}

.product-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
    display: flex; align-items: center; justify-content: center;
}
.product-slide.active { 
    opacity: 1; 
    z-index: 2; 
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* ✅ FIX */
    object-position: center;
    background: #F8F9FA;
}
.product-slider-controls {
    position: absolute; bottom: 20px; right: 20px;
    z-index: 10; display: flex; gap: 10px;
}

.prod-arrow {
    width: 45px; height: 45px;
    border-radius: 50%; border: none;
    background: var(--white); color: var(--text-dark);
    cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}
.prod-arrow:hover { background: var(--primary); color: var(--white); transform: scale(1.1); }

/* --- Specs Table --- */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 1.5rem 2rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); }
.specs-table th { width: 35%; background: #F8F8F8; color: var(--text-dark); font-weight: 700; border-right: 1px solid rgba(0,0,0,0.03); }
.specs-table td { background: var(--white); color: var(--accent); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }

/* ================================================================
    INNER PAGE HERO (SPLIT)
================================================================ 
*/
.inner-page-hero { 
    padding-top: calc(var(--nav-height) + 60px); 
    padding-bottom: 80px; 
    background: #fdfaf7; 
    min-height: 500px; 
    display: flex; align-items: center; 
    position: relative; overflow: hidden; 
}

.inner-page-hero::before { 
    content: ''; position: absolute; top: -10%; left: -5%; width: 40%; height: 120%; 
    background: rgba(139, 0, 0, 0.03); transform: rotate(-10deg); z-index: 0; 
}

.inner-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 5; }
.inner-hero-text h4 { color: var(--primary); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 1.5rem; font-size: 0.9rem; }

.inner-hero-image { 
    position: relative; 
    height: 450px !important; /* Lock */
    border-radius: 30px; 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); 
    transform: rotate(2deg); 
}
.inner-hero-image img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    transform: rotate(-2deg) scale(1.1); 
    transition: transform 1s var(--ease-framer); 
}
.inner-hero-image:hover img { transform: rotate(-2deg) scale(1.15); }

/* ================================================================
    PROCESS & CONTACT COMPONENTS
================================================================ 
*/
/* --- Timeline --- */
.timeline-wrapper { position: relative; max-width: 1100px; margin: 0 auto; padding: 2rem 0; }
.timeline-center-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(139, 0, 0, 0.15); transform: translateX(-50%); z-index: 1; }
.timeline-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; position: relative; z-index: 2; }
.timeline-dot { 
    width: 24px; height: 24px; background: var(--white); 
    border: 4px solid var(--primary); border-radius: 50%; 
    position: absolute; left: 50%; transform: translateX(-50%); 
    box-shadow: 0 0 0 6px rgba(139, 0, 0, 0.1); transition: var(--transition-slow); 
}
.timeline-row:hover .timeline-dot { background: var(--primary); box-shadow: 0 0 0 10px rgba(139, 0, 0, 0.2); }
.timeline-content { width: 45%; }
.timeline-empty { width: 45%; }

/* --- Contact Details --- */
.contact-detail-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
.contact-detail-item .icon { 
    font-size: 1.5rem; background: var(--white); width: 50px; height: 50px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; box-shadow: var(--shadow-sm); 
}

.bank-details-box { margin-top: 3rem; background: #FDFBF7; border: 2px solid rgba(139, 0, 0, 0.1); padding: 2.5rem; }
.bank-list li { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.mono-font { font-family: 'Courier New', Courier, monospace; font-size: 1.1rem; color: var(--text-dark); }

.modern-form .form-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.modern-form input, .modern-form textarea { 
    padding: 1rem 1.2rem; border: 1px solid rgba(0,0,0,0.1); 
    border-radius: 6px; font-family: var(--font-main); 
    background: var(--bg-light); transition: var(--transition-fast); 
}
.modern-form input:focus, .modern-form textarea:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.05); }

/* ================================================================
    REVEAL ANIMATIONS & UTILITIES
================================================================ 
*/
.reveal-up { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease-framer), transform 1s var(--ease-framer); will-change: transform, opacity; }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ================================================================
    RESPONSIVE OVERRIDES
================================================================ 
*/

/* --- Large Tablets --- */
@media (max-width: 1200px) {
    .premium-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .slide-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .slider-controls { right: 15px; transform: none; bottom: 15px; }
    .product-hero .grid-2 { grid-template-columns: 1fr; text-align: center; }
    .product-hero-slider { min-height: 400px; margin-top: 3rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
    .section-padding { padding: 4rem 0; }
    
    /* Navigation Mobile */
    .mobile-menu-btn { display: block; }
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; 
        height: 100vh; background: var(--white); flex-direction: column; 
        justify-content: center; padding: 2rem; box-shadow: -10px 0 30px rgba(0,0,0,0.1); 
        transition: 0.4s var(--ease-framer); z-index: 1000; 
    }
    .nav-links.active { right: 0; }
    
    .inner-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .inner-hero-image { height: 300px !important; transform: none; margin-top: 2rem; }
    .inner-hero-image img { transform: none; }
    
    .timeline-center-line, .timeline-dot { left: 30px; }
    .timeline-content { width: calc(100% - 80px); margin-left: auto; }
    .timeline-empty { display: none; }
    .timeline-row { flex-direction: column; align-items: flex-end; }
    
    .premium-carousel .premium-card { flex: 0 0 85vw; }

    .premium-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-slider {
        min-height: 800px;
    }

    .slide-image-wrapper {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 360px;
        max-height: none;
    }

    .slide-image-wrapper img {
        object-fit: contain;   /* 🔥 THIS FIXES CUT */
        background: #F8F9FA;
    }

    .slider-arrows {
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .premium-card-img { height: 260px !important; }
}

/* =========================================
   INFINITE CLIENT LOGO MARQUEE (ULTRA LARGE)
========================================= */
.clients-section {
    background: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.marquee-title {
    text-align: center;
    margin-bottom: 80px;
}

.logo-marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    /* justify-content: flex-start ensures logos sit close to each other */
    justify-content: flex-start; 
    align-items: center;
    /* Controls the gap between individual logos */
    gap: 35px; 
    min-width: 100%;
    animation: scroll-left 30s linear infinite;
}

.logo-marquee:hover .marquee-content {
    animation-play-state: paused;
}

.client-logo-item {
    /* Fixed width to keep them close together */
    width: 210px; 
    height: 160px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-framer);
    flex-shrink: 0;
}

.client-logo-item img {
    /* Forced Scaling: We use scale(1.4) to blow up the logo regardless of its internal padding */
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.5); 
    filter: none;
    mix-blend-mode: multiply; /* Helps blend with white background if logo has slight off-white edges */
}

.client-logo-item:hover img {
    transform: scale(1.6);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    /* Ensure there is no jump at the end of the loop */
    to { transform: translateX(calc(-100% - 20px)); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .client-logo-item { width: 140px; height: 100px; }
    .client-logo-item img { transform: scale(1.2); }
    .marquee-content { gap: 10px; }
}


/* =========================================
   NEW PROGRESSION FEED DESIGN SYSTEM
========================================= */

/* --- Gallery Grid & Cards --- */
.gallery-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s var(--ease-framer), box-shadow 0.3s var(--ease-framer);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.gallery-card-img {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img img {
    transform: scale(1.05);
}

/* --- Status Badges (On Grid) --- */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.status-done { background: #27ae60; }
.status-progress { background: var(--primary); }

.gallery-card-content {
    padding: 1.8rem;
}

.client-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* --- Redesigned Progression Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.98);
    display: none; /* Controlled by JS */
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 30px;
    backdrop-filter: blur(12px);
}

.progression-modal-box {
    background: var(--white);
    width: 100%;
    max-width: 1300px;
    height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

.modal-progression-layout {
    display: grid;
    grid-template-columns: 380px 1fr; /* Fixed sidebar, fluid feed */
    height: 100%;
    width: 100%;
}

/* --- Modal Sidebar (Fixed Content) --- */
.project-header-sidebar {
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fcfcfb;
    border-right: 1px solid rgba(0,0,0,0.06);
}

.project-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 850;
}

.installation-log-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.status-tag {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.log-date {
    font-weight: 700;
    color: var(--accent);
    opacity: 0.6;
}

.project-summary-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--accent);
}

/* --- Modal Main Feed (Scrollable Timeline) --- */
.project-progression-feed {
    padding: 4rem 3rem;
    overflow-y: auto;
    background: var(--white);
}

.timeline-feed-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px; /* Space for the vertical line */
}

.timeline-feed-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(126, 168, 200, 0.2); /* var(--primary) with opacity */
}

.progression-entry {
    margin-bottom: 4rem;
    position: relative;
}

.entry-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.entry-dot {
    position: absolute;
    left: -40px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.entry-date {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: #fdfbf7;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.03);
    align-items: center;
}

.entry-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

/* --- Modal Close Button --- */
.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 100;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* --- Responsive Layouts --- */
@media (max-width: 1100px) {
    .modal-progression-layout {
        grid-template-columns: 1fr;
    }
    .project-header-sidebar {
        padding: 2.5rem;
        height: auto;
    }
    .modal-overlay {
        padding: 15px;
    }
    .progression-modal-box {
        height: 95vh;
    }
}

@media (max-width: 768px) {
    .entry-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .project-progression-feed {
        padding: 3rem 1.5rem;
    }
    .timeline-feed-wrapper {
        padding-left: 30px;
    }
    .entry-dot {
        left: -30px;
    }
}