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

:root {
  --bg: #000000;
  --text: #f8f6f0;
  --muted: rgba(248, 246, 240, 0.6);
  --gold: #d8a557;
  --gold-rgb: 216, 165, 87;
  --purple: #8b5cf6;
  
  --font-display: "Outfit", sans-serif;
  --font-serif: "Playfair Display", serif;
  --radius: 24px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Hide default cursor to use custom fluid cursor */
  cursor: none;
}

a, button {
  cursor: none; /* Force custom cursor */
}

/* ── Custom Interactive Trailing Cursor ── */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(216, 165, 87, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

/* Hover States for Cursor */
body.hover-interactive .custom-cursor {
  width: 12px;
  height: 12px;
  background: var(--gold);
}

body.hover-interactive .custom-cursor-follower {
  width: 70px;
  height: 70px;
  background: rgba(216, 165, 87, 0.1);
  border-color: var(--gold);
}

body.hover-interactive-text .custom-cursor-follower::after {
  content: "Tıkla";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ── Fluid Morphing Gradient Mesh (Liquid Background) ── */
.liquid-mesh-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #020202;
}

.liquid-blob {
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 62% 38% 30% 70% / 60% 40% 60% 40%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.18) 0%, transparent 65%);
  filter: blur(80px);
  animation: morphBlob 16s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(216, 165, 87, 0.22) 0%, transparent 60%);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, transparent 60%);
  animation-duration: 20s;
  animation-delay: -5s;
}

@keyframes morphBlob {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: translate(40px, -60px) rotate(45deg);
  }
  66% {
    border-radius: 28% 72% 37% 63% / 50% 30% 70% 50%;
    transform: translate(-30px, 30px) rotate(90deg);
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(180deg);
  }
}

/* ── Capsule Floating Header ── */
.header-effects-wrapper {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 40px));
  z-index: 100;
}

.header-effects {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px);
  padding: 12px 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.brand-effects {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-effects img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-effects {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-effects a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
}

.nav-effects a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-effects a:hover {
  color: #fff;
}

.nav-effects a:hover::after {
  width: 100%;
  left: 0;
}

/* ── Magnetic Button Container ── */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

.btn-magnetic {
  background: var(--gold);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 18px 40px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 15px 35px rgba(216, 165, 87, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s;
}

.btn-magnetic:hover {
  box-shadow: 0 20px 45px rgba(216, 165, 87, 0.4);
}

/* ── Hero & Text Reveal Masks ── */
.effects-hero {
  min-height: 100vh;
  padding: 160px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.effects-hero-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Word Reveal Mask (slide letters up on load) */
.reveal-mask {
  overflow: hidden;
  display: block;
}

.reveal-text {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  transform: translateY(100%);
  animation: slideUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .mask-2 .reveal-text {
  animation-delay: 0.15s;
  background: linear-gradient(90deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .mask-3 .reveal-text {
  animation-delay: 0.3s;
}

@keyframes slideUpReveal {
  to { transform: translateY(0); }
}

.effects-hero-left p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.effects-hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Interactive 3D Card (Tilt effect in JS) ── */
.effects-hero-right {
  display: flex;
  justify-content: center;
  perspective: 1000px; /* Crucial for 3D tilt */
}

.tilt-card {
  width: 320px;
  height: 580px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 16px;
  backdrop-filter: blur(20px);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s ease-out;
  box-shadow: 0 50px 100px rgba(0,0,0,0.7);
}

.tilt-card-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #080808;
  overflow: hidden;
  position: relative;
  transform: translateZ(30px); /* Pushes screen forward in 3D space */
}

.map-simulation {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(216, 165, 87, 0.15), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.1), transparent 50%);
}

.compass-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rotateCompass 30s infinite linear;
}

@keyframes rotateCompass {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.map-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateZ(50px); /* High parallax depth */
}

.map-node.n1 { top: 120px; left: 60px; }
.map-node.n2 { bottom: 140px; right: 70px; background: var(--silver-grad); box-shadow: 0 0 20px var(--silver-glow); }

/* ── Interactive Bento Grid (Awwwards-style Layout) ── */
.bento-section {
  padding: 120px 24px;
}

.bento-container {
  max-width: 1100px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
  margin-top: 60px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background-color 0.3s;
}

.bento-card:hover {
  border-color: rgba(216, 165, 87, 0.25);
  background-color: rgba(255, 255, 255, 0.025);
}

.bento-1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-2 {
  grid-column: span 1;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-3 {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-4 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Bento Hover Visual Assets */
.bento-visual-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.05;
  transition: transform 0.4s ease, opacity 0.4s;
}

.bento-card:hover .bento-visual-bg {
  transform: scale(1.1) rotate(-5deg);
  opacity: 0.12;
}

/* ── Interactive WebGL-style Page Scroll Progress Bar ── */
.scroll-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-grad);
  box-shadow: 0 0 10px var(--gold);
}

/* ── Mobile Layout & Swipe Carousels ── */
@media (max-width: 1024px) {
  .effects-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
    gap: 60px;
  }

  .effects-hero-left {
    align-items: center;
  }

  .effects-hero-left p {
    margin: 0 auto;
  }

  .effects-hero-actions {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-1, .bento-2, .bento-3, .bento-4 {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  /* Disable custom cursor on mobile touch screens to avoid lags */
  .custom-cursor, .custom-cursor-follower {
    display: none;
  }
  body {
    cursor: auto;
  }
  a, button {
    cursor: auto;
  }
}
