/* style.css */
:root {
  --bg-color: #000000;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #424245;
  --accent: #ffffff;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hide Default Cursor on Desktop */
@media (pointer: fine) {
  body, a, button { cursor: none !important; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.text-secondary { color: var(--text-secondary); }

/* Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  position: relative;
  z-index: 2;
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15vh 0;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #fff;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
}

/* Nav Link Hover Reveal */
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  align-items: flex-start;
  text-align: left;
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1;
}
.hero p {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) 2.5s forwards;
}

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

/* Scroll Animations Setup */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Text (Word by Word) */
.split-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-text.active .word {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Sections */
.huge-text {
  font-size: clamp(4rem, 10vw, 12rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.huge-text span {
  color: var(--text-tertiary);
  display: block;
}

/* Button & Magnetic Effect */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 100px;
  margin-top: 3rem;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Footer */
footer {
  padding: 5vh 5vw;
  border-top: 1px solid #1a1a1c;
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

/* --- THE NEW KREATİF DETAILS --- */

/* 1. Loader Intro */
.loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUpLoader 1s cubic-bezier(0.8, 0, 0.2, 1) 2s forwards;
}
.loader-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: textFill 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
@keyframes textFill {
  0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes slideUpLoader {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100vh); display: none; }
}

/* 2. Cinematic Noise */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* 3. Spotlight */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle 600px at var(--x, 50vw) var(--y, 50vh), rgba(255,255,255,0.06), transparent 80%);
}

/* 4. Marquee Text */
.marquee-container {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100vw;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
  white-space: nowrap;
}
.marquee-text {
  font-size: clamp(8rem, 15vw, 25rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  display: inline-block;
  will-change: transform;
}

/* 5. Sticky Horizontal Scroll */
.horizontal-scroll-container {
  height: 300vh; /* Scroll allowance */
  position: relative;
  z-index: 2;
}
.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.horizontal-content {
  display: flex;
  gap: 10vw;
  padding: 0 10vw;
  will-change: transform;
}
.horizontal-content .service-item {
  width: 80vw;
  max-width: 800px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.horizontal-content .service-item h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
}
.horizontal-content .service-item p {
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 6. Image Hover Reveal */
.hover-image-container {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10;
}
.hover-img {
  position: absolute;
  top: 0; left: 0;
  width: 400px;
  height: 500px;
  object-fit: cover;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-radius: 20px;
  filter: brightness(0.9);
}
.hover-img.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Reading Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background-color: #fff;
  width: 0%;
  z-index: 9998;
  transition: width 0.1s ease-out;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #fff;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}
.cursor-outline.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 1);
  border-color: transparent;
}
.cursor-dot.hover {
  width: 0;
  height: 0;
}

/* Mobile Specific */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .cursor-dot, .cursor-outline { display: none !important; }
  .hover-img { display: none !important; }
  .horizontal-content .service-item { width: 90vw; }
}
