/* ==========================================================================
   CSS VARIABLES & GLOBAL SETTINGS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #094e51; 
    --secondary-color: #6eb721; 
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f9fbf9;
    --white: #ffffff;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s ease-out;

    --font-heading: 'Poppins', 'Playfair Display', serif; 
    --font-body: 'Poppins', sans-serif;
}

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

body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; background-color: var(--white); overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary-color); }
p { margin-bottom: 1rem; font-size: 1.1rem; color: #555; }

.hero-subheading-text {
    color: var(--white);
    font-size: 1.25rem; /* Make it slightly larger */
    font-weight: 300;   /* Make it a sleeker, thinner font */
    margin-bottom: 2.5rem; /* Add more space before the button */
    line-height: 1.6;
    max-width: 90%; /* Prevents text from stretching too far wide */
}

a { text-decoration: none; transition: all var(--transition-fast); }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.animate-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.show { opacity: 1; transform: translate(0, 0); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block; padding: 0.8rem 2rem; border-radius: 50px;
    font-weight: 600; text-align: center; cursor: pointer;
    transition: all var(--transition-fast); border: 2px solid transparent; margin-top: 1rem;
    font-family: var(--font-body);
}
.btn-primary { background-color: var(--secondary-color); color: var(--white); }
.btn-primary:hover { background-color: #5a991b; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(110, 183, 33, 0.4); }
.btn-secondary { background-color: var(--primary-color); color: var(--white); }
.btn-secondary:hover { background-color: #06383a; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(9, 78, 81, 0.4); }
.btn-outline { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }


/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar { position: fixed; top: 0; width: 100%; height: 80px; z-index: 1000; background: transparent; transition: all var(--transition-fast); }
.navbar.scrolled, .navbar.solid-bg { background-color: var(--white); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); }
.nav-container { width: 90%; max-width: 1200px; margin: 0 auto; height: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; height: 100%; text-decoration: none; }
.logo img { height: 45px; width: auto; display: block; margin: 0; padding: 0; transition: all var(--transition-fast); }
.navbar:not(.scrolled):not(.solid-bg) .logo img { filter: brightness(0) invert(1); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-link { color: var(--white); font-weight: 600; position: relative; transition: color 0.3s ease; }
.navbar.scrolled .nav-link, .navbar.solid-bg .nav-link { color: var(--text-dark); }
.nav-link:hover, .nav-link.active { color: var(--secondary-color) !important; }

/* DESKTOP ONLY: 50% Underline effect (Hover Only) */
@media (min-width: 993px) {
    .nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--secondary-color); transition: width 0.3s ease; border-radius: 60px; }
    .nav-link:hover::after { width: 50%; } /* .active::after removed so it stays hidden */
}

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--white); transition: all 0.3s ease; }
.navbar.scrolled .hamburger .bar, .navbar.solid-bg .hamburger .bar { background-color: var(--primary-color); }

/* ==========================================================================
   HERO SECTION (DYNAMIC LAYOUTS WITH KEYFRAMES)
   ========================================================================== */
.hero { 
    height: 100vh; 
    min-height: 600px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.hero-overlay { 
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
    /*background: linear-gradient(90deg, rgba(9,78,81,0.8) 0%, rgba(9,78,81,0.4) 100%);*/
    z-index: 1; 
}

.hero-container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 2; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    width: 100%;
}

.hero-content h1 { 
    font-size: 4rem; 
    color: var(--white); 
    margin-bottom: 1.5rem; 
}

/* --------------------------------------
   LAYOUT 1: STANDARD LEFT
   -------------------------------------- */
.layout-left { 
    max-width: 700px; 
    text-align: left; 
    opacity: 0; 
    /* Increased to 1.5s with a buttery-smooth gliding easing curve */
    animation: slideInLeft 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInLeft {
    /* Increased distance from -40px to -60px for a longer glide */
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------
   LAYOUT 2: CENTERED FLOATING
   -------------------------------------- */
.layout-center-float {
    max-width: 700px;
    margin: 0 auto; 
    margin-top: 15vh; 
    text-align: center;
    opacity: 0; 
    
    /* 
       1. Slide up takes 1.5s.
       2. Float waits exactly 1.5s to start, blending perfectly.
       3. Float slowed down from 5s to 6s for a more relaxed, premium hover.
    */
    animation: 
        slideUpCenter 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        floatCenter 6s ease-in-out infinite 1.5s;
}

.layout-center-float p {
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideUpCenter {
    /* Increased distance from 40px to 60px */
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatCenter {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); } 
    100% { transform: translateY(0px); }
}
/* ========================================================================== */

/* ==========================================================================
   PAGE HEADERS & SECTIONS
   ========================================================================== */
.page-header { padding: 150px 0 80px 0; background-color: var(--primary-color); color: var(--white); text-align: center; }
.page-header h1 { color: var(--white); font-size: 3.5rem; margin-bottom: 1rem; }
.page-header p { color: #d1dfdf; font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.section-title { font-size: 2.8rem; margin-bottom: 1.5rem; }
.section-subtitle { max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.2rem; }

.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.image-wrapper img { width: 100%; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); object-fit: cover; transition: transform 0.5s ease; }
.image-wrapper:hover img { transform: scale(1.02); }

.news-article { scroll-margin-top: 120px; padding-bottom: 4rem; border-bottom: 1px solid #eaeaea; margin-bottom: 4rem; }
.news-article:last-child { border-bottom: none; margin-bottom: 0; }

.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.partner-logo { background: var(--white); padding: 2.5rem 1rem; border-radius: 12px; display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all var(--transition-fast); }
.partner-logo img { max-width: 100%; max-height: 90px; opacity: 0.5; filter: grayscale(100%); transition: all var(--transition-fast); }
.partner-logo:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(110, 183, 33, 0.15); }
.partner-logo:hover img { opacity: 1; filter: grayscale(0%); }

/* ==========================================================================
   VALUES SECTION (ABOUT PAGE)
   ========================================================================== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; }

.value-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-align: center;
}
.value-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(9, 78, 81, 0.1); }

/* The Circular Background */
.value-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem auto;
    background-color: rgba(110, 183, 33, 0.1); /* Light green tint */
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    transition: all var(--transition-fast);
}

/* 
   THE MAGIC IMAGE FILTER FIX:
   Instead of changing the SVG code, we apply a mathematical color filter 
   over the img tag to turn your black SVG into your Secondary Green (#6eb721).
*/
.value-icon img { 
    width: 38px; 
    height: 38px; 
    transition: all var(--transition-fast);
    filter: invert(66%) sepia(65%) saturate(443%) hue-rotate(43deg) brightness(92%) contrast(87%);
}

/* Invert circle background when hovering over the card */
.value-card:hover .value-icon { 
    background-color: var(--secondary-color); 
}

/* 
   Turn the img Pure White on hover!
*/
.value-card:hover .value-icon img { 
    filter: brightness(0) invert(1); 
}

.value-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }

/* ==========================================================================
   TEAM SECTION (ABOUT PAGE)
   ========================================================================== */
.team-container { display: flex; flex-direction: column; gap: 6rem; margin-top: 4rem; }

.team-member.split-layout { align-items: center; }

/* MAGIC CSS: Automatically pushes the image to the Right for every 2nd, 4th, 6th person */
.team-member:nth-child(even) .team-image { order: 2; }
.team-member:nth-child(even) .team-bio { order: 1; }

/* Automatically pushes the image to the Right for every 2nd, 4th, 6th person */
.team-member:nth-child(even) .team-image { order: 2; }
.team-member:nth-child(even) .team-bio { order: 1; }

/* NEW: Centers the image container perfectly inside its half of the grid */
.team-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.team-image img {
    width: 100%;
    max-width: 420px; /* Prevents the portrait from getting too huge on big screens */
    aspect-ratio: 5/5; 
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); /* Adds the soft shadow back */
}

.team-name { font-size: 2.2rem; margin-bottom: 0.2rem; }

.team-title {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.team-bio p { font-size: 1.1rem; color: #555; }

/* ==========================================================================
   CAROUSEL / SLIDESHOW (Seamless Sliding)
   ========================================================================== */
.carousel-wrapper { 
    position: relative; 
    max-width: 900px; 
    margin: 0 auto; 
    border-radius: 16px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    background: var(--white); 
    overflow: hidden; 
}

/* The Track physically holds all slides side-by-side */
.carousel-track { 
    display: flex; 
    width: 100%;
    
    /* 
       SMOOTHNESS UPGRADE:
       Changed from '0.6s' to '1s' for a slower, more deliberate movement.
       Changed to a premium cubic-bezier curve so it glides to a soft stop.
    */
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); 
}

/* Each slide is exactly 100% of the wrapper's width */
.carousel-slide { 
    min-width: 100%; 
    display: flex; 
    flex-direction: column; 
}

.carousel-image { width: 100%; height: 400px; object-fit: cover; }
.carousel-content { padding: 2.5rem; text-align: left; }
.carousel-content h3 { font-size: 1.8rem; margin-bottom: 1rem; }

/* Buttons */
.carousel-btn { 
    position: absolute; top: 40%; transform: translateY(-50%); 
    background: rgba(255, 255, 255, 0.9); border: none; 
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; 
    color: var(--primary-color); cursor: pointer; z-index: 10; 
    transition: all 0.3s ease; display: flex; justify-content: center; 
    align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
.carousel-btn:hover { background: var(--secondary-color); color: var(--white); transform: translateY(-50%) scale(1.05); }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* Dots */
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 1.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background-color: #ccc; cursor: pointer; transition: 0.3s; }
.dot.active { background-color: var(--secondary-color); transform: scale(1.3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background-color: var(--primary-color); color: var(--text-light); padding: 5rem 0 0; }

/* Expanded Footer Width to prevent text wrapping */
.footer .container { max-width: 1400px; width: 95%; }

.footer h3, .footer h4 { color: var(--white); margin-bottom: 1.5rem; font-family: var(--font-heading); }
.footer p, .contact-info li { color: #d1dfdf; font-size: 0.95rem; }

/* Flexbox Layout for exact spacing control */
.footer-grid { 
    display: flex; 
    justify-content: space-between; 
    align-items: stretch;
    margin-bottom: 4rem; 
    gap: 0; /* Gap is managed by exact padding */
}

/* Brand Column (Left) */
.brand-col { 
    flex: 1.1; /* Takes slightly more room so text fits perfectly */
    text-align: left; 
    border-right: 1px solid rgba(255, 255, 255, 0.15); 
    padding-right: 1rem; /* Exact padding pushes the line to the center */
}

/* Middle & Right Columns */
.quick-links-col { flex: 1; padding-left: 4rem; }
.contact-col { flex: 2; padding-left: 2rem; }

/* Footer Logo strict sizing & left alignment */
.logo-2 { display: block; margin: 3rem 6rem 0 6rem; }
.logo-2 img { height: 60px; width: auto; display: block; margin: 0; }

.brand-tagline { max-width: 300px; margin: 1rem 3rem 0 3rem; font-size: 0.95rem; color: #d1dfdf; line-height: 1.6; }

/* Quick Links Fixes */
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 1rem; }
.footer ul li a { color: #d1dfdf; font-size: 0.95rem; display: inline-block; transition: all 0.3s ease; }
.footer ul li a:hover { color: var(--secondary-color); transform: translateX(6px); }

/* Social Icons (Updated for Font Awesome) */
.social-icons { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* The clickable circle background */
.social-icon { 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    width: 40px; 
    height: 40px; 
    background-color: rgba(255, 255, 255, 0.05); 
    border-radius: 50%; 
    text-decoration: none;
    transition: all var(--transition-fast); 
}

/* The Font Awesome icon inside the circle */
.social-icon i { 
    font-size: 1.2rem; /* Controls the size of the icon */
    color: var(--white); /* Font Awesome uses color, not fill */
    transition: color var(--transition-fast); 
}

/* Hover effects */
.social-icon:hover { 
    background-color: var(--secondary-color); 
    transform: translateY(-3px); 
}
.social-icon:hover i { 
    color: var(--white); 
}

.footer-bottom { background-color: #06383a; text-align: center; padding: 1.5rem 0; }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE LAYOUTS)
   ========================================================================== */

/* TABLET MODE */
@media (max-width: 992px) {
    .split-layout { gap: 2rem; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: 1fr 1fr; }
    
    .footer-grid { flex-wrap: wrap; justify-content: flex-start; gap: 3rem; }
    .brand-col { flex: 0 0 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-right: 0; padding-bottom: 2rem; }
    .quick-links-col { flex: 1; padding-left: 0; }
    .contact-col { flex: 1; padding-left: 0; }
    
    /* Tablet Typography Reductions */
    .hero-content h1 { font-size: 3rem; }
    .page-header h1 { font-size: 3rem; }
    .section-title { font-size: 2.4rem; }
    .carousel-image { height: 300px; }
}

/* MOBILE MODE */
@media (max-width: 768px) {
    
    /* ---------------------------------------------------
       MOBILE TYPOGRAPHY & SPACING FIXES 
       (Shrinks giant desktop text/gaps to fit phones properly)
       --------------------------------------------------- */
    .section { padding: 3.5rem 0; } /* Reduces huge desktop padding */
    .page-header { padding: 120px 0 40px 0; } 
    
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 1rem; }

    /* Custom CSS for the JavaScript Subheading */
    .hero-subheading-text {
    color: var(--white);
    font-size: 1.1rem; /* Make it slightly larger */
    font-weight: 300;   /* Make it a sleeker, thinner font */
    margin-bottom: 2.5rem; /* Add more space before the button */
    line-height: 1.6;
    max-width: 90%; /* Prevents text from stretching too far wide */
}
    .page-header h1 { font-size: 2.4rem; }
    .page-header p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; margin-bottom: 1rem; }
    p, .section-subtitle { font-size: 1rem; }
    
    
    .team-name { font-size: 1.6rem; }
    .value-card { padding: 2rem 1.5rem; } /* Less bulky cards */
    .carousel-content h3 { font-size: 1.4rem; }

    /* ---------------------------------------------------
       LAYOUT & COMPONENT FIXES
       --------------------------------------------------- */
    
    /* Navbar / Hamburger */
    .hamburger { display: flex; }
    .nav-links { 
        position: fixed; top: 80px; left: -100%; flex-direction: column; 
        background-color: var(--white); width: 100%; text-align: center; 
        transition: left 0.4s ease; padding: 2rem 0; gap: 1.5rem; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
    }
    .nav-links.active { left: 0; }
    .nav-link { color: var(--primary-color) !important; font-size: 1.2rem; padding: 0.5rem 1rem; border-radius: 6px; }
    .nav-link:hover, .nav-link.active { color: var(--secondary-color) !important; background-color: transparent; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Grids & Splitting */
    .split-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .reverse-mobile .content-image { grid-row: 1; }
    .reverse-mobile .content-text { grid-row: 2; }
    
    .values-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .team-container { gap: 4rem; }
    
    /* Disables the Zig-Zag on mobile so the image is ALWAYS on top of the text */
    .team-member:nth-child(even) .team-image { order: 1; }
    .team-member:nth-child(even) .team-bio { order: 2; }
    
    .carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .carousel-content { padding: 1.5rem; }

    /* FOOTER MOBILE FIXES */
    .footer-grid { flex-direction: column; gap: 1.5rem; text-align: center; } 
    
    .brand-col { flex: 1; text-align: center; padding-bottom: 1.5rem; }
    .brand-tagline { margin: 1rem auto 0; font-size: 0.9rem; }
    .logo-2 { margin: 0 auto; }
    .logo-2 img { margin: 0 auto; }

    /* Removes empty space from the bottom of ul lists so gaps are perfectly identical */
    .footer-col ul li:last-child { margin-bottom: 0 !important; }
    
    .contact-info { text-align: center; }
    .social-icons { justify-content: center; }
}