/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #F8F9FA;
    color: #343a40;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

#hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ken-burns 30s infinite alternate ease-in-out;
}

@keyframes ken-burns {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    100% {
        transform: scale(1) translate(-2%, 2%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    z-index: 2;
}

.hero-content-container {
    position: relative;
    z-index: 3;
}

/* Page Banner Styles */
.page-banner {
    position: relative;
}

.page-banner .shadow-text {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Navigation Link Styles */
.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4ade80;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4ade80;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-outline-custom {
    border: 2px solid #ffffff;
    color: #ffffff;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background-color: #ffffff;
    color: #003817;
}

.btn-primary-custom {
    background-color: #003817;
    color: #ffffff;
    transition: background-color 0.3s;
    border-radius: 9999px;
}

.btn-primary-custom:hover {
    background-color: #005223;
}

/* Sector Card Styles */
.sector-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px -5px rgba(0, 56, 23, 0.15);
}

.sector-card img {
    transition: transform 0.4s ease;
}

.sector-card:hover img {
    transform: scale(1.05);
}

.sector-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

/* Footer Styles */
.footer-dark {
    background-color: #1a2e24;
}

/* --- Header Title Animation --- */
@keyframes title-fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-container h1 span, .hero-title-container p span, .hero-title-container a {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: title-fade-in-up 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title-container h1 span:nth-child(1) { animation-delay: 0.1s; }
.hero-title-container h1 span:nth-child(2) { animation-delay: 0.2s; }
.hero-title-container h1 span:nth-child(3) { animation-delay: 0.3s; }
.hero-title-container h1 span:nth-child(4) { animation-delay: 0.4s; }

.hero-title-container p span {
    display: inline;
}

.hero-title-container p {
    opacity: 0;
    transform: translateY(40px);
    animation: title-fade-in-up 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-delay: 0.6s;
}

.hero-title-container a { animation-delay: 1.1s; }


/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transform: translateY(30px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* --- Mobile Menu Animation (FIXED for initial state) --- */
#mobile-menu {
    background: rgba(0, 56, 23, 0.95);
    backdrop-filter: blur(5px);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    /* Set padding to 0 vertically to ensure it's hidden, but keep horizontal padding */
    padding: 0 1.5rem; /* 1.5rem is equivalent to Tailwind's px-6 */
}

#mobile-menu.is-open {
    max-height: 50vh;
    /* Re-apply vertical padding when open */
    padding: 1rem 1.5rem;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

#mobile-menu a:hover {
    background-color: rgba(40, 167, 69, 0.2);
}

#mobile-menu a:last-child {
    border-bottom: none;
}

/* --- Sticky Header Styles --- */
#main-header {
    background-color: transparent;
    color: white;
}

#main-header.header-scrolled {
    background-color: white;
    color: #343a40;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-header .nav-link {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#main-header.header-scrolled .nav-link {
    color: #343a40;
    text-shadow: none;
}

#main-header.header-scrolled .nav-link.text-green-300 {
    color: #003817 !important;
}

#main-header .fa-bars {
    color: white;
}

#main-header.header-scrolled .fa-bars {
    color: #343a40;
}

/* --- NEW: Gallery Filter Active State --- */
/* This ensures the active button has a distinct style. */
/* The JS now handles adding/removing the Tailwind classes directly, */
/* but this class definition can be a good fallback or for clarity. */
.filter-btn.active {
    background-color: #003817;
    color: white;
    border-color: #003817;
}

.gallery-item {
    transition: opacity 0.4s ease-in-out;
}
