@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Professional Tech Palette - Vercel/Cloudflare tarzı */
  --bg-base: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #ededed;
  --text-secondary: #a1a1a1;
  --accent-primary: #0070f3;
  --accent-secondary: #7928ca;
  --accent-tertiary: #50e3c2;
  --accent-warm: #f5a623;
  --border-color: #333333;
  --gradient-1: linear-gradient(135deg, #0070f3 0%, #00d4ff 100%);
  --gradient-2: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
  --gradient-3: linear-gradient(135deg, #50e3c2 0%, #0070f3 100%);
  --gradient-4: linear-gradient(135deg, #f5a623 0%, #f76b1c 100%);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

/* CSS FRAMEWORK / RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  font-size: 16px;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

h1,
h2,
h3,
.logo-text {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}

/* READING PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-1);
  z-index: 9999;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(0, 112, 243, 0.4);
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
  box-shadow: 0 0 12px rgba(0, 112, 243, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 112, 243, 0.25);
}

.cta-button:hover {
  transform: translateY(-1px);
  background: #0060df;
  box-shadow: 0 4px 20px rgba(0, 112, 243, 0.35);
}

/* HERO */
.hero-intro {
  text-align: center;
  padding: clamp(6rem, 10vw, 8rem) 0 clamp(4rem, 6vw, 6rem);
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(15, 15, 35, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

.hero-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.1) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {

  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
  }
}

.hero-tag {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  background: rgba(0, 112, 243, 0.1);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid rgba(0, 112, 243, 0.3);
  border-radius: 50px;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-intro h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
  line-height: 1.15;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  max-width: 900px;
  margin: 0 auto 4rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 2rem;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
  background: rgba(17, 17, 17, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 112, 243, 0.25);
}

.stat-num {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 900;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* ==========================================================
   VERTICAL TIMELINE ROADMAP STYLES - DÜZELTİLDİ
   ========================================================== */
.timeline-container {
  position: relative;
  padding-left: 3.5rem;
  border-left: 2px solid var(--border-color);
  margin: 3rem auto;
  max-width: 900px;
}

.timeline-item {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 2.5rem;
  padding: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.timeline-item:hover {
  border-color: rgba(0, 112, 243, 0.4);
  box-shadow: 0 8px 30px rgba(0, 112, 243, 0.08);
}

/* Timeline Dot Node */
.timeline-indicator {
  position: absolute;
  left: -2.7rem;
  top: 2.2rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Active State */
.timeline-item.active {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 10px 40px rgba(0, 112, 243, 0.15) !important;
  background: rgba(0, 112, 243, 0.02) !important;
}

.timeline-item.active .timeline-indicator {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 112, 243, 0.3);
}

.timeline-item.active .timeline-dot {
  background: #ffffff;
  transform: scale(1.3);
}

.timeline-item.active .timeline-header {
  border-bottom: 1px solid var(--border-color);
}

/* Timeline Header */
.timeline-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 2.5rem;
  cursor: pointer;
  display: block;
  position: relative;
  font-family: inherit;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}

.timeline-header:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.timeline-step {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Kategori Etiketi */
.timeline-cat {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 112, 243, 0.1);
  border: 1px solid rgba(0, 112, 243, 0.2);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-header h2 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0.5rem 0 0 0;
  padding-right: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Timeline Body */
.timeline-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease 0.1s,
    border-color 0.3s ease;
  border-top: 1px solid transparent;
}

.timeline-item.active .timeline-body {
  opacity: 1;
  max-height: 2000px;
  border-top-color: var(--border-color);
}

/* Timeline Content */
.timeline-content {
  padding: 2.5rem;
}

.timeline-content img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.timeline-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

.timeline-content p a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 112, 243, 0.3);
  text-underline-offset: 3px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.timeline-content p a:hover {
  color: #00d4ff;
  text-decoration-color: rgba(0, 212, 255, 0.5);
}

/* Tip Box */
.tip-box {
  background: rgba(0, 112, 243, 0.05);
  border-left: 4px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.tip-box-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tip-box p {
  margin: 0 !important;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Cyber Box */
.cyber-box {
  background: rgba(0, 112, 243, 0.05);
  border: 1px solid rgba(0, 112, 243, 0.2);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.cyber-box .tip-box-title {
  color: var(--accent-primary);
}

/* Code Block */
.pre-code-custom {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-base);
  color: var(--text-primary);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 1rem 0;
  line-height: 1.6;
}

code {
  background: rgba(0, 112, 243, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

/* Compare Table */
.compare-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100vw;
  margin: 2rem 0;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.95rem;
}

.compare-table th {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td strong {
  color: var(--text-primary);
}

.compare-table tr:hover td {
  background: rgba(0, 112, 243, 0.02);
}

/* Section CTA */
.section-cta-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.cta-wide-block {
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-sizing: border-box;
}

.cta-secondary-custom {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.cta-secondary-custom:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(0, 112, 243, 0.15);
}

.highlight {
  color: var(--accent-primary) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: inline !important;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
  border-top: 1px solid rgba(51, 51, 51, 0.5);
  padding: 4rem 0 2rem;
  margin-top: 0;
  backdrop-filter: blur(10px);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.link-col h4 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.link-col ul {
  list-style: none;
}

.link-col ul li {
  margin-bottom: 0.75rem;
}

.link-col ul li a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: inline-block;
}

.link-col ul li a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.link-col a {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.link-col a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(51, 51, 51, 0.5);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--accent-primary);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #00d4ff;
}

/* ==========================================================
   RESPONSIVE OVERRIDES
   ========================================================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .cta-button {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-item {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* Timeline Mobile */
  .timeline-container {
    padding-left: 0;
    border-left: none;
    margin: 2rem auto;
  }

  .timeline-indicator {
    display: none !important;
  }

  .timeline-item {
    margin-bottom: 1.5rem !important;
    border-radius: 8px !important;
  }

  .timeline-header {
    padding: 1.25rem 1.25rem !important;
  }

  .timeline-header h2 {
    font-size: 1.2rem !important;
    padding-right: 0 !important;
  }

  .timeline-content {
    padding: 1.25rem !important;
  }

  .timeline-content img {
    border-radius: 8px;
  }

  .timeline-meta {
    gap: 0.5rem;
  }

  /* Compare Table Mobile */
  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Container Mobile */
  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Disable parallax on mobile */
  .parallax-section {
    background-image: none !important;
    background-attachment: scroll !important;
    height: auto !important;
    min-height: auto !important;
    padding: 3rem 0 !important;
    perspective: none !important;
    scroll-snap-align: none !important;
  }

  .parallax-section .section-container {
    justify-content: center !important;
  }

  .section-content-card {
    padding: 2.5rem 1.5rem !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .section-content-card.visible {
    transform: none !important;
  }

  .section-content-card:hover {
    transform: none !important;
  }

  .hero-intro h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
  }

  html,
  body {
    scroll-snap-type: none !important;
  }

  .section,
  .section>*,
  .content-block,
  .stat-item,
  .cta-button,
  .hero-tag,
  .section-number {
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
  }

  .content-block::before,
  .content-block::after,
  .section::before,
  .section::after {
    display: none !important;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .stat-item {
    padding: 1.25rem;
    min-width: auto;
  }

  .stat-num {
    font-size: 2rem;
  }

  .hero-tag {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .timeline-content {
    padding: 1rem !important;
  }

  .timeline-header {
    padding: 1rem !important;
  }

  .timeline-header h2 {
    font-size: 1rem !important;
  }

  .section-content-card {
    padding: 1.5rem 1rem !important;
  }
}

/* General Mobile Fixes */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

*,
*::before,
*::after {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

img,
video,
iframe {
  max-width: 100% !important;
  height: auto !important;
}