/* =============================================
   MAIN CSS (OPTIMIZED & CLEANED)
============================================= */

/* ===== VARIABLES ===== */
:root {
    --primary: #1B5E20;
    --secondary: #263238;
    --accent1: #FFB300;
    --accent2: #4CAF50;

    --text-dark: #222;
    --text-light: #f4f4f4;

    --font-heading: "Poppins", sans-serif;
    --font-body: "Roboto", sans-serif;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: #fff;
    color: var(--text-dark);
}

/* =============================================
   HEADER & NAVIGATION
============================================= */
header {
    background: var(--secondary);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
}

/* -- Logo -- */
header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .logo img {
    width: 70px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

header .logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: red;
}

header .logo-text span {
    font-size: 1rem;
    color: #ff9a00;
}

/* -- Navigation Links -- */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul.nav-links li a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

nav ul.nav-links li a:hover,
nav ul.nav-links li a.active {
    color: var(--accent1);
}

/* -- Search Bar -- */
.nav-search {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-search input {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    width: 180px;
    transition: width .3s;
}

.nav-search input:focus {
    width: 220px;
}

.nav-search button {
    padding: 6px 10px;
    background: var(--accent1);
    border-radius: 6px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: .3s;
}

.nav-search button:hover {
    background: var(--accent2);
}

/* =============================================
   HAMBURGER MENU
============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Rotate animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =============================================
   MOBILE NAVIGATION
============================================= */
@media (max-width: 768px) {
    .nav-search {
        display: none;
    }

    nav ul.nav-links {
        position: absolute;
        top: 75px;
        right: 20px;
        flex-direction: column;
        align-items: flex-start;
        background: var(--secondary);
        width: 220px;
        padding: 20px;
        border-radius: 10px;
        display: none;
        gap: 18px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.25);
        z-index: 999;
    }

    nav ul.nav-links.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    header {
        padding: 12px 25px;
    }
}

/* SMALL DEVICES */
@media (max-width: 480px) {
    nav ul.nav-links {
        width: 180px;
    }

    header .logo img {
        width: 45px;
    }

    header .logo-text h1 {
        font-size: 1.2rem;
    }
}

/* =============================================
   GLOBAL CONTAINER
============================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =============================================
   HERO SECTION
============================================= */
#hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 5%;
    max-width: 600px;
    background: rgba(0,0,0,0.5);
    padding: 25px;
    border-radius: 10px;
    color: #fff;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h2 span {
    color: var(--accent1);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: .3s;
}

.hero-control:hover {
    background: rgba(0,0,0,0.6);
}

.hero-control.prev { left: 20px; }
.hero-control.next { right: 20px; }

#heroIndicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

#heroIndicators span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
}

#heroIndicators .active-dot {
    background: var(--accent1);
    transform: scale(1.2);
}

/* =============================================
   FOOTER
============================================= */
footer {
    background: var(--secondary);
    color: var(--text-light);
    padding: 60px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

footer .footer-section {
    flex: 1 1 200px;
    min-width: 180px;
}

footer h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--accent1);
}

footer p,
footer a {
    font-size: 0.95rem;
    color: var(--text-light);
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent2);
}

/* SOCIAL ICONS */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: 0.3s;
}

.social-icons img:hover {
    filter: brightness(1.4);
}

.footer-bottom {
    background: #111;
    color: #ccc;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9rem;
}

/* MOBILE FOOTER */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
}
