/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #000;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Brand Header / Logo */
.brand-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 2rem 0;
    pointer-events: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100vw;
    height: 100vh;
}

/* City Card Base Styles */
.city-card {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    will-change: transform, filter;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Animation for City Cards */
.city-card:hover {
    transform: scale(1.015);
    filter: brightness(1.08);
}

.city-card:hover .city-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

/* City Background Images */
.city-card.cape-town {
    background-image: url('images/cape-town.webp');
}

.city-card.miami {
    background-image: url('images/Miami.webp');
}

.city-card.london {
    background-image: url('images/london.webp');
}

.city-card.monaco {
    background-image: url('images/monaco.webp');
}

/* Dark Overlay for Text Readability */
.city-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
    transition: background 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* City Content */
.city-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 2rem;
    text-align: center;
}

/* City Name Typography */
.city-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #FAF9F6;
    margin-bottom: 1rem;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    line-height: 1.2;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.city-card:hover .city-name {
    transform: translateY(-3px);
}

/* City Status Typography */
.city-status {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1.6;
    margin-bottom: 2rem;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.city-card:hover .city-status {
    transform: translateY(-3px);
}

/* Status Text Colors for Each City */
.cape-town .city-status {
    color: #E8D5B7; /* Warm beige/gold */
}

.miami .city-status {
    color: #E8D5B7; /* Warm beige/gold - matching Cape Town */
}

.london .city-status {
    color: #E8D5B7; /* Warm beige/gold - matching Cape Town */
}

.monaco .city-status {
    color: #E8D5B7; /* Warm beige/gold - matching Cape Town */
}

.city-status.subtle-status {
    margin-bottom: 0;
}

/* Contact Button */
.contact-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    color: #FAF9F6;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    background: transparent;
    border: 1px solid rgba(250, 249, 246, 0.4);
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-btn:hover {
    border-color: rgba(250, 249, 246, 0.8);
    background: rgba(250, 249, 246, 0.1);
}

.contact-btn:active {
    transform: scale(0.98);
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        min-height: 100vh;
        height: auto;
    }
    
    .brand-header {
        padding: 1.5rem 0;
        position: sticky;
        top: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        z-index: 100;
        margin-bottom: 0;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        min-height: calc(100vh - 80px);
        overflow: visible;
        gap: 0;
    }
    
    .city-card {
        min-height: 100vh;
        height: 100vh;
    }
    
    .city-name {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .city-status {
        font-size: 0.65rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-btn {
        font-size: 0.65rem;
        padding: 0.65rem 1.75rem;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .brand-header {
        padding: 1rem 0;
    }
    
    .brand-logo {
        height: 30px;
    }
    
    .city-card {
        min-height: 100vh;
        height: 100vh;
    }
    
    .city-name {
        font-size: 1.5rem;
    }
    
    .city-status {
        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }
    
    .contact-btn {
        font-size: 0.6rem;
        padding: 0.6rem 1.5rem;
        letter-spacing: 0.2em;
    }
}

/* Smooth Scrolling for Mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Snap scrolling for better UX */
    .grid-container {
        scroll-snap-type: y mandatory;
    }
    
    .city-card {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(250, 249, 246, 0.2);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 90%;
    z-index: 1001;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-modal.active .contact-modal-content {
    transform: scale(1) translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #FAF9F6;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.contact-modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.contact-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #FAF9F6;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: capitalize;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(250, 249, 246, 0.05);
    border: 1px solid rgba(250, 249, 246, 0.15);
    border-radius: 8px;
    text-decoration: none;
    color: #E8D5B7;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.contact-link:hover {
    background: rgba(250, 249, 246, 0.1);
    border-color: rgba(250, 249, 246, 0.3);
    transform: translateX(5px);
    color: #FAF9F6;
}

.contact-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.contact-text {
    flex: 1;
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .contact-modal-content {
        padding: 2.5rem 2rem;
        max-width: 90%;
    }
    
    .contact-modal-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-link {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .contact-icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .contact-modal-title {
        font-size: 1.5rem;
    }
    
    .contact-link {
        padding: 0.9rem 1rem;
        font-size: 0.8rem;
        gap: 0.75rem;
    }
}
