/* =============================================
   BFL'Y — Baykar Fen Lisesi SUAS Team
   style.css
   ============================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg:         #0D1117;
  --bg-card:    #111827;
  --bg-dark:    #080D13;
  --brand:      #182a47;
  --brand-mid:  #1e3a63;
  --text:       #F0F0F5;
  --text-muted: #8899BB;
  --accent:     #4A9ECC;
  --accent-dim: #2d7aaa;
  --border:     rgba(24, 42, 71, 0.6);
  --border-dim: rgba(255, 255, 255, 0.07);

  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-height: 72px;
  --max-width:  1200px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

ul { list-style: none; }

/* ---------- FOCUS / ACCESSIBILITY ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }

.dark-section { background-color: var(--bg-dark); }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text);
}

.body-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 32px;
}

.accent { color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: #62b8e0;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border-dim);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: transparent;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
}

.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-option {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  cursor: pointer;
}

.lang-option.active { color: var(--accent); }

.lang-divider {
  color: var(--border-dim);
  font-size: 0.75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  padding: 24px;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu .nav-link { font-size: 0.9rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* --- Video Background --- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Override max-width from reset */
  max-width: none;
}

/* Dark overlay: gradient + solid tint so text stays readable */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 13, 19, 0.25) 0%, rgba(8, 13, 19, 0.75) 100%),
    linear-gradient(to right, rgba(8, 13, 19, 0.55) 0%, transparent 60%);
}

/* ---------- HERO CONTENT ---------- */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.runway-line {
  margin-bottom: 32px;
  height: 2px;
  width: 100%;
  max-width: 480px;
  background: var(--border-dim);
  position: relative;
  overflow: hidden;
}

.runway-track {
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: runway 2.4s var(--ease-out) 0.4s forwards;
}

@keyframes runway {
  from { left: -40%; }
  to   { left: 110%; }
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.8s forwards;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 1s forwards;
  /* Subtle text shadow for legibility over video */
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero-title-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.4;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 1.2s forwards;
}

.hero-desc {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 1.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 1.6s forwards;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollBounce 1.8s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(8px); opacity: 1; }
}

/* ---------- STATS STRIP ---------- */
.stats-strip {
  background-color: var(--brand);
  border-top: 1px solid rgba(74, 158, 204, 0.2);
  border-bottom: 1px solid rgba(74, 158, 204, 0.2);
  padding: 40px 24px;
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
}

.stat-plus {
  font-size: 0.65em;
  color: var(--accent);
  vertical-align: super;
  margin-left: 1px;
}

.stat-unit {
  font-size: 0.8em;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(240, 240, 245, 0.65);
  letter-spacing: 0.05em;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- ABOUT SNIPPET ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about-placeholder span {
  font-size: 2rem;
  opacity: 0.4;
}

/* ---------- VEHICLE TEASER ---------- */
.vehicle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.v-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.v-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.v-card-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.v-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text);
}

.v-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.vehicle-cta-wrap {
  display: flex;
  justify-content: center;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dim);
  padding: 48px 0 24px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-right { text-align: right; }

.footer-right p {
  font-size: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--accent);
  transition: opacity 0.2s;
}

.footer-link:hover { opacity: 0.75; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border-dim);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 8px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vehicle-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stat-item { padding: 16px 24px; }
  .stat-divider { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .footer-container { flex-direction: column; }
  .footer-right { text-align: left; }
}

/* ---------- PAGE HERO (ortak tüm sayfalar) ---------- */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--bg-dark);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(74,158,204,0.08) 0%, transparent 70%),
    linear-gradient(160deg, var(--brand) 0%, var(--bg-dark) 55%);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,158,204,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,204,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-hero-content .section-eyebrow { margin-bottom: 12px; }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.page-hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.7;
}

/* ---------- NEWS SLIDER ---------- */
.news-section { padding-bottom: 96px; }

.news-slider { margin-top: 48px; }

.news-slides {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.news-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.news-slide.active {
  display: grid;
  animation: slideFadeIn 0.45s var(--ease-out);
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Image side */
.news-slide-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--brand);
}

.news-slide-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
  filter: brightness(0.85);
}

.news-slide:hover .news-slide-img img { transform: scale(1.04); filter: brightness(1); }

.news-slide-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg-card));
}

.news-slide-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  color: rgba(74,158,204,0.15);
}

/* Content side */
.news-slide-content {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.news-slide-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-slide-cat {
  font-family: var(--font-display);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(74,158,204,0.4);
  padding: 3px 9px; border-radius: 3px;
}

.news-slide-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.news-slide-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 400px;
}

.news-slide-cta {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  transition: gap 0.2s ease;
}

.news-slide:hover .news-slide-cta { gap: 14px; }

/* Controls */
.news-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.news-prev,
.news-next {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.news-prev:hover,
.news-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.news-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.news-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-dim);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.25s ease;
}

.news-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 3px;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .news-slide.active { grid-template-columns: 1fr; }
  .news-slide-img { aspect-ratio: 16/7; }
  .news-slide-img::after { background: linear-gradient(to top, var(--bg-card), transparent); }
  .news-slide-content { padding: 28px 24px; }
}