/* Reset & Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fafafa;
}

/* Genel Yerleşim ve Container */
.inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header (Logo + Hamburger) */
.header {
  width: 100%;
  background-color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  justify-content: space-between;
}
.logo-area {
  display: flex;
  align-items: center;
}
.logo {
  height: 40px;
  width: auto;
}

/* Hamburger Butonu */
.hamburger {
  width: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.hamburger .line {
  width: 100%;
  height: 3px;
  background-color: #333;
}

/* Açılır Menü */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 200px;
  height: 100vh;
  background-color: #f5f5f5;
  transition: right 0.3s ease;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  z-index: 998;
  padding-top: 60px; /* Header yüksekliği kadar boşluk */
}
.mobile-menu ul {
  list-style: none;
}
.mobile-menu li {
  border-bottom: 1px solid #ddd;
}
.mobile-menu a {
  display: block;
  padding: 15px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.mobile-menu a:hover {
  background-color: #e0e0e0;
}

/* Ana Bölümler */
.section {
  padding: 80px 20px 60px;
  min-height: 100vh;
}

/* Hero (Home) Bölümü */
/* Arka plan: Sadece görsel */
.home-section {
  position: relative;
  min-height: 100vh;
  background: url('../images/cimento-arkaplan.png') no-repeat center center/cover;
  overflow: hidden; /* ::after blur efekti taşmasın */
}

/* Alt %30: daha geniş bir alan ve yumuşak geçiş */
.home-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 30%; /* %35'ten %30'a düşürüldü */
  /* Daha yumuşak ve pürüzsüz geçiş için optimize edilmiş gradient */
  background: linear-gradient(
    to top, 
    rgba(255, 255, 255, 1) 0%,    /* Tamamen beyaz (alt kısım) */
    rgba(255, 255, 255, 0.8) 25%, /* %25'te %80 opak */
    rgba(255, 255, 255, 0.5) 50%, /* %50'de %50 opak */
    rgba(255, 255, 255, 0.2) 75%, /* %75'te %20 opak */
    rgba(255, 255, 255, 0) 100%    /* Tamamen şeffaf (üst kısım) */
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}

/* Sol alt kısma konumlanan metin */
.hero-left-center-text {
  position: absolute;
  bottom: 15%; /* Metni alt %15'e yerleştiriyoruz */
  left: 20px;
  z-index: 2; 
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* Renk Ayarları */
.text-red {
  color: #b71c1c; 
}
.text-black {
  color: #000;
}
.text-white {
  color: #fff;
}
.uppercase-text {
  text-transform: uppercase;
  color: #b71c1c; /* Oyak kırmızısı */
}

/* About Us Bölümü */
.about-section {
  background-color: #ffffff;
  display: flex;
  align-items: center;
}
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.about-text {
  flex: 1 1 60%;
  padding-right: 20px;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.about-text p {
  margin-bottom: 15px;
}

/* Carousel Styles */
.about-carousel {
  flex: 1 1 35%;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide img {
  width: 100%;
  flex-shrink: 0;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

/* Products Bölümü */
.products-section h2 {
  text-align: center;
  margin-bottom: 30px;
}
.product-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.product-card {
  background-color: #fff;
  border-radius: 8px;
  width: 300px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.product-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 15px;
}
.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}
/* See More Butonu */
.see-more-btn {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.see-more-btn:hover {
  background-color: #555;
}

/* PDF Detayları (Overlay) */
/* PDF detayları (overlay) */
.pdf-details {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ürün kartı aktif olduğunda, PDF detaylarının görünürlüğünü sağlamak için */
.product-card.active {
  z-index: 1000;
}

/* Mobil düzenlemeler */
@media (max-width: 992px) {
  .product-card {
    position: relative;
  }
  /* Mobilde PDF detaylarının ilgili ürün kartının üstüne çıkması için */
  .pdf-details {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
}
.pdf-details h4 {
  margin-bottom: 10px;
}
.pdf-details ul {
  list-style: none;
  padding-left: 0;
}
.pdf-details li {
  margin: 8px 0;
  display: flex;
  align-items: center;
}
.pdf-icon {
  margin-right: 10px;
  color: #b71c1c; /* Oyak Cement kırmızısı */
  font-size: 1.2rem;
}
.pdf-details a {
  color: #b71c1c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.pdf-details a:hover {
  color: #8e0000;
}
.pdf-details.open {
  display: block;
}

/* Contact Form */
.contact-form-section {
  background-color: #ffffff;
}
.contact-form-section h2 {
  text-align: center;
  margin-bottom: 20px;
}
.contact-description {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #555;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form label {
  font-weight: 600;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form button.btn {
  width: 150px;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.contact-form button.btn:hover {
  background-color: #555;
}

/* Form Hata ve Başarı Mesajları */
.contact-form .error {
  color: red;
  margin-bottom: 10px;
}
.contact-form .success {
  color: green;
  margin-bottom: 10px;
}

/* Contact Info Bölümü */
.contact-info-section {
  background-color: #f5f5f5;
  text-align: center;
}
.contact-info-section h2 {
  margin-bottom: 20px;
}

/* Map Container */
.map-container {
  width: 100%;
  max-width: 100%;
  height: 400px;
  margin-top: 20px;
  position: relative;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}

/* Footer */
.footer {
  background-color: #222;
  color: #ccc;
  padding: 20px;
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo {
  flex: 0 0 auto;
}
.footer-logo-img {
  height: 40px;
  width: auto;
}
.footer-text {
  flex: 1 1 auto;
  text-align: center;
}
.footer-text p {
  font-size: 0.9rem;
}
.footer-text a {
  color: #fff;
  text-decoration: underline;
}
.footer-text a:hover {
  color: #ddd;
}

/* Responsive Düzen */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }
  .about-text {
    flex: 1 1 100%;
    padding-right: 0;
    text-align: center;
  }
  .about-carousel {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 20px;
  }
  .product-cards {
    flex-direction: column;
    align-items: center;
  }
  .hero-left-center-text {
    font-size: 1.8rem;
    left: 10px;
    bottom: 15%;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    margin: 10px 0;
  }
  .footer-text {
    order: 3;
  }

  /* Mobilde PDF detaylarının ilgili ürün kartının üstüne çıkması için */
  .product-card {
    position: relative;
  }
  .pdf-details {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
}
