/* =======================
   GENEL AYARLAR
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #999;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* =======================
   HEADER
======================= */
header {
  background-color: #fff;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  min-height: 72px;
  flex-shrink: 0;
  width: 100%;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0 20px;
  position: relative;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: #1e5c8d;
  letter-spacing: 1px;
  flex-shrink: 0;
  z-index: 10;
}

.logo span {
  position: relative;
  top: 8px;
  margin-left: -6px;
}

.logo img {
  width: clamp(35px, 8vw, 50px);
  height: clamp(35px, 8vw, 50px);
  object-fit: contain;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 1;
  min-width: 0;
}

.header-title {
  color: #999;
  font-weight: normal;
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  text-align: center;
  font-family: 'Arial', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-icon {
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  object-fit: contain;
  flex-shrink: 0;
}

nav {
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(10px, 2vw, 25px);
  align-items: center;
  flex-wrap: nowrap;
}

nav a {
  color: #999;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: #1e5c8d;
}

/* =======================
   HERO
======================= */
.hero {
  background: url("hero.png") no-repeat center top;
  background-size: cover;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
}

.overlay {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80vh;
  padding: clamp(15px, 3vw, 30px);
  color: #fff;
  text-align: left;
  max-width: 700px;
  width: 100%;
}

.hero-top {
  margin-top: clamp(50px, 15vh, 150px);
}

.hero-top h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: #fff;
  text-shadow: 0 0 10px rgba(77, 178, 255, 0.6);
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

.hero-top h1 span {
  display: block;
}

.hero-top h1 span:last-child {
  display: block;
  margin-left: clamp(0px, 5vw, 40px);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #f1f1f1;
  font-weight: 500;
  margin-top: clamp(50px, 20vh, 200px);
  margin-left: clamp(5px, 2vw, 15px);
}

.hero-bottom {
  margin-top: auto;
  margin-bottom: 20px;
}

.hero-info {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f1f1f1;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-left: clamp(5px, 2vw, 10px);
}

.hero-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-info i {
  color: #999;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  width: 25px;
  text-align: center;
  flex-shrink: 0;
}

/* BUTON */
.btn {
  background-color: #4db2ff;
  color: #fff;
  padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 30px);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  font-size: clamp(0.9rem, 2vw, 1rem);
  display: inline-block;
}

.btn:hover {
  background-color: #3a9add;
  transform: scale(1.05);
}

/* MAIN */
main {
  flex: 1 0 auto;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* FOOTER */
footer {
  background-color: #fff;
  color: #fff;
  padding: clamp(15px, 3vw, 20px);
  text-align: center;
  flex-shrink: 0;
  width: 100%;
}

.footer-logo {
  width: clamp(150px, 40vw, 7cm);
  height: auto;
  max-height: 2cm;
  display: block;
  margin: 0 auto 15px auto;
  object-fit: contain;
}

.footer-content p,
.footer-content a {
  color: #999;
  text-decoration: none;
  margin: 5px 0;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.footer-content a:hover {
  color: #F2AE30;
}

/* HİZMETLER */
.services-section {
  padding: clamp(30px, 8vw, 60px) clamp(15px, 3vw, 20px);
  text-align: center;
  width: 100%;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: clamp(25px, 5vw, 40px);
  color: #1c2b3a;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr));
  gap: clamp(15px, 3vw, 20px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.service-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 400px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
}

.service-card img {
  width: 100%;
  height: clamp(120px, 20vw, 160px);
  object-fit: cover;
  border-radius: 8px;
}

.service-card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #1e5c8d;
  margin: 15px 0 10px;
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.service-card p {
  margin-top: 15px;
  padding-bottom: 15px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  color: #555;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px #1e5c8d;
}

/* CONTACT CARD */
.contact-card {
  max-width: 400px;
  width: 100%;
  height: auto;
  max-height: 550px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.contact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =======================
   RESPONSIVE BREAKPOINTS
======================= */

/* Tablet ve küçük ekranlar */
@media (max-width: 768px) {
  header {
    padding: 10px 15px;
    min-height: 60px;
  }

  .nav-bar {
    padding: 0 10px;
    gap: 10px;
  }

  .header-center {
    flex-direction: column;
    gap: 2px;
  }

  nav ul {
    gap: 8px;
  }

  .hero-content {
    padding: 15px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  }
}

/* Mobil ekranlar */
@media (max-width: 480px) {
  header {
    padding: 8px 10px;
    min-height: 55px;
  }

  .nav-bar {
    flex-wrap: nowrap;
    padding: 0 5px;
    gap: 5px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }

  .header-center {
    min-width: 0;
    flex: 1;
  }

  .header-title {
    font-size: 0.75rem;
  }

  .card-icon {
    width: 35px;
    height: 35px;
  }

  nav ul {
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
  }

  nav a {
    font-size: 0.7rem;
  }

  .hero-top h1 {
    font-size: 1.3rem;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-top: 50px;
  }

  .hero-info {
    font-size: 0.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 350px;
  }

  .contact-card {
    max-height: 400px;
  }
}

/* Çok küçük ekranlar */
@media (max-width: 360px) {
  .header-title {
    font-size: 0.65rem;
  }

  nav a {
    font-size: 0.65rem;
  }

  .logo {
    font-size: 1rem;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  .card-icon {
    width: 30px;
    height: 30px;
  }
}
