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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #000000;
  color: #d4d4d4;
  overflow-x: hidden;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Deep Void Background ── */
#void-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, #141414 0%, #000000 50%, #050505 100%);
}

.depth-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(201,168,76,0.15), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(201,168,76,0.10), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(201,168,76,0.20), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(201,168,76,0.12), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(201,168,76,0.08), transparent),
    radial-gradient(1.5px 1.5px at 20% 90%, rgba(201,168,76,0.18), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.06), transparent),
    radial-gradient(1px 1px at 45% 70%, rgba(255,255,255,0.04), transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
}

.depth-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.015) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.008) 0%, transparent 60%);
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ── Torn Page Container ── */
#torn-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.torn-piece {
  position: absolute;
  will-change: transform, filter;
  image-rendering: auto;
  transition: filter 2s ease;
}

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

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #f0efe7;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

p { margin-bottom: 1.2rem; }
a { color: #c9a84c; text-decoration: none; transition: color 0.3s; }
a:hover { color: #dfc166; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px) saturate(30%);
  -webkit-backdrop-filter: blur(20px) saturate(30%);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(201,168,76,0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a0a0a0;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

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

.siparis-btn {
  background: #2e7d32;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 4px;
  letter-spacing: 1px;
  font-size: 0.75rem !important;
  transition: background 0.3s;
  animation: siparisPulse 3s ease-in-out infinite;
}

.siparis-btn:hover {
  background: #388e3c !important;
  color: #fff !important;
  animation: none;
}

.siparis-btn::after { display: none !important; }

@keyframes siparisPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #c9a84c;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.5; transform: translate(-50%, -60%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -60%) scale(1.2); }
}

.hero-inner {
  position: relative;
  animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f0efe7 0%, #c9a84c 50%, #f0efe7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  margin: 0 auto 20px;
}

.hero-sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #a0a0a0;
  margin-bottom: 8px;
}

.hero-meta {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0;
}
.hero-flip {
  width: 260px;
  height: 325px;
  perspective: 1800px;
  margin: -10px auto 0;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: flipRotate 12s ease-in-out infinite;
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  overflow: hidden;
}

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

.flip-back {
  transform: rotateY(180deg);
}

@keyframes flipRotate {
  0%, 35% { transform: rotateY(0deg); }
  50%, 85% { transform: rotateY(180deg); }
  100% { transform: rotateY(0deg); }
}

.btn-ghost {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(201,168,76,0.3);
  color: #c9a84c;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.4s ease;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-ghost:hover {
  background: rgba(201,168,76,0.08);
  border-color: #c9a84c;
  transform: translateY(-2px);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  animation: fadeUp 1.2s ease 1.8s forwards;
  opacity: 0;
}

.scroll-hint span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #666;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #c9a84c, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { opacity: 1; height: 40px; }
  50% { opacity: 0.3; height: 20px; }
  100% { opacity: 1; height: 40px; }
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

.section-dark {
  background: rgba(0,0,0,0.3);
}

.sec-head {
  text-align: center;
  margin-bottom: 60px;
}

.sec-num {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: #c9a84c;
  font-weight: 500;
  margin-bottom: 8px;
}

.sec-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  margin: 12px auto 0;
}

/* ── Kitap ── */
.kitap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lead {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  font-weight: 300;
  color: #f0efe7;
  margin-bottom: 24px;
}

.kitap-text p {
  color: #b0b0b0;
  font-size: 0.95rem;
}

.book-stack {
  position: relative;
  width: 260px;
  height: 380px;
  margin: 0 auto;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.book-item {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.book-item .book-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(201,168,76,0.1));
}

.book-back {
  transform: translateZ(-30px) scale(0.92) rotateY(5deg);
  opacity: 0.7;
}

.single-book {
  transform: translateZ(10px) scale(0.98);
  z-index: 2;
}

.book-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.book-stack:hover .single-book {
  transform: translateZ(20px) scale(1.02);
}

/* ── Yapı ── */
.manifesto-text {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 40px;
  border-left: 1px solid rgba(201,168,76,0.15);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: #c0c0c0;
}

.yapi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.yapi-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,168,76,0.06);
  padding: 36px 28px;
  transition: all 0.4s ease;
}

.yapi-card:hover {
  background: rgba(201,168,76,0.03);
  border-color: rgba(201,168,76,0.15);
  transform: translateY(-4px);
}

.yapi-icon {
  display: block;
  font-size: 2rem;
  color: #c9a84c;
  margin-bottom: 16px;
  font-weight: 300;
}

.yapi-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #f0efe7;
}

.yapi-card p {
  font-size: 0.88rem;
  color: #999;
  line-height: 1.7;
}

.ikili-kitap-wrap {
  text-align: center;
  opacity: 0.6;
  transition: opacity 0.4s;
}

.ikili-kitap-wrap:hover {
  opacity: 1;
}

.ikili-img {
  max-width: 300px;
  height: auto;
}

/* ── İzlek ── */
.izlek-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.izlek-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.izlek-card:hover {
  background: rgba(201,168,76,0.03);
  border-color: rgba(201,168,76,0.12);
  transform: translateY(-3px);
}

.izlek-symbol {
  font-size: 2rem;
  color: #c9a84c;
  margin-bottom: 14px;
  opacity: 0.7;
}

.izlek-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
  color: #f0efe7;
}

.izlek-card p {
  font-size: 0.85rem;
  font-style: italic;
  color: #999;
  line-height: 1.6;
}

/* ── Metin Slider ── */
.metin-slider {
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
  min-height: 180px;
}

.metin-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s ease;
  pointer-events: none;
}

.metin-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.metin-bar {
  width: 40px;
  height: 1px;
  background: #c9a84c;
  margin: 0 auto 20px;
  transition: width 0.6s ease;
}

.metin-slide.active .metin-bar {
  width: 60px;
}

.metin-slide blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  color: #e0ddd0;
  quotes: none;
}

.metin-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.metin-prev, .metin-next {
  background: none;
  border: 1px solid rgba(201,168,76,0.2);
  color: #c9a84c;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metin-prev:hover, .metin-next:hover {
  background: rgba(201,168,76,0.08);
  border-color: #c9a84c;
}

.metin-dots {
  display: flex;
  gap: 8px;
}

.metin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.metin-dot.active {
  background: #c9a84c;
  width: 18px;
  border-radius: 3px;
}

/* ── Yazar ── */
.yazar-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
}

.yazar-img-wrap {
  display: flex;
  justify-content: center;
}

.yazar-frame {
  width: 280px;
  height: auto;
  max-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
  padding: 4px;
  transition: border-color 0.4s;
}

.yazar-frame:hover {
  border-color: rgba(201,168,76,0.4);
}

.yazar-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.4s;
}

.yazar-frame:hover .yazar-img {
  filter: grayscale(0%) contrast(1);
}

.yazar-text h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.yazar-title {
  font-size: 0.85rem;
  color: #c9a84c;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 400;
}

.yazar-text p {
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.8;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 50px 0 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 3px;
}

.footer-name {
  font-size: 0.9rem;
  color: #f0efe7;
  font-family: 'Poppins', sans-serif;
}

.footer-author {
  font-size: 0.75rem;
  color: #666;
}

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

.footer-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a0a0a0;
}

.footer-links a:hover { color: #c9a84c; }

.footer-rule {
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 1px;
}

/* ── Rain Canvas ── */
#rain-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ── Neon Beams ── */
#neon-beams {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(130,40,220,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 25%, rgba(90,20,200,0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 45% 75%, rgba(160,50,230,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 70%, rgba(100,30,210,0.1) 0%, transparent 35%);
  animation: neonDrift 12s ease-in-out infinite alternate;
}

@keyframes neonDrift {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  33% { background-position: 5% -5%, -3% 3%, 2% -2%, -4% 4%; }
  66% { background-position: -4% 4%, 3% -3%, -2% 5%, 3% -4%; }
  100% { background-position: 3% -3%, -5% 5%, -3% -2%, 2% 2%; }
}

/* ── Lightning ── */
#lightning-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(200,180,255,0.4) 0%, rgba(100,60,200,0.2) 30%, transparent 70%);
  transition: opacity 0.05s;
}

#lightning-overlay.active {
  opacity: 1;
}

#lightning-overlay.fade {
  opacity: 0;
  transition: opacity 0.3s;
}

body.glitch {
  animation: glitchFlash 0.2s ease;
}

body.glitch .torn-piece {
  filter: brightness(1.4) hue-rotate(15deg) saturate(1.3);
  transition: filter 0.1s ease;
}

@keyframes glitchFlash {
  0% { filter: brightness(1) hue-rotate(0deg) saturate(1); transform: translate(0); }
  15% { filter: brightness(3) hue-rotate(20deg) saturate(1.5); transform: translate(-4px, 2px) skewX(0.5deg); }
  30% { filter: brightness(2.5) hue-rotate(-15deg) saturate(1.3); transform: translate(3px, -1px) skewX(-0.3deg); }
  50% { filter: brightness(1.5) hue-rotate(10deg) saturate(1.1); transform: translate(-1px, 3px) skewX(0.2deg); }
  75% { filter: brightness(1.2) hue-rotate(-5deg) saturate(1); transform: translate(2px, -2px) skewX(-0.1deg); }
  100% { filter: brightness(1) hue-rotate(0deg) saturate(1); transform: translate(0); }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .hamburger { display: flex; z-index: 1001; }

  .kitap-grid { grid-template-columns: 1fr; text-align: center; }
  .kitap-grid .kitap-text { order: 1; }

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

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

  .yazar-grid { grid-template-columns: 1fr; text-align: center; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

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

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero-flip { width: 180px; height: 225px; }

  .book-stack { width: 180px; height: 262px; }
  .yazar-frame { width: 200px; }
}
