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

:root {
  --black: #080808;
  --white: #f4f0e8;
  --accent: #ff3b30;
  --accent2: #ff9f0a;
  --gray: #888;
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: #111;
  --font-main: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (hover: none),
(pointer: coarse) {
  body {
    cursor: auto;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════
   ANIMATION 1: PRELOADER
═══════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  background-color: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.preloader-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overflow:hidden mask — text slides up through this */
.preloader-text-mask {
  overflow: hidden;
  padding-bottom: 0.1em; /* space for descenders */
}

.preloader-header a {
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  font-family: var(--font-main);
  font-size: clamp(3rem, 11vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  white-space: nowrap;
  /* Start hidden below mask — GSAP will animate translateY */
  transform: translateY(110%);
}



/* ═══════════════════════════════════
   ANIMATION 2: MAGNETIC CURSOR
═══════════════════════════════════ */
#cursor {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: exclusion;
}

#cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

body.cursor-hover #cursor {
  width: 50px;
  height: 50px;
}

body.cursor-hover #cursor-follower {
  opacity: 0;
}

/* Hide cursor elements entirely on touch devices */
@media (hover: none),
(pointer: coarse) {

  #cursor,
  #cursor-follower {
    display: none !important;
  }

  button,
  a,
  [data-magnetic] {
    cursor: pointer;
  }

  .nav-cta {
    cursor: pointer;
  }

  .modal-close {
    cursor: pointer;
  }

  .modal-form .btn-primary {
    cursor: pointer;
  }
}

/* ═══════════════════════════════════
   NAVIGATION
═══════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}

#navbar.scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--gray);
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--white);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: none;
  letter-spacing: 0.02em;
  transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--white);
}

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

.nav-location {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }
}

/* ═══════════════════════════════════
   HERO SECTION
═══════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 clamp(1.5rem, 8vw, 8rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

/* Fix: overflow:hidden clips descenders like ş, ç — use padding+negative margin trick */
.hero-title .reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.hero-title .reveal-line>span,
.hero-title .reveal-line>em {
  display: inline-block;
}

.hero-sub {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  color: var(--gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 59, 48, 0.3);
}

.btn-ghost {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--white);
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  transition: border-color 0.3s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: var(--white);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Work section scroll hint */
.work-scroll-hint {
  position: absolute;
  bottom: 5vh;
  /* adjust to be between red dots */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  z-index: 30;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.work-scroll-hint.hidden {
  opacity: 0;
}

.work-scroll-arrow {
  display: inline-block;
  animation: arrowSlide 1.4s ease-in-out infinite;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  vertical-align: middle;
}

.work-scroll-text {
  font-size: 0.7rem;
}


@keyframes arrowSlide {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.4;
  }

  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}


.hero-socials {
  position: absolute;
  bottom: 3rem;
  right: clamp(1.5rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
}

.hero-social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.hero-social-link:hover {
  opacity: 0.7;
}

.social-icon {
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
}

.social-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
}

.hero-social-link:hover .social-label {
  color: var(--white);
}

@media (max-width: 768px) {
  .hero-socials {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 2.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  /* Portfolyomuz yukarı, Biz Kimiz aşağı */
  .hero-ctas .btn-primary:first-child {
    align-self: flex-start;
    text-align: center;
    width: 100%;
    max-width: 240px;
    padding: 0.9rem 1.75rem;
  }

  .hero-ctas .btn-ghost {
    align-self: flex-start;
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
    max-width: 240px;
    padding: 0.9rem 1.75rem;
  }
}

/* ═══════════════════════════════════
   ANIMATION 5: MARQUEE
═══════════════════════════════════ */
.marquee-strip {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--black);
}

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  animation: marqueeLeft 20s linear infinite;
  will-change: transform;
}

.marquee-reverse .marquee-track {
  animation: marqueeRight 22s linear infinite;
}

.marquee-track span {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track .dot {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* ═══════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════ */
#about {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 8vw, 8rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-title {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 1.5rem;
}

.about-body {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: rgba(244, 240, 232, 0.7);
  margin-bottom: 1.5rem;
}

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.875rem;
  width: fit-content;
  transition: border-color 0.3s, color 0.3s;
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ═══════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════ */
#services {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 8vw, 8rem);
  background: #0c0c0c;
}

.services-header {
  margin-bottom: 4rem;
}

.services-header h2,
#process .process-header h2,
#contact .contact-title {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 4px;
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  position: relative;
  transition: background 0.4s;
  overflow: hidden;
  /* fix: ensure columns never collapse */
  min-width: 0;
}

.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.service-card:hover {
  background: #171717;
}

.service-card:hover .service-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(244, 240, 232, 0.6);
  line-height: 1.6;
}

.service-arrow {
  display: block;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  transition: transform 0.3s, color 0.3s;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .modal-box {
    padding: 2rem 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════
   SECTION TAG
═══════════════════════════════════ */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ═══════════════════════════════════
   ANIMATION 3 + 4: WORKS (KOD 63)
═══════════════════════════════════ */
section.work {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

section.work canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#grid-canvas {
  z-index: 0;
}

#letters-canvas {
  z-index: 1;
}

.text-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  perspective: 156.25rem;
  perspective-origin: center;
}

.letter {
  position: absolute;
  font-family: var(--font-main);
  font-size: clamp(6rem, 12vw, 14rem);
  font-weight: 900;
  color: var(--accent);
  z-index: 2;
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform, clip-path;
  line-height: 1;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cards {
  position: relative;
  width: 550vw;
  height: 100vh;
  padding-left: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
}

/* ─── WORKS SECTION — MOBILE ─── */
@media (max-width: 768px) {
  section.work {
    height: 100vh;
    overflow: visible;
    padding: 0;
    position: relative;
  }

  /* Hide Three.js/canvas letters on mobile — too heavy */
  section.work #letters-canvas,
  section.work #grid-canvas,
  .text-container {
    display: none !important;
  }

  /* Mobile dot-grid canvas stays behind cards */
  section.work canvas {
    z-index: 1 !important;
  }

  /* Scroll hint visible above cards on mobile */
  /* Scroll hint: K harfinin altında, kırmızı noktaların üzerinde */
  .work-scroll-hint {
    display: flex !important;
    align-items: center;
    z-index: 30;
    bottom: 8vh;
  }

  /* Cards: horizontal scroll, smaller cards — above canvas */
  .cards {
    /* scroll container: fixed width, content overflows → scroll works */
    width: 100vw;
    height: 100vh;
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    position: relative;
    z-index: 10;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
  }



  .card {
    width: 70vw;
    max-width: 220px;
    min-width: 150px;
    flex-shrink: 0;
    height: 260px;
    margin-top: 0 !important;
    scroll-snap-align: start;
  }

  .card-img img,
  .card-video video {
    height: 100%;
    object-fit: cover;
  }

  .card-copy {
    font-size: 0.55rem;
    padding: 0.25rem 0.15rem;
  }


}


.card {
  width: 180px;
  height: 260px;
  padding: 0.5rem;
  background: #111;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.03);
}

.card-img {
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
}

.card-img img {
  transition: transform 0.5s;
}

.card:hover .card-img img {
  transform: scale(1.07);
}

.card-copy {
  display: none;
}

/* Kelebek videosu: alttaki beyaz kenarlıkları gizle */
.cards>.card-video:nth-child(12) .card-img {
  overflow: hidden;
}

.cards>.card-video:nth-child(12) video {
  transform: scale(1.15);
  transform-origin: center 40%;
  object-position: center 40%;
}

/* Video card */
.card-video .card-img {
  position: relative;
}

.card-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(255, 59, 48, 0.85);
  color: #fff;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Referans logoları */
.refs-strip {
  padding: 1.5rem 0;
}

.refs-strip .marquee-track {
  gap: 10rem;
  animation-duration: 35s;
}

.ref-logo {
  flex-shrink: 0;
  height: 180px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.ref-logo:hover {
  opacity: 0.8;
}

.ref-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.ref-placeholder {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
  padding: 0 0.75rem;
  line-height: 1.3;
}

/* Form Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  width: 100%;
  max-width: 560px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  cursor: none;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--white);
}

.modal-title {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  cursor: text;
}

/* intl-tel-input overrides for dark theme */
.iti {
  width: 100%;
  display: block;
}

.iti--container {
  z-index: 10005 !important;
}

.iti__country-list {
  background: #1a1a1a;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 300px;
  z-index: 10005 !important;
}

.iti__divider {
  border-bottom: 1px solid var(--border);
}

.iti__country.iti__highlight {
  background: rgba(255, 255, 255, 0.1);
}

.iti__selected-flag {
  border-radius: 8px 0 0 8px;
}

.iti__flag {
  box-shadow: 0 0 1px 0 rgba(255, 255, 255, 0.5);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: var(--accent);
}

.modal-form select option {
  background: #111;
  color: var(--white);
}

.modal-form textarea {
  resize: vertical;
  min-height: 120px;
}

.modal-form .btn-primary {
  border: none;
  cursor: none;
  text-align: center;
  font-family: var(--font-body);
}

/* ═══════════════════════════════════
   PROCESS SECTION
═══════════════════════════════════ */
#process {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 8vw, 8rem);
}

.process-header {
  margin-bottom: 4rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-step {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.step-num {
  display: block;
  font-family: var(--font-main);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1;
}

.process-step h3 {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.9rem;
  color: rgba(244, 240, 232, 0.6);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════ */
#contact {
  padding: clamp(5rem, 15vw, 12rem) clamp(1.5rem, 8vw, 8rem);
  background: #0c0c0c;
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(244, 240, 232, 0.6);
  margin: 1.5rem 0 2.5rem;
}

.contact-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════
   GALERİ — MOUSE TRAIL (KOD 44)
═══════════════════════════════════ */
#gallery {
  position: relative;
  width: 100vw;
  height: 100svh;
  background: #060606;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-header {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.gallery-title {
  font-family: var(--font-main);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-top: 1rem;
}

.gallery-sub {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1.5rem;
}

/* Mobile: touch hint instead of mouse hint */
@media (hover: none),
(pointer: coarse) {
  .gallery-sub {
    content: none;
  }

  .gallery-sub::before {
    content: '';
  }

  /* The text is swapped via JS — keep styling consistent */
}

/* trail container fills the whole section */
.trail-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: all;
}

/* Desktop: hide tap hint, show mouse hint */
.gallery-tap-hint {
  display: none;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1.5rem;
  position: relative;
  z-index: 10;
  pointer-events: none;
  animation: tapPulse 2s ease-in-out infinite;
}

@keyframes tapPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

/* Mobile: show tap hint, hide mouse hint */
@media (hover: none),
(pointer: coarse) {
  .gallery-sub {
    display: none !important;
  }

  .gallery-tap-hint {
    display: block;
  }
}

/* Trail image elements (injected by JS) */
.trail-img {
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
  border-radius: 4px;
  overflow: hidden;
}

.trail-img .mask-layer {
  position: absolute;
  inset: 0;
  background-color: transparent;
  will-change: clip-path;
  overflow: hidden;
}

.trail-img .mask-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trail-img .mask-layer .image-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  padding: 2.5rem clamp(1.5rem, 8vw, 8rem);
  border-top: 1px solid var(--border);
  background: var(--black);
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-nav,
.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a,
.footer-social a {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color 0.3s;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ═══════════════════════════════════
   ANIMATION 3: REVEAL CLASSES
═══════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line {
  overflow: hidden;
  display: block;
}

.reveal-line>span,
.reveal-line>em {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-line.in-view>span,
.reveal-line.in-view>em {
  transform: translateY(0);
}

/* Split text animated lines */
.split-text .split-line {
  overflow: hidden;
  display: block;
}

.split-text .split-inner {
  display: block;
  transform: translateY(100%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.in-view .split-inner {
  transform: translateY(0);
}

/* Stagger delays */
.reveal-up:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-up:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-up:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-up:nth-child(5) {
  transition-delay: 0.4s;
}

.split-text .split-line:nth-child(2) .split-inner {
  transition-delay: 0.1s;
}

.split-text .split-line:nth-child(3) .split-inner {
  transition-delay: 0.2s;
}

.split-text .split-line:nth-child(4) .split-inner {
  transition-delay: 0.3s;
}

/* ═════════════════════════════════════
   MOBILE ANIMATION PERFORMANCE
═════════════════════════════════════ */
@media (max-width: 768px),
(hover: none),
(pointer: coarse) {

  /* Faster transitions on mobile to prevent overlap during rapid scroll */
  .reveal-up {
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .reveal-up:nth-child(2),
  .reveal-up:nth-child(3),
  .reveal-up:nth-child(4),
  .reveal-up:nth-child(5) {
    transition-delay: 0s;
  }

  .split-text .split-inner {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .split-text .split-line:nth-child(2) .split-inner,
  .split-text .split-line:nth-child(3) .split-inner,
  .split-text .split-line:nth-child(4) .split-inner {
    transition-delay: 0.05s;
  }

  .reveal-line>span,
  .reveal-line>em {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Gallery section mobile */
  #gallery {
    height: 80svh;
    min-height: 500px;
  }

  .gallery-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .gallery-sub {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }

  .trail-img {
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-nav,
  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Marquee mobile */
  .refs-strip {
    padding: 1rem 0;
  }

  .ref-logo {
    height: 120px;
  }

  .refs-strip .marquee-track {
    gap: 4rem;
  }

  /* Hero mobile tweaks */
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Process section mobile */
  .process-steps {
    gap: 1rem;
  }

  /* Contact mobile */
  .contact-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  #contact {
    padding: 4rem 1.5rem;
  }

  #contact .contact-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Force contact section to always be visible on mobile */
  #contact .split-text .split-inner {
    transform: translateY(0) !important;
  }

  #contact .reveal-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  #contact .contact-sub {
    font-size: 0.95rem;
    margin: 1rem 0 1.5rem;
    opacity: 1;
  }

  #contact .contact-ctas .btn-primary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.9rem 2rem;
  }

  #contact .contact-info span {
    font-size: 0.9rem;
  }

  #contact .contact-info a {
    font-size: 0.9rem;
  }

  /* Modal mobile */
  .modal-box {
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
  }
}