/* ===== ERUVIA - Awwwards Level Tourism Website ===== */
:root {
  /* ERUVIA Logo Palette (kırmızı hariç) */
  --blue: #64B5F6;
  --blue-light: #90caf9;
  --blue-dark: #42a5f5;
  --orange: #FFB74A;
  --orange-light: #ffcc80;
  --orange-dark: #ffa726;
  --gray-logo: #424242;
  
  /* Neutrals */
  --black: #0a0a0a;
  --black-soft: #141414;
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-600: #6b6b6b;
  --gray-400: #a3a3a3;
  --gray-300: #d1d1d1;
  --white: #fafafa;
  --white-soft: #e5e5e5;
  
  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container: 1280px;
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

/* Performance: Reduce repaints */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

video {
  max-width: 100%;
  height: auto;
}

/* Optimize rendering for below-the-fold content */
.card-stack-section,
.gallery-3d-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Özel logo imleci – sadece fare ile (mobilde varsayılan imleç) */
@media (pointer: fine) {
  body, body * {
    cursor: none !important;
  }
  a, button, .btn, .nav-toggle, .nav-cta, input, textarea, select, [onclick] {
    cursor: none !important;
  }
}

/* Fareyi takip eden logo (JS ile hareket ettirilir) – her zaman görünür */
.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  z-index: 2147483647;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
  opacity: 1;
  will-change: transform;
}
.custom-cursor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
}
@media (pointer: fine) {
  .custom-cursor { display: block; }
}
@media (pointer: coarse) {
  .custom-cursor { display: none !important; }
}

/* ===== Giriş animasyonu (Splash) – kısa & profesyonel ===== */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.splash-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.splash-overlay.is-removed {
  display: none;
}
.splash-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(100, 181, 246, 0.08) 0%, transparent 55%),
              radial-gradient(ellipse 50% 60% at 20% 70%, rgba(255, 183, 74, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.splash-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  flex-wrap: wrap;
}
.splash-logo {
  width: clamp(64px, 14vw, 96px);
  height: clamp(64px, 14vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6) translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.splash-logo:nth-child(1) { transition-delay: 0.02s; }
.splash-logo:nth-child(2) { transition-delay: 0.06s; }
.splash-logo:nth-child(3) { transition-delay: 0.10s; }
.splash-logo:nth-child(4) { transition-delay: 0.14s; }
.splash-logo:nth-child(5) { transition-delay: 0.18s; }
.splash-overlay.step-logos .splash-logo {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}
.splash-divider {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--orange), transparent);
  opacity: 0;
  transition: width 0.35s 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s 0.2s;
}
.splash-overlay.step-eruvia .splash-divider {
  width: 200px;
  opacity: 0.85;
}
.splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.1s;
}
.splash-overlay.step-eruvia .splash-center {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.splash-eruvia {
  height: 72px;
  width: auto;
  filter: brightness(1.08);
}
.splash-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--white-soft);
  text-transform: uppercase;
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 181, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  backdrop-filter: blur(20px);
  transition: background 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(255,255,255,0.98);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  filter: none;
}

.nav-logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Logo yanı ERUVIA – soldan sağa gradient + shimmer */
.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 35%, var(--orange) 65%, var(--orange) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-text-shimmer 4s ease-in-out infinite;
}

.tursab-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  line-height: 1;
  transition: color 0.3s;
}

.nav.scrolled .tursab-number {
  color: var(--gray-600);
}

@keyframes logo-text-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

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

.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--gray-800);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border: none;
  border-radius: 50px;
  color: white;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.nav-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(100, 181, 246, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
}

/* ===== Hero - Scroll Expansion (21st.dev) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Scroll Expansion Hero */
.hero-scroll-expand {
  justify-content: flex-start;
  padding-top: 15vh;
}

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

.hero-expand-bg-img,
.hero-expand-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: brightness(0.5);
  display: block;
}

.hero-expand-bg-video {
  object-position: center;
}

.hero-expand-media {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  transition: box-shadow 0.4s var(--ease-out-expo);
  max-width: min(1550px, calc(100vw - 2rem));
  will-change: width, height;
  contain: layout style paint;
}

.hero-expand-media.is-expanded {
  box-shadow: 0 40px 120px -30px rgba(100, 181, 246, 0.25);
}

.hero-expand-img,
.hero-expand-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-expand-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-expand-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.hero-expand-content.is-visible .hero-expand-meta {
  opacity: 1;
}

.hero-expand-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: 'Outfit', sans-serif;
}

.hero-expand-hint {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity 0.3s ease;
}

.hero-expand-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  transition: transform 0.4s var(--ease-out-expo);
  text-align: center;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-expand-title-first {
  display: block;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-expand-title-rest {
  display: block;
  color: var(--white-soft);
  letter-spacing: 0.02em;
}

.hero-expand-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo) 0.15s, transform 0.5s var(--ease-out-expo) 0.15s;
}

.hero-expand-content.is-visible .hero-expand-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(100, 181, 246, 0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--blue);
}

/* ===== Section Styles ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Stacked Cards (21st.dev StackedCardsInteraction) - 6 horizontal ===== */
.card-stack-section {
  padding: var(--section-padding) 2rem;
  position: relative;
  overflow-x: auto;
  background: #fff;
}

.card-stack-section .section-title {
  color: var(--black);
}

.stacked-cards-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4rem;
  min-height: 520px;
  perspective: 1000px;
  flex-wrap: wrap;
  padding: 3rem 2rem;
}

.stacked-cards-wrapper {
  position: relative;
  width: 280px;
  height: 360px;
  flex-shrink: 0;
}


.stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 360px;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-spring), z-index 0s;
  will-change: transform;
  contain: layout style paint;
}

.stack-card[data-index="0"] {
  z-index: 10;
  cursor: pointer;
}

.stack-card[data-index="1"] {
  z-index: 1;
  transform: translate(calc(-50% - 0px), -50%) rotate(0deg);
}

.stack-card[data-index="2"] {
  z-index: 1;
  transform: translate(calc(-50% - 0px), -50%) rotate(0deg);
}

/* Hover state - cards spread */
.stacked-cards-wrapper:hover .stack-card[data-index="0"] {
  z-index: 10;
}

.stacked-cards-wrapper:hover .stack-card[data-index="1"] {
  transform: translate(calc(-50% - 55px), -50%) rotate(-8deg);
  z-index: 2;
  transition-delay: 0.05s;
}

.stacked-cards-wrapper:hover .stack-card[data-index="2"] {
  transform: translate(calc(-50% + 55px), -50%) rotate(8deg);
  z-index: 2;
  transition-delay: 0.1s;
}

.stack-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--gray-900);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.stack-card-inner::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(100,181,246,0.35), rgba(255,183,74,0.2));
  pointer-events: none;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.stack-card:hover .stack-card-inner::after {
  width: 100%;
}

.stack-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.stack-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

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

.stack-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
  pointer-events: none;
}

.stack-card-content {
  padding: 1.25rem;
  background: var(--gray-900);
}

.stack-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-align: center;
}

.stack-card-desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  text-align: center;
}

.stack-card-egevia .stack-card-image,
.stack-card-logo .stack-card-image {
  height: 195px;
}

.stack-card-egevia .stack-card-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  padding-bottom: 0.1em;
}

.stack-card-egevia .stack-card-content {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 165px;
}

.egevia-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-top: auto;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.egevia-button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.egevia-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Stack card with logo (Dionysos style - Egevia gibi düzen) */
.stack-card-logo .stack-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem 1.25rem;
  min-height: 165px;
}

.stack-card-logo .stack-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.stack-card-logo .stack-card-desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.stack-card-logo-link {
  margin-top: auto;
}

.stack-card-logo-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.stack-card-logo-img img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Logo etrafında soldan/sağdan dairesel ok butonları – her zaman görünür */
.stack-card-logo-img::before,
.stack-card-logo-img::after {
  content: '';
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(100,181,246,0.35), rgba(255,183,74,0.25));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 10px 25px rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

.stack-card-logo-img::before,
.stack-card-logo-img::after {
  animation-duration: 2.2s;
  animation-timing-function: var(--ease-out-expo);
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.stack-card-logo-img::before {
  content: '›';
  animation-name: logo-arrow-inout-left;
}

.stack-card-logo-img::after {
  content: '‹';
  animation-name: logo-arrow-inout-right;
}

@keyframes logo-arrow-inout-left {
  0% {
    transform: translateX(0) scale(1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.55);
    opacity: 0.85;
  }
  100% {
    transform: translateX(4px) scale(1.05);
    box-shadow: 0 14px 32px rgba(0,0,0,0.7);
    opacity: 1;
  }
}

@keyframes logo-arrow-inout-right {
  0% {
    transform: translateX(0) scale(1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.55);
    opacity: 0.85;
  }
  100% {
    transform: translateX(-4px) scale(1.05);
    box-shadow: 0 14px 32px rgba(0,0,0,0.7);
    opacity: 1;
  }
}

.stack-card-logo .stack-card-logo-img::before,
.stack-card-logo .stack-card-logo-img::after {
  opacity: 1;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, border-color 0.25s;
}

.stack-card-logo:hover .stack-card-logo-img::before {
  transform: translateX(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.6);
  border-color: rgba(100,181,246,0.8);
}

.stack-card-logo:hover .stack-card-logo-img::after {
  transform: translateX(2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.6);
  border-color: rgba(255,183,74,0.8);
}

.stack-card-whispers .stack-card-logo-img img {
  width: 72px;
  height: 72px;
}

.stack-card-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring);
}

.stack-card-logo-link:hover {
  transform: scale(1.08);
}

/* ===== 3D Galeri ===== */
.gallery-3d-section {
  padding: var(--section-padding) 2rem;
  background: var(--black);
  position: relative;
}

.gallery-3d-section .section-title {
  color: var(--white);
}

.gallery-3d-header {
  margin-bottom: 2rem;
}

.gallery-3d-hint {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

.gallery-3d-wrap {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}

#gallery-3d-container {
  width: 100%;
  height: 75vh;
  min-height: 400px;
  background: var(--black-soft);
  cursor: grab;
}

#gallery-3d-container:active {
  cursor: grabbing;
}

/* ===== Footer ===== */
.footer {
  background: var(--black-soft);
  padding: 4rem 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  text-align: left;
}

.footer-brand {
  flex: 0 0 auto;
  min-width: 200px;
}

.footer-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  opacity: 0.95;
}

.logo-text-footer {
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--blue);
}

.footer-brand p {
  margin-top: 0.5rem;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.footer-contact {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
  flex: 0 0 auto;
}

.footer-contact-block {
  min-width: 180px;
}

.footer-contact-label {
  display: block;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-contact a {
  display: block;
  color: var(--gray-300);
  text-decoration: none;
  line-height: 1.7;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--blue);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 0 auto;
  min-width: 120px;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  line-height: 1.6;
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex: 0 0 auto;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  color: var(--gray-300);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.social-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.footer-copy {
  color: var(--gray-600);
  font-size: 0.85rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  max-width: var(--container);
  margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .nav { padding: 1.25rem 2rem; }
  .stacked-cards-row {
    gap: 2.5rem;
    padding: 2rem 1rem;
  }
  .stacked-cards-wrapper {
    width: 240px;
    height: 320px;
  }
  .stack-card {
    width: 240px;
    height: 320px;
  }
  .stack-card-image {
    height: 200px;
  }
  .stack-card-egevia .stack-card-image,
  .stack-card-logo .stack-card-image {
    height: 175px;
  }
  .stacked-cards-wrapper:hover .stack-card[data-index="1"] {
    transform: translate(calc(-50% - 32px), -50%) rotate(-5deg);
  }
  .stacked-cards-wrapper:hover .stack-card[data-index="2"] {
    transform: translate(calc(-50% + 32px), -50%) rotate(5deg);
  }
  
  .footer-content {
    gap: 2.5rem;
  }
  
  .footer-contact {
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .footer {
    padding: 3rem 2rem 2rem;
  }
  
  .footer-content {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2.5rem;
  }
  
  .footer-brand {
    flex: 0 0 100%;
    text-align: center;
  }
  
  .footer-contact {
    flex: 0 0 auto;
    gap: 2.5rem;
  }
  
  .footer-links {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  
  .logo-img { height: 40px; }
  
  .hero-scroll-expand {
    padding-top: 12vh;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-expand-content {
    padding: 1.5rem 1rem;
  }
  
  .hero-expand-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  
  .hero-expand-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  
  .hero-expand-date {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
  }
  
  .hero-expand-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  
  .hero-expand-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  
  .card-stack-section {
    padding: 3rem 1rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }
  
  .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }
  
  .stacked-cards-row {
    justify-content: flex-start;
    gap: 2rem;
    padding: 2rem 1rem;
    padding-bottom: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .stacked-cards-wrapper {
    width: 260px;
    height: 340px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  
  .stack-card {
    width: 260px;
    height: 340px;
  }
  
  .stack-card-image {
    height: 220px;
  }
  .stack-card-egevia .stack-card-image,
  .stack-card-logo .stack-card-image {
    height: 195px;
  }
  .stacked-cards-wrapper:hover .stack-card[data-index="1"] {
    transform: translate(calc(-50% - 28px), -50%) rotate(-4deg);
  }
  
  .stacked-cards-wrapper:hover .stack-card[data-index="2"] {
    transform: translate(calc(-50% + 28px), -50%) rotate(4deg);
  }
  
  .footer {
    padding: 3rem 1.25rem max(2rem, env(safe-area-inset-bottom));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  
  .footer {
    padding: 3rem 1.5rem 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2.5rem;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-contact-block {
    min-width: auto;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .tursab-number {
    font-size: 0.6rem;
  }
  
  .cursor-glow {
    display: none;
  }
}
