/* ==========================================================================
   AIROBOS ANASAYFA STİLLERİ - NİHAİ
   ========================================================================== */

/* --- KÖK DEĞİŞKENLER VE GENEL AYARLAR --- */
:root {
  --primary-blue: #0d6efd; /* Bootstrap Mavi */
  --dark-blue: #102030;
  --text-light: rgba(255, 255, 255, 0.85);
}

html {
  font-size: clamp(15px, 1.2vw, 18px);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  line-height: 1.6;
}

/* --- GENEL YARDIMCI SINIFLAR --- */
.section-padding {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/* Varsayılan merkez; .text-start/.text-end gelince ezilmesin diye iki sınıflı kural */
.section-title {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-title.text-start { text-align: left; }
.section-title.text-end   { text-align: right; }

.section-title h2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.section-title p {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: #6c757d;
  max-width: 750px;
  margin: 1rem auto 0;
}

.dark-section {
  background-color: var(--dark-blue);
  color: var(--text-light);
}
.dark-section .section-title h2,
.dark-section .section-title p { color: #fff; }

.highlight-blue {
  border-bottom: 4px solid var(--primary-blue);
  padding-bottom: 5px;
  display: inline-block;
}

/* --- HERO --- */
.hero-full {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(16, 32, 48, 0.7), rgba(16, 32, 48, 0.7)),
    url('/static/images/hero-fallback.jpg') no-repeat center/cover;
}

.hero-full .video-bg {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -2;
}

.hero-full .video-overlay {
  position: absolute; inset: 0;
  background-color: rgba(16, 32, 48, 0.6);
  z-index: -1;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  text-shadow: 2px 2px 12px rgba(0,0,0,.6);
}

.hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  text-shadow: 1px 1px 8px rgba(0,0,0,.5);
  max-width: 900px;
  margin: 1.5rem auto 0;
  color: var(--text-light);
}

/* --- AŞAĞI KAYDIR İKONU --- */
.scroll-down-indicator {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.scroll-down-indicator .mouse {
  width: 25px; height: 45px;
  border: 2px solid #fff;
  border-radius: 60px;
  position: relative;
}
.scroll-down-indicator .scroller {
  width: 3px; height: 10px;
  border-radius: 25%;
  background-color: #fff;
  position: absolute;
  left: 50%; top: 10px;
  transform: translateX(-50%);
  animation: scroll-anim 2.5s ease-out infinite;
}
@keyframes scroll-anim {
  0% { top: 10px; opacity: 1; }
  30%{ top: 25px; opacity: 1; }
  70%{ top: 25px; opacity: 0; }
  100%{ top: 10px; opacity: 0; }
}

/* --- KOMPETANS / AKORDEON --- */
.competency-accordion .accordion-item {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.competency-accordion .accordion-button {
  background-color: transparent;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  padding: 1.5rem .5rem;
  transition: color .3s ease;
}
.competency-accordion .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--primary-blue);
}
.competency-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.competency-accordion .accordion-button::after { filter: brightness(0) invert(1); }
.competency-accordion .accordion-body {
  color: var(--text-light);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  padding: 0 .5rem 1.5rem;
}

/* --- ÜRÜN IZGARASI --- */
.product-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 250px;
  gap: 1rem;
}
.product-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  display: block;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
}
.item-2x2 { grid-column: span 2; grid-row: span 2; }
.item-2x1 { grid-column: span 2; grid-row: span 1; }

.product-grid-item .grid-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.product-grid-item:hover .grid-img { transform: scale(1.05); }

.product-grid-item .grid-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,32,48,.85) 0%, transparent 70%);
  display: flex; align-items: flex-end;
  padding: 1.5rem;
  transition: background .4s ease;
}
.product-grid-item .grid-title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  transform: translateY(15px);
  opacity: 0;
  transition: transform .4s ease-out, opacity .4s ease-out;
}
.product-grid-item:hover .grid-overlay {
  background: linear-gradient(to top, rgba(16,32,48,.95) 10%, transparent 80%);
}
.product-grid-item:hover .grid-title {
  transform: translateY(0);
  opacity: 1;
}

/* --- İSTATİSTİKLER --- */
.stats-section {
  background-image:
    linear-gradient(rgba(16,32,48,.92), rgba(16,32,48,.92)),
    url('/static/images/hero-fallback.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: #fff;
}
.stat-item .counter {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--primary-blue);
}
.stat-item h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-light);
  margin-top: .5rem;
}

/* --- HABERLER --- */
.news-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,.1);
}
.news-card .card-img-top {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.news-card .card-body { padding: 1.5rem; }
.news-card .card-title { font-size: 1.2rem; font-weight: 600; }

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, var(--dark-blue), #1a3a5a);
  color: #fff;
  border-radius: 20px;
  padding: clamp(3rem, 8vw, 6rem);
}
.cta-section h2 { font-size: clamp(2rem, 5vw, 3.5rem); }

/* --- KAYAN PARTNER LOGOLARI --- */
.logo-slider {
  height: clamp(130px, 16vh, 200px);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
          mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.logo-track {
  display: flex;
  width: calc(250px * 14); /* 14 kutu = 2 set */
  animation: scroll 40s linear infinite;
}
/* Hover’da durdur (önceden 'running' idi, gereksizdi) */
.logo-slider:hover .logo-track { animation-play-state: paused; }

.logo {
  height: 100%;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 35px;
}
.logo img {
  max-height: clamp(80px, 12vh, 110px);
  width: auto; object-fit: contain;
  filter: grayscale(100%) brightness(.7);
  opacity: .8;
  transition: all .4s ease;
}
.logo:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100%{ transform: translateX(calc(-250px * 7)); }
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
  .product-grid-item.item-2x2,
  .product-grid-item.item-2x1 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 767.98px) {
  html { scroll-padding-top: 70px; }
  .product-grid-container {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}

/* Masaüstünde video var; küçük ekranda fallback arka plan kalsın */
@media (min-width: 768px) {
  .hero-full { background: none; }
}
