:root {
    --primary-color: #d4af37;
    --primary-dark: #a07840;
    --secondary-color: #1a1547;
    --dark-bg: #0f0d2a;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e1e4e8;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.main-header {
    background: var(--dark-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--dark-bg);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 13, 42, 0.8), rgba(15, 13, 42, 0.8)), url('../img/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--dark-bg);
    padding: 120px 0 100px;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #aaa;
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 5px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info p {
    margin-top: 20px;
    color: #aaa;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 25px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    padding-left: 5px;
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 15px;
    color: #aaa;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #777;
    text-decoration: none;
    margin-left: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ── Mobile Menu Fixes ───────────────────────────────────────────────────── */
@keyframes mobileMenuSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
    /* Override Tailwind's hidden class when active */
    .header-nav.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 15px 25px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        align-items: flex-start;
        gap: 15px;
        z-index: 50;
        animation: mobileMenuSlide 0.3s ease forwards;
    }

    /* Make links full width for better tap targets */
    .header-nav.active a,
    .header-nav.active .group {
        width: 100%;
    }

    /* Fix Login/Logout buttons margins on mobile */
    .header-nav.active > a.bg-black,
    .header-nav.active > a.bg-gray-800 {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        display: block;
        padding: 12px;
    }

    /* Mega Menu Mobile Layout Adjustments */
    .header-nav.active .group > div.fixed {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        display: none;
        flex-direction: column;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: 1px solid var(--border-color);
        margin-top: 10px;
        border-radius: 8px;
    }

    /* Show mega menu contents on mobile hover/tap */
    .header-nav.active .group:hover > div.fixed,
    .header-nav.active .group:focus-within > div.fixed {
        display: flex;
    }

    /* Stack mega menu sidebar horizontally on mobile to save space */
    .header-nav.active .mega-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .header-nav.active .category-trigger {
        padding: 12px 15px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Adjust content pane inside mega menu */
    .header-nav.active .mega-content-pane {
        width: 100%;
        padding: 15px;
        max-height: 350px;
        overflow-y: auto;
    }

    /* Change mega menu grid to single column on mobile */
    .header-nav.active .category-pane .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}