/* Header Navigation Styles */

/* Global CSS Variables */
:root {
    --primary-color: #000;
    --accent-color: #333;
    --light-color: #f8f8f8;
    --dark-color: #222;
    --text-color: #666;
    --white: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sticky-nav.scrolled {
    position: fixed;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sticky-nav.scrolled .logo {
    color: var(--primary-color);
}

.homepage-header {
    background-color: #fff;
}

.homepage-header .logo {
    color: #222;
}

.homepage-header nav ul li a {
    color: #222;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sticky-nav.scrolled nav ul li a {
    color: #222;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button.primary {
    background-color: #000;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
}

/* Contact Icon */


.homepage-header .contact-icon i {
    color: var(--accent-color);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    height: 3px;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.homepage-header .burger-menu span {
    background-color: var(--dark-color);
}

/* Burger Menu Animation */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Navigation */
nav.responsive ul {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav.responsive ul li {
    margin: 0;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

nav.responsive ul li a {
    color: var(--dark-color);
}

nav.responsive ul li:last-child {
    border-bottom: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sticky-nav .container {
        padding: 15px 20px;
    }

    .contact-icon {
        display: block;
        font-size: 1.5rem;
        margin-right: 15px;
        color: var(--dark-color);
        transition: color 0.3s ease;
    }

    .contact-icon:hover {
        color: var(--accent-color);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }


    header nav ul {
        display: none;
        padding: 80px 20px 20px;
        margin: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    header nav.active ul {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    nav ul li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        color: var(--dark-color);
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background-color: #f8f8f8;
        padding-left: 25px;
    }

    nav ul li:last-child {
        border-bottom: none;
    }


    .cta-button,
    .contact-icon {
        display: none !important;
    }

    .burger-menu {
        display: flex;
    }

    /* Mobile menu overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Additional Mobile Adjustments */
@media (max-width: 480px) {
    .sticky-nav .container {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }

    nav {
        width: 250px;
    }

    nav ul {
        padding: 70px 15px 15px;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .contact-icon {
        font-size: 1.3rem;
        margin-right: 10px;
    }
}