/* Logo Container */
.logo-container {
    position: absolute;
    top: 28px;
    left: 38px;
    z-index: 20;
}

.site-logo {
    height: 48px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-container {
        top: 10px;
        left: 10px;
    }
    
    .site-logo {
        height: 32px;
    }
}

/* New Top Right Text Navigation */
.top-right-nav.new-nav {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 10;
    font-family: 'Poppins', sans-serif;
    font-weight: 1000;
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0,0,0,0.85);
    padding: 10px 0;
    border-radius: 6px;
    min-width: 160px;
    display: none;
    flex-direction: column;
}

.dropdown-menu li {
    padding: 8px 16px;
}

.dropdown-menu li a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-arrow {
    margin-left: 6px;
    font-size: 1rem;
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* background: url('../images/hero-bg.jpg') center/cover no-repeat; */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden; /* Prevent content from bleeding into next section */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-height: 100vh; /* Never exceed viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between elements */
    box-sizing: border-box;
    transform: translateY(25vh); /* Position between center (50vh) and bottom (100vh) */
}

.hero h1 {
    font-size: 4rem;
    margin: 0; /* Flexbox gap handles spacing */
    font-weight: 700;
}

.subheadline {
    font-size: 1.5rem;
    margin: 0; /* Flexbox gap handles spacing */
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
} 


/* .cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(to right, #96a9eb, #3332FF); // reddish to bluish
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 30px;
    position: relative;
    z-index: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
} */


.cta-button:hover {
    transform: scale(1.05);
}

.hero-bg-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 2s ease;
}

/* Rotation-safe responsive design for hero content (copied from map section pattern) */

/* Phone (portrait): width 0–500, height 600–1000 */
@media (orientation: portrait) and (max-width: 500px) and (min-height: 600px) and (max-height: 1000px) {
    .hero-content {
        transform: translateY(20vh); /* Less shift on phone portrait */
        gap: 15px;
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .subheadline {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .cta-button {
        padding: 12px 32px;
        font-size: 1.1rem;
    }
}

/* Phone (landscape): height 0–500, width 600–1000 */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) and (max-width: 1000px) {
    .hero-content {
        transform: translateY(10vh); /* Much less shift on phone landscape */
        gap: 8px;
        padding: 10px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .subheadline {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .cta-button {
        padding: 8px 24px;
        font-size: 0.9rem;
    }
}

/* Tablet (portrait): constrain width (shorter side) and height (longer side) */
@media (orientation: portrait) and (min-width: 501px) and (max-width: 1024px) and (min-height: 601px) and (max-height: 1400px) {
    .hero-content {
        transform: translateY(22vh);
        gap: 18px;
        padding: 18px;
    }
    
    .hero h1 {
        font-size: 3.2rem;
        line-height: 1.2;
    }
    
    .subheadline {
        font-size: 1.4rem;
    }
    
    .cta-button {
        padding: 14px 36px;
        font-size: 1.15rem;
    }
}

/* Tablet (landscape): flip constraints so height (shorter side) is limited */
@media (orientation: landscape) and (min-height: 501px) and (max-height: 1024px) and (min-width: 601px) and (max-width: 1400px) {
    .hero-content {
        transform: translateY(18vh);
        gap: 15px;
        padding: 15px 20px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .subheadline {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 12px 34px;
        font-size: 1.1rem;
    }
}

/* Large monitor: if either dimension is >= 1441 */
@media (min-width: 1441px), (min-height: 1441px) {
    .hero-content {
        transform: translateY(25vh); /* Default positioning maintained */
        gap: 24px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .subheadline {
        font-size: 1.6rem;
    }
}


/* New Text-Based Navigation */
.new-text-nav {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 20;
}

/* Map section top-right nav overrides: black text with glow */
.map-top-right-nav .nav-link {
    color: #000;
    text-shadow: 0 0 2px #ffffff, 0 0 2px #ffffff;
}

/* Ensure dropdown menu on dark map background remains visible */
.map-top-right-nav .dropdown-menu {
    background-color: rgba(0,0,0,0.85);
}


.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    font-family: 'helvetica', sans-serif;
    font-weight: 500;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.0s, text-shadow 0.0s;
    text-shadow: 0 0 2px #ffffff, 0 0 2px #ffffff;
    line-height: 1.2;
    display: flex;
    align-items: center;
    vertical-align: middle;
    font-weight: 700;
    padding-bottom: 0;
}


.nav-link:hover {
    opacity: 0.8;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0,0,0,0.85);
    padding: 10px 0;
    border-radius: 6px;
    min-width: 160px;
    text-align: left;
    z-index: 99;
}

.dropdown-menu .dropdown-link {
    display: block;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu .dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

@media (max-width: 768px) {
    .new-text-nav {
        right: 10px;
        top: 25px;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 15px;
    }

    .dropdown-menu {
        left: 0;
        right: auto;
    }

    .nav-link {
        font-size: 0.75rem;
        line-height: 1.2;
        padding-bottom: 0;
    }
    .dropdown-arrow {
        font-size: 0.75rem;
        vertical-align: middle;
        position: relative;
        top: 0px;
    }
}

@media (min-width: 770px) and (max-width: 1024px) {
    .new-text-nav {
        right: 30px;
        top: 40px;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 15px;
    }

    .dropdown-menu {
        left: 0;
        right: auto;
    }

    .nav-link {
        font-size: 1rem;
        line-height: 1.2;
        padding-bottom: 0;
    }
    .dropdown-arrow {
        font-size: 1rem;
        vertical-align: middle;
        position: relative;
        top: 0px;
    }
}
