/* ═══════════════════════════════════════
   SYNAPSE — Alice Cheprasova
   Super trendy personal brand site
   ═══════════════════════════════════════ */

/* --- Tokens --- */
:root {
    --bg: #06060b;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #f0f0f5;
    --text-muted: #8b8b9e;
    --text-dim: #5a5a6e;
    --purple: #8B5CF6;
    --cyan: #06B6D4;
    --pink: #EC4899;
    --coral: #F97316;
    --gradient-primary: linear-gradient(135deg, var(--purple), var(--cyan));
    --gradient-accent: linear-gradient(135deg, var(--pink), var(--coral));
    --gradient-bg: linear-gradient(180deg, #0a0a14 0%, #06060b 100%);
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Grain overlay --- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
}

/* --- Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section labels --- */
.section-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 2rem;
}
.section-label.light { color: rgba(255,255,255,0.6); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.15;
}

/* ═══════════ NAV ═══════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 6, 11, 0.7);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.dot { color: var(--purple); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    font-weight: 400;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600 !important;
}

.lang-toggle {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 2px;
}
.lang-toggle button {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}
.lang-toggle button.active {
    background: var(--gradient-primary);
    color: #fff;
}
.lang-toggle button:hover:not(.active) {
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════ HERO ═══════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 12s ease-in-out infinite;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: var(--purple);
    top: -10%; left: -10%;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: var(--cyan);
    bottom: -15%; right: -10%;
    animation-delay: -4s;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: var(--pink);
    top: 40%; right: 20%;
    animation-delay: -8s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    width: 100%;
}

/* Photo */
.hero-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.hero-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-photo.placeholder .photo-initials {
    display: flex;
}
.photo-initials {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-photo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--gradient-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero text */
.hero-text { flex: 1; }

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 40%, var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.tagline-word {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}
.tagline-word[data-delay="0"] { animation-delay: 0.3s; }
.tagline-word[data-delay="1"] { animation-delay: 0.5s; }
.tagline-word[data-delay="2"] { animation-delay: 0.7s; }
.tagline-word:hover {
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.1);
}
.tagline-sep {
    color: var(--text-dim);
    opacity: 0;
    animation: fadeIn 0.6s 0.4s forwards;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--bg-card);
}
.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--gradient-primary);
    opacity: 0.4;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
    50% { opacity: 0.5; transform: scaleY(1); }
}

/* ═══════════ ABOUT / BENTO ═══════════ */
.about {
    padding: 8rem 0;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.bento-main {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}
.bento-main h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bento-main p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-weight: 300;
}
.bento-main p:last-child { margin-bottom: 0; }

.bento-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.bento-accent, .bento-fun {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.bento-accent {
    grid-column: 1 / 2;
}
.bento-fun {
    grid-column: 2 / 4;
}
.accent-emoji {
    font-size: 2rem;
}
.bento-accent p, .bento-fun p {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
}

/* ═══════════ EXPERTISE ═══════════ */
.expertise {
    padding: 4rem 0 8rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}
.expertise-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.expertise-card:hover::before { opacity: 1; }

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.expertise-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.expertise-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ═══════════ EDUCATION ═══════════ */
.education {
    padding: 4rem 0 8rem;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 8px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
}
.timeline-content:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.timeline-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple);
    margin-bottom: 0.75rem;
}
.timeline-badge.exchange {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.timeline-location {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.timeline-content p:last-child {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
}

/* ═══════════ SESSION CTA ═══════════ */
.session {
    padding: 4rem 0 8rem;
}

.session-card {
    position: relative;
    border-radius: calc(var(--radius) + 8px);
    padding: 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.session-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.session-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}
.session-orb-1 {
    width: 350px; height: 350px;
    background: var(--purple);
    top: -30%; right: -10%;
    animation: float 10s ease-in-out infinite;
}
.session-orb-2 {
    width: 250px; height: 250px;
    background: var(--cyan);
    bottom: -20%; left: -5%;
    animation: float 10s ease-in-out infinite -5s;
}

.session-content {
    position: relative;
    max-width: 600px;
}
.session-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}
.session-content > p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.session-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.session-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.session-feature span {
    color: var(--purple);
    font-size: 0.8rem;
}

.session-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ═══════════ FOOTER ═══════════ */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 300;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 0.35rem 0;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 6, 11, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }
    .nav-toggle { display: flex; }

    .hero { padding: 7rem 1.5rem 3rem; }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-photo { width: 200px; height: 200px; }
    .hero-photo-ring { inset: -5px; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-tagline { justify-content: center; }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-main { grid-column: 1 / -1; }
    .bento-fun { grid-column: 1 / -1; }

    .expertise-grid { grid-template-columns: 1fr; }

    .session-card { padding: 2.5rem 1.5rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-stat { grid-column: 1; }
    .bento-accent { grid-column: 1; }
    .bento-fun { grid-column: 1; }
    .hero-name { font-size: 2.5rem; }
    .tagline-sep { display: none; }
    .hero-tagline { gap: 0.5rem; }
}
