/* ===== Dehşet — Kurumsal Ana Portal (İyileştirilmiş) ===== */
:root {
  --bg: #060608;
  --bg-elevated: #0c0c0f;
  --surface: #121216;
  --surface-hover: #18181d;
  --border: #222228;
  --border-light: #2e2e36;
  --text: #f2f0ed;
  --text-muted: #7a7880;
  --accent: #c41e3a;
  --accent-hover: #d92444;
  --accent-soft: rgba(196, 30, 58, 0.14);
  --accent-glow: rgba(196, 30, 58, 0.45);
  --games: #6366f1;
  --games-soft: rgba(99, 102, 241, 0.18);
  --studios: #eab308;
  --studios-soft: rgba(234, 179, 8, 0.18);
  --store: #22c55e;
  --store-soft: rgba(34, 197, 94, 0.18);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(196, 30, 58, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* ----- Arka plan katmanları ----- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  animation: orb-float 20s var(--ease-in-out) infinite;
  will-change: transform;
}

.gradient-orb--1 {
  width: 65vmax;
  height: 65vmax;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  top: -25%;
  right: -15%;
}

.gradient-orb--2 {
  width: 45vmax;
  height: 45vmax;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 65%);
  bottom: -15%;
  left: -15%;
  animation-delay: -7s;
  animation-duration: 22s;
}

.gradient-orb--3 {
  width: 35vmax;
  height: 35vmax;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
  animation-duration: 25s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(4%, -6%) scale(1.06) rotate(2deg); }
  50% { transform: translate(-3%, 4%) scale(0.97) rotate(-1deg); }
  75% { transform: translate(-2%, -3%) scale(1.03) rotate(1deg); }
}

/* ----- Giriş animasyonları ----- */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-in-up 1s var(--ease-out-expo) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.08s; }
.animate-in:nth-child(2) { animation-delay: 0.18s; }
.animate-in:nth-child(3) { animation-delay: 0.32s; }
.animate-in:nth-child(4) { animation-delay: 0.48s; }
.animate-in:nth-child(5) { animation-delay: 0.62s; }
.animate-in:nth-child(6) { animation-delay: 0.78s; }
.animate-in:nth-child(7) { animation-delay: 0.92s; }
.animate-in:nth-child(8) { animation-delay: 1.06s; }

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll ile görünür olan elemanlar */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portals .portal-card:nth-child(1).is-visible { transition-delay: 0.05s; }
.portals .portal-card:nth-child(2).is-visible { transition-delay: 0.15s; }
.portals .portal-card:nth-child(3).is-visible { transition-delay: 0.25s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb,
  .animate-in,
  .animate-on-scroll {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .animate-in,
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  .animate-on-scroll.is-visible { transform: none; }
  .scroll-hint { display: none; }
}

/* ----- Header ----- */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.9) 0%, transparent 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.header__left {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.22em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s;
}

.logo:hover {
  color: var(--accent);
}

.tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text);
}

/* ----- Container ----- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
}

.hero__content {
  max-width: 680px;
}

.hero__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  position: relative;
  display: inline-block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.92;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero__title-inner {
  background: linear-gradient(135deg, #fff 0%, #e8e6e3 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero__desc {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 2.25rem;
}

.hero__cta {
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.3s var(--ease-in-out), transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease-in-out);
}

.hero__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.hero__cta:active {
  transform: translateY(-1px);
}

.hero__cta-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.hero__cta:hover .hero__cta-shine {
  left: 100%;
}

.hero__line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, var(--border-light) 0%, transparent 100%);
  animation: line-grow 1.4s var(--ease-out-expo) 1.1s forwards;
  transform-origin: top;
  opacity: 0;
}

@keyframes line-grow {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
  animation: scroll-hint-fade 2s ease 2s both;
}

.scroll-hint:hover {
  color: var(--accent);
}

.scroll-hint__mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.scroll-hint__wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-hint-fade {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes scroll-wheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* ----- Values strip ----- */
.values {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.values__text {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ----- About ----- */
.about {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 16ch;
}

.section-title-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin-bottom: 2.5rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out-expo);
}

.section-title-line.is-visible {
  transform: scaleX(1);
}

.about .section-title-line { margin-bottom: 2.25rem; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.25rem;
}

.about__text {
  font-size: 1.06rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ----- Markalar / Portal kartları ----- */
.markalar {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 6.5rem;
}

.markalar .section-title {
  max-width: none;
  margin-bottom: 1rem;
}

.markalar .section-title-line {
  margin-bottom: 3rem;
}

.portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), border-color 0.35s, box-shadow 0.45s var(--ease-out-expo), background 0.35s;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.portal-games::before { background: var(--games-soft); }
.portal-studios::before { background: var(--studios-soft); }
.portal-store::before { background: var(--store-soft); }

.portal-card__glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.portal-games .portal-card__glow {
  background: radial-gradient(circle at 30% 20%, var(--games-soft) 0%, transparent 50%);
}

.portal-studios .portal-card__glow {
  background: radial-gradient(circle at 30% 20%, var(--studios-soft) 0%, transparent 50%);
}

.portal-store .portal-card__glow {
  background: radial-gradient(circle at 30% 20%, var(--store-soft) 0%, transparent 50%);
}

.portal-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  background: var(--surface-hover);
}

.portal-card:hover::before,
.portal-card:hover .portal-card__glow {
  opacity: 1;
}

.portal-games:hover { border-color: var(--games); box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.12); }
.portal-studios:hover { border-color: var(--studios); box-shadow: var(--shadow-lg), 0 0 60px rgba(234, 179, 8, 0.12); }
.portal-store:hover { border-color: var(--store); box-shadow: var(--shadow-lg), 0 0 60px rgba(34, 197, 94, 0.12); }

.portal-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.portal-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  transition: transform 0.45s var(--ease-spring);
  position: relative;
  z-index: 1;
}

.portal-games .portal-card__icon { background: var(--games-soft); color: var(--games); }
.portal-studios .portal-card__icon { background: var(--studios-soft); color: var(--studios); }
.portal-store .portal-card__icon { background: var(--store-soft); color: var(--store); }

.portal-card:hover .portal-card__icon {
  transform: scale(1.1);
}

.portal-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  font-weight: 400;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.portal-card__desc {
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 1;
}

.portal-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  transition: transform 0.35s var(--ease-spring), background 0.3s, color 0.3s;
  position: relative;
  z-index: 1;
}

.portal-card:hover .portal-card__arrow {
  transform: translate(5px, -5px);
  color: #fff;
}

.portal-games:hover .portal-card__arrow { background: var(--games); }
.portal-studios:hover .portal-card__arrow { background: var(--studios); }
.portal-store:hover .portal-card__arrow { background: var(--store); }

/* ----- CTA strip ----- */
.cta-strip {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(196, 30, 58, 0.04) 50%, transparent 100%);
}

.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  text-align: center;
}

.cta-strip__text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.cta-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--accent);
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}

.cta-strip__link:hover {
  color: var(--text);
  border-color: var(--text);
  gap: 0.75rem;
}

.cta-strip__link-arrow {
  transition: transform 0.25s var(--ease-out-expo);
}

.cta-strip__link:hover .cta-strip__link-arrow {
  transform: translateX(4px);
}

/* ----- Footer ----- */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__logo:hover {
  color: var(--text);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__copy {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .portals {
    grid-template-columns: 1fr;
  }

  .portal-card {
    max-width: 440px;
    margin: 0 auto;
  }

  .header-nav {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .header__left {
    flex: 1;
  }

  .header-nav {
    gap: 1.5rem;
  }

  .tagline {
    display: none;
  }

  .hero {
    min-height: 85vh;
    padding: 3rem 1rem 5rem;
  }

  .hero__cta {
    padding: 0.9rem 1.5rem;
  }

  .values {
    padding: 1.5rem 0;
  }

  .about,
  .markalar {
    padding: 3.5rem 0 4rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  /* Maintenance Page Mobile */
  .maintenance {
    padding: 3rem 1rem !important;
  }
  .maintenance__title {
    font-size: 2.5rem !important;
  }
  .maintenance__icon {
    width: 72px !important;
    height: 72px !important;
    font-size: 2rem !important;
  }
  .header-nav {
    display: none !important; /* Bakım sayfasında veya mobilde üst navı gizle/basitleştir */
  }
  .header__left {
    justify-content: center;
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    order: 2;
  }

  .footer__copy {
    order: 3;
  }
}
