@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Aktif tema */
:root {
  /* Renk Paleti (Logodan ilham alınarak) */
  --primary-bg: hsl(0 0% 0%);
  --secondary-bg: hsl(0 0% 5%);
  --third-bg: hsl(180 100% 90%);
  --buton-color: hsl(0 0% 100%);
  --text-light: hsl(0 0% 100%);
  --text-dark: hsl(0 0% 80%);
  --text-black: hsl(0 0% 0%);
  --accent-blue: hsl(180 100% 50%);
  --accent-pink: #ff00ff;

  /* Gölge Efektleri (Dijital parlamayı taklit etmek için) */
  --shadow-glow-blue: 0 0 10px rgba(0, 255, 255, 0.6);
  --shadow-glow-pink: 0 0 10px rgba(255, 0, 255, 0.6);
}

/* ---------------------------------------------------
   FONT FACE DOSYALARI
   --------------------------------------------------- */
@font-face {
  font-family: "SkModernist";
  src: url("assets/fonts/Sk-Modernist-Regular.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "SkModernist";
  src: url("assets/fonts/Sk-Modernist-Bold.otf") format("opentype");
  font-weight: 700;
}

@font-face {
  font-family: "SkModernistMono";
  src: url("assets/fonts/Sk-Modernist-Mono.otf") format("opentype");
  font-weight: 400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  cursor: none; /* standart imleci gizle */
}

body {
  background-color: var(--primary-bg);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* =========================================================
   1) HEADER BÖLÜMÜ
   ========================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 50px;
  background-color: var(--primary-bg);
  border-bottom: 1px solid var(--third-bg);
  transform: translateZ(0);
  will-change: transform;
  overflow: visible; /* taşma için önemli */
}

.amblem {
  position: absolute;
  left: 50%;
  top: 200px;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: none;
}

nav a {
  margin-left: 25px;
  font-weight: 400;
  color: var(--text-light);
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  width: 0;
  height: 2px;
  background: var(--accent-pink);
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: width 0.3s;
}

nav a:hover {
  color: var(--accent-blue);
}

nav a:hover::after {
  width: 100%;
}

/* ============================
   HAMBURGER MENU
============================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 32px;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 3px;
  transition: 0.3s ease;
  box-shadow: var(--shadow-glow-blue);
}

/* Animasyon */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================
   GLOBAL 
============================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  /* padding: min=30px, fluid=8vw, max=100px */
  padding: clamp(30px, 8vw, 100px);
  box-sizing: border-box;
}

section {
  /* min=30px, mid=6vw, max=60px */
  padding: clamp(30px, 6vw, 60px) 0;
  width: 100%;
}

/* === Başlıklar === */

section h2 {
  /* min=28px, mid=4vw, max=44px */
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: clamp(15px, 2vw, 20px);
  color: var(--text-light);
  font-family: "Orbitron", sans-serif;
  mix-blend-mode: difference;
}

section h1 {
  /* min=32px, mid=4.5vw, max=48px */
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--text-light);
  font-family: "Orbitron", sans-serif;
}

section h2 span {
  /* min=32px, mid=4.5vw, max=48px */
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--text-light);
  font-family: "Orbitron", sans-serif;
}

section h3 {
  /* min=18px, mid=2.5vw, max=24px */
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: clamp(15px, 2vw, 20px);
  color: var(--accent-blue);
  text-align: left;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

/* === Paragraflar === */

section p {
  /* min=16px, mid=2vw, max=20px */
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* === Lead Text === */

.lead-text {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 300;
  color: var(--text-light);
  border-left: 3px solid var(--accent-pink);
  padding-left: clamp(15px, 2vw, 20px);
  line-height: 1.4;
  margin-bottom: clamp(30px, 4vw, 50px);
}

/* =========================================================
   ) FOOTER
   ========================================================= */

footer {
  text-align: center;
  padding: 25px;
  background-color: var(--main-bg);
  color: var(--text-light);
  border-top: 1px solid var(--third-bg);
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  transition: transform 0.25s ease-out, background 0.25s ease-out;
  mix-blend-mode: difference;
  background: white;
  z-index: 9999;
}

.cursor.grow {
  transform: translate(-50%, -50%) scale(1.5);
}

/* =========================================================
   ) CANVAS
   ========================================================= */

#projects-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* İçeriğin arkasında kalması için */
}

#process-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* İçeriğin arkasında kalması için */
}

/* === GENEL SCROLLBAR STİLİ === */
::-webkit-scrollbar {
  width: 8px; /* genişlik */
}

::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--accent-blue);
  transition: 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
  box-shadow: 0 0 12px var(--accent-pink);
}

.letter {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.word {
  white-space: pre; /* kelime içi boşlukları koru */
  vertical-align: baseline;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  text-transform: inherit; /* uppercase vs mirası koru */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform, opacity;
}

.lead-word {
  display: inline; /* orijinali bozmamak için inline */
  vertical-align: baseline;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  white-space: normal;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
