*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #030014;
  --surface: #0d0d2b;
  --surface2: #12123a;
  --accent: #6C63FF;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(108,99,255,0.25);
  --glow: rgba(108,99,255,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

#stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orb-wrap {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.orb-wrap1 { top: -100px; left: -100px; }
.orb-wrap2 { bottom: 100px; right: -50px; }

.orb {
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: floatOrb 8s ease-in-out infinite;
}
.orb1 { width: 400px; height: 400px; background: #6C63FF; animation-delay: 0s; }
.orb2 { width: 300px; height: 300px; background: #38bdf8; animation-delay: 3s; }
.orb3 { position: fixed; pointer-events: none; z-index: 0; width: 200px; height: 200px; background: #a78bfa; top: 50%; left: 50%; animation-delay: 5s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(3,0,20,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: var(--accent2);
  letter-spacing: 0.05em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

.wrapper { position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 10%;
  gap: 3rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.8s 0.6s ease both;
}

/* ── Stats Cards ── */
.stats-wrap {
  position: relative;
  width: 320px;
  height: 340px;
}

.stat-card {
  position: absolute;
  background:
    radial-gradient(ellipse at top left, rgba(108,99,255,0.1) 0%, transparent 60%),
    radial-gradient(circle at 120% 120%, rgba(56,189,248,0.06) 0%, transparent 50%),
    var(--surface);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow:
    0 16px 50px rgba(0,0,0,0.35),
    0 0 0 1px rgba(108,99,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: box-shadow 0.35s, transform 0.35s;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(108,99,255,0.18) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0.8;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.stat-card:hover {
  box-shadow:
    0 22px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(108,99,255,0.45),
    0 0 30px rgba(108,99,255,0.15),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.stat-card:hover::after { opacity: 1; }

.stat-card-1 {
  top: 0; left: 0;
  animation: floatA 5s ease-in-out infinite;
}
.stat-card-1::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(108,99,255,0.22) 0%, transparent 55%);
}

.stat-card-2 {
  top: 90px; right: 0;
  animation: floatB 5.5s ease-in-out infinite;
}
.stat-card-2::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(56,189,248,0.18) 0%, transparent 55%);
}

.stat-card-3 {
  bottom: 0; left: 30px;
  animation: floatA 6s ease-in-out infinite 0.8s;
}
.stat-card-3::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(167,139,250,0.2) 0%, transparent 55%);
}

@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(12px); }
}

.stat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.stat-icon-box svg { width: 20px; height: 20px; }

.sib-purple { background: rgba(108,99,255,0.18); color: var(--accent2); border: 1px solid rgba(108,99,255,0.3); box-shadow: 0 0 16px rgba(108,99,255,0.2); }
.sib-cyan   { background: rgba(56,189,248,0.15);  color: #38bdf8;        border: 1px solid rgba(56,189,248,0.28); box-shadow: 0 0 16px rgba(56,189,248,0.15); }
.sib-amber  { background: rgba(251,191,36,0.12);  color: #fbbf24;        border: 1px solid rgba(251,191,36,0.25); box-shadow: 0 0 16px rgba(251,191,36,0.12); }

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  position: relative;
  z-index: 1;
  margin-bottom: 0.3rem;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, rgba(167,139,250,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent2);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  z-index: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.hero-name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: 'Fira Code', monospace;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent2);
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-desc {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: fadeUp 0.8s 0.4s ease both;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.4); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  background: transparent;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-2px); }

.btn-cv {
  color: var(--accent2);
  border: 1px solid rgba(167,139,250,0.35);
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  background: rgba(167,139,250,0.07);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-cv svg { width: 15px; height: 15px; }
.btn-cv:hover { border-color: var(--accent2); background: rgba(167,139,250,0.14); transform: translateY(-2px); }

.social-row {
  display: flex;
  gap: 1rem;
  animation: fadeUp 0.8s 0.5s ease both;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
}
.social-link svg { width: 16px; height: 16px; }

.social-link-li    { background: rgba(10,102,194,0.15);  color: #0a66c2;    border: 1px solid rgba(10,102,194,0.25); }
.social-link-x     { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid rgba(255,255,255,0.12); }
.social-link-ig    { background: rgba(240,100,120,0.15); color: #f06478;    border: 1px solid rgba(240,100,120,0.2); }
.social-link-email { background: rgba(108,99,255,0.15);  color: var(--accent); border: 1px solid var(--border); }

.social-link:hover { transform: translateY(-3px); filter: brightness(1.25); }

section {
  padding: 6rem 10%;
  position: relative;
}

.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--accent2);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: 2px;
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

/* top accent line per skill */
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-card:nth-child(1)::before { background: linear-gradient(90deg,#e44d26,#f97316); }
.skill-card:nth-child(2)::before { background: linear-gradient(90deg,#264de4,#38bdf8); }
.skill-card:nth-child(3)::before { background: linear-gradient(90deg,#f7df1e,#fbbf24); }
.skill-card:nth-child(4)::before { background: linear-gradient(90deg,#06b6d4,#38bdf8); }

.skill-card:hover::before { opacity: 1; }

.skill-card:hover {
  border-color: rgba(108,99,255,0.35);
  box-shadow: 0 10px 35px rgba(108,99,255,0.12);
  transform: translateY(-2px);
}

/* icon box with per-skill brand color */
.skill-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.skill-card:hover .skill-icon-box { border-color: rgba(255,255,255,0.18); }

.skill-card:nth-child(1) .skill-icon-box { background: rgba(228,77,38,0.12);  border: 1px solid rgba(228,77,38,0.25); }
.skill-card:nth-child(2) .skill-icon-box { background: rgba(38,77,228,0.12);  border: 1px solid rgba(38,77,228,0.25); }
.skill-card:nth-child(3) .skill-icon-box { background: rgba(247,223,30,0.1);  border: 1px solid rgba(247,223,30,0.22); }
.skill-card:nth-child(4) .skill-icon-box { background: rgba(6,182,212,0.1);   border: 1px solid rgba(6,182,212,0.22); }

.skill-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.skill-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.skill-pct {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--accent3);
  font-weight: 500;
  flex-shrink: 0;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent3) 70%, rgba(255,255,255,0.65) 100%);
  box-shadow: 0 0 12px rgba(56,189,248,0.55);
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:nth-child(1) .skill-bar-fill { transition-delay: 0s; }
.skill-card:nth-child(2) .skill-bar-fill { transition-delay: 0.1s; }
.skill-card:nth-child(3) .skill-bar-fill { transition-delay: 0.2s; }
.skill-card:nth-child(4) .skill-bar-fill { transition-delay: 0.3s; }

.skills-grid.visible .skill-bar-fill {
  width: var(--pct);
}

.skill-desc {
  font-size: 0.73rem;
  color: var(--muted);
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,0.5); box-shadow: 0 20px 60px rgba(108,99,255,0.15); }
.project-card:hover::before { opacity: 1; }


.project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.project-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }

.project-arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  transition: all 0.3s;
}
.project-card:hover .project-arrow {
  color: var(--accent2);
  border-color: var(--accent);
  transform: translate(2px, -2px);
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Project Card v2 ── */
.project-preview {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.ph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover .ph-img { transform: scale(1.05); }

.ph-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3,0,20,0.1) 0%, rgba(3,0,20,0.55) 100%);
  pointer-events: none;
}

.project-body { padding: 1.35rem 1.6rem 1.5rem; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.project-category {
  font-family: 'Fira Code', monospace;
  font-size: 0.67rem;
  color: var(--accent2);
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.22);
  border-radius: 20px;
  padding: 0.18rem 0.65rem;
  letter-spacing: 0.04em;
}

.tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--accent2);
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

/* ── Contact ── */
.ct-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.ct-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.ct-heading em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ct-sub {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: 2rem;
}

.ct-links { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.75rem; }

.ct-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.ct-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(167,139,250,0.05));
  opacity: 0;
  transition: opacity 0.25s;
}
.ct-link:hover { border-color: rgba(108,99,255,0.5); transform: translateX(4px); }
.ct-link:hover::before { opacity: 1; }

.ct-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ct-icon svg { width: 15px; height: 15px; }
.ct-icon-li    { background: rgba(10,102,194,0.15);  color: #0a66c2; }
.ct-icon-email { background: rgba(108,99,255,0.15); color: var(--accent); }
.ct-icon-x     { background: rgba(255,255,255,0.08); color: var(--text); }
.ct-icon-ig    { background: rgba(240,100,120,0.15); color: #f06478; }

.ct-link-info { flex: 1; }
.ct-link-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.ct-link-value { font-size: 0.85rem; color: var(--text); font-weight: 500; }

.ct-arrow { color: var(--muted); transition: transform 0.2s, color 0.2s; }
.ct-arrow svg { width: 14px; height: 14px; }
.ct-link:hover .ct-arrow { transform: translateX(4px); color: var(--accent); }


/* Right — form card */
.ct-right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}
.ct-right::before {
  content: '';
  position: absolute;
  top: -60%; right: -40%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(108,99,255,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.ct-form-heading {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ct-form-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ct-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.85rem; }
.ct-field { margin-bottom: 0.85rem; }
.ct-field:last-of-type { margin-bottom: 0; }

.ct-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.ct-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.ct-input::placeholder { color: rgba(148,163,184,0.4); }
.ct-input:focus { border-color: rgba(108,99,255,0.55); background: rgba(108,99,255,0.05); }
.ct-textarea { min-height: 110px; resize: none; line-height: 1.65; }
select.ct-input { cursor: pointer; }
select.ct-input option { background: var(--surface); color: var(--text); }

.ct-submit {
  width: 100%;
  padding: 0.8rem;
  margin-top: 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, opacity 0.15s;
  letter-spacing: 0.02em;
}
.ct-submit svg { width: 14px; height: 14px; }
.ct-submit:hover  { transform: translateY(-2px); opacity: 0.9; }
.ct-submit:active { transform: scale(0.98); }
.ct-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.ct-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.ct-reset-btn { width: auto; padding: 0.65rem 1.5rem; margin-top: 0.5rem; }

.hidden { display: none; }

.ct-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 2rem 0;
}
.ct-success.visible { display: flex; }
.ct-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.28);
  display: flex; align-items: center; justify-content: center;
  color: #34d399;
}
.ct-success-icon svg { width: 26px; height: 26px; }
.ct-success-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--text);
}
.ct-success-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 240px;
}

footer {
  padding: 2rem 10%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  position: relative;
  z-index: 1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.cursor {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--accent2);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: rgba(3,0,20,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    display: none;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; }

  .hero { grid-template-columns: 1fr; padding: 6rem 6% 3rem; }
  .hero-right { display: none; }
  .hero-desc br { display: none; }
  .hero-cta { flex-wrap: wrap; }

  section { padding: 4rem 6%; }

.skills-grid { grid-template-columns: 1fr; }
  .skill-icon-img { width: 30px; height: 30px; }
  .projects-grid { grid-template-columns: 1fr; }

  .ct-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .ct-field-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 0 5%; }
  section { padding: 3rem 5%; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { text-align: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .stat-card { animation: none !important; }
  .hero-right { animation: none; }
  .orb, .orb-wrap { animation: none; }
  .reveal { transition: none; }
  .btn-primary::before { transition: none; }
}
