/****************************
 MilSafe Ana CSS Dosyası
 Açık gri & beyaz renk paleti
*****************************/
html {
  overflow-x: hidden; /* Yatay scroll'u engelle */
  overflow-y: hidden; /* Dikey scroll'u da tamamen kapat */
  scrollbar-width: none; /* Firefox için scroll bar'ı gizle */
  -ms-overflow-style: none; /* IE ve Edge için scroll bar'ı gizle */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari ve Opera için scroll bar'ı gizle */
}

/* Tüm öğelerde scroll barları gizle (iç kutular dahil) */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
*::-webkit-scrollbar {
  display: none; /* WebKit */
}

:root {
  --main-bg: #ffffff;
  --card-bg: #f7f7f9;
  --header-bg: #f0f0f3;
  --footer-bg: #e9e9ee;
  --primary: #222;
  --secondary: #888;
  --accent: #fe0644;
  --border: #e0e0e0;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--main-bg);
  color: var(--primary);
  overflow-x: hidden; /* Yatay scroll'u engelle */
  overflow-y: hidden; /* Dikey scroll'u kapat */
  scrollbar-width: none; /* Firefox için scroll bar'ı gizle */
  -ms-overflow-style: none; /* IE ve Edge için scroll bar'ı gizle */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari ve Opera için scroll bar'ı gizle */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  overflow-x: hidden; /* Container taşmasını engelle */
}

header {
  background: var(--header-bg);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(220,220,220,0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(240, 240, 243, 0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  border-bottom: 1px solid rgba(224, 224, 224, 0.3);
  transform: translateY(0); /* Başlangıçta görünür */
}

/* Header scroll davranışı */
header.header-hidden {
  transform: translateY(-100%);
  box-shadow: 0 2px 8px rgba(220,220,220,0.08);
}

header.header-visible {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(220,220,220,0.15);
}

/* Header varsayılan durumu */
header {
  transform: translateY(0);
}
/* Header container düzenlemesi */
header .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0 10px !important; /* Container padding'ini azalt */
}

/* Logo alanını daha sola yanaştır */
header .logo {
  margin-left: 0 !important;
  padding-left: 0 !important;
  flex-shrink: 0 !important;
}

/* Menü alanını daha sağa yanaştır */
header nav {
  margin-right: 0 !important;
  padding-right: 0 !important;
  flex-shrink: 0 !important;
}

header .logo a {
  color: var(--primary);
  font-size: 2em;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Header Logo Stilleri */
.header-logo {
  height: 120px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain;
  transition: all 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-logo-text {
  color: var(--primary) !important;
  font-size: 2.5em !important;
  text-decoration: none !important;
  font-weight: bold !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease;
  line-height: 1;
}

.header-logo-text:hover {
  color: var(--accent) !important;
  transform: scale(1.05);
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
nav ul li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500 ;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
  font-size: 1.3em;
}
nav ul li a:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

footer {
  background: var(--footer-bg);
  color: var(--secondary);
  text-align: center;
  padding: 24px 0 12px 0;
  margin-top: 40px;
  font-size: 1em;
  border-top: 1px solid var(--border);
}

main {
  min-height: calc(100vh - 120px); /* Viewport yüksekliği - header yüksekliği */ 
  box-sizing: border-box;
}

/* Kartlar ve Bölümler */
.about-card, .service-card, .blog-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(220,220,220,0.13);
  padding: 24px;
  min-width: 260px;
  max-width: 350px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.about-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.about-card p {
  margin: 0;
  flex: 1;
  line-height: 1.6;
  color: var(--secondary);
}

.blog-card {
  padding: 0;
  overflow: hidden;
}
.blog-card > div:first-child {
  background-size: cover;
  background-position: center;
  height: 180px;
  width: 100%;
}
.blog-card > div:last-child {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/********** Slider **********/
.slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px); /* Viewport yüksekliği - header yüksekliği */
  overflow: hidden;
  background: #e9e9ee;
  border-bottom: 1px solid var(--border);
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  color: var(--primary);
  text-align: right;
  padding-right: 60px;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide video, .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  filter: brightness(0.85);
}
.slide-content {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.7);
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(220,220,220,0.13);
  display: inline-block;
}

/********** Butonlar **********/
.slider-btn {
  margin-top: 20px;
  background: linear-gradient(to right, #fe0644, #ee4455);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(254,6,68,0.3);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
}
.slider-btn:hover {
  background: linear-gradient(to right, #ee4455, #fe0644);
  box-shadow: 0 4px 15px rgba(254,6,68,0.4);
  transform: translateY(-2px);
}

/********** Formlar **********/
input, textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1em;
  margin-bottom: 10px;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  background: #fafbfc;
  color: var(--primary);
  transition: border 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Slider Arrow Iconları */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, box-shadow 0.2s;
}
.slider-arrow.left { left: 24px; }
.slider-arrow.right { right: 24px; }
.slider-arrow:hover { background: rgba(251,173,65,0.1); box-shadow: 0 4px 16px rgba(251,173,65,0.2); }
.slider-arrow svg { display: block; }

/* Slider görseli için iyileştirme */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  filter: brightness(0.85);
}

/********** Responsive **********/
@media (max-width: 900px) {
  .container { 
    padding: 0 10px; 
    overflow-x: hidden;
  }
  nav ul { gap: 12px; }
  .slider { height: calc(100vh - 100px); }
  .slide-content { padding: 20px 10px; }
  .slide { padding-right: 20px; }
  .header-logo {
    height: 50px !important;
    width: auto !important;
    max-width: 150px !important;
  }
  .header-logo-text {
    font-size: 2em !important;
  }
  .about-card, .service-card, .blog-card {
    min-width: 0;
    max-width: 100%;
  }
  .about-card {
    height: auto;
    min-height: 200px;
  }
  main {
    padding-top: 100px; /* Mobilde daha az padding */
    min-height: calc(100vh - 100px);
  }
}
@media (max-width: 768px) {
  nav ul { flex-direction: column; gap: 8px; }
  .about-cards, .services-list, .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .service-card, .blog-card, .about-card {
    min-width: 0;
    max-width: 100%;
  }
  .about-card {
    height: auto;
    min-height: 180px;
  }
  .slider { height: calc(100vh - 90px); }
  .slide { padding-right: 15px; }
  .header-logo {
    height: 45px !important;
    width: auto !important;
    max-width: 120px !important;
  }
  .header-logo-text {
    font-size: 1.8em !important;
  }
  main {
    padding-top: 90px; /* Daha küçük ekranlarda daha az padding */
    min-height: calc(100vh - 90px);
  }
  .container {
    overflow-x: hidden;
  }
}
@media (max-width: 500px) {
  .slide-content { padding: 10px 2px; font-size: 0.95em; }
  .slider-btn { padding: 10px 16px; font-size: 1em; }
  .slide { padding-right: 10px; }
  .header-logo {
    height: 40px !important;
    width: auto !important;
    max-width: 100px !important;
  }
  .header-logo-text {
    font-size: 1.5em !important;
  }
  
  /* Firma adı mobil ayarları */
  .firma-adi {
    font-size: 1em !important;
    display: none; /* Mobilde gizle */
  }
}

/* Tablet için firma adı ayarları */
@media (max-width: 1024px) {
  .firma-adi {
    font-size: 1.1em !important;
  }
}

/* Desktop için firma adı ayarları */
@media (min-width: 1025px) {
  .firma-adi {
    font-size: 1.6em !important;
    display: block !important;
  }
} 