:root {
    --bg-dark: #06020f;
    --p-deep: #4c1d95;
    --p-bright: #a855f7;
    --p-glow: #6366f1;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-dim: #d1d1d1;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- HERO & BACKGROUND --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-mini {
    height: 40vh;
    min-height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

.hero-mini .canvas {
    height: 100%;
    filter: blur(70px);
}

.liquid {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform, border-radius;
}

.l-1 { width: 500px; height: 500px; background: var(--p-deep); bottom: -100px; left: -50px; animation: move-liquid 5s infinite alternate ease-in-out, shape-liquid 8s infinite alternate ease-in-out; }
.l-2 { width: 450px; height: 450px; background: var(--p-bright); bottom: -150px; right: -50px; animation: move-liquid 7s infinite alternate-reverse ease-in-out, shape-liquid 6s infinite alternate-reverse ease-in-out; opacity: 0.7; }
.l-3 { width: 350px; height: 350px; background: var(--p-glow); bottom: 10%; left: 30%; animation: move-liquid 18s infinite alternate ease-in-out, shape-liquid 10s infinite alternate ease-in-out; opacity: 0.6; }

.hero-mini .l-1 { width: 400px; height: 400px; bottom: -150px; left: -80px; animation: move-liquid-mini 10s infinite alternate ease-in-out, shape-liquid 8s infinite alternate ease-in-out; opacity: 0.8; }
.hero-mini .l-2 { width: 350px; height: 350px; bottom: -180px; right: -60px; animation: move-liquid-mini 14s infinite alternate-reverse ease-in-out, shape-liquid 6s infinite alternate-reverse ease-in-out; opacity: 0.5; }
.hero-mini .l-3 { width: 280px; height: 280px; bottom: -80px; left: 40%; animation: move-liquid-mini 18s infinite linear, shape-liquid 10s infinite alternate ease-in-out; opacity: 0.4; }

@keyframes move-liquid {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(120px, -80px) rotate(45deg); }
    100% { transform: translate(-60px, 40px) rotate(90deg); }
}

@keyframes move-liquid-mini {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(80px, -40px) rotate(45deg); }
    100% { transform: translate(-40px, 20px) rotate(90deg); }
}

/* Note: Keeping the shape-liquid keyframes as they are identical */
@keyframes shape-liquid {
    0%   { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    33%  { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; }
    66%  { border-radius: 30% 70% 70% 30% / 67% 30% 70% 33%; }
    100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
}

/* --- COMPONENTS --- */
.glass-card {
    position: relative;
    z-index: 10;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    text-align: center;
}

h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    margin: 0;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--p-bright) 150%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    margin: 0 0 0.5rem 0;
    letter-spacing: -1px;
}

.hero-title {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title .breadcrumb {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.hero-title .breadcrumb a {
    color: var(--p-bright);
    text-decoration: none;
    transition: opacity 0.2s;
}

.hero-title .breadcrumb a:hover { opacity: 0.75; }

.btn-cv {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid var(--p-bright);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cv:hover {
    background: var(--p-bright);
    box-shadow: 0 0 20px var(--p-bright);
    transform: translateY(-3px);
}

/* --- CONTENT & SECTIONS --- */
.portfolio-content {
    padding: 100px 10%;
    position: relative;
    z-index: 20;
    background-color: var(--bg-dark);
}

.page-content {
    padding: 80px 10% 120px;
    position: relative;
    z-index: 20;
    background-color: var(--bg-dark);
    max-width: 860px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.section {
    margin-bottom: 150px;
}

h2 {
    color: var(--p-bright);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
}

.card:hover { border-color: var(--p-bright); }

/* --- TIMELINE --- */
.timeline-container { position: relative; padding: 40px 0; }

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    width: 4px;
    height: 0%;
    background: linear-gradient(to bottom, var(--p-bright), var(--p-deep));
    box-shadow: 0 0 15px var(--p-bright);
    z-index: 1;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 80px;
    z-index: 2;
}

.timeline-dot {
    position: absolute;
    left: 30px;
    top: 25px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--p-bright);
    border-radius: 50%;
    z-index: 10;
    transform: translate(-50%, 0) scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background 0.3s,
                box-shadow 0.3s;
}

.timeline-item.active .timeline-dot {
    transform: translate(-50%, 0) scale(1.3);
    background: var(--p-bright);
    box-shadow: 0 0 15px var(--p-bright);
}

.timeline-card {
    text-align: left;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: transform 0.3s, border-color 0.3s;
}

.timeline-card:hover {
    transform: translateX(10px);
    border-color: var(--p-bright);
}

.date { color: var(--p-bright); font-weight: bold; }

.school-info {
    font-style: italic;
    font-size: 0.9rem;
}

.email-link {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

/* --- LEGAL BLOCKS --- */
.legal-block {
    margin-bottom: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    transition: border-color 0.3s;
}

.legal-block:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.legal-block h2 {
    color: var(--p-bright);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.legal-block h2 .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--p-bright);
    font-size: 0.8rem;
    flex-shrink: 0;
    color: var(--p-bright);
}

.legal-block p {
    margin: 0 0 1rem 0;
    color: var(--text-dim);
    font-size: 0.97rem;
}

.legal-block p:last-child { margin-bottom: 0; }

.info-list {
    list-style: none;
    margin: 0.8rem 0 0 0;
    padding: 0;
}

.info-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.97rem;
}

.info-list li:last-child { border-bottom: none; }

.info-list .label {
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    min-width: 160px;
    flex-shrink: 0;
}

.info-list a {
    color: var(--p-bright);
    text-decoration: none;
    transition: opacity 0.2s;
}

.info-list a:hover { opacity: 0.75; }

/* --- FOOTER & SOCIALS --- */
footer {
    padding: 50px 10%;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.social-links a:hover { color: var(--p-bright); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .portfolio-content { padding: 50px 5%; }
    .page-content { padding: 50px 5% 80px; }
    .glass-card { padding: 2rem 1.5rem; }
    .legal-block { padding: 1.5rem; }
    .info-list .label { min-width: 120px; }
    .canvas { height: 50%; filter: blur(40px); }
    footer { justify-content: center; text-align: center; }
    .social-links { margin-top: 10px; }
    .social-links a { margin: 0 10px; }
}

@media (max-width: 480px) {
    .info-list li { flex-direction: column; gap: 2px; }
    .info-list .label { min-width: unset; }
}
