 :root {
            --primary-dark: #081c15;
            --accent-gold: #b08d57;
            --agri-green: #2d6a4f;
            --soft-grey: #f4f7f6;
            --text-main: #333;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* --- Global Body Styles (Restored Fonts) --- */
        html,
        body {
            width: 100%;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            position: relative;
            font-family: 'Sora', sans-serif;
            /* RESTORED THIS */
            color: var(--text-main);
            line-height: 1.8;
            background: #fff;
        }

        h1,
        h2,
        h3 {
            font-family: 'Playfair Display', serif;
            color: var(--primary-dark);
        }

        /* --- AOS Overflow Fix --- */
        [data-aos] {
            pointer-events: none;
            max-width: 100%;
        }

        .aos-animate {
            pointer-events: auto;
        }

        /* --- Navigation --- */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 8%;
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
        }

        .logo {
            font-weight: 900;
            font-size: 1.4rem;
            letter-spacing: -0.5px;
            text-transform: uppercase;
        }

        .logo span {
            color: var(--accent-gold);
        }

        .nav-links a {
            margin-left: 30px;
            text-decoration: none;
            color: var(--primary-dark);
            font-size: 0.85rem;
            font-weight: 600;
            transition: 0.3s;
        }

        /* --- Hero --- */
        /* --- Hero --- */
        .hero {
            min-height: 90vh;
            /* Changed from height to min-height */
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
            background-color: #081c15;
            /* Hardcoded fallback if image fails */
        }



        /* This ensures the content is forced to the front */
        .hero-content {
            position: relative;
            z-index: 10;
        }

        /* Ensure the background stays at the bottom */
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            /* Keep this lower than hero-content */
            background: linear-gradient(rgba(8, 28, 21, 0.7), rgba(8, 28, 21, 0.85)),
                url('./assets/bg1.png') center/cover no-repeat;
            animation: kenburns 20s infinite alternate linear;
        }

        /* Cleanup: You have z-index: 10 inside .hero h1 and .hero p in your code. 
   Those only work if the element has position: relative. 
   Adding it to the parent .hero-content is much cleaner. */

        /* DELETE the duplicate @keyframes kenburns block in your code and keep just this one */
        @keyframes kenburns {
            from {
                transform: scale(1);
            }

            to {
                transform: scale(1.1);
            }
        }


        .hero h1 {
            font-size: clamp(2.2rem, 6vw, 4.5rem);
            color: white;
            margin-bottom: 20px;
            z-index: 10;

        }

        .hero p {
            font-size: clamp(0.9rem, 2vw, 1.2rem);
            text-transform: uppercase;
            letter-spacing: 4px;
            color: var(--accent-gold);
            z-index: 10;

        }

        /* --- Stats --- */
        .stats-bar {
            background: var(--primary-dark);
            color: white;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            padding: 60px 10%;
            text-align: center;
            gap: 30px;
        }

        .stat-item h2 {
            font-size: 3rem;
            color: var(--accent-gold);
        }

        /* --- Section Styling --- */
        section {
            padding: 90px 10%;
            position: relative;
        }

        .section-tag {
            color: var(--agri-green);
            font-weight: 700;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 20px;
            display: block;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            margin-bottom: 40px;
        }

        .content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .image-stack img {
            width: 100%;
            max-height: 500px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 20px 20px 0 var(--accent-gold);
        }

        /* --- Services --- */
        .services-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .service-box {
            background: #fff;
            padding: 40px;
            border: 1px solid #f0f0f0;
            transition: 0.5s ease;
        }

        .service-box:hover {
            background: var(--primary-dark);
            color: white;
            transform: translateY(-10px);
        }

        .service-box i {
            font-size: 2.5rem;
            color: var(--accent-gold);
            margin-bottom: 25px;
            display: block;
        }

        /* --- Leadership --- */
        .leadership-item {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 50px;
            margin-bottom: 60px;
            background: var(--soft-grey);
            padding: 40px;
            border-radius: 12px;
        }

        .leader-img {
            height: 400px;
            border-radius: 8px;
            overflow: hidden;
        }

        .leader-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(20%);
        }

        /* --- Animation Section --- */
        .animated-bg-section {
            background: var(--primary-dark);
            color: white;
            overflow: hidden;
            position: relative;
            padding: 100px 10%;
        }

        .moving-circles {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 1;
            opacity: 0.1;
        }

        .circle {
            position: absolute;
            background: var(--accent-gold);
            border-radius: 50%;
            animation: float 10s infinite alternate;
        }

        @keyframes float {
            from {
                transform: translate(0, 0);
            }

            to {
                transform: translate(80px, 40px);
            }
        }

        /* --- Contact --- */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
        }

        input,
        textarea {
            width: 100%;
            padding: 18px;
            border: 1px solid #eee;
            margin-bottom: 20px;
            font-family: 'Sora', sans-serif;
        }

        .submit-btn {
            background: var(--primary-dark);
            color: white;
            padding: 20px 40px;
            border: none;
            font-weight: 700;
            cursor: pointer;
            transition: 0.3s;
            display: inline-block;
        }

        .submit-btn:hover {
            background: var(--accent-gold);
        }

        .profile-link {
            color: var(--accent-gold);
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding-bottom: 5px;
            border-bottom: 2px solid var(--accent-gold);
            transition: all 0.3s ease;
            display: inline-block;
        }

        .profile-link:hover {
            color: white;
            border-bottom-color: white;
            transform: translateX(5px);
        }

        /* --- Professional Board Section --- */
.team-section {
    padding: 120px 10%;
    background-color: #fdfdfd; /* Off-white for a premium feel */
}

.leadership-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px; /* Large spacing between directors */
}

.leader-card {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Alternate the layout for every second director */
.leader-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* Image Container */
.leader-image-box {
    flex: 0 0 45%;
    height: 550px;
    position: relative;
    z-index: 1;
}

.leader-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 30px 30px 0px -10px var(--primary-dark); /* Subtle offset background */
}

/* Bio Content Box */
.leader-content {
    flex: 0 0 60%;
    background: white;
    padding: 60px;
    margin-left: -10%; /* Overlap the image */
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent-gold);
    position: relative;
}

.leader-card:nth-child(even) .leader-content {
    margin-left: 0;
    margin-right: -10%; /* Overlap for even rows */
}

/* Typography Refinement */
.leader-rank {
    display: block;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.leader-content h3 {
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.leader-edu {
    font-size: 0.95rem;
    color: var(--agri-green);
    font-weight: 600;
    margin-bottom: 25px;
    font-style: italic;
}

.leader-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

/* Qualifications Grid */
.qual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.qual-tag {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
}

.qual-tag i {
    color: var(--accent-gold);
    margin-right: 10px;
    font-size: 0.7rem;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .leader-card, .leader-card:nth-child(even) {
        flex-direction: column;
    }
    .leader-image-box, .leader-content {
        flex: 0 0 100%;
        width: 100%;
    }
    .leader-content {
        margin: -50px 0 0 0 !important;
        padding: 40px 25px;
        width: 90%;
    }
    .leader-image-box {
        height: 400px;
    }
    .qual-grid {
        grid-template-columns: 1fr;
    }
}
@media print {
    * { 
        -webkit-font-smoothing: antialiased; 
        -moz-osx-font-smoothing: grayscale; 
        text-rendering: optimizeLegibility !important; 
    }

    body > *:not(#print-profile) { display: none !important; }
    #print-profile { display: block !important; width: 100% !important; background: white !important; }

    @page { size: A4; margin: 0; }

    .print-page {
        width: 210mm;
        min-height: 297mm;
        height: auto;
        page-break-after: always;
        position: relative;
        overflow: visible !important;
        box-sizing: border-box;
        backface-visibility: hidden;    }

    /* --- Cover Styling --- */
.cover-page-style { 
        background: #081c15 !important; 
        color: white !important;
        height: 297mm !important; /* Force exact A4 height for the cover specifically */
        position: relative;
    }    
    .cover-design-stripe {
        position: absolute; 
        top: 0; 
        right: 0; 
        width: 40%; 
        height: 100%;
        background: rgba(176, 141, 87, 0.1) !important;
        z-index: 1;
    }
    

   .cover-inner-content { 
        padding: 80pt 60pt; 
        height: 100%; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        position: relative;
        z-index: 10; 
    }

    .main-company-title { 
        font-family: 'Playfair Display', serif; 
        font-size: 44pt; 
        line-height: 1.1; 
        margin: 0; 
        color: #b08d57 !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .gold-text { color: #b08d57 !important; }
    .design-separator { width: 80pt; height: 4pt; background: #b08d57 !important; margin: 30pt 0; }
    .cover-footer-info { 
        position: absolute; 
        bottom: 40pt; /* Adjusted from 0 to provide a small professional margin at the edge */
        left: 60pt; 
        right: 60pt; 
        display: flex; 
        justify-content: space-between; 
        border-top: 1px solid #3d564d !important;
        padding-top: 20pt; 
        font-size: 9pt; 
        z-index: 20;
    }
    /* --- Content Styling --- */
    .content-padding { padding: 50pt 60pt; }
    .section-title { color: #081c15; border-left: 5pt solid #b08d57; padding-left: 15pt; font-size: 22pt; margin-bottom: 20pt; }
    .director-name { color: #2d6a4f; font-size: 15pt; margin: 25pt 0 10pt 0; border-bottom: 1px solid #eee; padding-bottom: 5pt; }
    .body-text { font-size: 10.5pt; line-height: 1.6; text-align: justify; color: #333; margin-bottom: 12pt; }
    .verbatim-list { padding-left: 20pt; margin-bottom: 15pt; }
    .verbatim-list li { font-size: 10.5pt; margin-bottom: 8pt; color: #333; list-style-type: disc; }
    .vision-mission-box { background: #f4f7f6 !important; padding: 20pt; border-radius: 5pt; margin-bottom: 20pt; font-size: 10.5pt; line-height: 1.5; }
    .services-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}


/* --- Mobile Responsive Overrides --- */

@media (max-width: 768px) {
    /* 1. Global Padding & Containers */
    body {
        overflow-x: hidden;
    }

    /* 2. Navigation */
    nav {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* 3. Hero Section */
    .hero {
        padding: 60px 20px;
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem !important; /* Smaller size for mobile */
        line-height: 1.2;
    }

    /* 4. Stats Bar */
    .stats-bar {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    /* 5. Grids (About, Impact, Contact) */
    .content-grid, 
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        padding: 40px 20px !important;
    }

    /* 6. Services Section */
    .services-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 20px;
    }

    /* 7. Leadership Section */
    .leadership-container {
        padding: 0 20px;
    }
    .leader-card {
        flex-direction: column !important;
        text-align: center;
    }
    .leader-image-box {
        margin: 0 auto 20px;
        width: 150px;
        height: 150px;
    }

    /* 8. Contact Form */
    form {
        width: 100% !important;
        margin-top: 30px;
    }
    input, textarea {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 9. Footer & Download Section */
    #download-profile, footer {
        padding: 60px 5% !important;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
}