/* --- KADEM İNŞAAT - MODERN TASARIM (FİNAL VERSİYON) --- */

/* --- 1. Global Ayarlar ve Değişkenler --- */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Lato:wght@300;400;700&display=swap");

:root {
  /* -- Renk Paleti -- */
  --primary-color: #0a1128; /* Derin Gece Mavisi - Otorite ve Güven */
  --secondary-color: #1c2541; /* Tamamlayıcı Koyu Mavi */
  --accent-color: #00b4d8; /* Canlı Camgöbeği - Modernlik ve Teknoloji */
  --accent-hover: #0096c7; /* Hover durumu için koyu camgöbeği */
  --text-dark: #1b263b; /* Ana metin rengi */
  --text-light: #778da9; /* Yardımcı metin rengi */
  --white-color: #ffffff;
  --light-bg: #f8f9fa; /* Açık gri arka plan */
  --border-color: #e9ecef;

  /* -- Tipografi -- */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;

  /* -- Düzen -- */
  --container-width: 1200px;
  --header-height: 110px; /* Başlangıçta daha büyük */
  --header-height-scrolled: 75px; /* Scroll edilince küçülecek */
  --border-radius: 12px;

  /* -- Efektler -- */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- Reset & Temel -- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white-color);
  overflow-x: hidden;
}

/* -- Özel Scrollbar -- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* -- Utility Classes -- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-padding-gray {
  padding: 100px 0;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

/* Arka plan için dekoratif desen */
.section-padding-gray::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(at 100% 0%, rgba(0, 180, 216, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(10, 17, 40, 0.05) 0px, transparent 50%);
  pointer-events: none;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 2. Header & Navigasyon (Glassmorphism) --- */
.site-header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

/* Scrolled State (JS ile eklenecek) */
.site-header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.site-header.scrolled .logo img {
  height: 45px; /* Logo küçülecek */
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 70px; /* Başlangıçta logo daha büyük */
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

/* Link Alt Çizgi Animasyonu */
.main-nav a:not(.btn-cta)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.main-nav a:not(.btn-cta):hover {
  color: var(--accent-color);
}

.main-nav a:not(.btn-cta):hover::after {
  width: 100%;
}

/* Call to Action Butonu (Header'da) */
.btn-cta {
  background-color: var(--accent-color);
  color: var(--white-color) !important;
  padding: 12px 24px !important;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
  border: 2px solid transparent;
}

.btn-cta:hover {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- 3. Hero Section (Modern & Slider) --- */
#hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Arkaplan resmi slider'a taşındı */
}

/* Slider Yapısı */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 8s linear; /* Çok yumuşak geçiş */
  transform: scale(1);
  z-index: 0;
}

.slide.active {
  opacity: 1;
  transform: scale(1.05); /* Hafif zoom efekti */
  z-index: 1;
}

/* Hero Overlay (Gradyan) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 17, 40, 0.9) 0%,
    rgba(28, 37, 65, 0.6) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--white-color);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
  background: var(--accent-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 180, 216, 0.4);
}

/* Giriş Animasyonu Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 4. Hizmetler (Modern Overlay Tasarım) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card.modern {
    position: relative;
    height: 400px; /* Sabit yükseklik */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: none;
}

.service-img-wrapper {
    width: 100%;
    height: 100%;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 17, 40, 0.95), rgba(10, 17, 40, 0.3) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    z-index: 1;
    transition: all 0.4s ease;
}

.card-text {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.service-card.modern h3 {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-card.modern p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-height: 0; /* Gizli */
}

/* Hover Efektleri */
.service-card.modern:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-card.modern:hover .card-overlay {
    background: linear-gradient(to top, rgba(10, 17, 40, 0.95) 40%, rgba(10, 17, 40, 0.6));
}

.service-card.modern:hover .card-text {
    transform: translateY(0);
}

.service-card.modern:hover p {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px; /* Görünür */
    margin-top: 10px;
}


/* --- 5. Referanslar --- */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 50px;
  align-items: center;
  justify-items: center;
}

.reference-item img {
  max-height: 80px;
  max-width: 100%;
  filter: grayscale(100%) opacity(0.6);
  transition: var(--transition);
  cursor: pointer;
}

.reference-item img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* --- 6. Kurumsal (Split Layout & Grid) --- */
.corporate-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.intro-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.corporate-text p {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.corporate-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-bg);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
}

.feature i {
    color: var(--accent-color);
}

.corporate-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.corp-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--accent-color);
    transition: var(--transition);
}

.corp-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.corp-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.corp-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 8. İletişim Formu (Modern) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form-wrapper p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.info-box strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-map iframe {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

/* --- 9. Footer --- */
.site-footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
}

/* Flashy Social Buttons */
.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.social-btn:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}

.social-btn:hover::before {
  transform: scale(1);
}

.social-btn i {
  z-index: 2;
}

/* --- Mobil Uyumluluk --- */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 900px) {
    .corporate-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-card.modern {
        height: 350px;
    }
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 0 20px;
  }

  .mobile-menu-button {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 100px 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .main-nav a {
    font-size: 1.2rem;
    color: var(--primary-color);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  #hero {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
}
