/* ============================================
 * ADEF ENDÜSTRİYEL — DESIGN SYSTEM 
 * ============================================ */

/* --- 1. CSS VARIABLES (GÖREV REHBERİ) --- */
:root {
  /* Renk Paleti */
  --primary-blue: #0052CC;
  --primary-blue-hover: #0043A6;
  --primary-blue-light: rgba(0, 82, 204, 0.1);
  --deep-blue: #002D72;
  --slate-grey: #4A5568;
  --soft-grey: #F7FAFC;
  --border-color: #E2E8F0;
  --white: #FFFFFF;
  --black: #1A202C;
  --text-dark: #2D3748;

  /* Fontlar (Inter veya Roboto) */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  /* Kenar Yuvarlaklıkları */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Gölgeler */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Animasyon */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* --- 2. RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--soft-grey);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

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

/* Hiyerarşi Tipografisi */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--black);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  color: var(--slate-grey);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 3. COMPONENTS --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue-light);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-blue);
}

.btn-white-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-white-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--deep-blue);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--white);
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card-text {
  margin-bottom: 20px;
  flex: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* --- 4. HEADER & NAV --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--deep-blue);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--slate-grey);
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width var(--transition-fast);
}

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

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.dropdown-link:hover {
  background-color: var(--soft-grey);
  color: var(--primary-blue);
}

.dropdown-link span {
  color: var(--primary-blue);
  font-size: 1.25rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--deep-blue);
  transition: all var(--transition-normal);
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--white);
  padding: 20px;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

/* --- 5. HERO BÖLÜMÜ --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--deep-blue);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 45, 114, 0.9) 0%, rgba(0, 45, 114, 0.6) 50%, rgba(0, 45, 114, 0.3) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
  color: var(--white);
}

.hero-content h1 {
  margin: 20px 0;
}

.hero-content h1 em {
  color: #66B2FF;
  font-style: normal;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* İç Sayfa Hero */
.page-hero {
  position: relative;
  padding: 100px 0;
  background-color: var(--deep-blue);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero h1 em {
  color: #66B2FF;
  font-style: normal;
}

/* --- 6. İSTATİSTİKLER --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-info {
  flex: 1;
  text-align: left;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep-blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate-grey);
  font-weight: 500;
}

/* --- 7. TEKNİK TABLOLAR --- */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.tech-table th,
.tech-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.tech-table th {
  background: var(--soft-grey);
  font-weight: 600;
  color: var(--deep-blue);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.tech-table tr:hover {
  background-color: var(--soft-grey);
}

/* --- 8. FOOTER --- */
.site-footer {
  background-color: #0A192F;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0 0;
  margin-top: auto;
}

.site-footer .logo-text {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-desc {
  margin: 20px 0;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-blue);
}

.footer-heading {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-certs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cert-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* --- 9. CTA BANNER --- */
.cta-banner {
  background-color: var(--primary-blue);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  background-image: radial-gradient(circle at 20% 150%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-size: 1.125rem;
}

/* --- 10. RESPONSIVE --- */
@media (max-width: 992px) {

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 60vh;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}