:root {
--night: #0a0c1a;
--deep: #0d1030;
--navy: #111540;
--midnight: #131a4a;
--violet: #4a2d6e;
--violet-light: #7b4fac;
--rose: #c06f8a;
--rose-light: #e8a0b8;
--emerald: #1a6e5a;
--emerald-light: #2dcfa8;
--emerald-glow: #00ffc3;
--gold: #c8a96e;
--star: #e8e4f0;
--text: #ccc8e0;
--text-dim: #8880a0;
--glass: rgba(20, 25, 80, 0.45);
--glass-border: rgba(120, 100, 200, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
background: var(--night);
color: var(--text);
font-family: 'EB Garamond', Georgia, serif;
font-size: 17px;
line-height: 1.75;
overflow-x: hidden;
cursor: default;
}

/* === CANVAS STARS === */
#starfield {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
z-index: 0;
pointer-events: none;
}

/* === PIXEL MOON === */
.pixel-moon {
position: fixed;
top: 60px; right: 80px;
z-index: 1;
pointer-events: none;
image-rendering: pixelated;
opacity: 0.55;
animation: moonFloat 8s ease-in-out infinite;
}
@keyframes moonFloat {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-12px); }
}

/* === NAV === */
nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 3rem;
height: 70px;
background: rgba(8, 10, 28, 0.88);
backdrop-filter: blur(18px);
border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
font-family: 'Cinzel', serif;
font-size: 1.05rem;
color: var(--emerald-light);
letter-spacing: 0.15em;
text-decoration: none;
}
.nav-logo span { color: var(--rose-light); }

.nav-links {
display: flex;
gap: 0.2rem;
list-style: none;
}

.nav-links a {
display: block;
padding: 0.4rem 0.9rem;
font-family: 'Cinzel', serif;
font-size: 0.72rem;
letter-spacing: 0.1em;
color: var(--text-dim);
text-decoration: none;
text-transform: uppercase;
border-radius: 4px;
transition: color 0.3s, background 0.3s;
position: relative;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: 2px; left: 50%; right: 50%;
height: 1px;
background: var(--emerald-light);
transition: left 0.3s, right 0.3s;
}
.nav-links a:hover { color: var(--emerald-light); }
.nav-links a:hover::after { left: 10%; right: 10%; }

/* === SECTIONS === */
section {
position: relative;
z-index: 10;
min-height: 100vh;
padding: 110px 0 80px;
}

.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 2.5rem;
}

/* === SECTION TITLE === */
.section-title {
font-family: 'Cinzel', serif;
font-size: 2.1rem;
font-weight: 600;
color: var(--star);
letter-spacing: 0.08em;
margin-bottom: 0.4rem;
position: relative;
display: inline-block;
}
.section-title::before {
content: attr(data-rune);
position: absolute;
left: -2.2rem;
top: 50%;
transform: translateY(-50%);
font-size: 1.1rem;
color: var(--emerald-light);
opacity: 0.7;
}
.section-subtitle {
font-family: 'EB Garamond', serif;
font-style: italic;
color: var(--text-dim);
font-size: 1rem;
margin-bottom: 3.5rem;
letter-spacing: 0.03em;
}
.title-line {
width: 80px;
height: 1px;
background: linear-gradient(90deg, var(--emerald-light), var(--violet-light), transparent);
margin: 0.6rem 0 0.4rem;
}

/* === GLASS CARD === */
.glass {
background: var(--glass);
border: 1px solid var(--glass-border);
border-radius: 12px;
backdrop-filter: blur(10px);
padding: 2rem 2.5rem;
}

/* ========================== */
/*  HERO                      */
/* ========================== */
#hero {
display: flex;
align-items: center;
min-height: 100vh;
padding-top: 70px;
}
.hero-inner {
display: grid;
grid-template-columns: 1fr 340px;
gap: 4rem;
align-items: center;
width: 100%;
max-width: 1100px;
margin: 0 auto;
padding: 0 2.5rem;
}

.hero-eyebrow {
font-family: 'Share Tech Mono', monospace;
font-size: 0.82rem;
color: var(--emerald-light);
letter-spacing: 0.2em;
text-transform: uppercase;
margin-bottom: 1rem;
opacity: 0;
animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
font-family: 'Cinzel', serif;
font-size: clamp(2.8rem, 5vw, 4.2rem);
font-weight: 700;
color: var(--star);
line-height: 1.1;
margin-bottom: 1rem;
opacity: 0;
animation: fadeUp 0.8s 0.4s forwards;
}
.hero-name em {
font-style: normal;
background: linear-gradient(135deg, var(--rose-light), var(--violet-light));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-title {
font-family: 'EB Garamond', serif;
font-size: 1.25rem;
color: var(--violet-light);
font-style: italic;
margin-bottom: 1.5rem;
opacity: 0;
animation: fadeUp 0.8s 0.55s forwards;
}
.hero-desc {
color: var(--text);
font-size: 1.05rem;
max-width: 560px;
opacity: 0;
animation: fadeUp 0.8s 0.7s forwards;
margin-bottom: 2.5rem;
}

.hero-btns {
display: flex; gap: 1rem; flex-wrap: wrap;
opacity: 0;
animation: fadeUp 0.8s 0.9s forwards;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.7rem 1.8rem;
border-radius: 6px;
font-family: 'Cinzel', serif;
font-size: 0.78rem;
letter-spacing: 0.12em;
text-transform: uppercase;
text-decoration: none;
cursor: pointer;
border: none;
transition: all 0.3s;
}
.btn-primary {
background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
color: var(--night);
font-weight: 700;
box-shadow: 0 0 25px rgba(45, 207, 168, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 0 40px rgba(45, 207, 168, 0.5);
}
.btn-ghost {
border: 1px solid var(--glass-border);
color: var(--text);
background: transparent;
}
.btn-ghost:hover {
border-color: var(--rose-light);
color: var(--rose-light);
transform: translateY(-2px);
}

/* Pixel art card */
.hero-visual {
opacity: 0;
animation: fadeIn 1.2s 0.6s forwards;
position: relative;
}
.pixel-avatar {
width: 100%;
max-width: 300px;
aspect-ratio: 1;
margin: 0 auto;
display: block;
border: 2px solid rgba(45, 207, 168, 0.25);
border-radius: 12px;
overflow: hidden;
position: relative;
background: var(--deep);
box-shadow: 0 0 60px rgba(45, 207, 168, 0.15), inset 0 0 40px rgba(10,12,40,0.8);
}
.pixel-scene {
width: 100%;
height: 100%;
image-rendering: pixelated;
}

/* orbital ring */
.orbit-ring {
position: absolute;
border-radius: 50%;
border: 1px dashed rgba(120, 100, 200, 0.25);
top: 50%; left: 50%;
transform: translate(-50%, -50%);
animation: spin 20s linear infinite;
}
.orbit-ring:nth-child(2) { width: 120%; height: 120%; animation-duration: 25s; animation-direction: reverse; }
.orbit-ring:nth-child(3) { width: 140%; height: 140%; animation-duration: 35s; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ========================== */
/*  ABOUT                     */
/* ========================== */
#about { background: linear-gradient(180deg, transparent 0%, rgba(10,15,50,0.4) 100%); }

.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: start;
}
.about-text p { margin-bottom: 1.2rem; color: var(--text); }
.about-text p strong { color: var(--emerald-light); font-style: normal; }

.about-facts {
display: flex;
flex-direction: column;
gap: 1rem;
}
.fact-item {
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 1rem 1.2rem;
border-radius: 8px;
background: rgba(20,25,80,0.3);
border-left: 2px solid var(--emerald-light);
transition: background 0.3s;
}
.fact-item:hover { background: rgba(20,25,80,0.55); }
.fact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.fact-label {
font-family: 'Cinzel', serif;
font-size: 0.7rem;
letter-spacing: 0.1em;
color: var(--text-dim);
text-transform: uppercase;
margin-bottom: 0.2rem;
}
.fact-value { color: var(--star); font-size: 0.98rem; }

/* ========================== */
/*  SKILLS                    */
/* ========================== */
#skills { background: linear-gradient(180deg, rgba(10,15,50,0.4) 0%, transparent 100%); }

.skills-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}

.skill-category-title {
font-family: 'Cinzel', serif;
font-size: 0.8rem;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--rose-light);
margin-bottom: 1.2rem;
display: flex;
align-items: center;
gap: 0.6rem;
}
.skill-category-title::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(90deg, var(--rose-light), transparent);
opacity: 0.3;
}

.skill-tag {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.35rem 0.85rem;
margin: 0.25rem;
border-radius: 20px;
font-family: 'Share Tech Mono', monospace;
font-size: 0.8rem;
border: 1px solid;
transition: all 0.3s;
}
.skill-tag.tech {
border-color: rgba(45, 207, 168, 0.4);
color: var(--emerald-light);
background: rgba(45, 207, 168, 0.06);
}
.skill-tag.tech:hover {
background: rgba(45, 207, 168, 0.15);
box-shadow: 0 0 15px rgba(45, 207, 168, 0.2);
transform: translateY(-2px);
}
.skill-tag.soft {
border-color: rgba(192, 111, 138, 0.4);
color: var(--rose-light);
background: rgba(192, 111, 138, 0.06);
}
.skill-tag.soft:hover {
background: rgba(192, 111, 138, 0.15);
box-shadow: 0 0 15px rgba(192, 111, 138, 0.2);
transform: translateY(-2px);
}

.skill-bar-wrap { margin-bottom: 1rem; }
.skill-bar-label {
display: flex;
justify-content: space-between;
font-size: 0.88rem;
color: var(--text);
margin-bottom: 0.35rem;
}
.skill-bar-label span { color: var(--text-dim); font-size: 0.78rem; font-family: 'Share Tech Mono', monospace; }
.skill-bar-track {
height: 5px;
background: rgba(255,255,255,0.06);
border-radius: 99px;
overflow: hidden;
}
.skill-bar-fill {
height: 100%;
border-radius: 99px;
background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
width: 0%;
transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Soft skills hexagons */
.soft-grid {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}

/* ========================== */
/*  PROJECTS                  */
/* ========================== */
#projects {}

.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.8rem;
}

.project-card {
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--glass-border);
background: var(--glass);
backdrop-filter: blur(10px);
transition: transform 0.3s, box-shadow 0.3s;
display: flex;
flex-direction: column;
}
.project-card:hover {
transform: translateY(-6px);
box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(45,207,168,0.1);
}

.project-thumb {
height: 180px;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: var(--deep);
}
.project-thumb canvas { image-rendering: pixelated; }
.project-thumb-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 50%, var(--glass) 100%);
}

.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.project-tag {
font-family: 'Share Tech Mono', monospace;
font-size: 0.68rem;
padding: 0.2rem 0.6rem;
border-radius: 4px;
background: rgba(45,207,168,0.12);
color: var(--emerald-light);
border: 1px solid rgba(45,207,168,0.2);
}
.project-name {
font-family: 'Cinzel', serif;
font-size: 1.05rem;
color: var(--star);
margin-bottom: 0.6rem;
}
.project-desc { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; flex: 1; }
.project-links { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.project-link {
font-family: 'Share Tech Mono', monospace;
font-size: 0.75rem;
color: var(--emerald-light);
text-decoration: none;
border-bottom: 1px solid rgba(45,207,168,0.3);
padding-bottom: 1px;
transition: color 0.2s, border-color 0.2s;
}
.project-link:hover { color: var(--star); border-color: var(--star); }

/* ========================== */
/*  EXPERIENCE                */
/* ========================== */
#experience { background: linear-gradient(180deg, transparent 0%, rgba(10,15,50,0.3) 100%); }

.timeline {
position: relative;
padding-left: 2.5rem;
}
.timeline::before {
content: '';
position: absolute;
left: 0; top: 0; bottom: 0;
width: 1px;
background: linear-gradient(180deg, var(--emerald-light), var(--violet-light), var(--rose), transparent);
}

.timeline-item {
position: relative;
margin-bottom: 3rem;
opacity: 0;
transform: translateX(-20px);
transition: opacity 0.6s, transform 0.6s;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
position: absolute;
left: -2.5rem;
top: 0.5rem;
width: 12px; height: 12px;
border-radius: 50%;
background: var(--emerald-light);
border: 2px solid var(--night);
box-shadow: 0 0 12px rgba(45,207,168,0.6);
transform: translateX(-5.5px);
}
.timeline-item:nth-child(2) .timeline-dot { background: var(--violet-light); box-shadow: 0 0 12px rgba(123,79,172,0.6); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--rose); box-shadow: 0 0 12px rgba(192,111,138,0.6); }
.timeline-item:nth-child(4) .timeline-dot { background: var(--gold); box-shadow: 0 0 12px rgba(200,169,110,0.6); }
.timeline-item:nth-child(5) .timeline-dot { background: var(--emerald-light); }

.timeline-period {
font-family: 'Share Tech Mono', monospace;
font-size: 0.75rem;
color: var(--text-dim);
letter-spacing: 0.1em;
margin-bottom: 0.3rem;
}
.timeline-role {
font-family: 'Cinzel', serif;
font-size: 1.1rem;
color: var(--star);
margin-bottom: 0.2rem;
}
.timeline-company {
font-style: italic;
color: var(--violet-light);
font-size: 0.95rem;
margin-bottom: 0.8rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.timeline-badge {
display: inline-block;
padding: 0.15rem 0.6rem;
border-radius: 20px;
font-family: 'Share Tech Mono', monospace;
font-size: 0.65rem;
font-style: normal;
border: 1px solid;
letter-spacing: 0.05em;
}
.badge-travel { border-color: rgba(200,169,110,0.5); color: var(--gold); background: rgba(200,169,110,0.08); }
.badge-tech { border-color: rgba(45,207,168,0.5); color: var(--emerald-light); background: rgba(45,207,168,0.08); }
.badge-current { border-color: rgba(45,207,168,0.8); color: var(--emerald-glow); background: rgba(45,207,168,0.12); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

.timeline-desc {
color: var(--text);
font-size: 0.95rem;
line-height: 1.7;
padding: 1rem 1.2rem;
background: rgba(20,25,80,0.3);
border-radius: 8px;
border-left: 2px solid rgba(120,100,200,0.2);
}
.timeline-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.tskill {
font-family: 'Share Tech Mono', monospace;
font-size: 0.68rem;
padding: 0.2rem 0.6rem;
border-radius: 4px;
color: var(--text-dim);
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
}

/* ========================== */
/*  PASSIONS                  */
/* ========================== */
#passions {}

.passions-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}

.passion-card {
padding: 2rem 1.5rem;
border-radius: 12px;
border: 1px solid var(--glass-border);
background: var(--glass);
text-align: center;
transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
backdrop-filter: blur(10px);
cursor: default;
}
.passion-card:hover {
transform: translateY(-5px);
border-color: rgba(120,100,200,0.4);
box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}
.passion-icon { font-size: 2.5rem; margin-bottom: 0.8rem; display: block; }
.passion-title {
font-family: 'Cinzel', serif;
font-size: 0.95rem;
color: var(--star);
margin-bottom: 0.5rem;
letter-spacing: 0.05em;
}
.passion-desc { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; }

/* ========================== */
/*  CONTACT                   */
/* ========================== */
#contact { background: linear-gradient(180deg, rgba(10,15,50,0.3) 0%, rgba(5,8,25,0.8) 100%); }

.contact-grid {
display: grid;
grid-template-columns: 1fr 1.4fr;
gap: 4rem;
align-items: start;
}
.contact-info p { color: var(--text-dim); margin-bottom: 1.5rem; font-style: italic; }
.contact-links { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-link {
display: flex;
align-items: center;
gap: 0.8rem;
color: var(--text);
text-decoration: none;
font-size: 0.95rem;
transition: color 0.3s;
padding: 0.5rem 0;
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.contact-link:hover { color: var(--emerald-light); }
.contact-link-icon { font-size: 1rem; color: var(--emerald-light); width: 1.5rem; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
font-family: 'Cinzel', serif;
font-size: 0.7rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-dim);
}
.form-control {
background: rgba(10,12,40,0.6);
border: 1px solid var(--glass-border);
border-radius: 8px;
padding: 0.8rem 1rem;
color: var(--text);
font-family: 'EB Garamond', serif;
font-size: 1rem;
transition: border-color 0.3s, box-shadow 0.3s;
resize: none;
outline: none;
}
.form-control:focus {
border-color: rgba(45, 207, 168, 0.5);
box-shadow: 0 0 20px rgba(45, 207, 168, 0.1);
}
.form-control::placeholder { color: var(--text-dim); opacity: 0.5; }
textarea.form-control { min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
width: 100%;
background: linear-gradient(135deg, var(--violet), var(--violet-light));
color: white;
border: none;
padding: 1rem;
border-radius: 8px;
font-family: 'Cinzel', serif;
font-size: 0.85rem;
letter-spacing: 0.15em;
text-transform: uppercase;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 0 25px rgba(123,79,172,0.3);
}
.btn-submit:hover {
transform: translateY(-2px);
box-shadow: 0 0 40px rgba(123,79,172,0.5);
}
.btn-submit:active { transform: translateY(0); }

/* === FOOTER === */
footer {
position: relative;
z-index: 10;
text-align: center;
padding: 2.5rem;
border-top: 1px solid var(--glass-border);
color: var(--text-dim);
font-family: 'Share Tech Mono', monospace;
font-size: 0.75rem;
letter-spacing: 0.08em;
background: rgba(5,8,25,0.8);
}
footer span { color: var(--rose-light); }

/* === ANIMATIONS === */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.reveal {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 99px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
nav { padding: 0 1rem; }
.nav-links { display: none; }
.hero-inner { grid-template-columns: 1fr; }
.hero-visual { display: none; }
.about-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
.passions-grid { grid-template-columns: repeat(2, 1fr); }
.form-row { grid-template-columns: 1fr; }
.section-title { font-size: 1.6rem; }
}