/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d !important;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* Custom styles for better alignment and responsiveness */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 7rem;
}

.nav-links a,
.nav-links .trigger {
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.nav-links a:hover::after,
.nav-links .trigger:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}

.nav-links a.active,
.nav-links .trigger.active {
    color: #ffffff;
}

.nav-links a.active::after,
.nav-links .trigger.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}

.logo img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .header-container {
        height: 4rem;
    }

    .logo img {
        width: 80px;
    }
}

a.flex.items-center.space-x-3.text-\[\#ffff\].hover\:text-yellow-600.transition {
    font-size: 20px !important;
}

.desktop-fotter .number {
    font-size: 20px;
    margin-bottom: 5px;
}

.desktop-fotter .mail {
    color: #767676;
    font-size: 15px;
}

/* Hero video styles (used on index.php only) */
.hero-video-wrap {
    position: relative;
    width: 100%;
    height:100vh;
    overflow: hidden;
    margin-top: -7rem; /* Pulls the hero up to overlap under the transparent header */
    z-index: 1; /* Ensure video is behind the header */
}

.hero-video-wrap video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.45);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
}

.hero-content .text-center {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Improve readability on top of video */
.hero-content h1,
.hero-content p {
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Responsive hero heights and text sizing */
@media (max-width: 1024px) {
    .hero-video-wrap {
        height: 460px;
        margin-top: -7rem; /* Maintain overlap on smaller screens */
    }

    .hero-content h1 {
        font-size: 2.25rem !important;
        line-height: 1.05 !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-video-wrap {
        height: 380px;
        /* margin-top: -4rem;  */
    }

    .hero-video-wrap video {
        filter: brightness(0.5);
    }

    .hero-content {
        top: 12% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0 1rem !important;
        text-align: center !important;
    }

    .hero-content .text-center {
        max-width: 92% !important;
        margin: 0 auto !important;
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
    }
}

/* Tablet tweaks */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.4rem !important;
    }

    .hero-content p {
        font-size: 1.05rem !important;
    }

    .hero-video-wrap {
        height: 480px;
        margin-top: -7rem; /* Maintain overlap */
    }
}

/* Header fixed styles */
header.fixed,
header[role="banner"].fixed,
header.fixed.top-0 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

body.pt-28 {
    padding-top: 7rem !important;
}

@media (max-width: 768px) {
    body.pt-28 {
        padding-top: 4rem !important; /* Match mobile header height */
    }
}

/* Desktop footer and sidebar hover color */
@media (min-width: 768px) {
    .header-container .nav-links a:hover,
    nav.nav-links a:hover,
    .nav-links a:hover {
        color: #ffffff !important;
    }

    .nav-links a:hover::after {
        background-color: #ffffff !important;
    }
}

/* Additional responsive adjustments */
@media (max-width: 1024px) {
    .nav-links {
        space-x: 4px;
    }

    .flex.items-center.space-x-4.md\:space-x-8 {
        space-x: 2px;
    }

    .desktop-fotter .number {
        font-size: 18px;
    }

    .desktop-fotter .mail {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        space-y: 4px;
        space-x: 0px;
    }

    .flex.items-center.space-x-4 {
        space-x: 2px;
    }

    .desktop-fotter .number {
        font-size: 16px;
    }

    .desktop-fotter .mail {
        font-size: 13px;
    }

    #mobileSidebar .flex.flex-col.px-6.py-6.space-y-5 {
        space-y: 3px;
    }

    #mobileSidebar .text-sm {
        font-size: 0.875rem;
    }
}