/* Aggrow Farmers Development Organisation - Enhanced Stylesheet */

:root {
    --primary-green: #2E7D32;
    --secondary-green: #4CAF50;
    --accent-green: #81C784;
    --light-green: #E8F5E8;
    --dark-green: #1B5E20;
    --gold: #FFB300;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-green);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Header with 100% zoom optimization */
.site-header {
    background: rgba(30, 125, 50, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    background: rgba(30, 125, 50, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after {
    width: 80%;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Fixed Dropdown System */
.dropdown {
    position: relative;
}

.dropdown.active .dropdown-menu {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDown 0.3s ease;
}

.dropdown-menu {
    display: none !important; /* Force hide by default */
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: var(--dark-gray) !important;
    padding: 0.75rem 1.25rem;
    display: block;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--light-green);
    color: var(--primary-green) !important;
    transform: none;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .sub-menu {
    display: none !important; /* Force hide by default */
    position: absolute;
    top: 0;
    right: 100%;
    background: var(--white);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    margin-right: 0.5rem;
    z-index: 1001;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.dropdown-submenu.active .sub-menu {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-submenu:hover .sub-menu {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
}

#langSwitch {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#langSwitch:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
}

/* Enhanced Hero Section with Video Background */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(30, 125, 50, 0.4) 0%,
        rgba(76, 175, 80, 0.3) 50%,
        rgba(129, 199, 132, 0.2) 100%
    );
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: floatLeaf 6s ease-in-out infinite;
}

@keyframes floatLeaf {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 0.8; 
    }
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 179, 0, 0.1);
    color: var(--gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 179, 0, 0.3);
    backdrop-filter: blur(50px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container and Section Improvements */
.section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--light-green);
    color: var(--primary-green);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.alt-bg {
    background: var(--light-gray);
}

/* Statistics Counter */
.stats-section {
    background: var(--gradient);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}
.content-grid {
    display: block; /* Ensures single column */
    width: 100%;
}

.content-text {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}
/* Vision & Mission Grid */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

.vision-card, .mission-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    max-width: 500px;
    width: 100%;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow-hover);
}

.vm-icon {
    font-size: 2.5rem;
    color: var(--secondary-green);
    margin-bottom: 1.5rem;
}

.vision-card h3, .mission-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Enhanced Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center; /* This centers the last row if not full */
    margin-top: 3rem;
}
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-green);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Enhanced Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
@media (min-width: 901px) {
  .partners-grid > .partner-card:last-child:nth-child(4) {
    grid-column: 2 / 3;
  }
}
.partner-card {
    height: 300px;
    perspective: 1000px;
}

.partner-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.partner-card:hover .partner-card-inner {
    transform: rotateY(180deg);
}

.partner-card-front,
.partner-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.partner-card-front {
    background: var(--white);
}

.partner-card-back {
    background: var(--gradient);
    color: var(--white);
    transform: rotateY(180deg);
    flex-direction: column;
    text-align: center;
}

.partner-card-front img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.partner-card:hover .partner-card-front img {
    filter: grayscale(0%);
}

.partner-card-back h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Enhanced Board Section with Better Image Handling */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
    align-items: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;

}

.board-card {
    height: 400px;
    perspective: 1000px;
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
    transition: transform 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.board-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.board-card:hover .board-card-inner {
    transform: rotateY(180deg);
}

.board-card-front,
.board-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    overflow: hidden;
}

.board-card-front {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.board-image-container {
    width: 100%;
    height: 500px;         /* Set a fixed height for consistency */
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: stretch;
}

.board-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
    display: block;
}

.board-card:hover .board-photo {
    transform: scale(1.05);
}

.board-info {
    padding: 1.5rem;
    text-align: center;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.board-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.3rem;
}

.board-info p {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.board-card-back {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.board-card-back h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.board-card-back p {
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Enhanced Gallery */
.gallery-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 1rem;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-track img {
    height: 250px;
    width: auto;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.carousel-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Enhanced Testimonials */
.testimonials-section {
    padding: 5rem 0;
    background: var(--white);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px var(--shadow);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 2rem;
    font-size: 5rem;
    color: var(--accent-green);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--shadow-hover);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.95rem;
}

/* Enhanced Impact Metrics */
.impact-metrics {
    padding: 5rem 0;
    background: var(--light-green);
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 30px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.metric:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow-hover);
}

.metric h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-green);
    margin-bottom: 0.5rem;
}

.metric p {
    color: var(--medium-gray);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.compliance-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.compliance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.compliance-icon {
    font-size: 2.2rem;
    color: var(--secondary-green);
    margin-bottom: 1rem;
}

.compliance-item h4 {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

/* Future Content */
.future-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--medium-gray);
}

/* Enhanced CTA Section */
.join-cta {
    padding: 5rem 0;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.join-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.join-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Enhanced Popup */
.join-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-green);
}

.join-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.join-options button {
    flex: 1;
    padding: 1rem;
    background: var(--light-green);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-options button:hover,
.join-options button.active {
    background: var(--primary-green);
    color: var(--white);
}

.popup-content input, 
.popup-content textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.popup-content input:focus,
.popup-content textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
}

.popup-content button[type="submit"] {
    width: 100%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-content button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-green);
}

.hidden {
    display: none;
}

/* Enhanced Contact Section */

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}
.contact-section p1 {
    font-size: 1.1rem;
    color: wheat;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-top: 0.2rem;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0;
    opacity: 0.9;
}

.contact-details a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--gold);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

/* Enhanced Footer */
.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

/* Mobile Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .main-nav a {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .main-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-green);
        flex-direction: column;
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        display: none;
    }

    .main-nav ul.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 0;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    #langSwitch {
        margin-top: 1rem;
        width: 100%;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .services-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .board-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .popup-content {
        padding: 2rem;
        margin: 1rem;
    }

    .join-options {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats-grid,
    .metrics-container {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .carousel-track img {
        height: 180px;
    }

    .vision-card, .mission-card {
        padding: 2rem;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* Print styles */
@media print {
    .site-header,
    .hamburger,
    .join-popup,
    .loading {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #000000;
        --secondary-green: #333333;
        --medium-gray: #000000;
        --light-gray: #f0f0f0;
        --shadow: rgba(0, 0, 0, 0.5);
    }
}