/* Thanks to @Samrat */

:root {
    --gold: #FFD700;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #050505;
    color: #fff;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    overscroll-behavior: none;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000; /* Above Navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    z-index:10000;
    width: 65vw;
    max-width: 1000px;
    height: 90vh;
    background: var(--glass-bg); /* Use existing glass variable */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15); /* Gold glow */
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Side (Image) */
.modal-left {
    flex: 1;
    background: #000;
    position: relative;
    overflow: hidden;
    /* background-size: contain; */
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Right Side (Text) */
.modal-right {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-subtitle {
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.modal-title {
    color: var(--gold);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    text-transform: uppercase;
    line-height: 1.1;
}

.modal-text {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
}

.modal-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    width: fit-content;
    transition: all 0.3s ease;
}

.modal-read-btn:hover {
    background: var(--gold);
    color: #000;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 90vw;
        height: 80vh;
        flex-direction: column;
    }
    .modal-content { flex-direction: column; }
    .modal-left { flex: 0.8; } /* Image takes 40% height */
    .modal-right { flex: 1.2; padding: 25px; }
    .modal-title { font-size: 1.8rem; }
}
