@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&display=swap');

:root {
  /* LIGHT THEME (Default) */
  --bg-color: #ffffff;
  --bg-secondary: #f0f0f0;
  --text-primary: #050505;
  --text-secondary: #666666;
  --accent: #000000;
  --accent-light: #555555;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.12);
  /* Make border look like glass reflection */
  --nav-bg: rgba(255, 255, 255, 0.15);
  /* Very transparent glass */
  --shadow-ambient: 0 0 80px rgba(0, 0, 0, 0.05);
  --neu-bg: #ffffff;
  --neu-shadow: 8px 8px 20px rgba(0, 0, 0, 0.08), -4px -4px 12px rgba(255, 255, 255, 1);
  --scroll-track: #f0f0f0;
  --scroll-thumb: #000000;
}

[data-theme="dark"] {
  /* DARK THEME */
  --bg-color: #050505;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  /* Lighter for readability */
  --accent: #ffffff;
  --accent-light: #cccccc;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.15);
  /* Glass reflection */
  --nav-bg: rgba(5, 5, 5, 0.2);
  /* Very transparent glass */
  --shadow-ambient: 0 0 80px rgba(255, 255, 255, 0.04);
  --neu-bg: linear-gradient(145deg, rgba(20, 20, 20, 1), rgba(10, 10, 10, 1));
  --neu-shadow: 8px 8px 20px rgba(0, 0, 0, 0.8), -4px -4px 12px rgba(255, 255, 255, 0.02);
  --scroll-track: #050505;
  --scroll-thumb: #ffffff;
}

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

html {
  /* scroll-behavior: smooth; — JS ile yönetilecek, performans için devre dışı */
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* Base transitions for theme switch */
nav,
.stat-card,
.service-card,
.portfolio-item,
#project-modal,
footer,
.contact-grid input,
.contact-grid textarea {
  transition: background-color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease, color 0.8s ease;
}

/* ─── CUSTOM CURSOR ─── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  /* Transform'da transition yok! Bu sayede %100 anlık (zero-latency) takip sağlar. */
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), height 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: difference;
  will-change: transform, width, height;
}

#cursor-ring {
  display: none; /* Eski kanser halkayı tamamen iptal ediyoruz */
}

body:hover #cursor {
  opacity: 1;
}

/* ─── THEME TOGGLE ─── */
#theme-toggle {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  cursor: pointer;
  border: none;
  font-size: 20px;
  transition: transform 0.3s, background-color 0.8s ease, color 0.8s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

/* ─── LOGO DISPLAY LOGIC ─── */
.dark-logo {
  display: none !important;
}

[data-theme="dark"] .light-logo {
  display: none !important;
}

[data-theme="dark"] .dark-logo {
  display: inline-block !important;
}

/* ─── NEW WELDING LOADER ─── */
#welding-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease, background-color 0.8s ease;
}
#welding-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.wl-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wl-logo {
  height: 48px;
  margin-bottom: 50px;
  opacity: 0;
  animation: wlLogoAnim 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wlLogoAnim {
  0% { opacity: 0; transform: scale(0.9) translateY(-10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.welding-track {
  position: relative;
  width: 280px;
  height: 40px;
  margin-bottom: 20px;
}

/* Trace line - glowing metal that cools down */
.welding-trace {
  position: absolute;
  top: 17px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5722 0%, #ffc107 80%, #ffffff 100%);
  border-radius: 4px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  box-shadow: 0 0 10px #ffc107, 0 0 20px #ff5722, 0 0 30px #e64a19;
  animation: traceDraw 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.5s;
}

@keyframes traceDraw {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Gun container moves left to right */
.welding-gun-container {
  position: absolute;
  top: 1px;
  left: -15px;
  width: 60px;
  height: 60px;
  animation: gunMove 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.5s;
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes gunMove {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(280px); opacity: 1; }
}

.welding-gun {
  width: 45px;
  height: auto;
  transform: rotate(15deg); /* Saat yönüne hafif yatık */
  transform-origin: bottom right;
}

[data-theme="dark"] .welding-gun {
  filter: invert(1) drop-shadow(0 0 10px rgba(120, 80, 200, 0.8)) drop-shadow(0 0 20px rgba(60, 120, 240, 0.6));
}

/* Sparks generator */
.sparks {
  position: absolute;
  top: 15px;
  left: 13px;
  width: 10px;
  height: 10px;
  /* Tabanca durduğunda kıvılcımları da yavaşça azaltmak için */
  animation: sparkFadeOut 0.5s forwards 2.5s; 
}

@keyframes sparkFadeOut {
  to { opacity: 0; }
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 4px #fff, 0 0 8px #ffeb3b, 0 0 15px #ff9800;
  opacity: 0;
  animation: sparkShoot 0.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.spark.s1 { animation-duration: 0.35s; animation-delay: 0.05s; width: 4px; height: 4px; }
.spark.s2 { animation-duration: 0.50s; animation-delay: 0.15s; background: #ffeb3b; }
.spark.s3 { animation-duration: 0.40s; animation-delay: 0.00s; width: 2px; height: 2px; }
.spark.s4 { animation-duration: 0.55s; animation-delay: 0.10s; }
.spark.s5 { animation-duration: 0.45s; animation-delay: 0.20s; background: #ffc107; }
.spark.s6 { animation-duration: 0.38s; animation-delay: 0.08s; width: 4px; height: 4px; }
.spark.s7 { animation-duration: 0.60s; animation-delay: 0.25s; }
.spark.s8 { animation-duration: 0.42s; animation-delay: 0.12s; }

.s1 { --tx: 30px; --ty: 40px; --r: 25deg; }
.s2 { --tx: 45px; --ty: 50px; --r: 50deg; }
.s3 { --tx: 40px; --ty: 30px; --r: 70deg; }
.s4 { --tx: 20px; --ty: 60px; --r: -15deg; }
.s5 { --tx: -15px; --ty: 45px; --r: -35deg; }
.s6 { --tx: 10px; --ty: 50px; --r: 85deg; }
.s7 { --tx: 60px; --ty: 20px; --r: 40deg; }
.s8 { --tx: -30px; --ty: 35px; --r: -25deg; }

@keyframes sparkShoot {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(var(--r)); }
  70% { opacity: 1; transform: translate(calc(var(--tx) * 0.7), calc(var(--ty) * 0.7)) scale(0.8) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0) rotate(var(--r)); }
}

.wl-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  animation: wlTextAnim 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
}

@keyframes wlTextAnim {
  0% { opacity: 0; letter-spacing: 2px; transform: translateY(10px); }
  100% { opacity: 1; letter-spacing: 6px; transform: translateY(0); }
}

/* ─── NAVBAR (NEO BENTO GLASSMORPHISM 2.0) ─── */
nav {
  position: fixed;
  top: -150px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 64px);
  max-width: 1400px;
  z-index: 1005;

  /* Neo Bento Glassmorphism — solid white on light, dark glass on dark */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.5s ease, background-color 0.8s ease, box-shadow 0.8s ease;
  animation: navSlideDown 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 3.2s;
}

@keyframes navSlideDown {
  0% { top: -150px; }
  100% { top: 24px; }
}

[data-theme="dark"] nav {
  background: rgba(8, 8, 8, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

nav.scrolled {
  padding: 6px 36px;
  background: rgba(255, 255, 255, 0.65); /* Açık temada aşağı inerken şeffaflaşma */
}

[data-theme="dark"] nav.scrolled {
  background: rgba(8, 8, 8, 0.5); /* Koyu temada da hafif bir şeffaflık */
}

nav.hidden {
  top: -150px;
  /* Hides smoothly upwards */
}

.nav-logo {
  width: 140px;
  /* Bigger logo */
  /* Remove filter transition */
}

.nav-links {
  display: flex;
  align-items: center; /* Alttan ve üstten tam ortalama */
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 15px; /* Oswald için ideal okunabilirlik boyutu */
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px; /* Bento kutusu köşeleri */
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text-primary);
  background-color: var(--glass);
}

.nav-links a.active {
  color: var(--text-primary);
  background-color: var(--glass);
  border-color: var(--glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Çok hafif derinlik */
}

/* ─── Nav Desktop Menu ─── */
.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Mobile-only menu: hidden by default */
.nav-menu-container {
  display: none;
}

/* Mobile Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 2000;
}

.hamburger .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ─── Mobile Styles ─── */
@media (max-width: 900px) {
  nav {
    padding: 14px 20px;
    width: calc(100% - 32px);
  }
  nav.scrolled {
    padding: 10px 20px;
  }

  /* Hide desktop menu on mobile */
  .nav-menu-desktop {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Hide desktop menu */
  .nav-menu-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 9999;
    transition: background 0.3s ease;
  }

  [data-theme="dark"] .nav-menu-container {
    background: #050505;
  }

  /* Active = visible */
  .nav-menu-container.active {
    display: flex;
  }

  /* Kapatma butonu */
  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    line-height: 1;
    z-index: 10000;
  }

  /* Force links visible inside mobile menu */
  .nav-menu-container .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .nav-menu-container .nav-links li {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-menu-container .nav-links a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #111111 !important;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
  }

  .nav-menu-container .nav-links a:hover,
  .nav-menu-container .nav-links a.active {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .nav-menu-container .nav-links a {
    color: #ffffff !important;
  }
  
  [data-theme="dark"] .nav-menu-container .nav-links a:hover,
  [data-theme="dark"] .nav-menu-container .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }

  /* Stack actions vertically */
  .nav-actions {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  /* Hamburger to X animation */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Nav logo link in menu */
.nav-logo-link {
  display: flex;
  align-items: center;
  padding: 0 4px;
  opacity: 0.75;
  transition: opacity 0.3s;
}

.nav-logo-link:hover {
  opacity: 1;
}

.nav-logo-link--active {
  opacity: 1;
}

.nav-inline-logo {
  height: 30px;
  /* Made much bigger so the text inside is readable */
  width: auto;
  display: block;
  transform: translateY(0);
  /* optical alignment */
}

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Modern Theme Switch (Checkbox style) */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin: 0;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0; /* Light mode bg */
  transition: .4s cubic-bezier(0.4, 0.0, 0.2, 1);
  border-radius: 34px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

[data-theme="dark"] .theme-slider {
  background-color: #1e293b; /* Dark mode bg */
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: .4s cubic-bezier(0.4, 0.0, 0.2, 1);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

[data-theme="dark"] .theme-slider:before {
  background-color: #cbd5e1;
}

input:checked + .theme-slider:before {
  transform: translateX(30px);
}

.theme-slider svg {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Sun is on the right, Moon is on the left */
.theme-slider .icon-sun {
  right: 7px;
  color: #f59e0b; /* Bright amber */
}

.theme-slider .icon-moon {
  left: 7px;
  color: #f8fafc; /* White/blueish */
}

/* Light Mode (Unchecked) */
.theme-slider .icon-moon {
  opacity: 0;
  transform: translateY(-50%) scale(0.5) rotate(-90deg);
}
.theme-slider .icon-sun {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

/* Dark Mode (Checked) */
input:checked + .theme-slider .icon-sun {
  opacity: 0;
  transform: translateY(-50%) scale(0.5) rotate(90deg);
}
input:checked + .theme-slider .icon-moon {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--bg-color);
  background: var(--text-primary);
  text-decoration: none;
  border-radius: 40px; /* Modern pill shape */
  padding: 10px 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, opacity 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-cta:hover {
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

/* nav-cta button reset — anchor ile aynı stil */
button.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  background: var(--text-primary);
  color: var(--bg-color);
  border: none;
  border-radius: 40px;
  padding: 10px 24px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

button.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] button.nav-cta:hover {
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

#scroll-hero {
  position: relative;
  height: 350vh;
}

.scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  will-change: transform;
}

/* ─── HERO LEFT (Yazı alanı) ───
   Solda absolute — karışık arka plan yok, scroll-sticky'nin koyu bg'si kullanılır */
.hero-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 8vw;
  z-index: 3;
  /* Arka plan gölgesi kaldırıldı, resim tamamen net kalacak */
  pointer-events: none; /* Butonlar için aşağıda override ediliyor */
}

/* Ambient ışık — sol bölge */
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 25% 50%, rgba(180,140,90,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 55% 35%, rgba(255,200,80,0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-left > * {
  pointer-events: auto;
}

/* ─── HERO RIGHT (Canvas alanı) ───
   Sağda absolute — sayfa genişliğinin ~yarısı */
.hero-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;  /* Resmin tam haliyle daha büyük görünmesi için genişlik artırıldı */
  height: 100%;
  z-index: 1;
}

/* Canvas çerçevesi */
.hero-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#scroll-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  will-change: contents;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #fff;
}

.hero-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(200, 160, 80, 0.9);
  margin-bottom: 28px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 3.1s;
}

.hero-title {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 4px;
  margin-bottom: 28px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 3.3s;
  color: #fff;
  text-shadow: none;
}

@keyframes heroSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  letter-spacing: 2px;
}

.hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 3.5s;
}

/* Hero CTA Butonu */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 40px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  opacity: 0;
  animation: heroSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 3.7s;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
}

.hero-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.hero-cta span {
  font-size: 16px;
  transition: transform 0.3s;
}

.hero-cta:hover span {
  transform: translateX(4px);
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  color: rgba(255,255,255,0.6);
  cursor: default;
}

.scroll-indicator span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* Fare simgesi yerine modern yuvarlak mouse ikon */
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse::after {
  content: '';
  width: 4px;
  height: 7px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  animation: mouseScroll 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes mouseScroll {
  0%   { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0.4; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Scroll line artık kullanılmıyor ama diğer sayfalarda olabilir diye bırakıldı */
.scroll-line {
  display: none;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3 }
  50% { opacity: 1 }
}

/* ─── HERO RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-left {
    width: 100%;
    height: 60%;
    top: auto;
    bottom: 0;
    justify-content: flex-start;
    padding: 30px 6vw 80px;
    background: linear-gradient(
      to top,
      #0a0a0a 0%,
      #0a0a0a 50%,
      rgba(10,10,10,0.85) 70%,
      transparent 100%
    );
  }

  .hero-right {
    width: 100%;
    height: 60%;
    top: 0;
    right: 0;
  }

  .hero-right::before {
    background: linear-gradient(
      to bottom,
      transparent 30%,
      rgba(10,10,10,0.6) 70%,
      rgba(10,10,10,1) 100%
    );
  }

  .hero-right::after {
    display: none;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 60px);
  }

  .scroll-indicator {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
}

@media (max-width: 600px) {
  .hero-left {
    padding: 24px 5vw 70px;
  }

  .hero-title {
    font-size: clamp(28px, 10vw, 48px);
  }
}


@media (max-width: 600px) {
  .hero-left {
    flex: 0 0 65%;
    padding: 28px 5vw 70px;
  }

  .hero-right {
    flex: 0 0 35%;
  }
}

/* ─── FABART HERO SECTION ─── */
.fabart-hero {
  min-height: 100vh;
  padding: 160px 10vw 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.fabart-text {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.fabart-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.fabart-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.fabart-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
}

.fabart-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 48px;
}

.fabart-model-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.fabart-model-container model-viewer {
  width: 660px;
  /* 3x bigger */
  height: 660px;
  background: transparent;
  --progress-bar-color: transparent;
}

/* ─── MANIFESTO ─── */
#manifesto {
  padding: 140px 10vw;
  position: relative;
  overflow: hidden;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.manifesto-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.manifesto-counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 180px;
  font-weight: 700;
  color: var(--glass-border);
  line-height: 1;
  position: absolute;
  top: 80px;
  left: 8vw;
  pointer-events: none;
}

.manifesto-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.manifesto-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
}

.manifesto-text {
  font-size: 16px;
  /* Bigger */
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 520px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 64px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.stat-suffix {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 16px;
}

/* ─── PORTFOLIO ─── */
#portfolio {
  padding: 100px 0;
  position: relative;
}

.section-header {
  padding: 0 10vw 80px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  text-transform: uppercase;
}

.section-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
}

.section-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 100px;
  font-weight: 700;
  color: var(--glass-border);
  line-height: 1;
  margin-left: auto;
  padding-left: 40px;
}

.portfolio-list {
  list-style: none;
}

.portfolio-item {
  border-top: 1px solid var(--glass-border);
  padding: 0 10vw;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.portfolio-item:last-child {
  border-bottom: 1px solid var(--glass-border);
}

.portfolio-item:hover {
  background: var(--glass);
}

.portfolio-item-inner {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-item-inner {
  transform: translateX(16px);
}

.portfolio-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.portfolio-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s;
  text-transform: uppercase;
}

.portfolio-item:hover .portfolio-name {
  color: var(--accent-light);
}

.portfolio-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  text-align: right;
}

.portfolio-arrow {
  font-size: 24px;
  color: var(--text-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.portfolio-item:hover .portfolio-arrow {
  opacity: 1;
  transform: translateX(0);
}

.portfolio-hover-img {
  position: fixed;
  width: 380px;
  /* Made hover image slightly bigger */
  height: 260px;
  object-fit: cover;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transform: scale(0.95) rotate(2deg);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border: 1px solid var(--glass-border);
  filter: grayscale(100%);
}

.portfolio-hover-img.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ─── MODAL ─── */
#project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease, background-color 0.8s ease;
  overflow: hidden; /* Scroll handled by modal-inner only */
}

#project-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-close {
  position: fixed;
  top: 32px;
  right: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  z-index: 2100;
}

.modal-close:hover {
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.modal-inner {
  padding: 100px 10vw 120px;
  height: 100vh;
  overflow-y: auto; /* Only this scrolls — close button stays fixed */
  box-sizing: border-box;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 80px;
}

.modal-gallery {
  columns: 2;
  gap: 16px;
}

.modal-gallery img {
  width: 100%;
  margin-bottom: 16px;
  display: block;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s;
}

.modal-gallery img:hover {
  filter: grayscale(0%);
}

/* ─── PARALLAX GALLERY (FABBART) ─── */
.parallax-gallery {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 0 10vw 140px;
}

.parallax-item {
  position: relative;
  height: 70vh;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}

.parallax-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 40px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.parallax-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.parallax-meta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ccc;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: right;
}

/* ─── SERVICES ─── */
#services {
  padding: 140px 10vw;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 80px;
}

.service-card {
  background: var(--neu-bg);
  box-shadow: var(--neu-shadow);
  border-radius: 2px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.8s ease, background 0.8s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  /* Thicker hover line */
  background: var(--text-primary);
  transition: width 0.5s ease;
}

.service-card:hover::after {
  width: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 32px;
  display: block;
}

.service-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.service-desc {
  font-size: 15px;
  /* Bigger */
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
}

.service-num {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--glass-border);
}

/* ─── CONTACT ─── */
#contact {
  padding: 140px 10vw;
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.contact-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
}

.contact-info-item {
  margin-bottom: 32px;
}

.contact-info-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-info-value {
  font-size: 18px;
  /* Bigger */
  color: var(--text-primary);
  font-weight: 500;
}

.form-field {
  margin-bottom: 32px;
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--glass-border);
  padding: 16px 0;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  /* Bigger input text */
  font-weight: 400;
  outline: none;
  transition: border-color 0.8s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--text-primary);
}

.form-field label {
  position: absolute;
  top: 16px;
  left: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  transition: transform 0.3s, font-size 0.3s, color 0.3s;
  pointer-events: none;
}

.form-field input:focus~label,
.form-field input:not(:placeholder-shown)~label,
.form-field textarea:focus~label,
.form-field textarea:not(:placeholder-shown)~label {
  transform: translateY(-32px);
  font-size: 10px;
  color: var(--text-primary);
}

.form-field textarea {
  height: 120px;
  resize: none;
}

.btn-submit {
  background: transparent;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 18px 48px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.8s ease;
  margin-top: 16px;
}

.btn-submit:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

/* ─── FOOTER ─── */
footer {
  padding: 48px 10vw;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  width: 120px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.footer-right-side {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ─── QUOTE MODAL ─── */
.quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.quote-overlay.open {
  opacity: 1;
  visibility: visible;
}

.quote-modal {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 340px 1fr;
  transform: translateY(32px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.quote-overlay.open .quote-modal {
  transform: translateY(0) scale(1);
}

/* ── Left Brand Panel ── */
.quote-brand {
  background: #080808;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Decorative background circles */
.quote-brand::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  bottom: -80px;
  right: -80px;
}

.quote-brand::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  bottom: -20px;
  right: -20px;
}

.quote-brand-logo {
  width: 130px;
  display: block;
}

.quote-brand-accent {
  width: 40px;
  height: 2px;
  margin-bottom: 20px;
}

.quote-modal--fabbro .quote-brand-accent {
  background: linear-gradient(90deg, #c9a96e, #f0d89a);
}

.quote-modal--art .quote-brand-accent {
  background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}

.quote-brand-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 0;
}

.quote-brand-tagline em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.7);
}

.quote-brand-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.quote-brand-info-item span:first-child {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 3px;
}

.quote-brand-info-item span:last-child {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.80);
}

/* ── Right Form Panel ── */
.quote-form-panel {
  background: #ffffff;
  padding: 44px 44px 44px 44px;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .quote-form-panel {
  background: #0f0f0f;
}

.quote-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.3s, color 0.2s;
}

.quote-close-btn:hover {
  background: var(--glass);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.quote-form-head {
  margin-bottom: 28px;
}

.quote-form-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.quote-form-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  flex: 1;
}

.quote-form-grid .full {
  grid-column: 1 / -1;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quote-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.quote-field:focus-within label {
  color: var(--text-primary);
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  background: transparent;
  border: none;
  /* Açık temada siyahın %20'si, koyu temada beyazın %20'si */
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}

[data-theme="dark"] .quote-field input,
[data-theme="dark"] .quote-field select,
[data-theme="dark"] .quote-field textarea {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
}

.quote-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
}

[data-theme="dark"] .quote-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ccc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .quote-field select option {
  background: #1a1a1a;
}

/* ─── CUSTOM SELECT (MODERN DROPDOWN) ─── */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.25s;
}

[data-theme="dark"] .custom-select-trigger {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
}

.custom-select-trigger span {
  opacity: 0.7;
}

.custom-select-trigger.selected span {
  opacity: 1;
}

.custom-select-trigger::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-trigger::after {
  transform: rotate(-135deg) translateY(-2px);
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
  overflow: hidden;
}

[data-theme="dark"] .custom-select-options {
  background: #111;
  box-shadow: 0 10px 24px rgba(0,0,0,0.5);
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.custom-option:hover {
  background: var(--glass);
}

/* Focus colors for custom select */
.quote-modal--fabbro .custom-select-wrapper.open .custom-select-trigger {
  border-bottom-color: #c9a96e;
}
.quote-modal--art .custom-select-wrapper.open .custom-select-trigger {
  border-bottom-color: #8b5cf6;
}

/* ─── NEONOTIFY ─── */
#neo-notify-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.neo-notify {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
  pointer-events: auto;
}

[data-theme="dark"] .neo-notify {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.neo-notify.show {
  transform: translateX(0);
  opacity: 1;
}

.neo-notify-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neo-notify-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.neo-notify-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.neo-notify-msg {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}

.neo-notify.success .neo-notify-icon {
  color: #10b981;
}

.neo-notify.error .neo-notify-icon {
  color: #ef4444;
}

/* ─── FORM VALIDATION ERRORS ─── */
.quote-field input.has-error,
.quote-field textarea.has-error,
.form-field input.has-error,
.form-field textarea.has-error,
.custom-select-wrapper.has-error .custom-select-trigger {
  border-bottom-color: #ef4444 !important;
}

.quote-field label.has-error,
.form-field label.has-error {
  color: #ef4444 !important;
}

.quote-field textarea {
  resize: none;
  height: 72px;
}

/* Fabbro accent on focus */
.quote-modal--fabbro .quote-field input:focus,
.quote-modal--fabbro .quote-field select:focus,
.quote-modal--fabbro .quote-field textarea:focus {
  border-bottom-color: #c9a96e;
}

/* FabbroArt accent on focus */
.quote-modal--art .quote-field input:focus,
.quote-modal--art .quote-field select:focus,
.quote-modal--art .quote-field textarea:focus {
  border-bottom-color: #8b5cf6;
}

.quote-submit-btn {
  margin-top: 8px;
  padding: 14px 36px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  align-self: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-modal--fabbro .quote-submit-btn {
  background: linear-gradient(135deg, #c9a96e 0%, #f0d89a 60%, #c9a96e 100%);
  color: #0a0a0a;
}

.quote-modal--fabbro .quote-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.45);
}

.quote-modal--art .quote-submit-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 60%, #8b5cf6 100%);
  color: #fff;
}

.quote-modal--art .quote-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139,92,246,0.45);
}

/* Responsive */
@media (max-width: 768px) {
  .quote-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .quote-brand {
    padding: 36px 28px;
    min-height: auto;
  }
  .quote-brand-tagline { font-size: 22px; }
  .quote-form-panel { padding: 32px 28px; }
  .quote-form-grid { grid-template-columns: 1fr; }
  .quote-form-grid .full { grid-column: 1; }
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

/* Slightly wider scrollbar */
::-webkit-scrollbar-track {
  background: var(--scroll-track);
  transition: background-color 0.8s;
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 2px;
  transition: background-color 0.8s;
}

/* ─── SELECTION ─── */
::selection {
  background: var(--text-primary);
  color: var(--bg-color);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav {
    padding: 20px 32px;
  }

  .manifesto-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal-gallery {
    columns: 1;
  }

  .fabart-hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .fabart-text {
    max-width: 100%;
  }

  .fabart-model-container {
    justify-content: center;
    margin-top: 40px;
    width: 100%;
  }

  .fabart-model-container model-viewer {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 14px 20px;
    width: calc(100% - 32px);
  }
  nav.scrolled {
    padding: 10px 20px;
  }

  .nav-menu-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 9999;
  }

  .nav-menu-container.active {
    display: flex;
  }

  .nav-menu-container .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .nav-menu-container .nav-links a {
    font-size: 24px;
    color: var(--text-primary) !important;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  #manifesto,
  #services,
  #contact {
    padding: 80px 6vw;
  }

  .section-header {
    padding: 0 0 60px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-count {
    display: none;
  }

  .portfolio-list {
    margin-top: 20px;
  }

  .portfolio-item {
    padding: 0;
  }

  .portfolio-item-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0;
  }

  .portfolio-num {
    margin-bottom: 4px;
  }

  .portfolio-name {
    font-size: 20px;
    margin-left: 0 !important;
  }

  .portfolio-meta {
    text-align: left;
    width: 100%;
    margin-top: 4px;
  }

  .portfolio-arrow {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 40px 6vw;
  }

  .footer-right-side {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .footer-social {
    gap: 24px;
  }

  .footer-copy {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.6;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .fabart-model-container model-viewer {
    width: 300px;
    height: 300px;
  }

  /* Ana Sayfa Hero Mobil */
  #scroll-hero {
    height: 300vh;
  }

  .hero-left {
    width: 100%;
    padding: 140px 24px 80px;
    text-align: center;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, transparent 40%);
  }

  .hero-right {
    width: 100%;
    opacity: 0.5;
  }

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

  .hero-tag {
    margin-bottom: 20px;
    justify-content: center;
  }

  .hero-title {
    font-size: 42px;
    margin-bottom: 24px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 32px;
  }
}