/* ══════════════════════════════════════════════════
   style.css — Serhat ALPER Portfolio
   Dark Cyber Theme | Blue Neon Accents
══════════════════════════════════════════════════ */

/* ─── VARIABLES ──────────────────────────────────── */
:root {
  --bg-0:    #000000;
  --bg-1:    #0d0d0d;
  --bg-2:    #111111;
  --bg-3:    #1a1a1a;
  --bg-4:    #222222;
  --border:  rgba(77, 201, 255, 0.12);
  --border-h: rgba(77, 201, 255, 0.4);
  --accent:  #4cc9ff;
  --accent-2:#00bfff;
  --accent-3:#0090d8;
  --text-1:  #f0f0f0;
  --text-2:  #a8a8a8;
  --text-3:  #666;
  --radius:  14px;
  --radius-sm: 8px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glow: 0 0 24px rgba(76, 201, 255, 0.25);
  --glow-strong: 0 0 40px rgba(76, 201, 255, 0.45);
}

/* ─── RESET / BASE ───────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { cursor: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--accent-3); border-radius: 10px; }

/* ─── CANVAS ──────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── CUSTOM CURSOR ──────────────────────────────── */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
}
.cursor-ring {
  width: 30px; height: 30px;
  border: 1px solid rgba(76, 201, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 48px; height: 48px;
  border-color: var(--accent);
  background: rgba(76, 201, 255, 0.06);
}

/* ─── LOADER ──────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-text {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 24px;
  text-shadow: var(--glow-strong);
}
.loader-bar {
  width: 220px;
  height: 2px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  border-radius: 2px;
  animation: loadBar 1.4s ease forwards;
}
@keyframes loadBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ─── CONTAINER ──────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ─── HEADER ─────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 500;
  padding: 18px 0;
  transition: padding 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom-color: var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: 1px;
  transition: color 0.3s;
  background: rgba(0,0,0,0.3);
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
}
.nav-logo:hover { color: var(--accent); border-color: var(--accent);}
.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 50px;
  transition: all 0.25s;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(76, 201, 255, 0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── SECTION BASE ───────────────────────────────── */
.section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}
.section-alt { background: var(--bg-1); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid rgba(76, 201, 255, 0.25);
  border-radius: 50px;
  background: rgba(76, 201, 255, 0.05);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-1);
}
.section-title em {
  font-style: normal;
  color: var(--accent);
  -webkit-text-stroke: 0px;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(76, 201, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(76, 201, 255, 0.4);
}
.btn-ghost:hover {
  background: rgba(76, 201, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.full-btn { width: 100%; justify-content: center; }

/* ─── HERO ───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 2;
  padding: 120px 24px 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 201, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(76, 201, 255, 0.12), transparent 70%);
  top: 10%; left: 15%;
  animation: glowPulse 6s ease-in-out infinite;
}
.hero-glow-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0, 144, 216, 0.1), transparent 70%);
  bottom: 15%; right: 10%;
  animation: glowPulse 8s ease-in-out infinite reverse;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid rgba(76, 201, 255, 0.3);
  background: rgba(76, 201, 255, 0.05);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulseDot 1.8s infinite;
  font-size: 0;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-first { display: block; color: var(--text-1); }
.hero-last {
  display: block;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-typed-wrapper {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 28px;
  min-height: 2rem;
}
.typed-prefix { color: var(--accent); }
#typed-text { color: var(--text-1); }
.typed-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.hero-social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 1.1rem;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}
.hero-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(76, 201, 255, 0.08);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--glow);
}

/* Floating icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.float-icon {
  position: absolute;
  font-size: 1.6rem;
  color: rgba(76, 201, 255, 0.18);
  animation: floatAnim linear infinite;
}
.fi-1  { top: 12%;  left: 5%;   animation-duration: 14s; animation-delay: 0s; }
.fi-2  { top: 25%;  right: 8%;  animation-duration: 18s; animation-delay: -3s; }
.fi-3  { top: 60%;  left: 3%;   animation-duration: 12s; animation-delay: -6s; }
.fi-4  { top: 75%;  right: 5%;  animation-duration: 16s; animation-delay: -1s; }
.fi-5  { top: 40%;  left: 10%;  animation-duration: 20s; animation-delay: -9s; }
.fi-6  { top: 55%;  right: 12%; animation-duration: 15s; animation-delay: -4s; }
.fi-7  { top: 80%;  left: 15%;  animation-duration: 13s; animation-delay: -7s; }
.fi-8  { top: 8%;   right: 20%; animation-duration: 17s; animation-delay: -2s; }
@keyframes floatAnim {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 2px;
  animation: fadeInUp 1s ease 2s both;
}
.scroll-wheel {
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-3);
  border-radius: 12px;
  position: relative;
}
.scroll-wheel::after {
  content: '';
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── ABOUT ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 64px;
}

.about-card-col { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.about-avatar-wrap {
  position: relative;
  width: 160px; height: 160px;
}
.about-avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  border: 2px solid var(--border-h);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.about-avatar i { font-size: 4.5rem; color: var(--accent); }
.about-avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(76, 201, 255, 0.2);
  animation: ringPulse 3s linear infinite;
}
.about-avatar-ring.r2 {
  inset: -24px;
  border-color: rgba(76, 201, 255, 0.1);
  animation-delay: 1.5s;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.about-info-box {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: background 0.2s;
}
.info-line:last-child { border-bottom: none; }
.info-line:hover { background: rgba(76, 201, 255, 0.04); }
.info-line i { width: 18px; color: var(--accent); font-size: 0.9rem; flex-shrink: 0; }
.info-line a { color: var(--accent); transition: opacity 0.2s; }
.info-line a:hover { opacity: 0.8; }

.about-intro {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-1);
}
.about-intro strong { color: var(--accent); }
.about-body {
  font-size: 0.975rem;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(76, 201, 255, 0.07);
  border: 1px solid rgba(76, 201, 255, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  transition: all 0.25s;
}
.interest-tag:hover {
  background: rgba(76, 201, 255, 0.14);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
  border-color: var(--border-h);
  background: var(--bg-3);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.stat-num {
  display: inline;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 6px;
}

/* ─── TECH ───────────────────────────────────────── */
.tech-categories, .proj-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}
.tech-filter, .proj-filter {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s;
}
.tech-filter:hover, .proj-filter:hover,
.tech-filter.active, .proj-filter.active {
  background: rgba(76, 201, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}
.tech-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(76, 201, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tech-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--glow);
}
.tech-card:hover::before { opacity: 1; }
.tech-card.hidden { display: none; }

.tech-icon-wrap {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  transition: transform 0.3s;
}
.tech-card:hover .tech-icon-wrap { transform: scale(1.15) rotate(6deg); }
.tech-card p {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 12px;
}
.tech-bar {
  height: 3px;
  background: var(--bg-4);
  border-radius: 3px;
  overflow: hidden;
}
.tech-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.tech-fill.animated { transform: scaleX(1); }

/* ─── PROJECTS ───────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.proj-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.proj-card.featured::after {
  content: 'Featured';
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #000;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}
.proj-card:hover {
  border-color: var(--border-h);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--glow);
}
.proj-card.hidden { display: none; }

.proj-img {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: rgba(76, 201, 255, 0.35);
  transition: color 0.3s;
  border-bottom: 1px solid var(--border);
}
.proj-card:hover .proj-img { color: rgba(76, 201, 255, 0.6); }

.proj-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.proj-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(76, 201, 255, 0.08);
  border: 1px solid rgba(76, 201, 255, 0.2);
  padding: 3px 10px;
  border-radius: 4px;
}
.proj-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}
.proj-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.proj-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.proj-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s;
}
.proj-links a:hover { color: var(--accent); }
.proj-links a i { font-size: 0.95rem; }

/* ─── BLOG ───────────────────────────────────────── */
.blog-swiper {
  padding-bottom: 52px !important;
}
.blog-slide {
  height: auto;
}
.blog-slide-inner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  height: 100%;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}
.blog-slide-inner:hover { border-color: var(--border-h); }

.blog-slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.blog-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}
.blog-cat.web     { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.blog-cat.game    { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.blog-cat.ai      { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.blog-cat.backend { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.blog-cat.personal{ background: rgba(248, 113, 113, 0.15); color: #f87171; }

.blog-read {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-slide-inner h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
}
.blog-slide-inner p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.25s;
}
.blog-read-more:hover { gap: 12px; }

/* Swiper custom */
.swiper-pagination-bullet {
  background: var(--text-3) !important;
  opacity: 1 !important;
  width: 6px !important;
  height: 6px !important;
}
.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  width: 20px !important;
  border-radius: 3px !important;
  transition: width 0.3s !important;
}
.swiper-button-prev, .swiper-button-next {
  color: var(--accent) !important;
  width: 40px !important; height: 40px !important;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all 0.25s;
}
.swiper-button-prev:hover, .swiper-button-next:hover {
  border-color: var(--accent);
  background: rgba(76, 201, 255, 0.08);
}
.swiper-button-prev::after, .swiper-button-next::after {
  font-size: 0.9rem !important;
}

/* ─── TIMELINE ───────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-h), transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  margin-bottom: 48px;
  align-items: start;
}
.timeline-item.right .timeline-card { grid-column: 3; grid-row: 1; }
.timeline-item.right .timeline-dot  { grid-column: 2; grid-row: 1; }
.timeline-item:not(.right) .timeline-card { grid-column: 1; grid-row: 1; text-align: right; }
.timeline-item:not(.right) .timeline-dot  { grid-column: 2; grid-row: 1; }

.timeline-dot {
  width: 40px; height: 40px;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  align-self: center;
  box-shadow: var(--glow);
  transition: all 0.3s;
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  color: #000;
  box-shadow: var(--glow-strong);
}

.timeline-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
  margin: 0 20px;
}
.timeline-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), var(--glow);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}
.timeline-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-item:not(.right) .timeline-badges { justify-content: flex-end; }
.tbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 50px;
}
.tbadge.gold { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }
.tbadge.active { color: #22c55e; border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.08); }

/* ─── GALLERY ────────────────────────────────────── */
.gallery-swiper { padding-bottom: 52px !important; }
.gallery-slide {
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-placeholder {
  height: 280px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-3);
  font-size: 2.5rem;
  transition: all 0.3s;
}
.gallery-placeholder span {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  letter-spacing: 1px;
}
.gallery-placeholder:hover {
  border-color: var(--border-h);
  color: var(--accent);
}
.gallery-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.825rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gallery-note i { color: var(--accent-3); }
.gallery-note code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-3);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ─── CONTACT ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-intro {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.25s;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.contact-link i { width: 18px; color: var(--accent); }
.contact-link:hover { color: var(--accent); }

.contact-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.csocial {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}
.csocial:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(76, 201, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

/* Form */
.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 201, 255, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #22c55e;
  font-family: var(--font-mono);
}
.form-success.show { display: flex; }

/* ─── BLOG MODAL ────────────────────────────────────── */
.blog-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.blog-modal-content {
  background-color: var(--bg-2);
  margin: 10% auto;
  padding: 30px;
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  width: 80%;
  max-width: 800px;
  color: var(--text-1);
  position: relative;
  animation: modalFadeIn 0.4s;
}
@keyframes modalFadeIn {
  from {top: -50px; opacity: 0;}
  to {top: 0; opacity: 1;}
}
.blog-modal-close {
  color: var(--text-2);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.blog-modal-close:hover {
  color: var(--accent);
}
#blog-modal-body {
  margin-top: 20px;
  line-height: 1.6;
  font-size: 1rem;
}
#blog-modal-body p {
  margin-bottom: 15px;
  color: var(--text-2);
}
#blog-modal-body h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--accent);
}

/* ─── FOOTER ─────────────────────────────────────── */
#footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  position: relative;
  z-index: 2;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-2); }
.footer-links-col h4, .footer-socials-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
}
.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.25s;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: all 0.3s;
}
.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(76, 201, 255, 0.08);
  transform: translateY(-3px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom strong { color: var(--accent); }

/* Back to top */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  cursor: none;
}
#back-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(76, 201, 255, 0.08);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card-col { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .about-avatar-wrap { flex-shrink: 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 24px; }
  .timeline-item { grid-template-columns: 40px 1fr; }
  .timeline-item.right .timeline-card { grid-column: 2; }
  .timeline-item.right .timeline-dot  { grid-column: 1; }
  .timeline-item:not(.right) .timeline-card { grid-column: 2; text-align: left; }
  .timeline-item:not(.right) .timeline-dot  { grid-column: 1; }
  .timeline-item:not(.right) .timeline-badges { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: rgba(8, 8, 12, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 28px 40px;
    gap: 4px;
    border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 450;
  }
  .nav-links.open { right: 0; }
  .nav-link { width: 100%; font-size: 1rem; padding: 12px 16px; }
  .hamburger { display: flex; z-index: 460; position: relative; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-name { letter-spacing: -1px; }
  .about-info-box { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  #back-top { bottom: 20px; right: 20px; }
}

/* AOS overrides */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }