/* ============================================================
   AltaySec Phishing Farkındalık Platformu
   main.css — Design Tokens + Reset + Layout + Typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* ─────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:     #000000;
  --bg-surface:     #0d0d0d;
  --bg-card:        #111111;
  --bg-card-hover:  #161616;
  --bg-overlay:     rgba(0, 0, 0, 0.85);

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.18);

  /* Brand — AltaySec Red */
  --red:            #FF3B30;
  --red-dark:       #cc2e25;
  --red-light:      #ff6b63;
  --red-glow:       rgba(255, 59, 48, 0.15);
  --red-glow-lg:    rgba(255, 59, 48, 0.25);

  /* Accent */
  --cyan:           #00d4ff;
  --cyan-glow:      rgba(0, 212, 255, 0.12);
  --amber:          #f59e0b;
  --amber-glow:     rgba(245, 158, 11, 0.12);
  --green:          #22c55e;
  --green-glow:     rgba(34, 197, 94, 0.12);

  /* Typography */
  --text-primary:   #ffffff;
  --text-secondary: #c0c0c8;
  --text-muted:     #888896;
  --text-faint:     #555566;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:    0 1px 3px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-red:     0 0 40px rgba(255, 59, 48, 0.2);
  --shadow-cyan:    0 0 40px rgba(0, 212, 255, 0.15);

  /* Transitions */
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:         150ms;
  --t-base:         250ms;
  --t-slow:         400ms;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 68px;
}

/* ─────────────────────────────────────────
   2. RESET
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ─────────────────────────────────────────
   3. TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.display-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
}

.text-xl   { font-size: 1.25rem; }
.text-lg   { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.75rem; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-red       { color: var(--red); }
.text-cyan      { color: var(--cyan); }
.text-amber     { color: var(--amber); }
.text-green     { color: var(--green); }

.font-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9em;
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 60%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────
   4. LAYOUT
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-3xl);
}

.section-sm {
  padding-block: var(--space-2xl);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ─────────────────────────────────────────
   5. DIVIDERS & DECORATIONS
───────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* ─────────────────────────────────────────
   6. ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes pulseFast {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.85; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--red-glow); }
  50%       { box-shadow: 0 0 50px var(--red-glow-lg); }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--red-glow); }
  50%       { border-color: var(--red); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--ease-smooth) forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.5s var(--ease-smooth) forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* Scroll-triggered: add .is-visible via JS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ─────────────────────────────────────────
   7. NOISE TEXTURE OVERLAY
───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─────────────────────────────────────────
   8. SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ─────────────────────────────────────────
   9. SELECTION
───────────────────────────────────────── */
::selection {
  background: var(--red-glow-lg);
  color: var(--red-light);
}

/* ─────────────────────────────────────────
   10. RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 64px;
    --space-2xl: 48px;
  }

  .container { padding-inline: var(--space-md); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .section-subtitle { font-size: 1rem; }
}

@media (max-width: 480px) {
  :root { --space-3xl: 48px; }
}
