/* === Global Styles === */
:root {
  --primary-color: #ff6f00; /* Ana renk (turuncu) */
  --background-color: #121212; /* Koyu arka plan */
  --text-color: #f0f0f0; /* Açık gri metin */
  --dark-grey: #1e1e1e; /* Navbar ve mobile-menu arka planı */
  --separator-grey: #2a2a2a; /* Ayırıcı çizgiler */
  --hover-color: #e65f00; /* Hover efekti */
  --success-green: #00cc66; /* Yeşil (estimate fiyatı) */
  --pagination-grey: #888; /* Swiper pagination */
  --form-grey: #1a1a1a; /* Form ve estimate arka planı */
  --light-grey: #ccc; /* Back-link metni */
  --light-hover-grey: #3a3a3a; /* Back-link hover */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--background-color); /* Dark background for modern look */
  color: var(--text-color); /* Light text for contrast */
}

/* === Navigation Styles === */
nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-grey); /* Dark nav background */
  z-index: 9999; /* Ensure nav stays above other elements */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
}

.nav-left, .nav-right {
  display: flex;
  gap: 24px; /* Spacing between nav links */
}

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Center logo horizontally */
}

.nav-logo img {
  height: 32px; /* Fixed logo height */
}

.navbar a {
  color: var(--text-color) !important;
  text-decoration: none !important;
  font-weight: bold;
  transition: color 0.3s ease; /* Smooth color transition on hover */
}

.navbar a:hover {
  color: var(--primary-color) !important; /* Orange hover effect */
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  line-height: 1;
  padding: 10px;
  text-align: right;
}

.mobile-menu {
  display: none !important; /* Hidden by default */
  flex-direction: column;
  background-color: var(--dark-grey) !important; /* Consistent dark background */
  width: 100%; /* Ekranın tamamını kapla */
  position: absolute;
  top: 100%; /* Navbar'ın hemen altından başlar */
  left: 50%; /* Logonun merkezi ile hizala */
  transform: translateX(-50%); /* Logonun ortasına kaydır */
  padding: 0 20px; /* Kenarlarda boşluk ekleyerek dengeli görünüm */
  z-index: 9999; /* Ensure it stays above other elements */
  font-family: Arial, sans-serif; /* Consistent font */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
  justify-content: center; /* Ortala linkleri yatayda */
  text-align: center; /* Ekstra hizalama için */
  margin-left: -16px;
}

.mobile-menu.show {
  display: flex !important; /* Ensure menu shows when active */
}

.mobile-menu a {
  display: block !important; /* Ensure block display */
  padding: 10px !important; /* Simetrik padding */
  border-top: 1px solid var(--separator-grey) !important; /* Separator */
  color: var(--text-color) !important; /* Light text color */
  text-decoration: none !important; /* No underline */
  font-weight: bold !important; /* Bold text */
  font-size: 1.1em !important; /* Readable size */
  line-height: 1.5 !important; /* Improved spacing */
  transition: all 0.3s ease !important; /* Smooth transitions for hover */
  text-align: center; /* Her linkin içindeki metni ortala */
  width: 100%; /* Tam genişlik kaplasın */
}

.mobile-menu a:hover {
  color: var(--primary-color) !important; /* Orange hover effect */
  background-color: var(--separator-grey) !important; /* Dark grey background on hover */
}

/* === Hero Section Styles === */
.hero {
  width: 100%;
  height: 300px; /* Default height for desktop */
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--background-color);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-color);
  position: relative;
}

.hero.data-recovery-hero { background-image: url('/images/data-recovery-hero.webp'); }
.hero.hardware-repair-hero { background-image: url('/images/hardware-repair-hero1.webp'); }
.hero.network-troubleshooting-hero { background-image: url('/images/network-troubleshooting-hero.webp'); }
.hero.performance-optimization-hero { background-image: url('/images/performance-optimizing-hero.webp'); }
.hero.software-installation-hero { background-image: url('/images/software-hero.webp'); }
.hero.virus-removal-hero { background-image: url('/images/virus-removal-hero.webp'); }
.hero.contact-hero { background-image: url('/images/contact-hero.webp'); }
.hero.cookies-hero { background-image: url('/images/cookies-hero.webp'); }
.hero.faq-hero { background-image: url('/images/faq-hero.webp'); }
.hero.privacy-hero { background-image: url('/images/privacy-hero3.webp'); }
.hero.terms-hero { background-image: url('/images/terms-hero.webp'); }

.hero h1 {
  font-size: 2.5em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Improve text readability */
  animation: fadeIn 1s ease-in; /* Subtle fade-in animation */
}

.hero p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 10px auto;
  animation: fadeIn 1s ease-in 0.3s; /* Delayed fade-in for paragraph */
}

/* Fade-in animation for hero text */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Content Section Styles === */
main {
  max-width: 800px; /* Daraltılmış maksimum genişlik */
  margin: 0 auto;
  padding: 0 20px;
}

section {
  margin-bottom: 40px;
  max-width: 100%; /* Section genişliğini main ile sınırla */
}

section h2 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: left; /* Başlıkları sola yasla */
}

section h3 {
  color: var(--text-color);
  font-size: 1.2em;
  margin-bottom: 10px;
}

section p, section li {
  line-height: 1.6;
  font-size: 1em;
  text-align: left; /* Yazıları sola yasla */
}

section ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  main {
    max-width: 100%; /* Mobilde tam genişlik */
    padding: 0 10px; /* Kenar boşluklarını azalt */
  }
  section h2 {
    text-align: left; /* Mobilde başlıkları sola yasla */
  }
  section p {
    text-align: left; /* Mobilde yazıları sola yasla */
  }
}

@media (min-width: 1025px) {
  main {
    max-width: 800px; /* Desktopta daraltılmış genişlik */
  }
  section h2 {
    text-align: left; /* Desktopta başlıkları sola yasla */
  }
  section p {
    text-align: left; /* Desktopta yazıları sola yasla */
  }
}

/* === Contact Container Styles (for contact.html) === */
.contact-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

/* === Map Styles (for contact.html) === */
.map-container {
  flex: 1;
  max-width: 350px;
}

.map-container iframe {
  width: 100%;
  height: 350px; /* Smaller map for desktop */
  border: 0;
  border-radius: 5px;
}

/* === Accordion Styles (for faq.html) === */
.accordion {
  margin-bottom: 20px;
}

.accordion-item {
  border-bottom: 1px solid var(--separator-grey);
}

.accordion-header {
  padding: 15px;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: var(--separator-grey); /* Dark grey on hover */
}

.accordion-header::after {
  content: '+';
  font-size: 1.2em;
  color: var(--primary-color);
}

.accordion-header.active::after {
  content: '−'; /* Minus sign when active */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
  line-height: 1.6;
  font-size: 1em;
  padding: 15px 0;
}

.accordion-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.accordion-content a:hover {
  text-decoration: underline;
}

/* === Estimate Container Styles (for thankyou.html) === */
main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.estimate-container {
  background-color: var(--form-grey);
  padding: 20px;
  border: 1px solid var(--separator-grey);
  border-radius: 10px;
  margin: 20px 0;
}

.estimate-container p {
  margin: 0;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-color);
}

.estimate-container #estimate {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--success-green);
  margin: 6px 0 12px 0;
}

.estimate-container .note {
  font-size: 0.9em;
  color: #aaa; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
}

/* === Form Styles (for quote.html) === */
form {
  max-width: 800px; /* Limit form width for better appearance */
  margin: 40px auto; /* Center form horizontally */
  background-color: var(--form-grey);
  padding: 20px; /* Reduced padding for smaller appearance */
  border: 1px solid var(--separator-grey);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 111, 0, 0.2); /* Bu sabit, değiştirmek istersen rgba'yı güncelle */
  display: flex;
  flex-direction: column;
  gap: 15px; /* Space between form elements */
}

form h1 {
  font-size: 1.8em; /* Slightly smaller heading */
  color: var(--primary-color);
  margin: 20px;
  text-align: center;
}

form label {
  font-weight: bold;
  margin-bottom: 5px;
  text-align: left; /* Align labels to the left */
}

form label.required::after {
  content: " *";
  color: red; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 8px; /* Reduced padding for inputs */
  border: 1px solid var(--separator-grey);
  border-radius: 5px;
  background-color: var(--dark-grey);
  color: var(--text-color);
  font-size: 0.9em; /* Smaller font size for inputs */
  box-sizing: border-box; /* Ensure padding doesn't increase width */
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

form textarea {
  resize: vertical;
  min-height: 80px; /* Reduced height for textarea */
}

form .file-feedback {
  font-size: 0.8em; /* Smaller feedback text */
  margin-top: 5px;
  color: var(--success-green);
}

form .file-feedback.error {
  color: red; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
}

form .submit-button {
  align-self: center; /* Center submit button */
  padding: 12px 24px; /* Slightly smaller button */
  border-radius: 5px;
  font-weight: bold;
  background-color: var(--primary-color);
  color: #121212; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  border: none;
  cursor: pointer;
  font-size: 0.9em;
}

form .submit-button:hover {
  background-color: var(--hover-color);
}

/* === Button Styles === */
.buttons {
  text-align: center;
  margin-top: 20px;
}

.quote-link {
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  background-color: var(--primary-color); /* Orange button */
  color: #121212; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  display: inline-block;
  margin: 10px;
}

.quote-link:hover {
  background-color: var(--hover-color); /* Darker orange on hover */
}

.back-link {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9em;
  background-color: var(--separator-grey); /* Dark grey button */
  color: var(--light-grey);
  display: inline-block;
  margin: 10px;
}

.back-link:hover {
  background-color: var(--light-hover-grey); /* Lighter grey on hover */
}

.submit-button {
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  background-color: var(--primary-color);
  color: #121212; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

.submit-button:hover {
  background-color: var(--hover-color);
}

/* === Services Section (for index.html) === */
#services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.service-item {
  background-color: var(--dark-grey);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.service-item img {
  max-width: 100%;
  width: 100%; /* Ensure images take full available width */
  height: auto; /* Maintain aspect ratio */
  border-radius: 6px;
  margin-bottom: 15px;
  display: block; /* Prevent inline spacing issues */
}

.services-title {
  text-align: center;
  margin-top: 40px;
  font-size: 2em;
  color: var(--primary-color);
}

.learn-more {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  margin-top: 10px;
}

/* === Footer Styles === */
footer {
  background-color: var(--dark-grey);
  text-align: center;
  padding: 20px;
  color: #888; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  margin-top: 40px;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* === Swiper Slider Styles (for index.html) === */
.swiper {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  border-radius: 0; /* No rounded corners on mobile */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slide-quote-link {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #121212; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.slide-quote-link:hover {
  background-color: var(--hover-color); /* Darker orange on hover */
}

.swiper-pagination-bullet {
  background: var(--pagination-grey); /* Gray for inactive bullets */
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color); /* Orange for active bullet */
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color); /* Orange navigation arrows */
}

/* === Cookie Banner Styles === */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.95); /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  color: #ccc; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  max-width: 480px;
  width: calc(100% - 40px);
}

#cookie-banner div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#cookie-banner span {
  flex: 1;
}

#cookie-accept {
  background: var(--primary-color);
  border: none;
  color: #121212; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 12px;
}

#cookie-close {
  background: none;
  border: none;
  color: #aaa; /* Bu sabit, değiştirmek istersen ekleyebiliriz */
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .nav-left, .nav-right {
    display: none !important; /* Hide desktop nav links */
  }
  .hamburger {
    display: block !important; /* Ensure hamburger icon is visible */
    padding: 10px;
    text-align: right;
  }
  .mobile-menu {
    display: none !important; /* Hidden by default */
  }
  .mobile-menu.show {
    display: flex !important; /* Ensure menu shows when active */
    flex-direction: column;
    width: 100%;
    background-color: var(--dark-grey) !important; /* Consistent dark background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important; /* Shadow for visibility */
  }
  .mobile-menu a {
    display: block !important; /* Ensure block display */
    padding: 10px 20px !important; /* Consistent padding */
    border-top: 1px solid var(--separator-grey) !important; /* Separator */
    color: var(--text-color) !important; /* Light text color */
    text-decoration: none !important; /* No underline */
    font-weight: bold !important; /* Bold text */
    font-size: 1.1em !important; /* Readable size */
    line-height: 1.5 !important; /* Improved spacing */
    transition: color 0.3s ease, background-color 0.3s ease !important;
  }
  .mobile-menu a:hover {
    color: var(--primary-color) !important; /* Orange hover effect */
    background-color: var(--separator-grey) !important; /* Dark grey background on hover */
  }
  .swiper {
    height: 300px; /* Smaller height for mobile */
  }
  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover slide on mobile */
    display: block;
  }
  #services {
    grid-template-columns: 1fr; /* Single column for mobile */
  }
  .hero {
    height: 300px; /* Mobile height for hero section */
  }
  .hero h1 {
    font-size: 1.5em;
  }
  .hero p {
    font-size: 0.9em;
    padding: 0 20px;
  }
  .contact-container {
    flex-direction: column; /* Stack vertically on mobile */
  }
  .map-container {
    max-width: 100%;
  }
  .map-container iframe {
    height: 250px; /* Smaller map for mobile */
  }
  /* Form styles for mobile */
  form {
    max-width: 100% !important; /* Full width on mobile */
    padding: 15px !important; /* Reduced padding for mobile */
    margin: 0 10px !important; /* Small margin for spacing */
  }
  form h1 {
    font-size: 1.5em !important; /* Smaller heading for mobile */
    margin-bottom: 10px !important;
  }
  form input,
  form select,
  form textarea {
    padding: 6px !important; /* Smaller padding for inputs */
    font-size: 0.8em !important; /* Smaller font size */
  }
  form textarea {
    min-height: 60px !important; /* Smaller textarea height */
  }
  form .file-feedback {
    font-size: 0.7em !important; /* Smaller feedback text */
  }
  form .submit-button {
    padding: 10px 20px !important; /* Smaller button */
    font-size: 0.8em !important;
  }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
  .swiper {
    height: 400px; /* Medium height for tablets */
  }
  #services {
    grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
  }
  .hero {
    height: 400px; /* Tablet height for hero section */
  }
  .hero h1 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1em;
  }
  /* Form styles for tablets */
  form {
    max-width: 700px !important; /* Slightly larger for tablets */
    padding: 20px !important;
  }
  form h1 {
    font-size: 1.6em !important;
  }
  form input,
  form select,
  form textarea {
    padding: 8px !important;
    font-size: 0.9em !important;
  }
  form textarea {
    min-height: 80px !important;
  }
  form .file-feedback {
    font-size: 0.8em !important;
  }
  form .submit-button {
    padding: 12px 24px !important;
    font-size: 0.9em !important;
  }
}

/* Desktop devices */
@media (min-width: 1025px) {
  .swiper {
    width: 80%;
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 8px; /* Rounded corners for desktop */
  }
  #services {
    grid-template-columns: repeat(3, 1fr); /* Three columns for desktop */
  }
}
