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

:root {
    --bg-primary: #0b071e;
    --bg-secondary: #120c2e;
    --primary-color: #ff3e7f;
    --primary-glow: rgba(255, 62, 127, 0.4);
    --secondary-color: #8a2be2;
    --secondary-glow: rgba(138, 43, 226, 0.4);
    --accent-color: #ffd700;
    --text-main: #f8f9fa;
    --text-muted: #a09cb0;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(255, 62, 127, 0.5);
    --transition-speed: 0.4s;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --font-sans: 'Outfit', 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        linear-gradient(180deg, rgba(11, 7, 30, 0.45) 0%, rgba(6, 4, 18, 0.9) 100%),
        url('banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Cosmic background elements */
.cosmic-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.cosmic-glow.glow-1 {
    top: 15%;
    left: 10%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
}

.cosmic-glow.glow-2 {
    bottom: 15%;
    right: 10%;
    animation-delay: -6s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 40px) scale(1.2);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px var(--primary-glow));
    animation: pulseHeart 2s infinite ease-in-out;
}

@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #e0dcf5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Screen Transitions */
.screen {
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
    display: flex;
}

#screen-home, #screen-success {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Page (Screen 1) */
.hero-content {
    text-align: center;
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 62, 127, 0.1);
    border: 1px solid rgba(255, 62, 127, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 62, 127, 0.1);
}

h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, #ffd7e5 70%, #d5c3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 span {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-main);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 62, 127, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Form Styles (Glass Panels) */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.panel-title {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    margin-bottom: 12px;
    text-align: center;
}

.panel-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--glass-border-focus);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 62, 127, 0.15);
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

/* Psychological Quiz Elements */
.quiz-question-container {
    min-height: 250px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.5;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.quiz-option::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(255,62,127,0.1) 0%, rgba(138,43,226,0.1) 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.quiz-option:hover {
    border-color: rgba(255, 62, 127, 0.4);
    transform: translateX(5px);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(255, 62, 127, 0.08);
    box-shadow: 0 0 20px rgba(255, 62, 127, 0.15);
}

.quiz-option.selected::after {
    width: 100%;
}

.option-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

.quiz-option.selected .option-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.quiz-option.selected .option-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-main);
}

.option-text {
    font-size: 1rem;
    font-weight: 500;
    z-index: 1;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.1, 1);
}

/* Loading & Analysing screen */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.scanner-box {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 40px;
}

.scanner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    animation: rotateRing 3s linear infinite;
}

.scanner-ring-inner {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-left-color: var(--accent-color);
    border-right-color: var(--primary-color);
    animation: rotateRingBack 2s linear infinite;
}

.scanner-heart {
    position: absolute;
    font-size: 3rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    animation: heartbeat 1.2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateRingBack {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes heartbeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    30% { transform: translate(-50%, -50%) scale(1.15); }
    45% { transform: translate(-50%, -50%) scale(1.05); }
    60% { transform: translate(-50% , -50%) scale(1.2); }
}

.loading-text {
    font-size: 1.4rem;
    font-family: var(--font-serif);
    margin-bottom: 12px;
    background: linear-gradient(45deg, #fff, #ffd7e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    min-height: 20px;
}

/* Results & Match Report Screen */
.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-badge {
    background: linear-gradient(90deg, #ffd700, #ffae00);
    color: #000;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.result-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

.profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.card-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-val {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Match highlight component */
.match-highlight-box {
    background: linear-gradient(135deg, rgba(255, 62, 127, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 1px solid rgba(255, 62, 127, 0.25);
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    margin-top: 10px;
}

.match-percentage {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-serif);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 15px var(--primary-glow));
}

.match-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.match-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Final Agreement CTA Section */
.consent-section {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.consent-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.consent-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 550px;
}

.consent-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--glass-border-focus);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.consent-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.consent-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.consent-checkbox-label {
    font-size: 0.9rem;
    color: var(--text-main);
    user-select: none;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Gear/Settings Button */
.settings-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    border-color: var(--primary-color);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 4, 18, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay .glass-panel {
    border-radius: var(--border-radius-lg);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed rgba(255, 62, 127, 0.3);
    background: rgba(255, 62, 127, 0.02);
    border-radius: var(--border-radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(255, 62, 127, 0.05);
    box-shadow: 0 0 15px rgba(255, 62, 127, 0.1);
}

/* Photo previews list */
.photo-previews-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .photo-previews-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-preview-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.photo-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 62, 127, 0.85);
    color: #fff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.photo-preview-delete:hover {
    background: var(--primary-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem !important;
        padding: 0 10px;
    }
    .subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
        padding: 0 15px;
    }
    .hero-content {
        padding: 0 10px;
    }
    .glass-panel {
        padding: 25px 15px !important;
    }
    .screen {
        padding: 20px 5px !important;
    }
    .consent-checkbox-wrapper {
        align-items: flex-start !important;
    }
    .consent-checkbox {
        margin-top: 2px !important;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .badge {
        font-size: 0.8rem;
    }
    .panel-title {
        font-size: 1.5rem !important;
    }
    .form-actions {
        flex-direction: column-reverse;
        gap: 15px;
        width: 100%;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    #screen-home, #screen-success {
        padding: 40px 15px !important;
    }
}


