:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #1a1a26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-dim: #a0a0b0;
  --text-faint: #6b6b7b;
  --cyan: #00d4ff;
  --cyan-soft: #22e0ff;
  --cyan-deep: #0099cc;
  --glow: 0 0 24px rgba(0, 212, 255, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #07070b; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan-deep), var(--cyan));
  border-radius: 999px;
  border: 2px solid #07070b;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan-soft); }

/* ----- Custom Cursor ----- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.12s ease-out, opacity 0.2s, width 0.2s, height 0.2s, background 0.2s;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  backdrop-filter: blur(2px);
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--cyan-soft);
  background: rgba(0, 212, 255, 0.06);
}
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ----- Background Atmosphere ----- */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-aura::before,
.bg-aura::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}
.bg-aura::before {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
  top: -160px; left: -160px;
  animation: float-a 18s ease-in-out infinite;
}
.bg-aura::after {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(0, 100, 200, 0.35) 0%, transparent 70%);
  bottom: -200px; right: -200px;
  animation: float-b 22s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.15); }
}

/* Grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%);
}

/* Particles canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ----- Glass Cards ----- */
.glass {
  background: rgba(18, 18, 26, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.4s;
}
.glass:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.15),
    0 18px 50px -20px rgba(0, 212, 255, 0.35);
}

/* ----- Navbar ----- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-link {
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 4px;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px; width: 0;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text); }

/* Lang toggle */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  cursor: none;
  transition: all 0.25s;
}
.lang-btn:hover { color: var(--text); border-color: var(--cyan); box-shadow: 0 0 14px rgba(0, 212, 255, 0.25); }
.lang-btn .active-lang { color: var(--cyan); font-weight: 600; }
@media (max-width: 900px) { .lang-btn { cursor: pointer; } }

/* Mobile menu */
.burger { display: none; cursor: pointer; }
@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .burger { display: inline-flex; }
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  top: 64px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 95;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 900px) {
  .mobile-menu { display: block; }
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* ----- Hero / Page Title ----- */
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--cyan-soft) 0%, var(--cyan) 50%, var(--cyan-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.35));
}

.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-open .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

/* Typewriter */
.typewriter {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan-soft);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 500;
}
.typewriter::after {
  content: '|';
  margin-left: 2px;
  color: var(--cyan);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* CTA buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: none;
  overflow: hidden;
  border: 1px solid transparent;
}
@media (max-width: 900px) { .btn { cursor: pointer; } }
.btn svg { transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  color: #001018;
  box-shadow: 0 8px 26px -8px rgba(0, 212, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(0, 212, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--cyan-soft);
}

/* ----- Skill Cards ----- */
.skill-card {
  padding: 22px 20px;
  text-align: left;
  cursor: none;
}
@media (max-width: 900px) { .skill-card { cursor: default; } }
.skill-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(0, 212, 255, 0.04));
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--cyan-soft);
  margin-bottom: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.skill-card:hover .skill-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.4);
}

/* ----- Section Headings ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.page-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 14px;
}

/* ----- Project Cards ----- */
.project-card {
  padding: 26px 26px 24px;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(0, 212, 255, 0.10), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover { transform: translateY(-6px); }
.project-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 180, 0, 0.1);
  color: #ffc04d;
  border: 1px solid rgba(255, 180, 0, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.soon-badge .pulse-amber {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffc04d;
  animation: pulse-amber 2s infinite;
}
@keyframes pulse-amber {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 192, 77, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 0 8px rgba(255, 192, 77, 0); }
}

/* ----- Contact ----- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: none;
}
@media (max-width: 900px) { .contact-row { cursor: default; } }
.contact-row:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}
.contact-row .label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; font-family: 'JetBrains Mono', monospace; }
.contact-row .value { font-size: 15px; color: var(--text); font-weight: 500; word-break: break-all; }
.copy-btn {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
  cursor: none;
  min-width: 78px;
  text-align: center;
  flex-shrink: 0;
}
@media (max-width: 900px) { .copy-btn { cursor: pointer; } }
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.copy-btn.copied { color: #62e6a0; border-color: rgba(98, 230, 160, 0.5); background: rgba(98, 230, 160, 0.06); }

/* ----- Reveal animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ----- Loader ----- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan), var(--cyan-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.5));
  animation: loader-pulse 1.4s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}
.loader-bar {
  width: 180px; height: 2px;
  margin-top: 22px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: loader-slide 1.4s ease-in-out infinite;
}
@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 30px);
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(18, 18, 26, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan-soft);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 18px 50px -10px rgba(0,0,0,0.6), 0 0 18px rgba(0,212,255,0.25);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

/* Social icons */
.social-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: all 0.25s;
}
.social-ico:hover { color: var(--cyan-soft); transform: translateY(-2px); }

/* Selection */
::selection { background: rgba(0, 212, 255, 0.3); color: #fff; }

/* ----- Experience cards ----- */
.section-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-subtitle .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,212,255,0.16), rgba(0,212,255,0.04));
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--cyan-soft);
  flex-shrink: 0;
}

.exp-card {
  position: relative;
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  cursor: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 900px) { .exp-card { cursor: pointer; } }
.exp-card:hover { transform: translateY(-4px); }
.exp-card .exp-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding-right: 30px;
}
.exp-card .exp-role {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.55;
}
.exp-card .exp-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--text-faint);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.exp-card:hover .exp-arrow {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

/* ----- Responsive tweaks ----- */
@media (max-width: 768px) {
  .badge-open { font-size: 10px; padding: 5px 11px; letter-spacing: 0.1em; }
  .typewriter { font-size: 0.95rem; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .skill-card { padding: 18px 16px; }
  .project-card { padding: 22px 20px 20px; }
  .contact-row { padding: 14px 14px; gap: 12px; }
  .contact-row .value { font-size: 14px; }
  .copy-btn { min-width: 66px; padding: 7px 10px; font-size: 11px; }
  .loader-logo { font-size: 2.2rem; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.4rem, 13vw, 4rem) !important; }
  .contact-row { flex-wrap: wrap; }
  .contact-row > div:not(:first-child) { flex: 1; min-width: 0; }
  .copy-btn { margin-left: 0; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
