@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* Gold & Dark Theme */
    --bg-base: #050a0f;
    --text-primary: #ffffff;
    --text-secondary: #9aa5b1;
    --gold: #d4af37;
    --gold-hover: #f1cf5b;
    --accent-color: #d4af37; 
    --accent-glow: rgba(212, 175, 55, 0.4);
    
    /* Glassmorphism Tokens for Survey Page */
    --glass-bg: rgba(10, 15, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --box-bg: rgba(255, 255, 255, 0.03);
    --box-border: rgba(255, 255, 255, 0.08);
    --box-hover: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    /* Monsoon rain image from Unsplash + Dark Gradient fade to left */
    background-image: linear-gradient(to right, rgba(5, 10, 15, 0.9) 0%, rgba(5, 10, 15, 0.6) 50%, rgba(5, 10, 15, 0.2) 100%), 
                      url('https://images.unsplash.com/photo-1515694346937-94d85e41e6f0?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 40px 10%;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* Animations */
.view {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.view.active {
    display: block;
    animation: fadeScaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeScaleIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------- */
/* LANDING PAGE SPECIFIC */
/* ------------------- */
.landing-view {
    text-align: left;
    background: rgba(10, 15, 20, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 650px; /* Keep it from stretching fully across the screen */
}

.kicker {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 6px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.landing-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.title-white {
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
}

.title-gold {
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 1px;
}

.landing-divider {
    border: none;
    height: 2px;
    background-color: var(--gold);
    width: 40px;
    margin-bottom: 2rem;
}

.landing-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 3.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 450px;
}

.primary-btn {
    background-color: var(--gold);
    color: #111;
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 4px; /* Squarer button like reference */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* ------------------- */
/* SURVEY PAGE SPECIFIC */
/* ------------------- */
.survey-view {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.section-title {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.question-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #fff;
    line-height: 1.3;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 3rem;
}

.option-btn {
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.option-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: var(--box-hover);
    color: #fff;
    transform: translateY(-2px);
}

.option-btn.selected {
    border-color: var(--accent-color);
    background-color: rgba(212, 175, 55, 0.1);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.option-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-right: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #888;
    flex-shrink: 0;
    transition: all 0.3s;
}

.option-btn.selected .option-number {
    background: var(--accent-color);
    color: #111;
}

.survey-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    padding: 8px 16px;
    margin: -8px -16px;
    transition: all 0.2s;
}

.nav-btn:hover {
    color: var(--gold);
}

.pulse-btn {
    animation: pulseGlow 1.5s infinite;
    color: var(--gold);
    font-weight: 700;
}

@keyframes pulseGlow {
    0% { transform: scale(1); text-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    50% { transform: scale(1.1); text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
    100% { transform: scale(1); text-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
}

.multi-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 2px;
}

/* Toast Alert */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    background: var(--gold);
    color: #111;
    padding: 12px 16px 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-close-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #111;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.toast-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Global Footer */
.global-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
    font-family: 'Outfit', sans-serif;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px rgba(212, 175, 55, 0.1);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    color: #888;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

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

.modal-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ddd;
    font-family: 'Outfit', sans-serif;
}

.progress-text {
    font-family: monospace;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 3px;
}

/* Text Inputs */
.options-flex {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 3rem;
}

.text-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    border: 1px solid var(--box-border);
    border-radius: 12px;
    background-color: var(--box-bg);
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.text-input::placeholder {
    color: #64748b;
}

.text-input:focus {
    border-color: var(--accent-color);
    background-color: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

textarea.text-input {
    min-height: 160px;
    resize: vertical;
}

/* ------------------- */
/* MOBILE RESPONSIVENESS */
/* ------------------- */
@media (max-width: 800px) {
    body {
        padding: 40px 5%;
        justify-content: center;
        background-image: linear-gradient(to bottom, rgba(5, 10, 15, 0.95) 0%, rgba(5, 10, 15, 0.7) 60%, rgba(5, 10, 15, 0.4) 100%), 
                          url('https://images.unsplash.com/photo-1515694346937-94d85e41e6f0?q=80&w=1000&auto=format&fit=crop');
    }
    
    .landing-view {
        text-align: center;
        padding: 40px 24px;
    }
    
    .landing-title {
        font-size: 4rem;
    }
    
    .landing-divider {
        margin: 0 auto 2rem auto;
    }
    
    .landing-text {
        text-align: center;
        margin: 0 auto 2.5rem auto;
    }
    
    .survey-view {
        padding: 40px 24px;
        border-radius: 16px;
    }
    
    .question-title {
        font-size: 1.8rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .landing-title {
        font-size: 3rem;
    }
    .kicker {
        font-size: 0.75rem;
        letter-spacing: 4px;
    }
    .primary-btn {
        width: 100%;
        padding: 16px 20px;
    }
}
