/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cyan: #4dd9e0;
  --cyan-dim: rgba(77,217,224,0.35);
  --cyan-faint: rgba(77,217,224,0.08);
  --cyan-border: rgba(77,217,224,0.15);
  --cyan-border-hover: rgba(77,217,224,0.7);
  --green: #3de8a0;
  --bg: #0b0c10;
  --bg-dark: #090a0e;
  --surface: rgba(18,20,28,0.7);
  --muted: rgba(200,210,220,0.45);
  --foreground: rgba(240,245,252,0.94);
  --border: rgba(55,65,90,0.55);
  --grid-line: rgba(60,80,130,0.13);
  --font-sans: 'Sora', 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0e1018; }
::-webkit-scrollbar-thumb { background: #2a3450; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(77,217,224,0.6); }

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.relative { position: relative; }
.mb-12 { margin-bottom: 3rem; }

.accent { color: var(--cyan); }

.glow-text {
  text-shadow:
    0 0 20px rgba(77,217,224,0.7),
    0 0 40px rgba(77,217,224,0.4);
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cyan-border);
}

.glow-border {
  box-shadow:
    0 0 0 1px rgba(77,217,224,0.4),
    0 0 20px rgba(77,217,224,0.15),
    inset 0 0 20px rgba(77,217,224,0.05);
}

.glow-border-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.glow-border-hover:hover {
  box-shadow:
    0 0 0 1px rgba(77,217,224,0.7),
    0 0 30px rgba(77,217,224,0.3),
    inset 0 0 30px rgba(77,217,224,0.08);
  transform: translateY(-4px);
}

/* ── Grid backgrounds ──────────────────────────────────────── */
.bg-grid, .hero-grid, .section-dark-grid {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  position: absolute;
  inset: 0;
}

/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(11,12,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(77,217,224,0.15);
  box-shadow: 0 0 20px rgba(77,217,224,0.08);
}

.nav-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(77,217,224,0.7), 0 0 40px rgba(77,217,224,0.4);
  transition: transform 0.2s;
  padding: 0;
}
.nav-logo:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--foreground); }
.nav-link.active {
  color: var(--cyan);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 1px;
  background: var(--cyan);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.5rem;
  transition: color 0.2s;
}
.hamburger:hover { color: var(--foreground); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(11,12,16,0.96);
  backdrop-filter: blur(12px);
}
.mobile-menu.open { display: block; }
.mobile-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.mobile-link:hover {
  color: var(--cyan);
  background: rgba(77,217,224,0.05);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #0a0b0f 0%,
    #0c0e15 50%,
    #0a0b0f 100%
  );
}

.hero-glow-center {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(77,217,224,0.06), transparent);
}

.hero-glow-tl {
  position: absolute;
  top: 0; left: 25%;
  width: 24rem; height: 24rem;
  background: radial-gradient(circle, rgba(77,217,224,0.08), transparent 70%);
  filter: blur(48px);
}

.hero-glow-br {
  position: absolute;
  bottom: 25%; right: 25%;
  width: 16rem; height: 16rem;
  background: radial-gradient(circle, rgba(61,232,160,0.06), transparent 70%);
  filter: blur(48px);
}

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(77,217,224,0.3), transparent);
  animation: scan-line-anim 8s linear infinite;
  top: 0;
}

@keyframes scan-line-anim {
  0% { top: 0; opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--cyan);
  animation: float-up linear infinite;
  opacity: 0;
}

@keyframes float-up {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-sub-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-in-up 0.6s ease 0.2s forwards;
}

.sub-line {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--cyan);
}

.hero-name {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in-up 0.6s ease 0.4s forwards;
  line-height: 1.05;
}

.typed-container {
  height: 2.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-in-up 0.6s ease 0.6s forwards;
}

.typed-text {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: rgba(77,217,224,0.9);
}
.typed-text::after {
  content: "_";
  animation: blink-cursor 0.9s steps(1) infinite;
  color: var(--cyan);
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-tagline {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.7;
  opacity: 0;
  animation: fade-in-up 0.6s ease 0.8s forwards;
}
.hero-tagline strong { color: var(--foreground); font-weight: 500; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fade-in-up 0.6s ease 1s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  opacity: 0.6;
}
.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}
.arrow-down {
  animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--cyan);
  color: #07090e;
  border: none;
  border-radius: 0;
  box-shadow: 0 0 20px rgba(77,217,224,0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: #72e5eb;
  box-shadow: 0 0 36px rgba(77,217,224,0.7);
}
.btn-primary-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-120%) skewX(-15deg);
  pointer-events: none;
  transition: none;
}
.btn-primary-shimmer:hover::after {
  animation: shimmer-sweep 0.55s ease forwards;
}
@keyframes shimmer-sweep {
  0% { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}

.chevron-icon {
  transition: transform 0.3s;
}
.btn-primary:hover .chevron-icon {
  transform: translateX(5px);
}

.btn-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(77,217,224,0.45);
  border-radius: 0;
  transition: border-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
  border-color: rgba(77,217,224,0.9);
  color: #a0f0f4;
}
.btn-outline-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(77,217,224,0.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: -1;
}
.btn-outline-fill:hover::before {
  transform: scaleX(1);
}

/* ── Glitch word ───────────────────────────────────────────── */
.glitch-word {
  position: relative;
  display: inline-block;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(77,217,224,0.7), 0 0 40px rgba(77,217,224,0.4);
}
.glitch-word::before,
.glitch-word::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.glitch-word::before {
  color: #1de8b5;
  animation: glitch-burst-1 12.2s ease-in-out infinite;
  animation-delay: 1.2s;
}
.glitch-word::after {
  color: #a0dff7;
  animation: glitch-burst-2 12.2s ease-in-out infinite;
  animation-delay: 1.4s;
}

@keyframes glitch-burst-1 {
  0%    { clip-path: inset(0 0 100% 0); opacity: 0; transform: translate(0,0); }
  1%    { clip-path: inset(15% 0 70% 0); opacity: 0.75; transform: translate(-3px,0); }
  2.5%  { clip-path: inset(55% 0 25% 0); opacity: 0.8;  transform: translate(3px,0); }
  4%    { clip-path: inset(5% 0 88% 0);  opacity: 0.7;  transform: translate(-2px,0); }
  5.5%  { clip-path: inset(72% 0 10% 0); opacity: 0.85; transform: translate(2px,0); }
  7%    { clip-path: inset(35% 0 48% 0); opacity: 0.6;  transform: translate(-1px,0); }
  8.5%  { clip-path: inset(82% 0 3% 0);  opacity: 0.9;  transform: translate(3px,0); }
  9.8%  { clip-path: inset(0 0 100% 0); opacity: 0;    transform: translate(0,0); }
  100%  { clip-path: inset(0 0 100% 0); opacity: 0;    transform: translate(0,0); }
}
@keyframes glitch-burst-2 {
  0%    { clip-path: inset(0 0 100% 0); opacity: 0; transform: translate(0,0); }
  1.5%  { clip-path: inset(78% 0 8% 0);  opacity: 0.65; transform: translate(3px,0); }
  3%    { clip-path: inset(20% 0 62% 0); opacity: 0.75; transform: translate(-3px,0); }
  4.5%  { clip-path: inset(48% 0 38% 0); opacity: 0.55; transform: translate(2px,0); }
  6%    { clip-path: inset(8% 0 84% 0);  opacity: 0.8;  transform: translate(-2px,0); }
  7.5%  { clip-path: inset(60% 0 20% 0); opacity: 0.7;  transform: translate(3px,0); }
  9%    { clip-path: inset(0 0 100% 0); opacity: 0;    transform: translate(0,0); }
  100%  { clip-path: inset(0 0 100% 0); opacity: 0;    transform: translate(0,0); }
}

/* ── Fade-in animation ─────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS — shared
══════════════════════════════════════════════════════════════ */
.section {
  padding: 1.7rem 0;
  position: relative;
}

.section-dark {
  background: rgba(10,11,16,0.5);
}
.section-dark-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-dark-bg .section-dark-grid {
  opacity: 0.3;
}

.section-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  white-space: nowrap;
}
.section-line {
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(77,217,224,0.4), transparent);
  max-width: 20rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 40rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.about-body strong { color: var(--foreground); font-weight: 500; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(77,217,224,0.3);
  color: rgba(77,217,224,0.9);
  background: rgba(77,217,224,0.05);
}

.about-card-wrapper {
  position: relative;
}
.about-card-wrapper::before {
  content: '';
  position: absolute;
  inset: -1rem;
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 0%, rgba(77,217,224,0.12), transparent 70%);
}

.about-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
}

.card-comment {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(77,217,224,0.6);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(77,217,224,0.1);
  border: 1px solid rgba(77,217,224,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background 0.3s;
}
.stat-item:hover .stat-icon {
  background: rgba(77,217,224,0.2);
}
.stat-value {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan);
}
.stat-label-main {
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.95rem;
}
.stat-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.code-snippet {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 0.35rem;
  background: #08090d;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  line-height: 1.8;
}
.code-comment { color: rgba(77,217,224,0.6); }
.code-keyword { color: rgba(77,217,224,0.8); }
.code-var { color: var(--foreground); }
.code-string { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.skill-cat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(77,217,224,0.12);
  border: 1px solid rgba(77,217,224,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.skill-cat-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}
.skill-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(240,245,252,0.9);
}
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(77,217,224,0.8);
}
.skill-track {
  height: 6px;
  background: rgba(77,217,224,0.1);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(77,217,224,0.1);
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--cyan), var(--green));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ══════════════════════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Video container */
.video-container{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}
/* Video placeholder */
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #050609;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Keep HUD above video */
.video-placeholder .hud-scan-line,
.video-placeholder .hud-tl,
.video-placeholder .hud-tr,
.video-placeholder .video-center,
.video-placeholder .hud-bottom {
  position: absolute;
  z-index: 2;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(60,80,130,0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(60,80,130,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
}
.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(rgba(77,217,224,0.6), rgba(77,217,224,0.6)) top left / 16px 1.5px no-repeat,
    linear-gradient(rgba(77,217,224,0.6), rgba(77,217,224,0.6)) top left / 1.5px 16px no-repeat,
    linear-gradient(rgba(77,217,224,0.6), rgba(77,217,224,0.6)) top right / 16px 1.5px no-repeat,
    linear-gradient(rgba(77,217,224,0.6), rgba(77,217,224,0.6)) top right / 1.5px 16px no-repeat,
    linear-gradient(rgba(77,217,224,0.6), rgba(77,217,224,0.6)) bottom left / 16px 1.5px no-repeat,
    linear-gradient(rgba(77,217,224,0.6), rgba(77,217,224,0.6)) bottom left / 1.5px 16px no-repeat,
    linear-gradient(rgba(77,217,224,0.6), rgba(77,217,224,0.6)) bottom right / 16px 1.5px no-repeat,
    linear-gradient(rgba(77,217,224,0.6), rgba(77,217,224,0.6)) bottom right / 1.5px 16px no-repeat;
  z-index: 1;
  pointer-events: none;
  transition: inset 0.3s ease;
}
.project-card:hover .video-placeholder::after { inset: 8px; }

.hud-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(77,217,224,0.5), transparent);
  animation: hud-scan 3s linear infinite;
  z-index: 2;
}
@keyframes hud-scan {
  0%   { top: 0; opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.hud-tl {
  position: absolute;
  top: 1rem; left: 1.25rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(77,217,224,0.6);
  line-height: 1.4;
  letter-spacing: 0.1em;
}
.hud-tr {
  position: absolute;
  top: 1rem; right: 1.25rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(77,217,224,0.5);
  text-align: right;
  line-height: 1.4;
  letter-spacing: 0.1em;
}
.hud-bottom {
  position: absolute;
  bottom: 1rem; left: 1.25rem; right: 1.25rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(77,217,224,0.4);
  letter-spacing: 0.1em;
}

.video-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.play-btn-ring {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(77,217,224,0.1);
  border: 2px solid rgba(77,217,224,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(77,217,224,0.8));
  animation: pulse-play 2.4s ease-in-out infinite;
  transition: background 0.3s, border-color 0.3s;
}
.project-card:hover .play-btn-ring {
  background: rgba(77,217,224,0.2);
  border-color: var(--cyan);
}

@keyframes pulse-play {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(77,217,224,0.5),
      0 0 0 0 rgba(77,217,224,0.25);
  }
  60% {
    box-shadow:
      0 0 0 8px rgba(77,217,224,0),
      0 0 0 16px rgba(77,217,224,0);
  }
}

.video-label { text-align: center; }
.video-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(77,217,224,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.video-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(77,217,224,0.35);
  letter-spacing: 0.05em;
}

/* Video iframe when ID is set */
.video-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Card body */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.card-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.project-card:hover .card-title { color: var(--cyan); }

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: rgba(77,217,224,0.08);
  color: rgba(77,217,224,0.9);
  border: 1px solid rgba(77,217,224,0.2);
  border-radius: 4px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.check-icon {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list li span {
  color: var(--muted);
}

/* Project card animation */
.project-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
}
.timeline-line {
  position: absolute;
  left: 1.5rem;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(77,217,224,0.6),
    rgba(61,232,160,0.4),
    transparent
  );
}
.timeline > div { /* entries wrapper */
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-entry {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.section-entry-hidden {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease var(--entry-delay, 0ms), transform 0.6s ease var(--entry-delay, 0ms);
}
.section-entry-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-node {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 2px solid;
}
.node-cyan {
  background: rgba(77,217,224,0.12);
  border-color: rgba(77,217,224,0.5);
  box-shadow: 0 0 20px rgba(77,217,224,0.3);
}
.node-green {
  background: rgba(61,232,160,0.12);
  border-color: rgba(61,232,160,0.5);
  box-shadow: 0 0 20px rgba(61,232,160,0.3);
}

.timeline-content {
  flex: 1;
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.entry-role {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}
.entry-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(77,217,224,0.8);
  background: rgba(77,217,224,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(77,217,224,0.2);
  white-space: nowrap;
}
.entry-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.entry-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 0.2rem 0.5rem;
  background: #0e1018;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
.contact-center {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.contact-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.contact-line-left {
  display: block;
  height: 1px;
  width: 6rem;
  background: linear-gradient(to right, transparent, rgba(77,217,224,0.4));
}
.contact-line-right {
  display: block;
  height: 1px;
  width: 6rem;
  background: linear-gradient(to left, transparent, rgba(77,217,224,0.4));
}

.contact-form {
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  margin-bottom: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.375rem;
}
.form-input {
  width: 100%;
  background: rgba(10,12,18,1);
  border: 1px solid rgba(77,217,224,0.2);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
  border-color: rgba(77,217,224,0.6);
  box-shadow: 0 0 0 3px rgba(77,217,224,0.1);
}
.form-textarea {
  min-height: 120px;
  resize: none;
  line-height: 1.5;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.form-status.success {
  background: rgba(61,232,160,0.1);
  border: 1px solid rgba(61,232,160,0.3);
  color: var(--green);
}
.form-status.error {
  background: rgba(220,60,60,0.1);
  border: 1px solid rgba(220,60,60,0.3);
  color: #f87171;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--cyan);
  color: #07090e;
  border: none;
  border-radius: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(77,217,224,0.4);
  transition: background 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-submit:hover {
  background: #72e5eb;
  box-shadow: 0 0 36px rgba(77,217,224,0.7);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#submitLabel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(77,217,224,0.15);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.social-link:hover {
  border-color: rgba(77,217,224,0.5);
  background: rgba(77,217,224,0.05);
  transform: translateY(-2px);
}
.social-icon {
  color: var(--cyan);
  display: flex;
  transition: transform 0.2s;
}
.social-link:hover .social-icon {
  transform: scale(1.1);
}
.social-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.social-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(240,245,252,0.8);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  position: relative;
  border-top: 1px solid rgba(77,217,224,0.1);
  padding: 2.5rem 0;
}
.footer-bg {
  position: absolute;
  inset: 0;
  background: rgba(5,6,9,0.8);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand { text-align: left; }
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-icon {
  color: var(--muted);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  display: flex;
}
.footer-icon:hover {
  color: var(--cyan);
  background: rgba(77,217,224,0.08);
}
.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-credit:hover { color: var(--cyan); }

/* ══════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #12151e;
  border: 1px solid rgba(77,217,224,0.3);
  color: var(--foreground);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 22rem;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast.toast-success { border-color: rgba(61,232,160,0.4); color: var(--green); }
.toast.toast-error { border-color: rgba(220,60,60,0.4); color: #f87171; }

/* ══════════════════════════════════════════════════════════════
   SKILL CARD — stagger on section visibility
══════════════════════════════════════════════════════════════ */
.skill-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .about-card { padding: 1.25rem; }
  .contact-form { padding: 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { text-align: center; }
  .timeline-line { display: none; }
  .timeline-entry { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
.skills-logos{
  display:flex;
  justify-content:center;
  gap:50px;
  margin-bottom:60px;
  flex-wrap:wrap;
}

.skills-logos img{
  width:80px;
  height:80px;
  object-fit:contain;
  transition:transform 0.3s ease;
}

.skills-logos img:hover{
  transform:scale(1.15);
}