@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #111111;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --navbar-text: #ffffff;
    --navbar-text-scroll: #111111;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    position: absolute;
    /* Initially transparent on top of image, or absolute */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu li a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu li a:hover {
    opacity: 0.7;
}

/* Hero Section Base */
.hero-section {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

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

/* Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #333;
}

.btn-dark {
    display: inline-block;
    background-color: #111;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.btn-dark:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #fff !important;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-widget p {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #a0a0a0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    transition: 0.3s;
}

.social-icons a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icons a:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.75rem;
    color: #777;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

.nav-close {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        color: inherit;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 10000; /* Above everything */
        gap: 40px;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 2rem;
        color: var(--white);
        cursor: pointer;
        transition: 0.3s;
    }

    .nav-close:hover {
        transform: rotate(90deg);
        color: #e6b325;
    }

    .nav-menu li a {
        color: var(--white) !important;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 3px;
        transition: 0.3s;
    }

    .nav-menu li a:hover {
        color: #e6b325 !important;
        letter-spacing: 5px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth Topbar (Slide Down) */
.auth-topbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.auth-topbar-wrapper.open {
    transform: translateY(0);
}

.auth-topbar-content {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-topbar-content .welcome-text {
    margin-right: 15px;
    opacity: 0.8;
}

.auth-link {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    border: 1px solid #555;
    padding: 4px 12px;
    border-radius: 4px;
    transition: 0.2s;
}

.auth-link:hover {
    background-color: #fff;
    color: #222;
}

.logout-btn {
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.auth-topbar-toggle {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background-color: #222;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}