/* ========== Base ========== */
:root{
  --bg:#0b0c10;
  --bg-soft:#111218;
  --fg:#e6e6ea;
  --muted:#a9a9b3;
  --brand:#7cf5ff;
  --brand-2:#8fff72;
  --card:#151823;
  --stroke:#23273a;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji"; color:var(--fg); background:var(--bg); }
img{ max-width:100%; height:auto; }
a{ color:inherit; }

.container{ width:min(1100px, 92%); margin-inline:auto; }
.visually-hidden{ position:absolute; left:-9999px; }

/* Background animated blobs */
.bg { position:fixed; inset:0; overflow:hidden; z-index:-1; filter: blur(40px); }
.orb{ position:absolute; width:420px; height:420px; border-radius:50%; opacity:.35; mix-blend-mode:screen; animation: drift 14s ease-in-out infinite; }
.orb-1{ background: radial-gradient(closest-side, var(--brand), transparent); top:-60px; left:-80px; }
.orb-2{ background: radial-gradient(closest-side, var(--brand-2), transparent); top:20%; right:-120px; animation-delay: -3s; }
.orb-3{ background: radial-gradient(closest-side, #9f7bff, transparent); bottom:-140px; left:10%; animation-delay: -6s; }
.orb-4{ background: radial-gradient(closest-side, #ff7ba3, transparent); bottom:10%; right:5%; animation-delay: -9s; }

@keyframes drift{
  0%,100%{ transform: translateY(0) translateX(0) scale(1); }
  50%{ transform: translateY(-20px) translateX(10px) scale(1.05); }
}

/* Header */
.header{ position:sticky; top:0; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom:1px solid var(--stroke); z-index:100; }
.navbar{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px; }
.brand{ display:flex; align-items:center; gap:14px; }
.avatar{ width:60px; height:60px; border-radius:50%; border:2px solid color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: var(--shadow); }
.title{ margin:0; font-size:1.3rem; font-weight:800; letter-spacing:.2px; }
.subtitle{ margin:2px 0 0; color:var(--muted); font-size:.95rem; }

.controls{ display:flex; align-items:center; gap:8px; }
.lang-switch{ background:var(--card); color:var(--fg); border:1px solid var(--stroke); border-radius:10px; padding:8px 12px; }
.btn{ border:none; padding:10px 16px; border-radius:12px; cursor:pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn.primary{ background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#081018; font-weight:700; }
.btn.outline{ background:transparent; border:1px solid var(--stroke); color:var(--fg); }
.btn.ghost{ background:transparent; border:1px solid var(--stroke); padding:8px 10px; }
.btn:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

.tabs{ display:flex; gap:8px; padding:8px 0 14px; flex-wrap:wrap;}
.tab{ text-decoration:none; padding:10px 14px; border-radius:999px; border:1px solid var(--stroke); color:var(--fg); transition: background .3s ease, transform .2s ease; }
.tab:hover{ background: color-mix(in srgb, var(--card) 70%, transparent); transform: translateY(-2px); }

/* Sections */
.section{ padding:64px 0; }
.section-title{ font-size:1.6rem; margin-bottom:18px; border-left:4px solid var(--brand); padding-left:10px; }

/* Hero */
.hero{ display:grid; grid-template-columns: 1.2fr .8fr; gap:32px; align-items:center; }
.hero .cta{ display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; }
.hero-anim{ position:relative; min-height:220px; }
.hero-anim .card{ position:absolute; background:var(--card); border:1px solid var(--stroke); border-radius:16px; padding:18px; width:110px; height:110px; display:grid; place-items:center; box-shadow: var(--shadow); }
.hero-anim .card i{ font-size:38px; }
.float-1{ left:8%; top:12%; animation: floatY 5s ease-in-out infinite; }
.float-2{ right:10%; top:40%; animation: floatY 6.5s ease-in-out infinite; }
.float-3{ left:24%; bottom:8%; animation: floatY 7.5s ease-in-out infinite; }
@keyframes floatY{ 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-14px)} }

/* Timeline */
.timeline{ position:relative; padding-left:22px; }
.timeline:before{ content:""; position:absolute; left:8px; top:0; bottom:0; width:2px; background: var(--stroke); }
.timeline-item{ background: var(--card); border:1px solid var(--stroke); border-radius:16px; padding:16px; margin:16px 0; box-shadow: var(--shadow); }
.timeline-item .meta{ color:var(--muted); margin-top:4px; }
.dot{ position:absolute; width:12px; height:12px; border-radius:50%; background: var(--brand); left:3px; margin-top:10px; box-shadow:0 0 0 4px rgba(124,245,255,.15); }

/* Cards grid */
.cards{ display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.card{ background: var(--card); border:1px solid var(--stroke); border-radius:16px; padding:16px; }
.card.glow{ position:relative; overflow:hidden; }
.card.glow:before{ content:""; position:absolute; inset:-2px; background: conic-gradient(from 90deg at 50% 50%, transparent, rgba(124,245,255,.4), transparent); filter: blur(18px); opacity:.25; animation: spin 6s linear infinite; z-index:-1; }
@keyframes spin{ to{ transform: rotate(360deg);} }

/* Panels & grids */
.grid.two{ display:grid; grid-template-columns: repeat(2,1fr); gap:16px; }
.panel{ background: var(--card); border:1px solid var(--stroke); border-radius:16px; padding:16px; }

/* Skill tags and bars */
.tags{ display:flex; flex-wrap:wrap; gap:8px; padding:0; list-style:none; }
.tags li{ padding:8px 12px; border-radius:999px; border:1px solid var(--stroke); background: color-mix(in srgb, var(--card) 80%, transparent); }
.bars{ list-style:none; margin:0; padding:0; }
.bars li{ display:grid; grid-template-columns: 130px 1fr auto; align-items:center; gap:10px; margin:12px 0; }
.bar{ background:#0f1220; border-radius:999px; height:10px; border:1px solid var(--stroke); overflow:hidden; }
.bar i{ display:block; height:100%; width:var(--w, 70%); background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* Contact */
.contact{ list-style:none; padding:0; margin:0 0 12px 0; }
.contact li{ display:flex; gap:10px; align-items:center; margin:8px 0; color:var(--fg); }
.socials a{ display:inline-grid; place-items:center; width:40px; height:40px; border-radius:10px; border:1px solid var(--stroke); background: color-mix(in srgb, var(--card) 80%, transparent); margin-right:8px; transition: transform .2s ease, box-shadow .2s ease; }
.socials a:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

.contact-form{ display:grid; gap:8px; }
.contact-form textarea{ width:100%; background:#0f1220; color:var(--fg); border:1px solid var(--stroke); border-radius:12px; padding:10px; resize:vertical; }
.contact-form .btn{ justify-self:start; }

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(16px) scale(.98); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible{ opacity:1; transform: translateY(0) scale(1); }

/* Footer */
.footer{ border-top:1px solid var(--stroke); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.footer .container{ display:flex; flex-direction:column; gap:6px; padding:24px 0; color:var(--muted); }
.footer .credit{ font-size:.9rem; }

/* Theme: light */
.light{ --bg:#f7f8fb; --bg-soft:#ffffff; --fg:#0b0c10; --muted:#586174; --card:#ffffff; --stroke:#e5e7f1; --shadow: 0 10px 25px rgba(10, 10, 20, .08); }
.light .bg{ filter: blur(50px) saturate(1.2); }

/* Responsive */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .grid.two{ grid-template-columns: 1fr; }
  .tabs{ justify-content:center; }
}
@media (prefers-reduced-motion: reduce){
  .orb, .float-1, .float-2, .float-3, .card.glow:before{ animation: none !important; }
  .reveal{ transition: none; opacity:1; transform:none; }
}
