/* NAVBAR */
.stylish-navbar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  height: 90px;
  width: 100%;
  background: linear-gradient(90deg, #001145, #002966);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-sizing: border-box;
  gap: clamp(5px, 1vw, 15px);
  padding: 0 clamp(8px, 1.5vw, 15px) 0 0;
}

.nav-logo-area {
  flex-shrink: 0;
  width: clamp(140px, 18vw, 250px);
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.08);
  overflow: visible;
  position: relative;
  height: 90px;
  transition: all 0.3s ease;
}

.nav-logo-area img {
  height: clamp(120px, 15vw, 160px);
  max-height: none;
  position: relative;
  top: 5px;
  transition: height 0.3s ease, top 0.3s ease;
  object-fit: contain;
}

.nav-info-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  font-weight: 400;
  line-height: 1.2;
  user-select: none;
  min-width: clamp(220px, 20vw, 280px);
  max-width: clamp(260px, 25vw, 320px);
  gap: 2px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.contact-info .address {
  font-style: italic;
  opacity: 0.75;
  font-size: clamp(0.55rem, 1vw, 0.65rem);
}

.nav-links {
  display: flex;
  gap: clamp(4px, 0.8vw, 10px);
  list-style: none;
  padding: 0 20px;
  margin: 0;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #fff;
  padding: clamp(5px, 0.8vw, 8px) clamp(8px, 1.2vw, 16px);
  border-radius: 20px;
  text-decoration: none;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(28px, 3.5vw, 35px);
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

.nav-links a:hover {
  background: linear-gradient(135deg, #0055aa, #0077ee);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 119, 238, 0.7);
  transform: translateY(-3px) scale(1.08);
  color: #fff;
  opacity: 1;
}

.nav-links li a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 119, 238, 0.6);
}

.nav-phone-area {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 8px);
  background: linear-gradient(135deg, #003366, #0055aa);
  border-radius: clamp(12px, 1.8vw, 20px);
  box-shadow: 0 0 20px rgba(0, 85, 170, 0.8);
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: clamp(8px, 1.2vw, 12px) clamp(12px, 1.6vw, 18px);
  flex-shrink: 0;
  min-height: clamp(40px, 4.5vw, 50px);
  text-decoration: none;
}

.nav-phone-area:hover {
  background: linear-gradient(135deg, #0055aa, #0077ee);
  box-shadow: 0 0 25px rgba(0, 119, 238, 0.8);
  color: #cce4ff;
}

.phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.phone-title {
  font-size: clamp(0.5rem, 1vw, 0.65rem);
  font-weight: 500;
  color: #cce4ff;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0px;
}

.phone-number {
  font-size: clamp(0.75rem, 1.3vw, 0.9rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* SCROLL SHRINK */
.stylish-navbar.shrink {
  height: 60px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding-left: 0 !important;
  padding-right: 20px;
}

.stylish-navbar.shrink .nav-logo-area {
  height: 60px !important;
}

.stylish-navbar.shrink .nav-logo-area img {
  height: 110px !important;
  top: 0 !important;
}

.stylish-navbar.shrink .nav-links li a {
  min-height: clamp(30px, 4vw, 38px);
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  padding: clamp(6px, 1vw, 8px) clamp(12px, 1.8vw, 18px);
}

.stylish-navbar.shrink .nav-info-area {
  font-size: clamp(0.55rem, 1vw, 0.65rem);
  min-width: clamp(160px, 18vw, 200px);
  max-width: clamp(180px, 22vw, 220px);
}

.stylish-navbar.shrink .nav-phone-area {
  padding: clamp(6px, 1vw, 10px) clamp(10px, 1.4vw, 16px);
  min-height: clamp(35px, 4vw, 42px);
  border-radius: clamp(14px, 1.8vw, 20px);
  gap: clamp(4px, 0.8vw, 8px);
}

.stylish-navbar.shrink .phone-title {
  font-size: clamp(0.55rem, 1.1vw, 0.7rem);
}

.stylish-navbar.shrink .phone-number {
  font-size: clamp(0.8rem, 1.4vw, 1rem);
}

/* SCROLLING TICKER (navbar içinde kullanılıyor) */
.scrolling-text-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4px 0;
  line-height: 1.4;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 100%
  );
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 12s linear infinite;
  font-weight: 600;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.03em;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
  color: #fff;
  line-height: 1.4;
}
@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  aspect-ratio: 1 / 1;
  position: relative;
  justify-content: center;
  align-items: center;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 3px;
  position: absolute;
  margin: 0;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}
.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.mobile-menu-btn span:nth-child(3) {
  bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  transform: translatex(100%);
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #001145, #002966);
  z-index: 999;
  padding: clamp(15px, 3vw, 20px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  transition: top 0.3s ease;
}

/* Navbar shrink durumunda mobil menüyü yukarı taşı */
.stylish-navbar.shrink + .mobile-menu,
.mobile-menu.shrink-active {
  top: 58px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 10px;
}

.mobile-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: clamp(12px, 2.5vw, 15px) clamp(16px, 3vw, 20px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: clamp(6px, 1.2vw, 8px);
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

/* SAFARI/iOS UYUMLULUK DÜZELTMELERİ */
/* iOS Safari'de input focus sorunları */
@supports (-webkit-touch-callout: none) {
  .modal-content input,
  .modal-content select,
  .modal-content textarea {
    font-size: 16px !important; /* iOS zoom'u engeller */
    transform: translateZ(0); /* Hardware acceleration */
  }
  
  .nav-links a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
  
  .mobile-menu a {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  }
}

/* iOS Safari'de scroll sorunları */
@supports (-webkit-overflow-scrolling: touch) {
  .mobile-menu {
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-links {
    -webkit-overflow-scrolling: touch;
  }
}

/* Safari'de mask-image fallback */
@supports not (-webkit-mask-image: linear-gradient(to right, transparent, black)) {
  .scrolling-text-wrapper {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* BREAKPOINTS: NAVBAR/MOBILE MENÜ uyarlamaları */
@media (max-width: 1400px) {
  .nav-links {
    gap: clamp(6px, 1vw, 12px);
  }

  .nav-links li a {
    padding: clamp(6px, 0.8vw, 8px) clamp(16px, 1.8vw, 20px);
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  }
}
@media (max-width: 1200px) {
  .stylish-navbar {
    gap: clamp(8px, 1.5vw, 15px);
  }

  .nav-logo-area {
    width: clamp(180px, 18vw, 220px);
  }

  .nav-info-area {
    min-width: clamp(160px, 18vw, 190px);
    max-width: clamp(180px, 20vw, 210px);
  }

  .nav-links li a {
    padding: clamp(6px, 0.8vw, 8px) clamp(14px, 1.6vw, 16px);
  }
}
@media (max-width: 1200px) {
  .nav-info-area {
    display: none;
  }
}
@media (max-width: 992px) {
  .nav-info-area {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    order: 2;
  }
  .nav-phone-area {
    order: 3;
  }
}
@media (max-width: 480px) {
  .nav-phone-area {
    padding: clamp(6px, 1.2vw, 10px) clamp(12px, 1.8vw, 18px) !important;
    min-height: clamp(38px, 5vw, 45px) !important;
    border-radius: clamp(14px, 2.2vw, 20px) !important;
    gap: clamp(5px, 1.2vw, 10px) !important;
  }

  .phone-title {
    font-size: clamp(0.55rem, 1.2vw, 0.7rem) !important;
  }

  .phone-number {
    font-size: clamp(0.85rem, 1.7vw, 1.1rem) !important;
  }
}
