/* ══════════════════════════════════════════════
   ROOT & RESET
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --red:    #d94e41;
  --red-dk: #b63c32;
  --cream:  #fdfbf7;
  --dark:   #111;
  --mid:    #1a1a1a;
  --muted:  #a39e8e;
  --border: #e6e3d7;
  --nav-h:  70px;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  font-family: 'Archivo Black', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}

/* ══════════════════════════════════════════════
   GRAIN OVERLAY
══════════════════════════════════════════════ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>") repeat;
  opacity: 0.13;
  z-index: 99997;
}

/* ══════════════════════════════════════════════
   PAGE LOADER
══════════════════════════════════════════════ */
.site-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              visibility 0.7s cubic-bezier(0.4,0,0.2,1);
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-letters {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--cream);
  letter-spacing: -0.05em;
  display: flex;
  line-height: 1;
  overflow: visible;
  padding: 0 0.1em 0.1em 0;
}

.loader-letters span {
  display: inline-block;
  transform: translateY(110%);
  animation: loader-slide-in 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}
.loader-letters span:nth-child(1) { animation-delay: 0.08s; }
.loader-letters span:nth-child(2) { animation-delay: 0.18s; }

.loader-red { color: var(--red); }

@keyframes loader-slide-in {
  to { transform: translateY(0); }
}

.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  width: 0%;
  animation: loader-fill 1.3s ease forwards 0.25s;
}

@keyframes loader-fill {
  to { width: 100%; }
}

/* ══════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════ */
.cursor-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 8px 4px rgba(217,78,65,0.55), 0 0 18px 8px rgba(217,78,65,0.2);
}

.cursor-ring { display: none; }

.cursor-trail { display: none; }

body.cursor-hover .cursor-dot {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 12px 6px rgba(217,78,65,0.65), 0 0 28px 12px rgba(217,78,65,0.25);
}

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 2rem);
  height: var(--nav-h);
  margin: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 1.8rem;
  background: var(--mid);
  border: 1.5px solid rgba(230,227,215,0.18);
  border-radius: 12px;
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(20,20,20,0.96);
  border-color: rgba(230,227,215,0.08);
  backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.35rem;
  color: var(--red);
  text-decoration: none;
  letter-spacing: -0.02em;
  cursor: none;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }

nav .links {
  display: flex;
  gap: 1.8rem;
  justify-content: center;
}

nav a:not(.nav-logo) {
  text-decoration: none;
  color: var(--border);
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
  cursor: none;
}

nav a:not(.nav-logo)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
nav a:not(.nav-logo):hover { color: var(--red); }
nav a:not(.nav-logo):hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(230,227,215,0.6);
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-avail 2.2s ease infinite;
}

@keyframes pulse-avail {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.45); }
  55%       { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.lang-toggle {
  cursor: none;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--border);
  padding: 0.35rem 0.7rem;
  border: 1.5px solid rgba(230,227,215,0.3);
  border-radius: 5px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.lang-toggle:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(217,78,65,0.08);
}

/* ══════════════════════════════════════════════
   BASE SECTION
══════════════════════════════════════════════ */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  scroll-margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 9rem);
  line-height: 1.0;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

p {
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.alt-renk { color: var(--red); }

.dark {
  background-color: var(--dark);
  color: var(--cream);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#home {
  position: relative;
  padding-top: calc(var(--nav-h) + 2rem);
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 90vw;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(5.5rem, 17vw, 19rem);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-line { display: block; }

.line-2 {
  /* slight indent for editorial asymmetry */
  padding-left: clamp(1.5rem, 5vw, 6rem);
  color: var(--dark);
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 90vw;
  margin-top: 2.5rem;
}

.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0;
  max-width: none;
  text-transform: none;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.scroll-line-wrap {
  width: 44px;
  height: 2px;
  background: rgba(0,0,0,0.12);
  overflow: hidden;
  border-radius: 2px;
}
.scroll-line-inner {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: translateX(-100%);
  animation: slideline 2.2s ease-in-out infinite;
}
@keyframes slideline {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ══════════════════════════════════════════════
   MARQUEE STRIPS
══════════════════════════════════════════════ */
.marquee-strip {
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 1.5px solid;
  border-bottom: 1.5px solid;
  position: relative;
  z-index: 0;
}

.strip-dark  { background: var(--dark);  border-color: #2a2a2a; }
.strip-light { background: var(--cream); border-color: var(--border); }

.marquee-track { display: flex; white-space: nowrap; }

.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  animation: marquee-scroll 45s linear infinite;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-right: 1.6rem;
}

.strip-dark  .marquee-inner { color: var(--cream); }
.strip-light .marquee-inner { color: var(--dark); }

.marquee-inner em {
  font-style: normal;
  color: var(--red);
  font-size: 0.65em;
}

.marquee-track.reverse .marquee-inner {
  animation-direction: reverse;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.about-section {
  text-align: left;
  justify-content: flex-start;
  padding: 7rem clamp(2rem, 7vw, 8rem);
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  width: 100%;
  max-width: 1400px;
}

.about-text { flex: 1; max-width: 640px; }
.about-text h1 { margin-bottom: 1.8rem; }

.about-text > p {
  margin: 0;
  text-align: left;
  color: rgba(253,251,247,0.75);
  max-width: 560px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

/* Stats */
.about-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat { display: flex; flex-direction: column; gap: 0.3rem; }

.stat-top {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  line-height: 1;
}

.stat-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  color: var(--red);
  line-height: 1;
}

.stat-plus {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: var(--red);
}

.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253,251,247,0.4);
}

.stat-divider {
  width: 1px;
  height: 55px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.stat-top--text {
  display: flex;
  align-items: center;
  height: clamp(2.2rem, 3.5vw, 3.8rem); /* match stat-num height */
}

.stat-badge {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  color: var(--cream);
  background: var(--red);
  padding: 0.3em 0.6em;
  border-radius: 5px;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* ══════════════════════════════════════════════
   SPINNING BADGE
══════════════════════════════════════════════ */
.spinning-badge-wrap,
.contact-badge-wrap { flex-shrink: 0; }

.spinning-badge {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.spinning-badge svg {
  position: absolute;
  top: 0; left: 0;
  animation: spin-badge 14s linear infinite;
}

@keyframes spin-badge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.badge-center-glyph {
  font-family: 'Archivo Black', sans-serif;
  font-size: 3.2rem;
  color: var(--cream);
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.spinning-badge:hover .badge-center-glyph {
  transform: scale(1.35) rotate(-12deg);
}

.spinning-badge--contact { cursor: none; }

/* ══════════════════════════════════════════════
   SKILLS SECTION
══════════════════════════════════════════════ */
#skills {
  min-height: 100vh;
  display: block;
  padding-top: 7rem;
  padding-bottom: 5rem;
  background: var(--dark);
  color: var(--cream);
  text-align: center;
}

.skills-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.skills-inner h1 { margin-bottom: 0; }

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
}

.skill-tag {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: none;
}

.skill-tag:hover { transform: scale(1.07) rotate(-1.5deg); }

.skill-tag.size-xl { font-size: clamp(3rem, 6vw, 6.5rem); }
.skill-tag.size-lg { font-size: clamp(2.2rem, 4vw, 4.5rem); }
.skill-tag.size-md { font-size: clamp(1.5rem, 2.8vw, 3rem); }
.skill-tag.size-sm { font-size: clamp(1.1rem, 1.8vw, 2rem); }

.skill-tag.style-filled {
  color: #fff;
  background: var(--red);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.skill-tag.style-outline {
  color: var(--cream);
  border: 3px solid rgba(253,251,247,0.55);
  padding: 0.08em 0.35em;
  border-radius: 6px;
}

.skill-tag.style-plain { color: rgba(253,251,247,0.85); }

/* ══════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════ */
#projects {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: var(--cream);
}

.projects-header { margin-bottom: 0.5rem; }
.projects-header h1 { margin-bottom: 1rem; }
.projects-header p { color: var(--muted); }

/* Carousel */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3.5rem;
  position: relative;
  padding: 0 90px;
  box-sizing: border-box;
  width: 100%;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 2px solid var(--muted);
  color: var(--muted);
  font-size: 1.2rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  cursor: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  z-index: 2;
  flex-shrink: 0;
}

.arrow.left  { left: 10px; }
.arrow.right { right: 10px; }

.arrow:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-50%);
}

.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: visible;
  position: relative;
  gap: 1.2rem;
}

/* Project Cards */
.project-card {
  flex: 0 0 auto;
  width: 280px;
  min-height: 220px;
  padding: 2rem 1.8rem 2rem;
  border: 2px solid rgba(17,17,17,0.12);
  border-radius: 14px;
  background: var(--dark);
  color: var(--cream);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.35s ease,
              border-color 0.3s,
              box-shadow 0.3s;
}

.project-card::before { display: none; }
.project-card:hover {
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(217,78,65,0.15);
}

.project-card .card-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}

.project-card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  position: relative;
  display: inline-block;
}

.project-card h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.project-card:hover h3::after { width: 100%; }

.project-card p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: none;
  margin: 0;
}

.project-card .card-arrow {
  position: absolute;
  bottom: 1.3rem;
  right: 1.3rem;
  font-size: 1.1rem;
  color: rgba(163,158,142,0.5);
  transition: color 0.3s, transform 0.3s;
}
.project-card:hover .card-arrow {
  color: var(--red);
}

.project-card.active {
  opacity: 1;
  border-color: rgba(17,17,17,0.25);
  transform: scale(1);
  margin: 0 1rem;
}
.project-card.active:hover {
  border-color: var(--red);
  transform: scale(1.04);
}

.project-card.side {
  transform: scale(0.72);
  opacity: 0.35;
  pointer-events: none;
}

/* Full-card clickable overlay */
.card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: none;
}

/* Card is now the link element itself */
.project-card[href] {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: none;
}

.project-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  width: 100%;
  cursor: none;
}

/* Keep perspective for 3D carousel */
.carousel { perspective: 1200px; }
.projects-counter {
  margin-top: 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-align: center;
}
.counter-current {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.3rem;
  color: var(--red);
}
.counter-sep { margin: 0 0.3rem; }

/* ══════════════════════════════════════════════
   CV
══════════════════════════════════════════════ */
#cv {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--cream);
  color: var(--dark);
}

.cv-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.cv-inner h1 { margin: 0; color: var(--dark); }
.cv-inner p { color: var(--muted); }

.cv-deco {
  position: absolute;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(12rem, 28vw, 32rem);
  color: rgba(17,17,17,0.04);
  letter-spacing: -0.05em;
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

#cv-button {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 1rem 2.5rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: none;
}
#cv-button:hover {
  background: var(--red-dk);
  transform: translateY(-3px) scale(1.03);
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
#contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem clamp(2rem, 7vw, 8rem);
  background: var(--dark);
  color: var(--cream);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  width: 100%;
  max-width: 1300px;
}

.contact-left { text-align: left; }
.contact-left h1 { margin-bottom: 0.5rem; color: var(--cream); }

.contact-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: rgba(253,251,247,0.45);
  margin: 0 0 2.5rem;
  max-width: none;
  text-align: left;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-row img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), filter 0.3s;
}
.contact-row img:hover {
  transform: scale(1.25);
  filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(550%) hue-rotate(330deg) brightness(105%);
}

.contact-row a {
  text-decoration: none;
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: none;
  transition: color 0.25s;
}
.contact-row a:hover { color: var(--red); }

.mail-row span {
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.mail-row:hover span { color: var(--red); }
.mail-row:hover img {
  filter: invert(38%) sepia(75%) saturate(600%) hue-rotate(326deg) brightness(1.1);
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid #222;
  padding: 1.8rem 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253,251,247,0.28);
}

.footer-mid { color: rgba(217,78,65,0.5); }

/* Turkish lang — loosen hero title line height so İ dot clears the line above */
html[lang="tr"] .hero-title {
  line-height: 0.92;
}

/* Remove cursor trail styles (trails removed from HTML) */
.cursor-trail { display: none; }
.reveal-up {
  opacity: 0;
  transform: translateY(55px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal-up.delay-1 { transition-delay: 0.12s; }
.reveal-up.delay-2 { transition-delay: 0.24s; }

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

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .about-inner,
  .contact-inner { flex-direction: column; gap: 3rem; }
  .spinning-badge-wrap,
  .contact-badge-wrap { align-self: center; }
  .contact-left { text-align: center; width: 100%; }
  .contact-tagline { text-align: center; }
  .contact-section { align-items: center; }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring,
  .cursor-trail { display: none; }

  nav {
    width: calc(100% - 1.4rem);
    margin: 0.7rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
  }
  nav .links {
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    order: 2;
  }
  nav a:not(.nav-logo) { font-size: 0.72rem; }
  .nav-logo { order: 1; font-size: 1.2rem; }
  .nav-right { order: 3; gap: 1rem; }
  .nav-availability { display: none; }

  #home {
    padding-top: 9rem;
    min-height: 100svh;
  }
  .hero-meta { font-size: 0.65rem; }
  .hero-title { font-size: clamp(4rem, 20vw, 8rem); }
  .line-2 { padding-left: clamp(0.5rem, 2vw, 2rem); }
  .hero-bottom { flex-direction: column; gap: 1.2rem; align-items: center; }
  .hero-eyebrow { text-align: center; font-size: 0.85rem; }

  .about-section { padding: 6rem 1.5rem 4rem; text-align: center; }
  .about-text p { text-align: center; margin: 0 auto; }
  .about-stats { justify-content: center; gap: 1.5rem; }

  .spinning-badge { width: 240px; height: 240px; }
  .spinning-badge svg { width: 240px; height: 240px; }

  #skills { padding-top: 6rem; }
  .skills-inner { padding: 0 1rem; }
  .skill-tag.size-xl { font-size: clamp(2rem, 12vw, 4rem); }
  .skill-tag.size-lg { font-size: clamp(1.5rem, 8vw, 2.8rem); }
  .skill-tag.size-md { font-size: clamp(1.1rem, 6vw, 2rem); }
  .skill-tag.size-sm { font-size: clamp(0.9rem, 4vw, 1.4rem); }
  .skill-tag.style-outline { border-width: 2px; }

  #projects { padding-top: 6rem; }
  .carousel { flex-direction: column; margin-top: 2.5rem; }
  .arrow {
    position: static;
    transform: none;
    width: 110px;
    margin: 0;
    padding: 0.6rem 1rem;
  }
  .arrow:hover { transform: scale(1.08); }

  .carousel-track {
    width: 100%;
    flex-direction: column;
    height: 340px;
    overflow: hidden;
    position: relative;
    gap: 0;
  }

  .project-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.35s ease;
  }
  .project-card.side:first-child {
    top: 0.5rem;
    opacity: 0.3;
    transform: translateX(-50%) scale(0.82);
  }
  .project-card.active {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    opacity: 1;
    z-index: 2;
    border-color: var(--red) !important;
    margin: 0;
  }
  .project-card.side:last-child {
    bottom: 0.5rem;
    opacity: 0.3;
    transform: translateX(-50%) scale(0.82);
  }
  .project-card.active:hover {
    transform: translateX(-50%) translateY(-50%) scale(1.04);
  }

  #contact { padding: 6rem 1.5rem; }

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

  .marquee-inner { font-size: 0.72rem; }
  body::before { opacity: 0.06; }
}

@media (max-width: 480px) {
  nav a:not(.nav-logo) { font-size: 0.65rem; }
  .project-card { max-width: 250px; }
  .contact-row img { width: 34px; height: 34px; }
}
