/* --- ESNAF TASARIM SİSTEMİ RENKLERİ --- */
:root {
  --bg-dark: #111113;
  --bg-card: #19191d;
  --usta-orange: #e67e22;
  --orange-hover: #d35400;
  --text-white: #ffffff;
  --text-muted: #a0a0ab;
  --border-soft: rgba(230, 126, 34, 0.1);
  --curve: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
}

.loader-content {
  text-align: center;
}
.loader-logo {
  font-size: 36px;
  font-weight: 800;
  color: var(--usta-orange);
  letter-spacing: 2px;
}
.loader-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
  letter-spacing: 1px;
}
.loader-bar {
  width: 200px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.05);
  margin: 20px auto 0 auto;
  position: relative;
  overflow: hidden;
}
.loader-progress {
  width: 100%;
  height: 100%;
  background-color: var(--usta-orange);
  position: absolute;
  left: -100%;
  animation: loadMove 1.2s infinite ease-in-out;
}
@keyframes loadMove {
  0% {
    left: -100%;
  }
  50% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}

/* --- NAVBAR --- */
#mainHeader {
  background-color: rgba(17, 17, 19, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 95px;
  border-bottom: 1px solid var(--border-soft);
  transition: all 0.4s var(--curve);
}

#mainHeader.scrolled {
  height: 75px;
  background-color: #111113;
  border-bottom-color: rgba(230, 126, 34, 0.3);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.logo-icon {
  font-size: 26px;
  color: var(--usta-orange);
  animation: spinSlow 25s linear infinite;
}
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text .main-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-white);
}
.logo-text .main-title span {
  color: var(--usta-orange);
}
.logo-text .sub-title {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 2px;
}

nav .nav-links {
  display: flex;
  gap: 25px;
}
nav .nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s ease;
  padding: 5px 0;
}
nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--usta-orange);
}

.header-right .phone-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  background-color: rgba(230, 126, 34, 0.08);
  padding: 10px 18px;
  border-left: 3px solid var(--usta-orange);
  transition: all 0.3s ease;
}
.header-right .phone-box:hover {
  background-color: rgba(230, 126, 34, 0.15);
}
.phone-box i {
  font-size: 18px;
  color: var(--usta-orange);
}
.phone-box div {
  display: flex;
  flex-direction: column;
}
.phone-box span {
  font-size: 10px;
  color: var(--text-muted);
}
.phone-box strong {
  font-size: 14px;
  letter-spacing: 0.5px;
}
.menu-trigger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* --- MOBİL OVERLAY --- */
.mobile-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: #111113;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.5s var(--curve);
}
.mobile-overlay.open {
  right: 0;
}
.close-overlay {
  position: absolute;
  top: 30px;
  right: 5%;
  font-size: 28px;
  cursor: pointer;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.mobile-links a {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}
.mobile-links a:hover {
  color: var(--usta-orange);
}

/* --- HERO SLIDER --- */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 95px);
  overflow: hidden;
}
.slide-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease-in-out,
    visibility 1s;
}
.slide-item.active {
  opacity: 1;
  visibility: visible;
}
.slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(17, 17, 19, 0.95) 0%,
    rgba(17, 17, 19, 0.4) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 8%;
  padding-right: 5%;
}
.badge {
  background-color: rgba(230, 126, 34, 0.15);
  border: 1px solid var(--usta-orange);
  color: var(--usta-orange);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  align-self: flex-start;
  margin-bottom: 20px;
}
.slide-overlay h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.slide-overlay h1 span {
  color: var(--usta-orange);
}
.slide-overlay p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 35px;
}
.btn-primary {
  background-color: var(--usta-orange);
  color: var(--text-white);
  padding: 15px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--orange-hover);
}
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 8%;
  display: flex;
  gap: 12px;
  z-index: 10;
}
.dot {
  width: 35px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.dot.active {
  background-color: var(--usta-orange);
}

/* --- HAKKIMIZDA --- */
.about-section {
  padding: 120px 8%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.section-tag {
  color: var(--usta-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.about-text h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 25px;
}
.about-text h2 span {
  color: var(--usta-orange);
}
.about-text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.features-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.feat-item i {
  color: var(--usta-orange);
}
.about-visual {
  position: relative;
  height: 450px;
  padding: 10px;
  border: 1px solid var(--border-soft);
}
.about-visual .image-box {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--usta-orange);
  color: var(--text-white);
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.experience-badge strong {
  font-size: 18px;
  font-weight: 800;
}
.experience-badge span {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

/* --- HİZMETLER (FLEXBOX GRID) --- */
.services-section {
  padding: 120px 8%;
  background-color: #0d0d0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title span {
  color: var(--usta-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 15px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.01);
  padding: 40px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  width: calc(33.333% - 17px);
  min-width: 290px;
}

.service-card i {
  font-size: 34px;
  color: var(--usta-orange);
  margin-bottom: 25px;
  display: inline-block;
}
.service-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 15px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 25px;
}
.read-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--usta-orange);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.service-card:hover {
  border-color: rgba(230, 126, 34, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* --- DETAY MODAL --- */
.job-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--curve);
  padding: 20px;
}
.job-modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--usta-orange);
  max-width: 600px;
  width: 100%;
  padding: 45px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s var(--curve);
}
.job-modal.open .modal-box {
  transform: scale(1);
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-box h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--usta-orange);
  margin-bottom: 15px;
}
.modal-box p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}
.modal-features h5 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.modal-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-features li {
  font-size: 14px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-features li::before {
  content: "➔";
  color: var(--usta-orange);
  font-size: 11px;
}
.modal-btn {
  width: 100%;
  background-color: var(--usta-orange);
  color: #fff;
  border: none;
  height: 50px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 35px;
  cursor: pointer;
}

/* --- FOTO GALERİ --- */
.gallery-section {
  padding: 120px 8%;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-card {
  height: 240px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(230, 126, 34, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-overlay i {
  font-size: 24px;
  color: #fff;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 6000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.lightbox img {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--usta-orange);
}
.close-lightbox {
  position: absolute;
  top: 30px;
  right: 5%;
  font-size: 32px;
  cursor: pointer;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  cursor: pointer;
}
.lightbox-arrow:hover {
  color: var(--usta-orange);
}
.prev {
  left: 40px;
}
.next {
  right: 40px;
}

/* --- İLETİŞİM --- */
.contact-section {
  padding: 100px 8%;
  background-color: #0d0d0f;
}
.contact-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 50px;
}
.contact-heading {
  text-align: center;
  margin-bottom: 40px;
}
.contact-heading h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}
.contact-heading p {
  color: var(--text-muted);
  font-size: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-item.full-row {
  grid-column: span 2;
}
.form-item label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-item input,
.form-item textarea {
  background-color: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  color: #fff;
  font-size: 14px;
}
.form-item input:focus,
.form-item textarea:focus {
  border-color: var(--usta-orange);
}
.err-text {
  color: #e74c3c;
  font-size: 11px;
  margin-top: 2px;
  display: none;
}
.form-submit {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}
.btn-submit {
  background-color: var(--usta-orange);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
}
.loader-spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(230, 126, 34, 0.2);
  border-top-color: var(--usta-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.success-box {
  display: none;
  text-align: center;
  padding: 30px 0;
}
.success-box i {
  font-size: 54px;
  color: var(--usta-orange);
  margin-bottom: 15px;
}

/* --- FOOTER --- */
footer {
  background-color: #060608;
  padding: 80px 8% 30px 8%;
  border-top: 1px solid var(--border-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
.footer-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--usta-orange);
  margin-bottom: 15px;
}
.footer-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}
.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(230, 126, 34, 0.05);
  border: 1px solid rgba(230, 126, 34, 0.2);
  padding: 6px 12px;
  font-size: 11px;
  color: var(--usta-orange);
  font-weight: 600;
  margin-top: 20px;
}
.footer-contact-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
}
.info-line {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 14px;
}
.info-line i {
  color: var(--usta-orange);
  margin-top: 3px;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 30px;
  color: #444;
  font-size: 12px;
}

/* --- ASLA KAYBOLMAYAN PREMIUM WHATSAPP BALONU --- */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 9998; /* Preloader altında kalması, modalların üstünde durması için */
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

/* --- ULTRA RESPONSIVE MOBİL ALTYAPI --- */
@media (max-width: 1024px) {
  .service-card {
    width: calc(50% - 13px);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #mainHeader {
    height: 85px;
  }
  nav,
  .header-right .phone-box {
    display: none;
  }
  .menu-trigger {
    display: block;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    width: 100% !important;
    min-width: 100%;
  }
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-item.full-row {
    grid-column: span 1;
  }
  .form-submit {
    grid-column: span 1;
    flex-direction: column;
    align-items: stretch;
  }
  .slide-overlay h1 {
    font-size: 34px;
  }
  .about-visual {
    height: 320px;
    margin-top: 20px;
  }
  .experience-badge {
    left: 15px;
    bottom: -15px;
    padding: 15px;
  }

  /* Mobilde parmağın rahat basması için buton boyutu */
  .whatsapp-float-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }
}
