/* =========================================================
   VARIABLES
========================================================= */
:root {
  --bg: #05070d;
  --bg-alt: #090c16;
  --surface: rgba(255,255,255,0.045);
  --surface-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.09);
  --text: #eef0f7;
  --text-dim: #97a0b8;
  --text-dimmer: #656e88;

  --accent1: #7c3aed;
  --accent2: #06b6d4;
  --accent3: #f43f5e;

  --gradient: linear-gradient(135deg, var(--accent1), var(--accent2));
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,.18), rgba(6,182,212,.18));

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.16,1,.3,1);
}

[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-alt: #ffffff;
  --surface: rgba(10,15,30,0.04);
  --surface-strong: rgba(10,15,30,0.07);
  --border: rgba(10,15,30,0.09);
  --text: #10131f;
  --text-dim: #4a5169;
  --text-dimmer: #7b8299;
}

/* =========================================================
   RESET & BASE
========================================================= */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background .4s var(--ease), color .4s var(--ease);
}

@media (max-width: 900px), (hover:none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

h1,h2,h3,h4 { font-family: var(--font-heading); font-weight:600; line-height:1.15; }
a { color: inherit; text-decoration: none; }
img { max-width:100%; display:block; }
button { font-family: inherit; border:none; background:none; color:inherit; cursor:pointer; }
ul { list-style:none; }

.container { width:100%; max-width:1180px; margin:0 auto; padding: 0 24px; position:relative; z-index:2; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

::selection { background: var(--accent1); color:#fff; }

::-webkit-scrollbar { width:10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gradient); border-radius:10px; }

/* =========================================================
   PRELOADER
========================================================= */
#preloader {
  position:fixed; inset:0; z-index:9999;
  background: var(--bg);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
#preloader.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.preloader-inner { display:flex; flex-direction:column; align-items:center; gap:20px; }
.preloader-logo {
  font-family: var(--font-heading); font-size:2.5rem; font-weight:700;
  background: var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent;
  animation: pulseScale 1.4s ease-in-out infinite;
}
@keyframes pulseScale { 0%,100%{transform:scale(1);} 50%{transform:scale(1.12);} }
.preloader-bar { width:180px; height:3px; background: var(--surface-strong); border-radius:10px; overflow:hidden; }
.preloader-fill { width:0%; height:100%; background: var(--gradient); animation: loadBar 1.4s var(--ease) forwards; }
@keyframes loadBar { to { width:100%; } }

/* =========================================================
   CUSTOM CURSOR
========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed; top:0; left:0; border-radius:50%;
  pointer-events:none; z-index:9998; transform:translate(-50%,-50%);
}
.cursor-dot { width:8px; height:8px; background: var(--accent2); }
.cursor-ring {
  width:36px; height:36px; border:1.5px solid rgba(255,255,255,.35);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.hovering { width:56px; height:56px; background: rgba(124,58,237,.15); border-color: var(--accent1); }

/* =========================================================
   SCROLL PROGRESS
========================================================= */
.scroll-progress {
  position:fixed; top:0; left:0; height:3px; width:0%;
  background: var(--gradient); z-index:1001;
}

/* =========================================================
   BACKGROUND FX
========================================================= */
#bg-canvas { position:fixed; inset:0; z-index:0; opacity:.55; }
.bg-glow {
  position:fixed; width:45vw; height:45vw; border-radius:50%;
  filter: blur(120px); z-index:0; opacity:.35; pointer-events:none;
}
.bg-glow-1 { background: var(--accent1); top:-10%; left:-10%; }
.bg-glow-2 { background: var(--accent2); bottom:-15%; right:-10%; }
.noise-overlay {
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed; top:0; left:0; width:100%; z-index:1000;
  padding: 20px 0; transition: all .4s var(--ease);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5,7,13,.75);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .navbar.scrolled { background: rgba(245,246,251,.8); }

.nav-container {
  max-width:1180px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo {
  font-family: var(--font-heading); font-size:1.3rem; font-weight:700; letter-spacing:.5px;
}
.logo-bracket { color: var(--accent2); }

.nav-links { display:flex; align-items:center; gap:8px; position:relative; }
.nav-link {
  position:relative; padding:8px 16px; font-size:.92rem; font-weight:500;
  color: var(--text-dim); border-radius:20px; transition: color .3s;
  z-index:2;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-indicator {
  position:absolute; height:34px; background: var(--surface-strong);
  border-radius:20px; top:50%; transform:translateY(-50%);
  transition: left .4s var(--ease), width .4s var(--ease);
  z-index:1;
}

.nav-actions { display:flex; align-items:center; gap:14px; }

.lang-switch { position:relative; }
.lang-toggle {
  display:flex; align-items:center; gap:6px; height:38px; padding:0 12px; border-radius:20px;
  background: var(--surface); border:1px solid var(--border); color: var(--text); font-size:.85rem; font-weight:600;
}
.lang-toggle span:first-child { font-size:1rem; line-height:1; }
.lang-dropdown {
  position:absolute; top:calc(100% + 10px); right:0; min-width:160px; padding:6px;
  background: var(--bg-alt); border:1px solid var(--border); border-radius:14px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.35);
  display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index:1100;
}
.lang-dropdown.open { opacity:1; visibility:visible; transform: translateY(0); }
.lang-option {
  display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px;
  font-size:.88rem; font-weight:500; color: var(--text-dim); text-align:left; width:100%;
  transition: background .2s, color .2s;
}
.lang-option:hover { background: var(--surface); color: var(--text); }
.lang-option.active { background: var(--gradient-soft); color: var(--accent2); font-weight:600; }

.mobile-lang-switch { display:flex; gap:10px; margin-top:12px; }
.mobile-lang-option {
  flex:1; padding:10px 0; border-radius:12px; font-size:.85rem; font-weight:600;
  background: var(--surface); border:1px solid var(--border); color: var(--text-dim);
}
.mobile-lang-option.active { background: var(--gradient-soft); color: var(--accent2); border-color: rgba(6,182,212,.25); }

.theme-toggle {
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--surface); border:1px solid var(--border); position:relative;
}
.theme-toggle svg { width:18px; height:18px; position:absolute; transition: opacity .3s, transform .4s var(--ease); }
.icon-moon { opacity:1; transform: rotate(0deg); }
.icon-sun { opacity:0; transform: rotate(-90deg); }
[data-theme="light"] .icon-moon { opacity:0; transform: rotate(90deg); }
[data-theme="light"] .icon-sun { opacity:1; transform: rotate(0deg); }

.hamburger {
  display:none; flex-direction:column; gap:5px; width:24px;
}
.hamburger span { display:block; height:2px; width:100%; background: var(--text); transition: all .3s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position:fixed; top:0; right:0; width:min(78vw,320px); height:100vh; z-index:999;
  background: var(--bg-alt); border-left:1px solid var(--border);
  display:flex; flex-direction:column; gap:8px; padding:100px 32px 32px;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-link { font-size:1.2rem; font-weight:600; padding:12px 0; border-bottom:1px solid var(--border); }

@media (max-width: 860px) {
  .nav-links, .hide-mobile { display:none; }
  .hamburger { display:flex; }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 14px 28px; border-radius: 50px; font-weight:600; font-size:.95rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  position:relative; overflow:hidden; white-space:nowrap;
}
.btn svg { width:18px; height:18px; transition: transform .3s var(--ease); }
.btn-primary {
  background: var(--gradient); color:#fff;
  box-shadow: 0 8px 24px -8px rgba(124,58,237,.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -8px rgba(124,58,237,.75); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-outline {
  border:1.5px solid var(--border); color: var(--text); background: var(--surface);
}
.btn-outline:hover { border-color: var(--accent2); transform: translateY(-3px); }
.btn-small { padding:10px 20px; font-size:.85rem; }
.btn-full { width:100%; }

/* =========================================================
   REVEAL ANIMATIONS (base state, GSAP flips these)
========================================================= */
.reveal, .reveal-up, .reveal-left, .reveal-right { opacity:0; }
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.in, .reveal-up.in, .reveal-left.in, .reveal-right.in {
  opacity:1; transform: translate(0,0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d,0) * 0.08s);
}

/* =========================================================
   SECTIONS
========================================================= */
.section { padding: 130px 0; position:relative; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align:center; max-width:640px; margin:0 auto 60px; }
.section-tag {
  display:inline-block; padding:6px 16px; border-radius:30px; font-size:.8rem; font-weight:600;
  background: var(--gradient-soft); color: var(--accent2); margin-bottom:16px; letter-spacing:.5px;
  border:1px solid rgba(6,182,212,.25);
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom:14px; }
.section-subtitle { color: var(--text-dim); margin-bottom:20px; }

/* =========================================================
   HERO
========================================================= */
.hero {
  min-height:100vh; display:flex; align-items:center; position:relative; padding-top:100px;
}
.hero-grid {
  display:grid; grid-template-columns: 1.15fr .85fr; align-items:center; gap:40px;
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:10px; padding:8px 16px; border-radius:30px;
  background: var(--surface); border:1px solid var(--border); font-size:.85rem; color: var(--text-dim);
  margin-bottom:22px;
}
.pulse-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; position:relative; }
.pulse-dot::after {
  content:''; position:absolute; inset:0; border-radius:50%; background:#22c55e;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { 0%{transform:scale(1); opacity:.7;} 100%{transform:scale(2.6); opacity:0;} }

.hero-title { display:flex; flex-direction:column; gap:6px; font-size: clamp(1rem,2vw,1.3rem); font-weight:400; margin-bottom:22px; }
.hero-title > span:first-child { font-size:1.4rem; color: var(--text-dim); font-weight:400; }
.hero-name { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight:700; line-height:1.05; }
.hero-role { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight:600; color: var(--text); min-height:1.4em; }
.typed-text { color: var(--accent2); }
.typed-cursor { color: var(--accent2); animation: blink 1s step-end infinite; font-weight:300; }
@keyframes blink { 50% { opacity:0; } }

.hero-desc { color: var(--text-dim); max-width:520px; margin-bottom:34px; font-size:1.05rem; }
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:40px; }
.hero-socials { display:flex; gap:14px; }
.social-icon {
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--surface); border:1px solid var(--border); transition: all .35s var(--ease);
}
.social-icon svg { width:19px; height:19px; }
.social-icon:hover { background: var(--gradient); transform: translateY(-4px) rotate(8deg); border-color:transparent; }

.hero-visual { display:flex; align-items:center; justify-content:center; position:relative; }
.avatar-blob { position:relative; width:min(360px,80vw); aspect-ratio:1; display:flex; align-items:center; justify-content:center; }
.avatar-blob-shape {
  position:absolute; inset:0; border-radius: 44% 56% 62% 38% / 45% 40% 60% 55%;
  background: var(--gradient); opacity:.85; filter: blur(.5px);
  animation: blobMorph 9s ease-in-out infinite, blobSpin 22s linear infinite;
  box-shadow: 0 30px 80px -20px rgba(124,58,237,.55);
}
@keyframes blobMorph {
  0%,100% { border-radius: 44% 56% 62% 38% / 45% 40% 60% 55%; }
  33% { border-radius: 63% 37% 41% 59% / 55% 62% 38% 45%; }
  66% { border-radius: 38% 62% 55% 45% / 60% 40% 60% 40%; }
}
@keyframes blobSpin { to { transform: rotate(360deg); } }
.avatar-initials {
  position:relative; z-index:2; font-family: var(--font-heading); font-size:4.2rem; font-weight:700; color:#fff;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.orbit-item {
  position:absolute; width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; background: var(--surface); backdrop-filter: blur(10px); border:1px solid var(--border);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  animation: orbitFloat 5s ease-in-out infinite;
}
.orbit-1 { top:0%; left:-8%; animation-delay:0s; }
.orbit-2 { top:12%; right:-10%; animation-delay:1.2s; }
.orbit-3 { bottom:6%; left:-12%; animation-delay:2.4s; }
.orbit-4 { bottom:-6%; right:2%; animation-delay:3.6s; }
@keyframes orbitFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-16px); } }

.scroll-hint {
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px; color: var(--text-dimmer); font-size:.78rem;
  letter-spacing:1px; text-transform:uppercase;
}
.scroll-mouse { width:24px; height:38px; border:2px solid var(--text-dimmer); border-radius:14px; display:flex; justify-content:center; padding-top:6px; }
.scroll-wheel { width:4px; height:8px; border-radius:4px; background: var(--accent2); animation: scrollWheel 1.6s ease-in-out infinite; }
@keyframes scrollWheel { 0%{ transform: translateY(0); opacity:1; } 100%{ transform: translateY(10px); opacity:0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns:1fr; text-align:center; }
  .hero-desc { margin-left:auto; margin-right:auto; }
  .hero-actions, .hero-socials { justify-content:center; }
  .hero-visual { order:-1; margin-bottom:20px; }
}

/* =========================================================
   ABOUT
========================================================= */
.about-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:60px; align-items:start; }
.about-text p { color: var(--text-dim); margin-bottom:18px; font-size:1.03rem; }
.about-text strong { color: var(--text); }

.about-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:34px; }
.stat-card {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding:20px 14px; text-align:center; transition: transform .35s var(--ease), border-color .35s;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--accent2); }
.stat-number { font-family: var(--font-heading); font-size:1.9rem; font-weight:700; color: var(--accent2); }
.stat-suffix { font-family: var(--font-heading); font-size:1.9rem; font-weight:700; color: var(--accent2); }
.stat-label { display:block; font-size:.78rem; color: var(--text-dim); margin-top:6px; }

.about-cards { display:flex; flex-direction:column; gap:18px; perspective:1000px; }
.tilt-card {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding:26px; transition: transform .3s ease, border-color .3s;
  transform-style: preserve-3d;
}
.tilt-card:hover { border-color: rgba(124,58,237,.5); }
.tilt-icon { font-size:1.8rem; display:block; margin-bottom:12px; }
.tilt-card h3 { margin-bottom:8px; font-size:1.1rem; }
.tilt-card p { color: var(--text-dim); font-size:.92rem; }

@media (max-width: 860px) { .about-grid { grid-template-columns:1fr; } .about-stats{ grid-template-columns: 1fr 1fr 1fr; } }

/* =========================================================
   SKILLS
========================================================= */
.skills-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-bottom:70px; }
.skill-category {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding:30px; transition: border-color .3s, transform .3s var(--ease);
}
.skill-category:hover { border-color: rgba(6,182,212,.4); transform: translateY(-6px); }
.skill-cat-title { display:flex; align-items:center; gap:10px; font-size:1.1rem; margin-bottom:24px; }
.skill-cat-icon { font-size:1.3rem; }
.skill-bar { margin-bottom:18px; }
.skill-bar:last-child { margin-bottom:0; }
.skill-bar-head { display:flex; justify-content:space-between; font-size:.88rem; margin-bottom:8px; color: var(--text-dim); }
.skill-track { height:8px; border-radius:10px; background: var(--surface-strong); overflow:hidden; }
.skill-fill {
  height:100%; width:0%; border-radius:10px; background: var(--gradient);
  transition: width 1.4s var(--ease);
}

.marquee { overflow:hidden; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:22px 0; }
.marquee-track { display:flex; gap:50px; width:max-content; animation: marqueeScroll 26s linear infinite; }
.marquee-track span { font-family: var(--font-heading); font-size:1.3rem; color: var(--text-dimmer); white-space:nowrap; }
@keyframes marqueeScroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }

@media (max-width: 900px) { .skills-grid { grid-template-columns:1fr; } }

/* =========================================================
   PROJECTS
========================================================= */
.project-filters { display:flex; justify-content:center; gap:12px; margin-bottom:44px; flex-wrap:wrap; }
.filter-btn {
  padding:10px 22px; border-radius:30px; font-size:.9rem; font-weight:500;
  background: var(--surface); border:1px solid var(--border); color: var(--text-dim);
  transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--gradient); color:#fff; border-color:transparent; }

.projects-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.project-card {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  overflow:hidden; transition: transform .45s var(--ease), border-color .4s, box-shadow .45s var(--ease);
}
.project-card.filtered-out { display:none; }
.project-card:hover { transform: translateY(-10px); border-color: rgba(124,58,237,.4); box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); }

.project-media {
  height:190px; position:relative; display:flex; align-items:center; justify-content:center;
  background: var(--grad); overflow:hidden;
}
.project-media::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 60%);
}
.project-emoji { font-size:3.4rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,.3)); transition: transform .45s var(--ease); z-index:1; }
.project-card:hover .project-emoji { transform: scale(1.15) rotate(-6deg); }

.project-meta {
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:10px 16px 10px; display:flex; align-items:flex-end; justify-content:space-between; gap:10px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}
.project-company { font-size:.78rem; font-weight:600; color:#fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.project-period { font-size:.7rem; color: rgba(255,255,255,.85); white-space:nowrap; }

.project-body { padding:24px; }
.project-body h3 { margin-bottom:10px; font-size:1.15rem; }
.project-body p { color: var(--text-dim); font-size:.92rem; margin-bottom:16px; }
.tag-list { display:flex; gap:8px; flex-wrap:wrap; }
.tag { font-size:.75rem; padding:5px 12px; border-radius:20px; background: var(--surface-strong); color: var(--text-dim); }

@media (max-width: 980px) { .projects-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 620px) { .projects-grid { grid-template-columns:1fr; } }

/* =========================================================
   CV
========================================================= */
.cv-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; }
.cv-col-title { font-size:1.2rem; margin-bottom:28px; }
.cv-col-title-spaced { margin-top:40px; }

.timeline { position:relative; padding-left:28px; border-left:2px solid var(--border); }
.timeline-item { position:relative; margin-bottom:30px; }
.timeline-item:last-child { margin-bottom:0; }
.timeline-dot {
  position:absolute; left:-34px; top:6px; width:12px; height:12px; border-radius:50%;
  background: var(--gradient); box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 5px var(--border);
}
.timeline-card {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding:20px 22px; transition: transform .3s var(--ease), border-color .3s;
}
.timeline-card:hover { transform: translateX(6px); border-color: rgba(124,58,237,.4); }
.timeline-date { font-size:.78rem; color: var(--accent2); font-weight:600; letter-spacing:.4px; }
.timeline-card h4 { margin:6px 0 4px; font-size:1.05rem; }
.timeline-company { display:block; font-size:.85rem; color: var(--text-dim); margin-bottom:10px; font-style:italic; }
.timeline-card p { font-size:.9rem; color: var(--text-dim); }

.lang-list { display:flex; flex-direction:column; gap:14px; }
.lang-item {
  display:flex; align-items:center; justify-content:space-between;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding:14px 18px;
}
.lang-item > span:first-child { font-weight:500; }
.lang-level { font-size:.8rem; color: var(--text-dim); }

#downloadCvBtn { margin: 10px auto 0; }

@media (max-width: 860px) { .cv-grid { grid-template-columns:1fr; gap:50px; } }

/* Print styles: clean single-page CV */
@media print {
  body * { visibility:hidden; cursor:auto !important; }
  #cvContent, #cvContent * { visibility:visible; }
  #cvContent { position:absolute; top:0; left:0; width:100%; }
  .cv-grid { grid-template-columns:1fr 1fr; }
  #bg-canvas, .bg-glow, .noise-overlay, .cursor-dot, .cursor-ring { display:none !important; }
}

/* =========================================================
   CONTACT
========================================================= */
.contact-grid { display:grid; grid-template-columns: .8fr 1.2fr; gap:50px; }
.contact-info { display:flex; flex-direction:column; gap:18px; position:relative; }
.contact-info-card {
  display:flex; align-items:flex-start; gap:16px; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius-sm); padding:20px; position:relative; z-index:2; transition: transform .3s var(--ease), border-color .3s;
}
.contact-info-card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,.4); }
.contact-icon { font-size:1.5rem; }
.contact-label { display:block; font-size:.78rem; color: var(--text-dimmer); text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
.contact-info-card a:hover { color: var(--accent2); }
.contact-socials { display:flex; gap:14px; margin-top:4px; }
.contact-socials a { color: var(--accent2); font-weight:500; font-size:.9rem; }
.contact-blob {
  position:absolute; width:220px; height:220px; border-radius:50%; background: var(--gradient);
  filter: blur(90px); opacity:.35; bottom:-40px; left:20%; z-index:1; pointer-events:none;
}

.contact-form {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding:36px; display:flex; flex-direction:column; gap:26px;
}
.form-field { position:relative; }
.form-field input, .form-field textarea {
  width:100%; background:transparent; border:none; border-bottom:1.5px solid var(--border);
  padding:10px 2px; color: var(--text); font-family:inherit; font-size:1rem; resize:none;
}
.form-field input:focus, .form-field textarea:focus { outline:none; }
.form-field label {
  position:absolute; left:2px; top:10px; color: var(--text-dimmer); font-size:1rem; pointer-events:none;
  transition: all .25s var(--ease);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top:-14px; font-size:.75rem; color: var(--accent2);
}
.field-line {
  position:absolute; bottom:0; left:0; height:1.5px; width:0%; background: var(--gradient);
  transition: width .35s var(--ease);
}
.form-field input:focus ~ .field-line, .form-field textarea:focus ~ .field-line { width:100%; }

.form-note { font-size:.88rem; color: var(--accent2); min-height:1.2em; text-align:center; }

@media (max-width: 900px) { .contact-grid { grid-template-columns:1fr; } }

/* =========================================================
   FOOTER
========================================================= */
.footer { padding:34px 0; border-top:1px solid var(--border); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; font-size:.85rem; color: var(--text-dimmer); }
.back-to-top {
  width:40px; height:40px; border-radius:50%; background: var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; transition: transform .3s var(--ease), background .3s;
}
.back-to-top:hover { background: var(--gradient); transform: translateY(-4px); }
.back-to-top svg { width:16px; height:16px; }
