/* ============================================
   Av. Zeynep Gök - Custom Styles & Animations
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1B2A4A;
  background: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(197, 165, 90, 0.3);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1B2A4A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.preloader-logo {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  color: #C5A55A;
  opacity: 0;
  animation: preloaderFade 1.5s ease forwards;
}

@keyframes preloaderFade {
  0% { opacity: 0; transform: translateY(20px); }
  50% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 32px rgba(27, 42, 74, 0.06);
}

.nav-link {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(27, 42, 74, 0.7);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #C5A55A;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #C5A55A;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
}

.mobile-menu.open {
  pointer-events: all;
}

.mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-menu.open .mobile-overlay {
  opacity: 1;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.open .mobile-drawer {
  transform: translateX(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1B2A4A;
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 42, 74, 0.05);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background: #F5F5F5;
  color: #C5A55A;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 42, 74, 0.82), rgba(27, 42, 74, 0.95));
}

.hero:hover .hero-bg {
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* --- Editorial Line --- */
.editorial-line {
  height: 1px;
  background: linear-gradient(to right, #C5A55A, transparent);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* --- Practice Area Cards --- */
.practice-card {
  background: #fff;
  padding: 3rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #C5A55A;
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-card:hover {
  background: #1B2A4A;
}

.practice-card:hover::before {
  transform: scaleX(1);
}

.practice-card .card-icon {
  color: #C5A55A;
  transition: transform 0.5s ease;
}

.practice-card:hover .card-icon {
  transform: scale(1.15);
}

.practice-card .card-title {
  color: #1B2A4A;
  transition: color 0.5s ease;
}

.practice-card:hover .card-title {
  color: #fff;
}

.practice-card .card-desc {
  color: rgba(27, 42, 74, 0.6);
  transition: color 0.5s ease;
}

.practice-card:hover .card-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Timeline --- */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(27, 42, 74, 0.1);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #C5A55A;
  box-shadow: 0 0 0 8px rgba(197, 165, 90, 0.1);
  transition: box-shadow 0.4s ease;
  z-index: 2;
}

.timeline-dot:hover {
  box-shadow: 0 0 0 14px rgba(197, 165, 90, 0.15);
}

/* Mobile timeline */
@media (max-width: 767px) {
  .timeline-line {
    left: 8px;
    transform: none;
  }
}

/* --- Why Us Cards --- */
.why-card {
  text-align: center;
  transition: transform 0.4s ease;
}

.why-card:hover {
  transform: translateY(-8px);
}

.why-icon-box {
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  transition: border-color 0.5s ease, background 0.5s ease;
}

.why-card:hover .why-icon-box {
  border-color: #C5A55A;
  background: rgba(197, 165, 90, 0.1);
}

/* --- Contact Form --- */
.contact-input {
  width: 100%;
  background: #F5F5F5;
  border: none;
  padding: 1.25rem;
  color: #1B2A4A;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.contact-input:focus {
  box-shadow: inset 0 -2px 0 #C5A55A;
}

.contact-input::placeholder {
  color: rgba(27, 42, 74, 0.3);
}

/* --- Portrait Image --- */
.portrait-wrapper {
  position: relative;
}

.portrait-wrapper::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 10rem;
  height: 10rem;
  border-left: 1px solid rgba(197, 165, 90, 0.4);
  border-bottom: 1px solid rgba(197, 165, 90, 0.4);
  z-index: -1;
  transition: all 0.6s ease;
}

.portrait-wrapper:hover::after {
  bottom: -2.5rem;
  left: -2.5rem;
}

.portrait-img {
  filter: grayscale(100%);
  transition: filter 1s ease;
}

.portrait-wrapper:hover .portrait-img {
  filter: grayscale(0%);
}

/* --- Counter Animation --- */
.counter-value {
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #1B2A4A;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-12px) translateX(-50%); }
  60% { transform: translateY(-6px) translateX(-50%); }
}

/* --- Button Styles --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #C5A55A;
  color: #fff;
  padding: 1.25rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(197, 165, 90, 0.3);
}

.btn-primary:hover {
  background: #fff;
  color: #1B2A4A;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.25rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
  width: 100%;
  background: #1B2A4A;
  color: #fff;
  padding: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #C5A55A;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  background: #1B2A4A;
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-nav-cta:hover {
  background: #C5A55A;
}

/* --- Material Icons --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* --- Floating WhatsApp (optional) --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: #1B2A4A;
  color: #C5A55A;
}

.toast.error {
  background: #ba1a1a;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .hero-title { font-size: 3rem !important; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.5rem !important; }

  .practice-card {
    padding: 2rem;
  }

  .portrait-wrapper::after {
    display: none;
  }

  /* --- Mobile Timeline Fix --- */
  .timeline-item .timeline-dot {
    position: relative;
    top: 2px;
    flex-shrink: 0;
  }

  /* --- Mobile Hero --- */
  .hero {
    min-height: 100svh;
  }

  .hero .max-w-7xl {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  /* --- Mobile About Section --- */
  .counter-value {
    font-size: 2rem;
  }

  /* --- Mobile Contact Info --- */
  #contact .bg-light-gray {
    padding: 2rem;
  }

  /* --- Mobile WhatsApp Button --- */
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  /* --- Mobile Footer --- */
  footer .grid {
    gap: 2.5rem;
  }

  /* --- Mobile Section Spacing --- */
  section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  /* --- Mobile Typography --- */
  .font-headline.text-4xl,
  h3.font-headline {
    font-size: 1.75rem !important;
  }
}
