/* ============================================================
   İKİZLER GROUP — Özel Stiller
   ============================================================ */

/* Tipografi — Başlıklar: Playfair Display | Paragraf & gövde: Open Sans */
h1, h2, h3, .font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

p, li, a, button, nav, span, label, input, textarea {
  font-family: 'Open Sans', system-ui, sans-serif;
}

h4, h5, h6 {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 600;
}

/* Navbar dropdown animasyonu */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-group:hover .dropdown-menu,
.dropdown-group:focus-within .dropdown-menu,
.dropdown-group.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobil menü animasyonu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.is-open {
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
}

/* Logo — PNG kenar çizgilerini kırp (sol, üst, alt) */
.site-logo-link {
  display: block;
  line-height: 0;
  font-size: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.site-logo {
  height: 9.5rem;
  width: auto;
  display: block;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  -webkit-user-drag: none;
  /* Sağ kenar hariç: üst, sol, alt kenardaki çizgileri kırp */
  clip-path: inset(3px 0 3px 3px);
}

.site-logo-footer {
  height: 4.5rem;
  width: auto;
  display: block;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  clip-path: inset(2px 0 2px 2px);
}

/* Hero — tam ekran galeri swiper (video yerine) */
.hero-swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 1 !important;
  transform: none !important;
}

.hero-swiper .swiper-wrapper {
  height: 100%;
}

.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  z-index: 15;
}

.hero-swiper-controls {
  z-index: 25;
}

.hero-swiper-controls .swiper-button-next,
.hero-swiper-controls .swiper-button-prev {
  z-index: 30;
  pointer-events: auto;
}

.hero-swiper-controls .swiper-pagination {
  bottom: 2rem !important;
  z-index: 30;
  pointer-events: auto;
}

.hero-swiper .swiper-pagination {
  bottom: 2rem !important;
  z-index: 15;
}

@media (max-width: 767px) {
  .hero-swiper-controls .swiper-button-next,
  .hero-swiper-controls .swiper-button-prev {
    display: none;
  }

  .hero-swiper-controls .swiper-pagination,
  .hero-swiper .swiper-pagination {
    bottom: 1.25rem !important;
  }
}

@media (min-width: 768px) {
  .hero-swiper-controls .swiper-pagination,
  .hero-swiper .swiper-pagination {
    bottom: 2.5rem !important;
  }
}

/* Swiper — altın renkli oklar ve pagination */
.swiper-button-next,
.swiper-button-prev {
  color: #D4A853 !important;
  background: rgba(11, 37, 69, 0.7);
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.4);
  transition: background 0.3s, transform 0.3s;
  z-index: 20 !important;
  pointer-events: auto !important;
  cursor: pointer;
  padding: 0;
  appearance: none;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(212, 168, 83, 0.25);
  transform: scale(1.08);
}

/* Swiper nav modülü devre dışı kalsa bile oklar tıklanabilir kalsın */
.swiper-button-next,
.swiper-button-prev {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: rgba(245, 240, 232, 0.4) !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
  transition: background 0.3s, transform 0.3s;
}

.swiper-pagination-bullet-active {
  background: #D4A853 !important;
  transform: scale(1.3);
}

/* Galeri slider — kutu yok, tam genişlik fotoğraflar */
.gallery-swiper {
  width: 100%;
  padding-bottom: 3.5rem;
}

.gallery-swiper .swiper-slide {
  height: auto;
}

.gallery-slide {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 320px;
  max-height: 680px;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.gallery-swiper .swiper-slide-active .gallery-slide img {
  transform: scale(1.03);
}

.gallery-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(6, 26, 48, 0.85) 0%, transparent 100%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .gallery-slide {
    height: 65vh;
  }

  .gallery-slide-caption {
    padding: 3rem 2.5rem 2rem;
  }
}

/* Sayfa hero (iç sayfalar) */
.page-hero {
  padding-top: 7.5rem;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, #0B2545 0%, #13315C 50%, #061A30 100%);
}

@media (min-width: 640px) {
  .page-hero {
    padding-top: 9rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding-top: 11rem;
  }
}

/* Sektör sayfası hero — arka plan görseli */
.sector-hero {
  position: relative;
  padding-top: 7.5rem;
  padding-bottom: 3rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .sector-hero {
    padding-top: 9rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .sector-hero {
    padding-top: 11rem;
    padding-bottom: 5rem;
  }
}

.sector-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.92) 0%, rgba(6, 26, 48, 0.85) 100%);
  z-index: 0;
}

.sector-hero > .max-w-7xl {
  position: relative;
  z-index: 1;
}

/* Foto galeri grid */
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.photo-grid-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.photo-grid-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* Sektör sayfası galeri swiper */
.page-gallery-swiper {
  width: 100%;
  padding-bottom: 3.5rem;
}

.page-gallery-slide {
  height: 280px;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.page-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.page-gallery-swiper .swiper-slide-active .page-gallery-slide img {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .page-gallery-slide {
    height: 320px;
  }
}

/* Dikey (portre) galeri — yalnızca Eğitim sayfası */
.page-gallery-swiper--portrait .page-gallery-slide {
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  background: #061A30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-gallery-swiper--portrait .page-gallery-slide img {
  object-fit: contain;
  object-position: center;
}

.page-gallery-swiper--portrait .swiper-slide-active .page-gallery-slide img {
  transform: none;
}

@media (min-width: 768px) {
  .page-gallery-swiper--portrait .page-gallery-slide {
    max-height: 520px;
  }
}

@media (max-width: 767px) {
  .page-gallery-swiper--portrait .page-gallery-slide {
    max-height: 420px;
  }
}

/* Dikey video — sektör / Uranüs Madencilik */
.sector-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-items: center;
}

@media (min-width: 640px) {
  .sector-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.sector-video-card {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 83, 0.25);
  background: #061A30;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.sector-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 83, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.sector-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #061A30;
}

.sector-video-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.65);
}

@media (min-width: 640px) {
  .sector-video-grid--wide {
    max-width: 56rem;
  }

  .sector-video-grid--single {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

.sector-video-grid--single {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Ana sayfa hero — mobil tarayıcı adres çubuğu uyumu */
.hero-fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 767px) {
  .hero-content-wrap {
    padding-bottom: 3.5rem;
  }

  .hero-subtitle {
    letter-spacing: 0.12em;
    font-size: 0.6875rem;
  }

  .scroll-hint {
    bottom: 1rem;
  }

  .gallery-slide {
    min-height: 260px;
    height: 50vh;
  }

  .page-gallery-slide {
    height: 220px;
  }

  .stat-card p.text-sm {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  /* iOS form zoom engeli */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ============================================================
   KURUMSAL ANİMASYONLAR
   ============================================================ */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Navbar satırı — mobilde daha kompakt logo alanı */
.site-nav-row {
  min-height: 5.5rem;
}

@media (min-width: 1024px) {
  .site-nav-row {
    min-height: 9.5rem;
  }
}

@media (max-width: 1023px) {
  .site-logo {
    height: 5.5rem;
  }

  .site-logo-footer {
    height: 3.5rem;
  }
}

/* iPhone çentik / home bar güvenli alan */
header {
  padding-top: env(safe-area-inset-top, 0);
}

footer {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Footer — logo | hızlı linkler | (boş) | faaliyet alanları */
.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .site-footer-brand {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .site-footer-grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
  }

  .site-footer-brand {
    grid-column: auto;
  }

  .site-footer-links {
    grid-column: 2;
  }

  .site-footer-sectors {
    grid-column: 4;
  }
}

/* Dil seçici — TR / EN */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 168, 83, 0.25);
  background: rgba(6, 26, 48, 0.65);
}

.lang-switcher-btn {
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(245, 240, 232, 0.65);
  border-radius: 0.35rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switcher-btn:hover {
  color: #D4A853;
}

.lang-switcher-btn.is-active {
  color: #0B2545;
  background: #D4A853;
}

.nav-actions {
  flex-shrink: 0;
}

/* Hero — sayfa açılışında yumuşak giriş */
.hero-animate {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate-delay-1 { animation-delay: 0.15s; }
.hero-animate-delay-2 { animation-delay: 0.3s; }
.hero-animate-delay-3 { animation-delay: 0.45s; }
.hero-animate-delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll — bölüm giriş animasyonu */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-left {
  transform: translateX(-32px);
}

.reveal-left.revealed {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-right.revealed {
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar — yumuşak geçiş */
header {
  transition: box-shadow 0.4s ease, background-color 0.4s ease;
}

/* Buton & link hover — kurumsal, hafif */
a.bg-gold,
button.bg-gold,
.btn-gold {
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

a.bg-gold:hover,
button.bg-gold:hover,
.btn-gold:hover {
  transform: translateY(-2px);
}

/* İstatistik kartları */
.stat-card {
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 83, 0.45);
}

/* Sektör hero görseli */
.sector-hero-img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.sector-hero-img:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* Scroll ipucu — daha yumuşak */
.scroll-hint {
  animation: softBounce 2.5s ease-in-out infinite;
}

@keyframes softBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-animate,
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .scroll-hint { animation: none; }
}
