/* =========================================
   Demirci Uluslararası Taşımacılık - Custom Styles
   ========================================= */

html { scroll-behavior: smooth; }

/* ===== Hero Flag Stage (Wikipedia SVG) ===== */
.hero-flags-bg {
  background:
    radial-gradient(ellipse at top right, rgba(230,57,70,.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(15,52,96,.6) 0%, transparent 60%),
    linear-gradient(135deg, #06182C 0%, #0A2540 50%, #0F3460 100%);
}
.flag-stage {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  pointer-events: none;
  z-index: 1;
  perspective: 1200px;
}
.flag-pole {
  position: relative;
  width: 280px;
  height: 200px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
}
.flag-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
  animation: flagWaveSvg 4s ease-in-out infinite;
  transform-origin: left center;
}
.flag-pole-ru .flag-svg {
  transform-origin: right center;
  animation-delay: -.6s;
}
.flag-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dividerPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(230,57,70,.7));
}
@keyframes flagWaveSvg {
  0%, 100% { transform: rotateY(0deg) skewY(0deg) scaleX(1) translateX(0); }
  20%      { transform: rotateY(-5deg) skewY(-3deg) scaleX(.95) translateX(-3px); }
  40%      { transform: rotateY(2deg)  skewY(2deg)  scaleX(1.02) translateX(2px); }
  60%      { transform: rotateY(-3deg) skewY(-2deg) scaleX(.97) translateX(-2px); }
  80%      { transform: rotateY(4deg)  skewY(3deg)  scaleX(1.01) translateX(3px); }
}
@keyframes dividerPulse {
  0%, 100% { transform: scale(1); opacity: .95; }
  50%      { transform: scale(1.15); opacity: 1; }
}
@media (max-width: 1280px) {
  .flag-pole { width: 240px; height: 170px; }
  .flag-stage { gap: 1rem; right: 2%; }
}
@media (max-width: 1024px) {
  .flag-pole { width: 190px; height: 135px; }
  .flag-stage { gap: .75rem; right: 1%; }
}
@media (max-width: 768px) {
  .flag-stage {
    top: auto;
    bottom: 8%;
    right: 50%;
    transform: translateX(50%);
    opacity: .6;
  }
  .flag-pole { width: 130px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .flag-svg, .flag-divider { animation: none !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #0A2540;
  background-color: #ffffff;
}

.font-display { font-family: 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; }

/* ============ HERO OVERLAY ============ */
.hero-overlay {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.78) 0%, rgba(15, 52, 96, 0.6) 50%, rgba(10, 37, 64, 0.75) 100%);
}
.hero-bg {
  background-image:
    linear-gradient(135deg, rgba(10, 37, 64, 0.7) 0%, rgba(15, 52, 96, 0.5) 50%, rgba(10, 37, 64, 0.7) 100%),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .hero-bg { background-attachment: scroll; }
}
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

/* ============ PATTERN ============ */
.az-pattern {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ============ ANIMATIONS ============ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.5);
  animation: pulse-ring 2s ease-out infinite;
  z-index: -1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in-view { animation: fadeUp 0.8s ease-out forwards; }

/* ============ HOVER EFFECTS ============ */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(10, 37, 64, 0.2);
}

.underline-grow {
  position: relative;
}
.underline-grow::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: #E63946;
  transition: width 0.3s ease;
}
.underline-grow:hover::after { width: 100%; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #0F3460; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #0A2540; }

/* ============ FOCUS ============ */
*:focus-visible {
  outline: 2px solid #E63946;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* ============ FAQ ============ */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.active .faq-content { max-height: 500px; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* ============ ROUTE LINE ============ */
.route-line {
  background: linear-gradient(90deg, #0F3460 0%, #E63946 50%, #0F3460 100%);
  background-size: 200% 100%;
  animation: routeFlow 4s linear infinite;
}
@keyframes routeFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ============ GRADIENT TEXT ============ */
.gradient-text {
  background: linear-gradient(135deg, #0F3460 0%, #E63946 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ SHIMMER ============ */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* ============ PROGRESS DOTS ============ */
.swiper-pagination-bullet { background: rgba(255,255,255,0.5); }
.swiper-pagination-bullet-active { background: #E63946; }

/* ============ PRINT ============ */
@media print {
  .no-print { display: none !important; }
  nav, footer { display: none; }
}
