/* ============================= */
/*       GLOBAL & VARIABLES      */
/* ============================= */
:root {
    --navy-blue: #0A192F;
    --white: #FFFFFF;
    --light-grey: #a8b2d1;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--navy-blue);
    color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-grey);
}

section {
    padding: 80px 20px; /* Standard padding for mobile */
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem; /* Mobile font size */
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1rem; /* Mobile font size */
    color: var(--light-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================= */
/*          HERO SECTION         */
/* ============================= */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: -1;
}

/* ============================= */
/*       NAVIGATION BAR          */
/* ============================= */

nav {
    width: 100%;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-center, .nav-right {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

/* === MOBILE-FIRST HIDE/SHOW LOGIC === */
.nav-left,
.language-switcher {
    display: none; 
}
/* === END LOGIC === */

.nav-center a {
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-align: center;
}

.nav-right {
    gap: 25px;
}

.nav-right i {
    margin-left: 8px;
}

.lang-option {
    font-weight: 600;
    cursor: pointer;
    color: var(--light-grey);
    transition: color 0.3s ease;
}
.lang-option.active {
    color: var(--white);
}
.lang-separator {
    margin: 0 5px;
    color: var(--light-grey);
}


/* HERO CONTENT */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content .subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-grey);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem; /* Mobile font size */
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

.scroll-down-icon {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -15px); }
    60% { transform: translate(-50%, -5px); }
}

/* ============================= */
/* INTERACTIVE MAP SECTION       */
/* ============================= */
.section-title {
    text-align: center;
    margin-bottom: 40px; /* Mobile margin */
}

.parking-map-container {
    display: flex;
    flex-direction: column; /* MOBILE: Stacked by default */
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.parking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* MOBILE: 3 columns */
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.parking-spot {
    height: 100px;
    border: 2px solid rgba(168, 178, 209, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.parking-spot:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.parking-spot.occupied {
    background-color: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.4);
    cursor: not-allowed;
}

.parking-spot.occupied:hover {
    background-color: rgba(255, 82, 82, 0.2);
}

.parking-spot.selected {
    border-color: var(--white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.spot-info-panel {
    max-width: 0;
    opacity: 0;
    padding-left: 0;
    padding-right: 0;
    border-width: 0;
    overflow: hidden;
    width: 100%;
    max-width: 500px; /* Same as grid on mobile */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-style: solid;
    border-color: rgba(168, 178, 209, 0.2);
    transition: opacity 0.5s ease, max-width 0.5s ease, padding 0.5s ease, border-width 0.5s ease;
}

.spot-info-panel.visible {
    opacity: 1;
    padding: 25px;
    border-width: 1px;
    max-width: 500px;
}

.spot-info-panel h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.info-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--white);
    color: var(--navy-blue);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.info-button:hover {
    background: var(--light-grey);
    color: var(--navy-blue);
}
.info-button.disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}

/* ============================= */
/*      CORE SERVICES SECTION    */
/* ============================= */
#core-services {
    border-top: 1px solid rgba(168, 178, 209, 0.2);
}

.services-container {
    display: flex;
    flex-direction: column; /* MOBILE: Stacked */
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-column {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--light-grey);
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border: 2px solid rgba(168, 178, 209, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-column h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-column p {
    color: var(--light-grey);
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-button {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--light-grey);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.service-button:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    border-color: var(--white);
}

/* ============================= */
/*     VISUAL PROOF (GALLERY)    */
/* ============================= */
.gallery-container {
    display: flex;
    flex-direction: column; /* MOBILE: Stacked */
    gap: 40px;
    max-width: 500px; /* Constrain on mobile */
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
    width: 100%;
    height: 300px; /* Same height for all on mobile */
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================= */
/*       CONTACT SECTION         */
/* ============================= */
#contact {
    background: #061425;
}

.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr; /* MOBILE: Single column */
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.contact-details .subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-grey);
    margin-bottom: 1rem;
}

.contact-details h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem; /* Mobile font size */
    line-height: 1.2;
    margin-bottom: 25px;
}

.contact-details p {
    color: var(--light-grey);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
}
.contact-info-list li {
    margin-bottom: 15px;
    color: var(--light-grey);
}
.contact-info-list i {
    width: 25px;
    margin-right: 10px;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(168, 178, 209, 0.3);
    padding: 15px 0;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: rgba(168, 178, 209, 0.7);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-bottom-color: var(--white);
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: var(--white);
    color: var(--navy-blue);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-button:hover {
    background: var(--light-grey);
}

/* ============================= */
/*             FOOTER            */
/* ============================= */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--navy-blue);
    border-top: 1px solid rgba(168, 178, 209, 0.1);
    color: var(--light-grey);
    font-size: 0.9rem;
}

/* ============================= */
/*       MENU OVERLAY & NAV      */
/* ============================= */
.no-scroll {
    overflow: hidden;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-blue);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(-100%);
}

.menu-overlay.open {
    transform: translateY(0);
}

.menu-close-button {
    position: absolute;
    top: 30px;
    right: 25px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
}

.overlay-nav {
    position: relative;
    z-index: 5;
}

.overlay-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.overlay-nav-link {
    font-family: var(--font-serif);
    font-size: 2.2rem; /* Mobile font size */
    color: var(--white);
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    display: inline-block;
}

.overlay-nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    bottom: 5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.overlay-nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animation for menu links */
.menu-overlay.open .overlay-nav ul li {
    margin: 10px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu-overlay.open .overlay-nav ul li { opacity: 1; transform: translateY(0); }
.menu-overlay.open .overlay-nav ul li:nth-child(1) { transition-delay: 0.2s; }
.menu-overlay.open .overlay-nav ul li:nth-child(2) { transition-delay: 0.3s; }
.menu-overlay.open .overlay-nav ul li:nth-child(3) { transition-delay: 0.4s; }
.menu-overlay.open .overlay-nav ul li:nth-child(4) { transition-delay: 0.5s; }
.menu-overlay.open .overlay-nav ul li:nth-child(5) { transition-delay: 0.6s; }


/* =================================================================== */
/*                      TABLET & UP BREAKPOINTS                        */
/* =================================================================== */
@media (min-width: 768px) {
    section {
        padding: 100px 40px; /* Larger padding for tablets */
    }

    .section-title h2 { font-size: 3rem; }
    .section-title p { font-size: 1.1rem; }

    /* --- Re-display nav items for larger screens --- */
    .nav-left,
    .language-switcher {
        display: flex;
    }

    /* Adjust nav sizes for tablets */
    nav { padding: 30px 40px; }
    .nav-center a { font-size: 1.2rem; }
    .nav-left, .nav-right { font-size: 0.8rem; }
    /* --- End Nav Adjustments --- */


    .hero-content h1 { font-size: 5rem; }

    .services-container {
        flex-direction: row; /* Go side-by-side */
        gap: 60px;
    }
    
    .parking-grid {
        grid-template-columns: repeat(5, 1fr); /* Back to 5 columns */
    }

    .gallery-container {
        flex-direction: row; /* Go side-by-side */
        align-items: center;
        gap: 20px;
        max-width: 1400px;
    }

    .gallery-item-side {
        width: 25%;
        height: 280px;
    }

    .gallery-item-center {
        width: 40%;
        height: 400px;
    }
    
    .contact-grid-container {
        grid-template-columns: 1fr 1fr; /* Go side-by-side */
        gap: 60px;
    }
    .contact-details h3 { font-size: 2.8rem; }

    .overlay-nav-link { font-size: 2.8rem; }
}


/* =================================================================== */
/*                      DESKTOP & UP BREAKPOINTS                       */
/* =================================================================== */
@media (min-width: 1024px) {
    section {
        padding: 120px 50px;
    }
    .section-title h2 { font-size: 3.5rem; }
    .section-title { margin-bottom: 60px; }

    .nav-center a { font-size: 1.5rem; }

    .hero-content h1 { font-size: 6rem; }

    .parking-map-container {
        flex-direction: row; /* Go side-by-side */
        gap: 50px;
    }

    .parking-grid {
        width: 60%;
        perspective: 1000px; /* Add perspective only on desktop */
    }

    .parking-spot {
        transform: rotateX(50deg) rotateZ(-1deg);
        height: 120px;
    }
    .parking-spot:hover {
        transform: rotateX(50deg) rotateZ(-1deg) scale(1.05);
    }
    .parking-spot.selected {
        transform: rotateX(50deg) rotateZ(-1deg) scale(1.1);
    }
    
    .spot-info-panel {
        position: sticky;
        top: 100px;
    }

    .services-container {
        gap: 80px;
    }

    .service-column h3 { font-size: 2.2rem; }
    .service-column p { min-height: 100px; }

    .gallery-container { gap: 30px; }
    .gallery-item-side { height: 350px; }
    .gallery-item-center { height: 500px; }

    .contact-grid-container { gap: 80px; }
    .contact-details h3 { font-size: 3.5rem; }

    .overlay-nav-link { font-size: 3rem; }
    .overlay-nav ul li { margin: 20px 0; }
}