:root {
    --primary-green: #1b5e20;
    --secondary-amber: #ff6f00;
    --accent-red: #b71c1c;
    --light-green: #e8f5e9;
    --medium-green: #4caf50;
    --dark-green: #2e7d32;
    --light-amber: #fff3e0;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Modern Navigation with Animation */
.navbar {
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green)) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(27, 94, 32, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: white !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section with Gradient and Animation */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 50%, var(--medium-green) 100%);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1000 1000" opacity="0.05"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 4px solid var(--secondary-amber);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.hero-section h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

/* Section Styling with Animation */
.section-title {
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-green);
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-amber), var(--accent-red));
    border-radius: 2px;
    transition: width 0.6s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* Enhanced Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    transform: translateX(-50px);
}

.animate-right {
    transform: translateX(50px);
}

.animate-scale {
    transform: scale(0.9);
}

.animate-scale.animated {
    transform: scale(1);
}

.animate-rotate {
    transform: rotate(-5deg) scale(0.9);
}

.animate-rotate.animated {
    transform: rotate(0deg) scale(1);
}

/* Sector Cards with Enhanced Animations */
.sector-card {
    background: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    transform: translateY(0);
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-amber));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.sector-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.sector-card:hover::before {
    opacity: 0.1;
}

.sector-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
    z-index: 2;
}

.sector-card:hover .sector-image {
    transform: scale(1.1);
}

.sector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(27, 94, 32, 0.1), rgba(27, 94, 32, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 2;
}

.sector-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.sector-card:hover .sector-title {
    transform: translateY(0);
}

.sector-content {
    padding: 25px;
    position: relative;
    z-index: 2;
    background: white;
}

.sector-content p {
    margin-bottom: 0;
    color: #666;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.sector-card:hover .sector-content p {
    transform: translateY(0);
    opacity: 1;
}

/* Board Members with Enhanced Animations */
.board-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--medium-green);
    text-align: center;
    height: 100%;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.board-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 111, 0, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.board-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.board-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.board-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--secondary-amber);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.board-card:hover .board-image {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-green);
}

.board-card h5 {
    color: var(--primary-green);
    margin-bottom: 8px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.board-card:hover h5 {
    color: var(--secondary-amber);
}

.board-position {
    color: var(--secondary-amber);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.board-experience {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.85rem;
    min-height: 40px;
    position: relative;
    z-index: 2;
}

.board-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.board-card:hover p {
    transform: translateY(0);
    opacity: 1;
}

/* Stats Section with Counting Animation */
.stats-section {
    background: linear-gradient(135deg, var(--light-green), white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::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" opacity="0.03"><circle cx="50" cy="50" r="40" fill="%231b5e20"/></svg>');
    background-size: 100px 100px;
    animation: float 30s linear infinite;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--dark-color);
    font-weight: 600;
}

/* Buttons with Enhanced Animations */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--medium-green));
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(27, 94, 32, 0.4);
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
}

.btn-amber {
    background: linear-gradient(135deg, var(--secondary-amber), #ff8f00);
    border: none;
    color: white;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-amber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-amber:hover::before {
    left: 100%;
}

.btn-amber:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.4);
    background: linear-gradient(135deg, #ff8f00, var(--secondary-amber));
    color: white;
}

/* Footer with Animation */
footer {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::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" opacity="0.05"><polygon points="50,0 100,50 50,100 0,50" fill="white"/></svg>');
    background-size: 80px 80px;
    animation: float 40s linear infinite reverse;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '▶';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-amber);
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-amber);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a i {
    position: relative;
    z-index: 1;
}

.social-icons a:hover {
    transform: translateY(-3px) rotate(5deg);
}

/* Contact Form with Animations */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.form-control {
    padding: 12px 15px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.form-control:focus {
    border-color: var(--secondary-amber);
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 0, 0.25);
    transform: translateX(5px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-amber);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.4);
}

/* Enhanced Loading Animation with Company Colors */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-spinner.hidden {
    opacity: 0;
    visibility: hidden;
}

.company-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 4px solid var(--secondary-amber);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: logoPulse 2s infinite;
}

@keyframes logoPulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.company-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress {
    height: 100%;
    background: var(--secondary-amber);
    border-radius: 2px;
    width: 0%;
    animation: loading 2s ease-in-out;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    
    .sector-image {
        height: 180px;
    }
    
    .board-image {
        width: 100px;
        height: 100px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .company-logo {
        width: 100px;
        height: 100px;
    }
}
