/* 
   Match existing theme variables 
   If integrating into main style.css, you can remove the :root block if variables already exist
*/
:root {
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --modal-shadow: 0 20px 50px -10px rgba(2, 12, 27, 0.7);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--navy);
    color: var(--slate);
}

.demo-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.demo-bg h1 {
    color: var(--lightest-slate);
}

/* Modal Overlay - Glassmorphism Backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.modal-content {
    background-color: var(--light-navy);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--modal-shadow);
    border: 1px solid var(--lightest-navy);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    text-align: center;
}

.modal-overlay.is-visible .modal-content {
    transform: translateY(0);
}

/* Close Button */
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--slate);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-button:hover {
    color: var(--green);
}

/* Typography & Content */
.modal-header h2 {
    color: var(--lightest-slate);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.highlight {
    color: var(--green);
    font-family: var(--font-mono);
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

/* Visitor Details Grid */
.visitor-details {
    display: flex;
    justify-content: space-around;
    background-color: var(--navy);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--lightest-navy);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-item .label {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item .value {
    color: var(--lightest-slate);
    font-weight: 500;
}

/* Action Buttons */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 480px) {
    .modal-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.cta-btn.primary {
    color: var(--navy);
    background-color: var(--green);
    border: 1px solid var(--green);
}

.cta-btn.primary:hover {
    background-color: rgba(100, 255, 218, 0.8);
}

.cta-btn.secondary {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
}

.cta-btn.secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}
