@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap");

:root {
  --primary-text-color: #333;
  --secondary-text-color: #666;
  --light-gray-bg: #f5f5f5;
  --dark-header-bg: #1a1a1a; /* Darker header top bar */
  --accent-cyan: #00aaff; /* Custom cyan color */
  --footer-bg: #222;
  --footer-text: #ccc;
  --border-color: #e5e7eb; /* Tailwind's default border color */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif; /* Changed font to Montserrat */
  line-height: 1.6;
  color: var(--primary-text-color);
  background-color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Header */
.header-top {
  background-color: var(--dark-header-bg);
  color: #e0e0e0;
  padding: 10px 0;
  font-size: 0.85em;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-contact span {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
}

.header-top-contact span svg {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}

.header-top-social {
  display: flex;
  align-items: center;
  position: relative;
}

.header-top-social .follow-text {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75em;
  letter-spacing: 1px;
  transform: rotate(90deg);
  transform-origin: right top;
  position: absolute;
  right: -20px;
  top: 0;
  white-space: nowrap;
  display: none; /* Hidden by default, shown on larger screens */
}

.header-top-social .social-icons {
  display: flex;
  gap: 15px;
}

.header-top-social .social-icons a {
  color: #e0e0e0;
  font-size: 1.1em;
  transition: color 0.3s;
}

.header-top-social .social-icons a:hover {
  color: #fff;
}

/* Default header-main styles for all pages */
.header-main {
  background-color: var(--dark-header-bg); /* Solid background for non-hero pages */
  padding: 20px 0;
  color: #fff; /* Text color for links */
  z-index: 10; /* Ensure it's above other content */
  position: relative; /* Default to relative positioning */
  width: 100%;
}

/* Specific styles for header on index.html (hero overlay) */
.header-hero-overlay .header-main {
  position: absolute; /* Overlay the hero section */
  top: 50px;
  left: 0;
  background-color: transparent; /* Transparent background for hero overlay */
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column; /* Stack logo text */
  align-items: flex-start;
  gap: 0px;
  font-size: 1.8em;
  font-weight: 800;
  color: #fff;
}

.logo img {
  height: 40px;
  filter: brightness(0) invert(1); /* Makes the logo white */
}

.logo span {
  font-size: 0.6em;
  font-weight: 400;
  margin-top: -5px; /* Adjust spacing */
}

.main-nav ul {
  display: flex;
  gap: 30px;
  font-weight: 600;
  text-transform: uppercase;
}

.main-nav a {
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-cyan);
}

.mobile-menu-button {
  display: none; /* Hidden by default, shown on mobile */
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8em;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Dark overlay for better text readability */
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

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

.section-heading {
  font-size: 3em;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary-text-color);
  text-transform: uppercase;
}

.section-subheading {
  font-size: 1.1em;
  text-align: center;
  color: var(--secondary-text-color);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section (for index.html) */
.about-section {
  background-color: var(--light-gray-bg);
}

.about-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 50px;
  justify-content: center;
}

.about-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.about-content h2 {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary-text-color);
}

.about-content h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--secondary-text-color);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--secondary-text-color);
  line-height: 1.8;
}

.about-contact-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-text-color);
  font-size: 1.1em;
  position: relative;
  padding-bottom: 5px;
}

.about-contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-text-color);
  transition: width 0.3s;
}

.about-contact-link:hover::after {
  width: 100px;
}

/* Products Section (for index.html) */
.products-section {
  background-color: #fff;
}

.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px; /* Ensure padding for grid items */
}

.product-category-item {
  border: 1px solid var(--border-color);
  padding: 30px;
  text-align: left;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-category-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-category-item small {
  display: block;
  color: #999;
  margin-bottom: 5px;
  font-size: 0.75em;
  text-transform: uppercase;
  font-weight: 600;
}

.product-category-item h3 {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-text-color);
  text-transform: uppercase;
}

.product-category-item p {
  font-size: 0.9em;
  color: var(--secondary-text-color);
}

.view-all-products {
  text-align: center;
  margin-top: 50px;
}

.view-all-products button {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--secondary-text-color);
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.view-all-products button:hover {
  background-color: var(--light-gray-bg);
  color: var(--primary-text-color);
  border-color: var(--primary-text-color);
}

/* News Section */
.news-section {
  background-color: var(--light-gray-bg);
}

.news-card {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.news-image-container {
  flex: 1;
  min-width: 300px;
}

.news-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--accent-cyan);
  color: #fff;
}

.news-content h3 {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.news-content p {
  color: #eee;
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 0.95em;
}

.news-read-more {
  display: inline-block;
  background-color: #fff;
  color: var(--accent-cyan);
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.news-read-more:hover {
  background-color: #f0f0f0;
  color: var(--accent-cyan);
}

/* Generic Content Section for other pages */
.generic-content-section {
  padding: 80px 0;
  text-align: center;
}

.generic-content-section h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary-text-color);
}

.generic-content-section p {
  font-size: 1.1em;
  color: var(--secondary-text-color);
  max-width: 800px;
  margin: 0 auto;
}

/* New styles for Hakkımızda page */
.page-banner {
  background-color: var(--accent-cyan); /* Changed to accent-cyan for consistency with image */
  padding: 100px 0; /* Adjust padding as needed */
  text-align: center;
  color: #fff; /* Changed text color to white for contrast */
}

.page-banner h1 {
  font-size: 3.5em;
  font-weight: 800;
  color: inherit; /* Inherit color from parent */
  text-transform: uppercase;
}

.about-page-content-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 50px;
  justify-content: center;
}

.about-image-placeholder {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: #e0e0e0; /* Placeholder grey background */
  min-height: 300px; /* Ensure it has height even if image fails */
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-content-text {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.about-content-text h2 {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary-text-color);
}

.about-content-text p {
  margin-bottom: 20px;
  color: var(--secondary-text-color);
  line-height: 1.8;
}

/* New styles for Technical Catalogs page */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.catalog-item {
  border: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.catalog-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.catalog-item img {
  width: 100%;
  max-width: 200px; /* Adjust as needed */
  height: auto;
  margin-bottom: 15px;
  border-radius: 4px;
}

.catalog-item h3 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-text-color);
  text-transform: uppercase;
}

.catalog-item a.download-link {
  display: inline-block;
  background-color: var(--accent-cyan);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.catalog-item a.download-link:hover {
  background-color: #0088cc;
}

/* New styles for Products page */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.product-card {
  border: 1px solid var(--border-color);
  padding: 20px;
  text-align: left;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px; /* Fixed height for product images */
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 4px;
}

.product-card h3 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-text-color);
  text-transform: uppercase;
}

.product-card p {
  font-size: 0.9em;
  color: var(--secondary-text-color);
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 15px;
}

.product-card .details-link {
  display: inline-block;
  background-color: var(--accent-cyan);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s;
  margin-top: auto; /* Push to bottom */
}

.product-card .details-link:hover {
  background-color: #0088cc;
}

/* Product Detail Page styles */
.product-detail-section {
  padding: 80px 0;
}

.product-detail-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
}

.product-detail-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-detail-content {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.product-detail-content h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary-text-color);
}

.product-detail-content p {
  font-size: 1.1em;
  color: var(--secondary-text-color);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Contact Page Specific Styles */
.contact-info-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
}

.contact-details {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
}

.contact-details h2 {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary-text-color);
}

.contact-details p {
  margin-bottom: 30px;
  color: var(--secondary-text-color);
  line-height: 1.8;
}

.contact-details .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: var(--secondary-text-color);
  font-size: 1.1em;
}

.contact-details .info-item svg {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-cyan); /* Icon color */
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: var(--light-gray-bg);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--primary-text-color);
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  color: var(--primary-text-color);
  background-color: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.2);
}

.contact-form .submit-button {
  display: block;
  width: 100%;
  background-color: var(--accent-cyan);
  color: #fff;
  padding: 15px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form .submit-button:hover {
  background-color: #0088cc;
}

.map-section {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
}

.map-section h2 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--primary-text-color);
  text-transform: uppercase;
}

.map-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-col {
  padding: 0 10px; /* Add padding for columns */
}

.footer-col .logo {
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-col .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-col .logo span {
  font-size: 0.7em;
  margin-top: 0;
}

.footer-col p {
  font-size: 0.9em;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.9em;
  color: var(--footer-text);
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-contact-info span {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.9em;
}

.footer-contact-info span svg {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social-icons a {
  color: var(--footer-text);
  font-size: 1.5em;
  transition: color 0.3s;
}

.footer-social-icons a:hover {
  color: #fff;
}

.footer-bottom {
  background-color: #1a1a1a;
  color: #888;
  text-align: center;
  padding: 20px 0;
  font-size: 0.8em;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom a {
  color: #888;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #fff;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366; /* WhatsApp green */
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (min-width: 769px) {
  .header-top-social .follow-text {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .header-top .container {
    flex-direction: column;
    gap: 10px;
  }

  /* Mobile header-main should always be relative and have a background */
  .header-main {
    position: relative;
    background-color: var(--dark-header-bg);
  }

  /* Override for mobile on hero page */
  .header-hero-overlay .header-main {
    position: relative; /* On mobile, even hero header should be relative */
    background-color: var(--dark-header-bg); /* Solid background on mobile */
  }

  .header-main .container {
    flex-direction: row; /* Keep logo and button on one line */
    justify-content: space-between;
  }

  .main-nav {
    display: none; /* Hide main nav by default on mobile */
    width: 100%;
    background-color: var(--dark-header-bg);
    position: absolute;
    top: 100%;
    left: 0;
    padding-bottom: 20px;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .main-nav a {
    color: #fff;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero {
    height: 400px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-heading {
    font-size: 2.2em;
  }

  .about-section .container,
  .about-page-content-section .container,
  .product-detail-section .container,
  .contact-info-section .container {
    /* Added contact-info-section */
    /* Apply to both about sections and product detail */
    flex-direction: column;
    gap: 30px;
  }
  .about-content,
  .about-content-text,
  .product-detail-content,
  .contact-details,
  .contact-form-container {
    /* Added contact-form-container */
    /* Apply to both about content texts and product detail */
    text-align: center;
  }
  .about-contact-link {
    justify-content: center;
  }

  .product-categories,
  .product-list,
  .catalog-grid {
    grid-template-columns: 1fr; /* Single column on small screens */
  }

  .news-card {
    flex-direction: column;
  }
  .news-image-container {
    min-height: 200px;
  }
  .news-content {
    padding: 30px;
  }

  .footer .container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-col .logo {
    align-items: center;
  }
  .footer-social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-top-contact span {
    margin-right: 10px;
  }
  .header-top-social a {
    margin-left: 10px;
  }
  .hero {
    height: 300px;
  }
  .section-heading {
    font-size: 1.8em;
  }
  .news-content {
    padding: 20px;
  }
  .contact-form-container {
    padding: 20px;
  }
  .contact-form-container h2 {
    font-size: 2em;
  }
  .map-section h2 {
    font-size: 2.2em;
  }
}
