/* --- Variables & Reset --- */
:root {
    --primary-color: #007ACC;
    --secondary-color: #00AEEF;
    --text-color: #333;
    --light-text-color: #FFF;
    --accent-color: #79f299;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #F8F8F8;
    color: var(--text-color);
}

/* --- Navbar --- */
.navbar {
    position: relative; /* IMPORTANT FIX */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    z-index: 1000;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 122, 204, 0.95);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.company-name {
    color: #fff;
    font-size: 1.4rem;
    margin: 0;
}

/* Nav links (DESKTOP) */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: 600;
}
.nav-link:hover {
    color: var(--accent-color);
}

/* Hamburger */
.hamburger {
    display: none; /* FORCE hidden on desktop */
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Motto */
.search-and-motto {
    display: flex;
    align-items: center;
}
.motto {
    color: #fff;
    font-style: italic;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero-section {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

/* Animated background layer */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('front.jpg') center/cover no-repeat;
    animation: heroZoom 18s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
}

/* CTA */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 20px;
    transition: 0.3s;
}
.cta-button:hover {
    background: white;
    transform: scale(1.05);
}

/* --- Mobile --- */
@media (max-width: 900px) {

    .hamburger {
        display: block;
    }

    .search-and-motto {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-links.open {
        max-height: 500px; /* FIXED clipping issue */
    }

    .nav-link {
        display: block;
        padding: 16px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .hero-content h2 {
        font-size: 2rem;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Hero background animation */
@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15);
    }
}

/* ===== FOOTER FIX ===== */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 5% 30px;
    margin-top: 0;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.contact-info,
.social-media-links {
    flex: 1;
    min-width: 250px;
}

.main-footer h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-list i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.6rem;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.main-footer .copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

/* Mobile footer */
@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-list {
        text-align: center;
    }
}
