/* ── EREN TİRYAKİ PORTFOLIO DESIGN SYSTEM ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

/* ── CSS VARIABLES / THEMES ── */
:root {
  /* DARK THEME (DEFAULT) - PURE WHITE TEXT */
  --bg-base: #06070d;
  --bg-subtle: #0b0d18;
  --bg-card: rgba(14, 18, 34, 0.85);
  --bg-card-hover: rgba(22, 28, 52, 0.95);
  --bg-glass: rgba(7, 9, 18, 0.88);
  --surface: #12162a;
  
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(99, 102, 241, 0.65);
  --border-card: rgba(255, 255, 255, 0.1);

  /* METİN: KOYU TEMADA BEYAZ */
  --text-primary: #ffffff;
  --text-secondary: #f1f5f9;
  --text-muted: #cbd5e1;

  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --accent-gradient-alt: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --canvas-particle-1: 99, 102, 241;
  --canvas-particle-2: 6, 182, 212;
}

[data-theme="light"] {
  /* LIGHT THEME - PURE BLACK TEXT */
  --bg-base: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --surface: #ffffff;
  
  --border-light: rgba(0, 0, 0, 0.1);
  --border-focus: rgba(79, 70, 229, 0.55);
  --border-card: rgba(0, 0, 0, 0.08);

  /* METİN: AÇIK TEMADA SİYAH */
  --text-primary: #000000;
  --text-secondary: #111827;
  --text-muted: #374151;

  --accent: #4f46e5;
  --accent-light: #6366f1;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #0284c7 100%);
  --accent-gradient-alt: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.18);

  --canvas-particle-1: 79, 70, 229;
  --canvas-particle-2: 2, 132, 199;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* ── CANVAS & BACKGROUND GLOWS ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.ambient-glow-1 {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: var(--accent);
  top: -100px;
  right: -50px;
}

.ambient-glow-2 {
  width: min(450px, 80vw);
  height: min(450px, 80vw);
  background: var(--accent-cyan);
  bottom: 15%;
  left: -80px;
  animation-delay: -9s;
}

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

/* ── CURSOR SPOTLIGHT ── */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: transform 0.04s linear;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.07) 0%, transparent 65%);
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ── NAVBAR ── */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* TYPOGRAPHIC BRAND */
.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
}

.nav-brand:hover {
  transform: none;
}

.nav-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1;
}

.nav-name span {
  color: var(--text-primary) !important;
  background: none !important;
  -webkit-text-fill-color: var(--text-primary) !important;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a.nav-item-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s, transform 0.2s;
  position: relative;
  padding: 6px 0;
}

.nav-links a.nav-item-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a.nav-item-link:hover,
.nav-links a.nav-item-link.active {
  color: var(--text-primary);
}

.nav-links a.nav-item-link:hover::after,
.nav-links a.nav-item-link.active::after {
  width: 100%;
}

/* NAVBAR CONTROLS (THEME & LANG) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.lang-btn.active {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn iconify-icon {
  font-size: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.btn-nav-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s, box-shadow 0.3s;
  white-space: nowrap;
}

.btn-nav-cv:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
}

.btn-nav-cv::after { display: none !important; }

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 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);
}

/* ── MOBILE MENU DRAWER ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
  padding: 80px 24px 40px;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin: auto;
}

.mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: color 0.25s, transform 0.2s;
  padding: 10px 16px;
  width: 100%;
  border-radius: var(--radius-md);
}

.mobile-link:hover {
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.08);
}

.mobile-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

/* ── HERO SECTION ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-primary);
  border: 1px solid var(--border-focus);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typing-wrap {
  display: flex;
  align-items: center;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 22px;
  min-height: 44px;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-word;
}

.typing-cursor {
  display: inline-block;
  color: var(--accent-light);
  margin-left: 4px;
  font-weight: 400;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 34px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: #ffffff !important;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.65);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-secondary:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-pill {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.social-pill:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
  background: var(--surface);
}

/* HERO PHOTO / AVATAR CARD */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 100%;
}

.avatar-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-cyan), #a855f7, var(--accent));
  animation: spinRing 9s linear infinite;
  opacity: 0.85;
  filter: blur(1px);
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.avatar-backdrop {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--bg-base);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* FLOATING BADGES OVER AVATAR */
.floating-badge {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-focus);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  box-shadow: var(--shadow-sm);
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-badge-1 {
  bottom: 0px;
  left: -24px;
}

.floating-badge-2 {
  top: 10px;
  right: -24px;
  animation-delay: -2s;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.floating-badge iconify-icon {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.badge-text-title {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-text-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── STATS STRIP ── */
.stats-strip {
  margin-top: 40px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.stat-text h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── SECTION COMMON STYLES ── */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-focus);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ── ABOUT SECTION ── */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.about-quote-mark {
  font-size: 3rem;
  color: var(--accent-light);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}

.about-main-text {
  font-size: 1.18rem;
  line-height: 1.95;
  color: var(--text-primary);
  font-weight: 450;
  margin-bottom: 36px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pillar-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pillar-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── SKILLS & COMPETENCIES (BECERİLER VE YETENEKLER) ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  backdrop-filter: blur(16px);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.skill-category-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.category-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.category-title-wrap h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.category-title-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.25s, border-color 0.25s;
}

[data-theme="light"] .skill-item {
  background: rgba(0, 0, 0, 0.02);
}

.skill-item:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--border-focus);
}

.skill-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  font-size: 1.35rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.skill-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── CONTACT SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(16px);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-glow);
}

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

.contact-icon-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-light);
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.contact-card:hover .contact-icon-bubble {
  transform: scale(1.1);
  color: #ffffff;
  background: var(--accent);
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.contact-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.contact-action-hint {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── TOAST NOTIFICATION ── */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-focus);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 48px);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
  padding: 60px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-brand-title span {
  color: var(--text-primary) !important;
  background: none !important;
  -webkit-text-fill-color: var(--text-primary) !important;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 420px;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, transform 0.2s;
}

.footer-links-list a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-divider {
  height: 1px;
  background: var(--border-light);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-bottom strong {
  color: var(--text-primary);
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── EXTENSIVE MOBILE RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-visual {
    order: -1; /* Put avatar photo above text on tablets/mobile for great visual hierarchy */
    margin-bottom: 10px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Hide desktop-only nav elements */
  .nav-links,
  .nav-controls .btn-nav-cv,
  .nav-controls .lang-switch {
    display: none;
  }

  .nav-inner {
    height: 64px;
    padding: 0 16px;
  }

  .nav-name {
    font-size: 1.45rem;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 65px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 95px 0 40px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .hero-typing-wrap {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    min-height: 36px;
    justify-content: center;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 26px;
  }

  /* Safe avatar sizing on mobile - NO overflow! */
  .avatar-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .avatar-ring {
    inset: -8px;
  }

  .avatar-backdrop {
    inset: -5px;
  }

  /* Hide overlapping badges on mobile screens to prevent horizontal overflow */
  .floating-badge {
    display: none !important;
  }

  .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
  }

  .about-card {
    padding: 26px 18px;
  }

  .about-quote-mark {
    font-size: 2.2rem;
    margin-bottom: 6px;
  }

  .about-main-text {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 24px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
    padding: 20px 16px;
  }

  .skill-category-card {
    padding: 24px 18px;
  }

  .category-header {
    gap: 12px;
    margin-bottom: 18px;
  }

  .category-icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .category-title-wrap h3 {
    font-size: 1.15rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card {
    padding: 20px 16px;
  }

  .footer-top {
    gap: 28px;
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .skill-badge {
    align-self: flex-start;
    font-size: 0.72rem;
  }

  .toast-msg {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
    justify-content: center;
  }
}
