/* ══════════════════════════════════════════
   DESIGN SYSTEM — Spotify Modern DA
   Portfolio Semih Taskin
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #121212;
  --bg-card: #181818;
  --bg-card-h: #212121;
  --bg-nav: rgba(18, 18, 18, 0.92);
  --green: #1DB954;
  --green-h: #1ed760;
  --green-dim: rgba(29, 185, 84, 0.12);
  --green-glow: rgba(29, 185, 84, 0.20);
  --orange: #E8740C;
  --text: #FFFFFF;
  --muted: #B3B3B3;
  --dim: #535353;
  --border: rgba(255, 255, 255, 0.08);
  --border-h: rgba(255, 255, 255, 0.16);

  --r: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.25s;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 0 1.5px var(--green);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--green-dim);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: #0e0e0e;
}

/* ── Page fade transition ── */
.page-wrapper {
  animation: pageFadeIn 0.4s var(--ease) both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Typography ── */
.heading-xl {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.heading-lg {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.heading-md {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-sm {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.text-muted {
  color: var(--muted);
}

.text-green {
  color: var(--green);
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--t) var(--spring), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.04);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--green);
  color: #000;
}

.btn-primary:hover {
  background: var(--green-h);
  box-shadow: 0 0 28px var(--green-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-ghost svg {
  transition: transform var(--t) var(--ease);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.btn-contact {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(29, 185, 84, 0.55);
}

.btn-contact:hover {
  background: var(--green-dim);
  border-color: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(29, 185, 84, 0.2);
  transition: background var(--t), transform var(--t);
}

.badge:hover {
  background: rgba(29, 185, 84, 0.22);
  transform: translateY(-1px);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border-color: var(--border);
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green);
}

/* ── Section intro ── */
.section-intro {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-intro .heading-lg {
  margin-bottom: 16px;
}

.section-intro p {
  color: var(--muted);
  font-size: 16px;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), transform 0.35s var(--ease);
}

#navbar.scrolled {
  border-bottom-color: var(--border);
}

/* Hide nav on scroll down, reveal on scroll up */
#navbar.nav-hidden {
  transform: translateY(-100%);
}

/* ── Back-to-top button ── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.3s, transform 0.3s var(--spring), color var(--t), border-color var(--t), background var(--t);
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#back-to-top:hover {
  color: var(--green);
  border-color: rgba(29, 185, 84, 0.4);
  background: var(--green-dim);
  transform: translateY(-3px) scale(1.08);
}

#back-to-top svg {
  width: 18px;
  height: 18px;
}


.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color var(--t);
  flex-shrink: 0;
}

.nav-logo .logo-dot {
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}

.nav-logo:hover {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: color var(--t), background var(--t);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  margin-left: 8px;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-greeting::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.hero-name {
  color: var(--green);
}

.hero-title {
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.75;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 0;
}

/* Compact btns inside hero */
.hero-actions .btn {
  padding: 12px 20px;
  font-size: 13px;
}


.hero-bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.blur-1 {
  width: 500px;
  height: 500px;
  background: rgba(29, 185, 84, 0.07);
  top: -100px;
  right: -100px;
}

.blur-2 {
  width: 400px;
  height: 400px;
  background: rgba(29, 185, 84, 0.05);
  bottom: -80px;
  left: 30%;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 11px;
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeInUp 0.6s 1s both;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1
  }

  60% {
    transform: scaleY(1);
    opacity: 1
  }

  100% {
    transform-origin: bottom;
    opacity: 0
  }
}

/* ── Hero grid (2 columns) ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* ── Status badge ── */
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.25);
  border-radius: var(--r-pill);
  padding: 8px 18px 8px 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  width: fit-content;
  margin-bottom: 20px;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.4);
  animation: pulseDot 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(29, 185, 84, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
  }
}

/* ── Social links (hero) ── */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t);
}

.hero-social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-social-link:hover {
  color: var(--text);
  border-color: var(--border-h);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ── Photo ── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: 300px;
  height: 300px;
}

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 10px;
  position: relative;
  z-index: 1;
  border: 3px solid rgba(29, 185, 84, 0.3);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease);
}

.hero-photo-wrap:hover .hero-photo {
  transform: scale(1.02);
}

.hero-photo-fallback {
  display: none;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2e1a, #0a1a0a);
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 900;
  color: var(--green);
  margin: 10px;
  border: 3px solid rgba(29, 185, 84, 0.3);
}

.hero-photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(29, 185, 84, 0.12);
  animation: ringPulse 3s ease infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* ── Responsive hero ── */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    order: -1;
  }

  .hero-photo-wrap {
    width: 180px;
    height: 180px;
  }

  .hero-photo,
  .hero-photo-fallback {
    width: 160px;
    height: 160px;
    font-size: 2.5rem;
  }
}



/* ══════════════════════════════════════════
   TEASER ABOUT
══════════════════════════════════════════ */
.teaser-about {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 52px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.teaser-about-text p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 580px;
  margin-top: 16px;
}

/* ══════════════════════════════════════════
   PROJECT CARDS
══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-cover img {
  transform: scale(1.05);
}

.project-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.project-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
  font-size: 13px;
}

/* ══════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
}

.about-avatar {
  width: 260px;
  height: 260px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #1a2e1a, #0a1a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 185, 84, 0.2);
  font-size: 7rem;
  flex-shrink: 0;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.about-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(29, 185, 84, 0.1));
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-block {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 28px;
  border: 1px solid var(--border);
  transition: border-color var(--t), transform var(--t);
}

.work-block:hover {
  border-color: rgba(29, 185, 84, 0.3);
  transform: translateY(-3px);
}

.work-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.watch-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.watch-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  padding: 20px 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.watch-item .wi-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.wi-content strong {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.wi-content p {
  font-size: 13px;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   SKILLS PAGE
══════════════════════════════════════════ */
.skills-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.skill-group {}

.skill-group-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.soft-card {
  background: var(--bg-card);
  border-radius: var(--r-sm);
  padding: 22px 24px;
  border: 1px solid var(--border);
  transition: border-color var(--t), transform var(--t);
}

.soft-card:hover {
  border-color: rgba(29, 185, 84, 0.3);
  transform: translateY(-3px);
}

.soft-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.soft-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.soft-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════════
   PROJECT DETAIL PAGE
══════════════════════════════════════════ */
.detail-hero {
  padding: calc(var(--nav-h) + 60px) 0 64px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color var(--t);
  padding: 0;
}

.detail-back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t);
}

.detail-back:hover {
  color: var(--green);
}

.detail-back:hover svg {
  transform: translateX(-4px);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 56px;
  border: 1px solid var(--border);
}

.detail-cover .cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.detail-challenges {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.challenge-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.challenge-item strong {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.challenge-item p {
  font-size: 13px;
  color: var(--muted);
}

.detail-sidebar-card {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tech-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-icon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.tech-icon-item span {
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.form-group select option {
  background: var(--bg-card);
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 36px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-content strong {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  text-transform: uppercase;
  font-size: 11px;
}

.info-content .info-val {
  font-size: 14px;
  color: var(--text);
}

.info-content a {
  color: var(--text);
  transition: color var(--t);
}

.info-content a:hover {
  color: var(--green);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t);
}

.social-link:hover {
  color: var(--text);
  border-color: var(--border-h);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 13px;
  color: var(--dim);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--dim);
  transition: color var(--t);
}

.footer-links a:hover {
  color: var(--text);
}

/* ══════════════════════════════════════════
   ANIMATIONS & REVEAL
══════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-avatar {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }

  .teaser-about {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .soft-skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }
}

/* ══════════════════════════════════════════
   FOOTER CTA
══════════════════════════════════════════ */
.footer-cta {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-cta-inner .heading-lg {
  margin-bottom: 10px;
}

.footer-cta-inner p {
  color: var(--muted);
  font-size: 15px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   FOOTER 3 COLONNES
══════════════════════════════════════════ */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

/* -- Brand -- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: block;
}

.footer-brand-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.footer-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t);
}

.footer-icon-link svg {
  width: 16px;
  height: 16px;
}

.footer-icon-link:hover {
  color: var(--green);
  border-color: rgba(29, 185, 84, 0.4);
  background: var(--green-dim);
  transform: translateY(-2px);
}

/* -- Column titles -- */
.footer-col-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* -- Nav column -- */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--dim);
  transition: color var(--t), padding-left var(--t);
}

.footer-nav a:hover {
  color: var(--text);
  padding-left: 4px;
}

/* -- Contact column -- */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.footer-contact-list svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--green);
}

.footer-contact-list a {
  color: var(--muted);
  transition: color var(--t);
}

.footer-contact-list a:hover {
  color: var(--green);
}

/* -- Bottom bar -- */
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--dim);
}

/* -- Footer responsive -- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   BENTO PROJECT GRID (from projects.html)
══════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Featured card – takes 8/12 cols, full height row */
.bento-card--featured {
  grid-column: 1 / 8;
  grid-row: 1 / 2;
}

/* Side stacked cards */
.bento-card--side-top {
  grid-column: 8 / 13;
  grid-row: 1 / 2;
}

/* Second row: 3 equal cards */
.bento-card--third {
  grid-column: 1 / 5;
  grid-row: 2;
}

.bento-card--fourth {
  grid-column: 5 / 9;
  grid-row: 2;
}

.bento-card--fifth {
  grid-column: 9 / 13;
  grid-row: 2;
}

/* Responsive fallback */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card--featured,
  .bento-card--side-top,
  .bento-card--third,
  .bento-card--fourth,
  .bento-card--fifth {
    grid-column: auto;
    grid-row: auto;
  }

  .bento-card--featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* ── The card itself ── */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.bento-card:hover {
  border-color: rgba(29, 185, 84, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

/* ── Cover image area ── */
.bento-cover {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.bento-card--featured .bento-cover {
  height: 280px;
}

.bento-card--side-top .bento-cover,
.bento-card--third .bento-cover,
.bento-card--fourth .bento-cover,
.bento-card--fifth .bento-cover {
  height: 180px;
}

.bento-card.bento-card--home {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .bento-card.bento-card--home {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .bento-card.bento-card--home {
    grid-column: span 12;
  }
}

.bento-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-cover img {
  transform: scale(1.04);
}

/* Green tinted overlay on hover */
.bento-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover .bento-cover::after {
  opacity: 1;
}

/* Hover CTA overlay button */
.bento-cover-cta {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  background: var(--green);
  color: #000;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  letter-spacing: 0.03em;
}

.bento-card:hover .bento-cover-cta {
  opacity: 1;
  transform: translateY(0);
}

.bento-cover-cta svg {
  width: 12px;
  height: 12px;
  stroke: #000;
  fill: none;
  stroke-width: 2.5;
}

/* Production badge inside cover */
.bento-prod-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(29, 185, 84, 0.15);
  border: 1px solid rgba(29, 185, 84, 0.5);
  color: var(--green);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bento-prod-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── Card body text ── */
.bento-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bento-tag {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

.bento-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.bento-card--featured .bento-title {
  font-size: 1.25rem;
}

.bento-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Stat pills row */
.bento-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.bento-stat {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(29, 185, 84, 0.07);
  border: 1px solid rgba(29, 185, 84, 0.2);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}