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

:root {
    --bg: #0b0813;
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.45);
    --border: rgba(138, 92, 246, 0.1);
    
    --ritik-accent: #8a5cf6; /* Cyber Violet */
    --aakansha-accent: #10b981; /* Emerald Green */
    --gold: #d4af37; /* Overlap Gold */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Outfit', sans-serif; overflow-x: hidden; }

/* Grid Space background */
.space-grid {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(138, 92, 246, 0.05), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.04), transparent 60%);
}
.grid-dot {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    pointer-events: none;
}
@keyframes fadePulse {
    0% { opacity: 0.1; transform: scale(0.8); }
    100% { opacity: 0.7; transform: scale(1.2); }
}

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; padding: 1rem 2rem; z-index: 100; background: rgba(11,8,19,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-back { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ritik-accent); text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.nav-back:hover { opacity: 1; }

/* Header */
.dashboard-header {
    min-height: 80vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 7rem 1.5rem 2rem;
    position: relative; z-index: 1;
}
.header-glow {
    position: absolute;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(138,92,246,0.06), transparent 70%);
    pointer-events: none;
}
.eyebrow { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ritik-accent); margin-bottom: 1.5rem; }
.main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 400; line-height: 1.1; margin-bottom: 1.5rem;
}
.main-title em { font-style: italic; color: var(--ritik-accent); }
.subtitle { color: var(--muted); font-size: 1.05rem; font-weight: 300; max-width: 540px; line-height: 1.75; }

/* Dashboard layout grid */
.dashboard-content { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem 4rem; position: relative; z-index: 1; }

/* Glass Panel helper */
.glass-panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    margin-bottom: 4rem;
}

/* 1. QUICK SUMMARY CARDS */
.profiles-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}
.profile-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-card:hover { transform: translateY(-5px); }
.profile-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
}

/* Custom Gradients for Cards */
.profile-card.ritik-theme {
    border-color: rgba(138, 92, 246, 0.15);
}
.profile-card.ritik-theme::before {
    background: radial-gradient(circle at 10% 10%, rgba(138, 92, 246, 0.04), transparent 50%);
}
.profile-card.aakansha-theme {
    border-color: rgba(16, 185, 129, 0.15);
}
.profile-card.aakansha-theme::before {
    background: radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.04), transparent 50%);
}

.avatar-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}
.ritik-theme .avatar-ring { border-color: var(--ritik-accent); }
.aakansha-theme .avatar-ring { border-color: var(--aakansha-accent); }

.avatar-text { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 500; }
.ritik-theme .avatar-text { color: var(--ritik-accent); }
.aakansha-theme .avatar-text { color: var(--aakansha-accent); }

.pulse-ring {
    position: absolute; inset: -4px; border-radius: 50%;
    animation: ringPulse 2s infinite ease-out;
    border: 1px solid transparent;
}
.ritik-theme .pulse-ring { border-color: rgba(138, 92, 246, 0.2); }
.aakansha-theme .pulse-ring { border-color: rgba(16, 185, 129, 0.2); }

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 0; }
}

.card-name { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; margin-bottom: 0.2rem; }
.card-id { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1.5rem; }

.quick-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2rem; }
.stat-badge {
    font-size: 0.78rem; font-weight: 400;
    padding: 0.35rem 0.9rem; border-radius: 100px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
}
.ritik-theme .stat-badge { border-color: rgba(138, 92, 246, 0.15); }
.aakansha-theme .stat-badge { border-color: rgba(16, 185, 129, 0.15); }

.bio-quote {
    font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic;
    color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 380px; margin: 0 auto;
}

/* 2. MATCH ANALYSIS WIDGET */
.match-analysis-section { padding: 3.5rem 3rem; }
.section-title {
    font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 400;
    text-align: center; color: var(--text); margin-bottom: 3.5rem;
}

.match-widget-grid {
    display: grid; grid-template-columns: 320px 1fr;
    gap: 4rem; align-items: center;
}

.score-circle-wrapper { text-align: center; }
.circular-progress {
    width: 180px; height: 180px; margin: 0 auto 1.5rem;
    position: relative;
}
.progress-svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.bg-circle { fill: none; stroke: rgba(255,255,255,0.02); stroke-width: 6; }
.fg-circle {
    fill: none; stroke: url(#goldGradient); stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

/* We inject golden gradients in SVG inline styling or simply linear gradient fallback */
.fg-circle { stroke: var(--gold); filter: drop-shadow(0 0 6px rgba(212,175,55,0.3)); }

.score-display {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-percent { font-size: 2.6rem; font-weight: 500; color: var(--gold); }
.score-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 0.2rem; }
.score-caption { font-size: 0.8rem; color: var(--muted); font-weight: 300; }

.sub-metrics-list { }
.sub-metrics-list h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; margin-bottom: 2rem; }

.bar-metric { margin-bottom: 1.8rem; }
.bar-labels { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 0.6rem; color: rgba(255,255,255,0.85); }
.bar-labels .percent { color: var(--gold); font-weight: 500; }
.progress-bar-bg { height: 6px; background: rgba(255,255,255,0.03); border-radius: 100px; overflow: hidden; }
.progress-bar-fg {
    height: 100%;
    background: linear-gradient(90deg, var(--ritik-accent), var(--aakansha-accent));
    border-radius: 100px;
    box-shadow: 0 0 8px rgba(138, 92, 246, 0.4);
}

/* 3. FIELD COMPARISON TABLE */
.comparison-table-section { padding: 3.5rem 3rem; }

.table-container { display: flex; flex-direction: column; gap: 2.5rem; }
.table-group-header {
    font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500;
    color: var(--ritik-accent); border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem; margin-bottom: 1rem;
}

.comparison-row {
    display: grid; grid-template-columns: 180px 1fr 1fr 150px;
    gap: 1.5rem; padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    align-items: center;
    font-size: 0.92rem;
}
.comparison-row:last-child { border-bottom: none; }

.field-name { color: var(--muted); font-weight: 400; }
.ritik-val { color: rgba(255,255,255,0.85); font-weight: 300; }
.aakansha-val { color: rgba(255,255,255,0.85); font-weight: 300; }

.comparison-status {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 0.3rem 0.7rem; border-radius: 4px; text-align: center;
    border: 1px solid transparent;
}
.comparison-status.match {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--aakansha-accent);
}
.comparison-status.neutral {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
    color: var(--muted);
}

/* 4. CONVERSATION STARTERS */
.conversation-starters-section { padding: 3.5rem 3rem; }
.starters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.starter-card {
    padding: 2rem 1.8rem; border-radius: 20px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.3s;
}
.starter-card:hover { border-color: rgba(138, 92, 246, 0.25); }
.starter-card .icon { font-size: 2.2rem; display: block; margin-bottom: 1.2rem; }
.starter-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 500; margin-bottom: 0.6rem; color: var(--ritik-accent); }
.starter-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.7; font-weight: 300; }

/* Comments Wrapper */
.comments-wrapper {
    max-width: 780px; margin: 4rem auto 0; padding: 4rem 1.5rem 0; border-top: 1px solid var(--border); position: relative; z-index: 1;
}
.comments-header { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; text-align: center; color: var(--ritik-accent); margin-bottom: 0.3rem; }
.comments-subheader { font-size: 0.85rem; text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

/* Footer */
.footer { text-align: center; padding: 6rem 1rem 4rem; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.footer-line { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; line-height: 1.7; margin-bottom: 2rem; color: rgba(255,255,255,0.6); }
.footer-line em { color: var(--ritik-accent); font-style: italic; }
.footer-back { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ritik-accent); text-decoration: none; opacity: 0.6; transition: opacity 0.2s; }
.footer-back:hover { opacity: 1; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .profiles-summary-grid { grid-template-columns: 1fr; gap: 2rem; }
    .match-widget-grid { grid-template-columns: 1fr; gap: 3rem; }
    .comparison-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .comparison-row .field-name { grid-column: span 2; border-bottom: 1px solid rgba(255,255,255,0.03); padding-bottom: 0.2rem; }
    .comparison-status { grid-column: span 2; margin-top: 0.5rem; }
}
