/* =========================================
   1. DESIGN SYSTEM VARIABLES
   ========================================= */
:root {
    /* Color Palette - Earthy & Industrial */
    --primary-green: #2E4A3F;   /* Deep Cotton Green */
    --accent-rust: #D26640;     /* Gujarat Terracotta */
    --bg-cream: #F7F3EE;        /* Raw Lint Cream */
    --text-charcoal: #2C2C2C;   /* Spindle Grey */
    --text-muted: #666666;      /* Secondary text */
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 6px;
    
    /* Shadows for "Material" feel */
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* =========================================
   2. GLOBAL RESETS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't affect element width */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    line-height: 1.6; /* Improves readability of technical text */
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   3. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto; /* Centers content horizontally */
    padding: 0 20px; /* Prevents text hitting screen edges on mobile */
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-rust);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #b55230; /* Darker rust */
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 5px 15px rgba(210, 102, 64, 0.4);
}

/* =========================================
   4. NAVIGATION STYLES
   ========================================= */
.main-header {
    background-color: rgba(255, 255, 255, 0.98); /* Nearly opaque white */
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky; /* Sticks to top on scroll */
    top: 0;
    z-index: 1000; /* Ensures it sits above all other content */
    height: 110px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Update the .logo container */
.logo {
    display: flex;
    align-items: center;
    /* Optional: Remove gap since it's just one image now */
    gap: 0; 
}

/* New Rule for the Logo Image */
.logo-img {
    height: 110px; /* Adjust this number to fit your header height */
    width: auto;  /* Keeps the logo from stretching */
    display: block;
}


.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-charcoal);
    position: relative;
}

/* Animated Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-rust);
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Special style for Contact button in nav */
.nav-link.btn-nav {
    padding: 10px 20px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 4px;
}

.nav-link.btn-nav:hover {
    background: var(--accent-rust);
}

.nav-link.btn-nav::after {
    display: none; /* No underline for the button */
}

/* Mobile Hamburger Placeholder Styles */
.hamburger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-green);
    transition: all 0.3s ease-in-out;
}
/* =========================================
   5. HERO SECTION STYLES (With Slow Zoom)
   ========================================= */
.hero-section {
    height: 90vh; 
    /* We REMOVED the background image from here */
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden; /* CRITICAL: Stops the image from spilling out when it zooms */
}

/* 1. The Moving Background Layer */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* UPDATED IMAGE NAME HERE */
    background-image: url('../images/cotton-field.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: 0; /* Puts it at the very back */
    
    /* The Animation: 20 seconds, smooth loop */
    animation: slowZoom 20s infinite alternate; 
}

/* 2. The Dark Overlay (Stays on top of image) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Adjusted opacity slightly for better text contrast */
    background: linear-gradient(rgba(46, 74, 63, 0.7), rgba(46, 74, 63, 0.5)); 
    z-index: 1; /* Sits above the image */
}

/* 3. The Text Content (Stays on top of overlay) */
.hero-content {
    position: relative;
    z-index: 2; /* Sits on top of everything */
    max-width: 800px;
    text-align: left;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* 4. The Animation Logic */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15); /* Zooms in by 15% */
    }
}

/* =========================================
   6. FEATURES GRID STYLES
   ========================================= */
.features-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 40px;
}

.feature-card {
    background: var(--bg-cream);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-rust);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* TIMELINE STYLES */
.timeline-section {
    background-color: var(--bg-cream);
    padding: var(--section-padding);
    text-align: center;
}

.timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

.timeline-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 300px;
    box-shadow: var(--card-shadow);
    position: relative;
    border-top: 4px solid var(--accent-rust); /* Colored top border */
}

.timeline-item.date {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-rust);
    margin-bottom: 10px;
}

/* PRODUCT CATEGORY STYLES */
.product-category {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.product-category.reversed {
    flex-direction: row-reverse; /* Flips image to left */
}

.cat-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    transition: transform 0.3s;
}

.cat-image img:hover {
    transform: scale(1.02);
}

/* TABLE STYLES - CRITICAL FOR DATA */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--white);
    box-shadow: var(--card-shadow);
}

.specs-table th,.specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.specs-table tr:hover {
    background-color: #f9f9f9; /* Highlight row on hover for readability */
}

/* Initial State: Hidden and moved down */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Final State: Visible and in place */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* Responsive Breakpoints */
@media (max-width: 768px) {
   .nav-list {
        position: fixed;
        right: -100%;
        top: 110px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

   .nav-list.active {
        right: 0;
    }

   .hamburger {
        display: block; /* Show hamburger only on mobile */
    }

   .about-split,.product-category,.product-category.reversed {
        flex-direction: column; /* Stack images and text */
    }
}