
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ============================================================
   RESET & ROOT
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0:        #f7f5f0;
  --bg-1:        #ffffff;
  --bg-2:        #f0ede6;
  --bg-3:        #e8e4db;

  --navy-deep:   #0f1f3d;
  --navy-mid:    #1e3a5f;
  --navy-light:  #2d5a8e;
  --navy-pale:   #dbeafe;

  --gold:        #b8860b;
  --gold-mid:    #d4a017;
  --gold-light:  #f0c040;
  --gold-pale:   #fef9e7;

  --text-primary:   #1a1a2e;
  --text-secondary: #5a5770;
  --text-muted:     #8a8799;

  --grad-brand:  linear-gradient(135deg, #0f1f3d 0%, #2d5a8e 100%);
  --grad-gold:   linear-gradient(135deg, #b8860b 0%, #f0c040 100%);
  --grad-card:   linear-gradient(145deg, #ffffff 0%, #f7f5f0 100%);

  --shadow-sm:   0 2px 12px rgba(15,31,61,0.06);
  --shadow-md:   0 8px 32px rgba(15,31,61,0.1);
  --shadow-xl:   0 24px 60px rgba(15,31,61,0.14), 0 4px 16px rgba(15,31,61,0.06);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', sans-serif;

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   ARKA PLAN
   ============================================================ */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -10%;
  width: 70vw;
  height: 70vh;
  background: radial-gradient(ellipse, rgba(45,90,142,0.1) 0%, rgba(219,234,254,0.05) 40%, transparent 70%);
  animation: bgDrift 14s ease-in-out infinite alternate;
}

.bg-pattern::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 65vw;
  height: 65vh;
  background: radial-gradient(ellipse, rgba(251,243,220,0.6) 0%, rgba(240,192,64,0.05) 40%, transparent 68%);
  animation: bgDrift 18s ease-in-out infinite alternate-reverse;
}

@keyframes bgDrift {
  from { opacity: 0.6; transform: scale(1) translate(0, 0); }
  to   { opacity: 1;   transform: scale(1.1) translate(1.5%, -1.5%); }
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(247,245,240,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s var(--ease);
}

.navbar.scrolled {
  background: rgba(247,245,240,0.95);
  border-bottom-color: rgba(45,90,142,0.1);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(15,31,61,0.07);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.logo:hover { transform: translateY(-1px); }
.logo img { width: 42px; height: 42px; object-fit: contain; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.nav-link:hover { color: var(--navy-mid); background: rgba(45,90,142,0.07); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15,31,61,0.2);
  transition: all 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,31,61,0.25); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-mid);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(247,245,240,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-bottom: 1px solid rgba(45,90,142,0.1);
    box-shadow: 0 8px 32px rgba(15,31,61,0.08);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: var(--grad-gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184,134,11,0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,134,11,0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--bg-3);
}
.btn-ghost:hover { background: var(--bg-2); border-color: rgba(45,90,142,0.2); }

.btn-navy {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15,31,61,0.2);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,31,61,0.3); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.docs-hero {
  padding: clamp(120px, 15vw, 160px) 0 clamp(60px, 8vw, 80px);
  text-align: center;
  position: relative;
}

.docs-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(45,90,142,0.08);
  border: 1px solid rgba(45,90,142,0.15);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.docs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.docs-hero-title em {
  font-style: italic;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* ============================================================
   TAB NAVİGASYON
   ============================================================ */
.docs-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 0 clamp(40px, 6vw, 60px);
  flex-wrap: wrap;
}

.docs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--r-xl);
  border: 2px solid var(--bg-3);
  background: var(--bg-1);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.docs-tab-btn:hover {
  border-color: rgba(45,90,142,0.3);
  color: var(--navy-mid);
  background: var(--bg-2);
}

.docs-tab-btn.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(15,31,61,0.2);
}

.docs-tab-btn .tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.docs-tab-btn:not(.active) .tab-icon {
  background: rgba(45,90,142,0.08);
  color: var(--navy-light);
}

/* ============================================================
   DÖKÜMAN LİSTESİ
   ============================================================ */
.docs-section {
  padding: 0 0 clamp(80px, 10vw, 120px);
}

.docs-panel {
  display: none;
}
.docs-panel.active {
  display: block;
}

.docs-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--bg-3);
}

.docs-panel-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.docs-panel-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
}

.docs-panel-header h2 em {
  font-style: italic;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-panel-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 16px;
}

@media (max-width: 600px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DÖKÜMAN KARTI
   ============================================================ */
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-1);
  border: 1px solid rgba(45,90,142,0.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(45,90,142,0.2);
}

.doc-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-card-body {
  flex: 1;
  min-width: 0;
}

.doc-card-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  background: rgba(45,90,142,0.08);
  color: var(--navy-light);
  border: 1px solid rgba(45,90,142,0.15);
}

.doc-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.doc-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-direction: column;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}

.doc-btn-view {
  background: var(--grad-gold);
  color: #fff;
  box-shadow: 0 3px 10px rgba(184,134,11,0.2);
}
.doc-btn-view:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(184,134,11,0.3); }

.doc-btn-download {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--bg-3);
}
.doc-btn-download:hover { background: var(--bg-2); border-color: rgba(45,90,142,0.2); }

/* Henüz eklenmemiş döküman stili */
.doc-card.doc-placeholder {
  opacity: 0.65;
  border-style: dashed;
}
.doc-card.doc-placeholder .doc-btn-view,
.doc-card.doc-placeholder .doc-btn-download {
  pointer-events: none;
  opacity: 0.5;
}

.doc-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   BOŞ DURUM
   ============================================================ */
.docs-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.docs-empty i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.docs-empty p { font-size: 0.95rem; }

/* ============================================================
   PDF MODAL
   ============================================================ */
.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15,31,61,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.pdf-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.pdf-modal {
  background: var(--bg-1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 960px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.35s var(--ease);
}

.pdf-modal-overlay.open .pdf-modal {
  transform: scale(1) translateY(0);
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--bg-3);
  flex-shrink: 0;
}

.pdf-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pdf-modal-title i { color: #dc2626; }

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-modal-close,
.pdf-modal-fullscreen {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.pdf-modal-close:hover { background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.3); color: #dc2626; }
.pdf-modal-fullscreen:hover { background: var(--bg-2); color: var(--navy-mid); }

.pdf-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pdf-modal-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.pdf-modal-placeholder i {
  font-size: 4rem;
  opacity: 0.3;
}

.pdf-modal-placeholder h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pdf-modal-placeholder p {
  font-size: 0.9rem;
  max-width: 320px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: clamp(48px, 7vw, 72px) 0 0;
  margin-top: clamp(60px, 8vw, 100px);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-container { grid-template-columns: 1fr; }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand .footer-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-description {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-column h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
