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

:root {
  --Soft-Blue: hsl(231, 69%, 60%);
  --Soft-Red: hsl(0, 94%, 66%);
  --Grayish-Blue: hsl(229, 8%, 60%);
  --Very-Dark-Blue: hsl(229, 31%, 21%);
  --box-shadow: 0.5rem 0.5rem 0 hsl(231, 69%, 60%);
  --text-shadow: 0.4rem 0.4rem 0 rgba(0, 0, 0, 0.2);
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: 0.2s ease-in-out;
  color: #000;
  text-decoration: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  /* GEÇİŞ AYARI: Tüm renk değişimleri aynı sürede (0.3s) olsun */
  transition: background-color 0.3s ease;
}

html.dark {
  background-color: #1a1a1a;
}

section {
  padding: 2rem 9%;
  scroll-margin-top: 10rem;
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--Soft-Blue);
  border-radius: 5px;
}

::selection {
  background-color: var(--Soft-Red);
  color: #fff;
}

/* --- HEADER --- */
.header {
  padding: 2rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0rem 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  /* GEÇİŞ AYARI: Header arkaplanı ve gölgesi yumuşak değişsin */
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    border-bottom 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container h1 {
  font-size: 2.5rem;
  color: var(--Very-Dark-Blue);
  font-weight: 700;
  transition: color 0.3s ease;
}

.header .logo img {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem;
  object-fit: contain;
  border: none !important;
  background: transparent;
  /* GEÇİŞ AYARI: Logo filtresi yumuşak değişsin */
  transition: filter 0.3s ease;
}

/* LOGO DARK MODE ÇÖZÜMÜ: Kutu Görünümünü Yok Etme */
body.dark .header .logo img {
  filter: invert(1);
  /* Sihirli Kod: Siyah arka planı (invert'ten gelen) şeffaf yapar, header ile bütünleşir */
  mix-blend-mode: screen;
}

.header .navbar a {
  margin-left: 2rem;
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--Very-Dark-Blue);
  transition: color 0.3s ease;
}

.header .navbar a:hover {
  color: var(--Soft-Red);
}

.header .navbar .btn {
  padding: 0.8rem 3rem;
  background-color: var(--Soft-Red);
  color: #fff !important;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.header .navbar .btn:hover {
  background-color: transparent;
  color: var(--Soft-Red) !important;
  border: 2px solid var(--Soft-Red);
}

#theme-btn {
  font-size: 2rem;
  margin-left: 2rem;
  cursor: pointer;
  color: var(--Very-Dark-Blue);
  background: #eee;
  padding: 0.8rem;
  border-radius: 50%;
  transition: all 0.3s ease; /* Geçiş eklendi */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
}

#theme-btn:hover {
  background: var(--Soft-Blue);
  color: #fff;
  transform: rotate(360deg);
}

#menu-btn {
  padding: 1rem 1rem;
  background-color: #eee;
  font-size: 2.5rem;
  color: var(--Soft-Blue);
  border-radius: 0.5rem;
  cursor: pointer;
  display: none;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

/* --- HOME SECTION --- */
.home {
  padding-top: 14rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8rem;
}

.home .image {
  flex: 1 1 45rem;
}

.home .image img {
  width: 100%;
  border-radius: 1rem;
}

.home .content {
  flex: 1 1 45rem;
}

.home .content h1 {
  font-size: 4.5rem;
  color: var(--Very-Dark-Blue);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.home .content p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--Grayish-Blue);
  margin-bottom: 3rem;
  text-transform: none;
  transition: color 0.3s ease;
}

.home .content .home-btn {
  padding: 1.3rem 3rem;
  background-color: #fff;
  color: #000;
  font-size: 1.6rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  border: 2px solid var(--Soft-Blue);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.home .content .home-btn:hover {
  background-color: var(--Soft-Blue);
  box-shadow: none;
  color: #fff;
}

/* --- NEDEN BİZ --- */
.why-us {
  background-color: #fff;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.why-us .heading-title {
  font-size: 3.5rem;
  color: var(--Very-Dark-Blue);
  margin-bottom: 4rem;
  text-transform: none;
  transition: color 0.3s ease;
}

.why-us .box-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.why-us .box-container .box {
  padding: 3rem 2rem;
  background: #f9f9f9;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.why-us .box-container .box i {
  font-size: 5rem;
  color: var(--Soft-Blue);
  margin-bottom: 2rem;
  display: inline-block;
}

.why-us .box-container .box h3 {
  font-size: 2.2rem;
  color: var(--Very-Dark-Blue);
  margin-bottom: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.why-us .box-container .box p {
  font-size: 1.6rem;
  color: #333;
  line-height: 1.8;
  text-transform: none;
  transition: color 0.3s ease;
}

.why-us .box-container .box:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  background: #fff;
}

/* --- MARKALAR --- */
.brands .heading {
  text-align: center;
  margin-bottom: 3rem;
}
.brands .heading h1 {
  font-size: 3rem;
  color: var(--Very-Dark-Blue);
  transition: color 0.3s ease;
}
.brands .brand-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  align-items: center;
}
.brands .brand-box {
  text-align: center;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: #777;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9f9f9;
}
.brands .brand-box:hover {
  background: var(--Soft-Blue);
  color: #fff;
  transform: scale(1.05);
}

/* --- FEATURES --- */
.heading {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 3rem;
}

.heading h1 {
  font-size: 3.5rem;
  color: var(--Very-Dark-Blue);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.heading p {
  font-size: 1.6rem;
  color: var(--Grayish-Blue);
  transition: color 0.3s ease;
}

.features .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.features .row .image {
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.features .row .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.features .row .image:hover img {
  transform: scale(1.1);
}

/* --- FAQ --- */
.faq {
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.faq .row {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.faq .row .image {
  flex: 0.8 1 30rem;
  max-width: 450px;
  margin: auto;
}

.faq .row .image img {
  width: 100%;
  object-fit: contain;
}

.faq .row .accordion-container {
  flex: 2 1 50rem;
}

.faq .row .accordion-container .accordion {
  margin-bottom: 1.5rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq .row .accordion-container .accordion:hover {
  border: 2px solid #54a0ff !important;
  box-shadow: 0 1rem 2rem rgba(84, 160, 255, 0.3) !important;
  transform: translateY(-0.5rem);
}

.faq .row .accordion-container .accordion .accordion-header {
  background-color: var(--Soft-Blue);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq .row .accordion-container .accordion .accordion-header span {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 500;
  text-transform: none;
}

.faq .row .accordion-container .accordion .accordion-header i {
  font-size: 1.6rem;
  color: #fff;
  transition: transform 0.3s;
}

.faq .row .accordion-container .accordion .accordion-header.active i {
  transform: rotate(180deg);
}

.faq .row .accordion-container .accordion .accordion-body {
  padding: 0;
  background-color: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, background-color 0.3s ease;
}

.faq .row .accordion-container .accordion .accordion-body p {
  padding: 1.5rem;
  font-size: 1.5rem;
  color: var(--Grayish-Blue);
  line-height: 1.6;
  text-transform: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* --- RANDEVU FORMU --- */
.appointment {
  background: #f9f9f9;
  transition: background-color 0.3s ease;
}
.appointment form {
  max-width: 90rem;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.appointment form .inputBox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.appointment form .inputBox input,
.appointment form .inputBox select {
  width: 49%;
  padding: 1rem;
  font-size: 1.6rem;
  color: #333;
  text-transform: none;
  margin: 1rem 0;
  border: 0.1rem solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: #f9f9f9;
  transition: all 0.3s ease;
}
.appointment form textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.6rem;
  color: #333;
  text-transform: none;
  margin: 1rem 0;
  border: 0.1rem solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: #f9f9f9;
  resize: none;
  height: 15rem;
  transition: all 0.3s ease;
}
.appointment form .btn {
  margin-top: 1rem;
  width: 100%;
  background: #25d366; /* WhatsApp Yeşili */
  color: #fff;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: all 0.3s ease;
}
.appointment form .btn:hover {
  background: #128c7e;
}

/* --- HARİTA --- */
.map .map-container {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.map .map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
}

@media (max-width: 768px) {
  .map .map-container iframe {
    height: 300px;
  }
}

/* --- HİZMET BÖLGELERİ --- */
.service-areas {
  background: #f9f9f9;
  text-align: center;
  transition: background-color 0.3s ease;
}
.service-areas .heading {
  margin-bottom: 2rem;
}
.service-areas .area-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: auto;
}
.service-areas .area-tags span {
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1.4rem;
  color: var(--Very-Dark-Blue);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: default;
  transition: all 0.3s ease;
}
.service-areas .area-tags span:hover {
  background: var(--Soft-Blue);
  color: #fff;
  transform: translateY(-3px);
}

/* --- FOOTER --- */
.footer {
  background-color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.footer .box-container .box h3 {
  font-size: 2.2rem;
  color: var(--Very-Dark-Blue);
  padding: 1rem 0;
  transition: color 0.3s ease;
}

.footer .box-container .box a {
  display: block;
  font-size: 1.5rem;
  color: var(--Grayish-Blue);
  padding: 0.8rem 0;
  transition: color 0.3s ease;
}

.footer .box-container .box a i {
  padding-right: 0.5rem;
  color: var(--Soft-Blue);
}

.footer .box-container .box a:hover {
  color: var(--Soft-Red);
  padding-left: 1rem;
}

.footer .credit {
  padding: 2.5rem 1rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 1.8rem;
  color: var(--Very-Dark-Blue);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer .credit span {
  color: var(--Soft-Red);
  font-weight: bold;
}

/* --- MODAL --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
  display: block;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoom 0.3s ease-out;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close:hover {
  color: #bbb;
}

@keyframes zoom {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* --- RESPONSIVE (TABLET & MOBİL) --- */

@media (max-width: 1320px) {
  .faq .row {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .faq .row .image {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  .faq .row .image img {
    max-width: 400px;
  }
  .faq .row .accordion-container {
    flex: 1 1 100%;
  }
}

@media (max-width: 1050px) {
  html {
    font-size: 55%;
  }

  /* Mobilde kenar boşluğunu azaltarak alan kazan */
  section {
    padding: 2rem;
  }

  .header {
    padding: 2rem;
  }

  #menu-btn {
    display: inline-block;
    transition: 0.3s;
  }
  #menu-btn.fa-times {
    transform: rotate(180deg);
  }
  #theme-btn {
    margin-left: auto;
  }

  /* MOBİL MENÜ */
  .header .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 0.3s linear;
    width: 100%;
    border-radius: 0;
    transform: none;
    border: none;
    border-top: 1px solid #eee;
  }
  .header .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .header .navbar a {
    display: block;
    margin: 2rem;
    padding: 1.5rem;
    font-size: 2rem;
    text-align: center;
    background: #f9f9f9;
    border-radius: 0.5rem;
    color: #000;
  }
  .header .navbar a:hover {
    background-color: var(--Soft-Blue);
    color: #fff;
    padding-left: 0;
  }

  .header .navbar .btn {
    display: block;
    background-color: var(--Soft-Red);
    color: white !important;
    margin-top: 1rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .header .navbar .btn:hover {
    background-color: #333;
    color: #fff !important;
  }

  .why-us .box-container {
    grid-template-columns: 1fr;
  }

  .home .content {
    margin-bottom: 8rem;
  }

  .appointment form .inputBox input,
  .appointment form .inputBox select {
    width: 100%;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  .home .content h1 {
    font-size: 3.5rem;
  }
}

/* =========================================
   DARK MODE
   ========================================= */

body.dark {
  background-color: #1a1a1a;
  color: #fff;
}

body.dark section,
body.dark .footer,
body.dark .features,
body.dark .home,
body.dark .faq,
body.dark .why-us,
body.dark .map,
body.dark .service-areas,
body.dark .brands,
body.dark .appointment {
  background-color: #1a1a1a !important;
}

body.dark .box,
body.dark .image,
body.dark .why-us .box-container .box,
body.dark .brands .brand-box,
body.dark .appointment form {
  background-color: #222 !important;
  border: 1px solid #333;
  box-shadow: none;
  color: #fff !important;
}

body.dark .appointment form .inputBox input,
body.dark .appointment form .inputBox select,
body.dark .appointment form textarea {
  background-color: #333;
  border-color: #444;
  color: #fff;
}

body.dark .service-areas .area-tags span {
  background-color: #222 !important;
  border: 1px solid #333;
  color: #eee !important;
}

body.dark .footer .box,
body.dark .faq .row .image {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.dark .accordion {
  background-color: #222 !important;
  border-color: #333 !important;
}
body.dark .accordion-body {
  background-color: #222 !important;
  border-top: 1px solid #333 !important;
}
body.dark .accordion-body p {
  color: #ccc !important;
  border-top-color: #333 !important;
}

/* HEADER */
body.dark .header {
  /* Arka planı sayfa geneliyle aynı yaparak bütünlük sağladık */
  background-color: #222;
  box-shadow: none !important;
  border-bottom: 1px solid #333 !important;
  border-top: none !important;
}

body.dark .logo-container h1 {
  color: #fff;
}

body.dark .header .navbar a {
  color: #fff;
  background-color: transparent;
  border: none !important;
}

body.dark .header .navbar {
  background-color: #222 !important;
  border-top: none !important;
}

@media (max-width: 1050px) {
  body.dark .header .navbar a {
    background-color: #333 !important;
    color: #fff !important;
    border: none !important;
  }
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark p,
body.dark span,
body.dark i,
body.dark .footer .credit {
  color: #eee !important;
}

body.dark .footer .credit {
  border-top-color: #333 !important;
}

body.dark .navbar a:hover,
body.dark .footer a:hover,
body.dark .box a:hover {
  color: #d2691e !important;
  background-color: transparent;
}

body.dark .header .navbar .btn {
  border: 2px solid transparent !important;
  background-color: #fff !important;
  color: #000 !important;
}
body.dark .header .navbar .btn:hover {
  background-color: #d2691e !important;
  color: #fff !important;
}

body.dark .home-btn {
  background-color: #fff !important;
  color: #000 !important;
  box-shadow: none;
}
body.dark .home-btn:hover {
  background-color: #d2691e !important;
  color: #fff !important;
}

body.dark #theme-btn,
body.dark #menu-btn {
  background-color: #333;
  color: #fff;
}

body.dark .map .map-container {
  border-color: #333;
  box-shadow: none;
}

/* WHATSAPP */
.float-wa {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.float-wa:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.my-float {
  margin-top: 2px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .float-wa {
    width: 50px;
    height: 50px;
    bottom: 25px;
    right: 25px;
    font-size: 25px;
  }
}
