:root {
  --color-navy-950: #050d1a;
  /* En koyu arka plan */
  --color-navy-900: #0a1628;
  /* Body arka plan */
  --color-navy-800: #0f2035;
  /* Card arka planları */
  --color-navy-700: #1b2d4f;
  /* Border'lar */
  --color-navy-600: #2a4a7f;
  /* Scrollbar, aksan */
  --color-brand: #ff6b2c;
  /* Ana marka rengi (turuncu) */
  --color-brand-light: #ff8f5e;
  /* Açık turuncu */
  --color-brand-glow: rgba(255, 107, 44, 0.3);
  /* Glow efektleri */
  --color-gray-100: #f0f2f5;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
}

/* Noise Texture Overlay */
.noise-overlay {
  position: relative;
}

.noise-overlay::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3e");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy-950);
}

::-webkit-scrollbar-thumb {
  background: var(--color-navy-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition:
    transform 0.15s ease,
    width 0.3s,
    height 0.3s,
    border-color 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  left: -100px;
}

.custom-cursor.hover {
  width: 50px;
  height: 50px;
  border-color: var(--color-brand-light);
  background: var(--color-brand-glow);
}

.custom-cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--color-brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  left: -100px;
}

@media (max-width: 768px) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}

/* Loader Screen */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--color-navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition:
    opacity 0.6s,
    visibility 0.6s;
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 107, 44, 0.15);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Page Transition Overlay */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: var(--color-navy-950);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.page-transition.enter {
  animation: pageEnter 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.page-transition.leave {
  animation: pageLeave 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pageEnter {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }

  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes pageLeave {
  from {
    transform: scaleY(1);
    transform-origin: top;
  }

  to {
    transform: scaleY(0);
    transform-origin: top;
  }
}

/* Glassmorphism */
.glass-nav {
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 107, 44, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-brand) 0%,
    #ffb088 50%,
    var(--color-brand-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Primary Button */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-weight: 700;
  font-size: 1rem;
  color: white !important;
  background: linear-gradient(135deg, var(--color-brand) 0%, #e85a1f 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  box-shadow:
    0 0 30px var(--color-brand-glow),
    0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 15px var(--color-brand-glow);
}

/* Card Hover */
.card-hover {
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s;
  border: 1px solid rgba(255, 107, 44, 0.08);
  background: rgba(15, 32, 53, 0.6);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 30px var(--color-brand-glow);
}

/* Animated Underline */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-underline:hover::after {
  width: 100%;
}

/* Blob Gradients */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  animation: blob 7s infinite;
  will-change: transform;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--color-brand) 0%, #c44a18 100%);
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--color-navy-700) 0%, #111827 100%);
  animation-delay: -3.5s;
}

/* Typing Cursor */
.typing-cursor::after {
  content: "|";
  animation: blink 1s step-end infinite;
  color: var(--color-brand);
  font-weight: 100;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  color: #0ff;
  animation: noise 0.3s steps(6) infinite;
  clip-path: inset(40% 0 61% 0);
  transform: translate(-2px);
}

.glitch::after {
  color: #f0f;
  animation: noise 0.3s steps(6) infinite reverse;
  clip-path: inset(10% 0 85% 0);
  transform: translate(2px);
}

@keyframes noise {
  0% {
    clip-path: inset(40% 0 61% 0);
  }

  20% {
    clip-path: inset(92% 0 1% 0);
  }

  40% {
    clip-path: inset(43% 0 1% 0);
  }

  60% {
    clip-path: inset(25% 0 58% 0);
  }

  80% {
    clip-path: inset(54% 0 7% 0);
  }

  100% {
    clip-path: inset(58% 0 43% 0);
  }
}

/* Final Hero Modernization Overlay */
.hero {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.hero::before,
.hero::after {
  display: none !important;
}

.hero .container {
  background: transparent !important;
}

/* Ensure no blue gradients remain in global scope */
.bg-primary,
.btn-primary {
  background-image: linear-gradient(
    135deg,
    var(--color-brand) 0%,
    #e85a1f 100%
  ) !important;
}
