/* ============================================
   DEVLET BAHÇELİ — RESMI WEB SİTESİ
   Aydınlık Tema & MHP Kurumsal Kimliği
   Simo Bilişim · devlet-bahceli.com
   ============================================ */

:root {
  --red:          #c0392b;       /* Canlı Bayrak Kırmızısı */
  --red-dark:     #9b1c1c;       /* Ağırbaşlı Koyu Kırmızı */
  --red-light:    #fdf2f2;       /* Hafif Kırmızı Arka Plan */
  --red-glow:     rgba(192, 57, 43, 0.1);
  --gold:         #b38f2d;       /* Ağırbaşlı Altın Sarısı */
  --gold-light:   #e5c158;
  --bg:           #f8f9fa;       /* Premium Açık Gri/Krem */
  --bg-pure:      #ffffff;       /* Saf Beyaz */
  --bg-card:      rgba(255, 255, 255, 0.85);
  --border:       rgba(0, 0, 0, 0.06);
  --border-red:   rgba(192, 57, 43, 0.15);
  --text:         #1f2937;       /* Koyu Kömür Gri */
  --text-light:   #4b5563;       /* Orta Gri */
  --text-muted:   #6b7280;       /* Açık Gri */
  --font-sans:    'Montserrat', sans-serif;
  --font-serif:   'Cinzel', serif;
  --font-quote:   'Playfair Display', serif;
  --radius:       16px;
  --shadow:       0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
  --shadow-lg:    0 20px 40px rgba(192, 57, 43, 0.06);
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-dark);
}

/* UTILITIES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}
.glass-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(192, 57, 43, 0.15);
}

.section {
  padding: 7rem 0;
}

.section-dark {
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  display: inline-block;
  background: var(--red-light);
  border: 1px solid var(--border-red);
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 10px rgba(192, 57, 43, 0.2));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: 0.02em;
}

.logo-title {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.6rem 1.1rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--red-dark);
  background: var(--red-light);
}

.nav-link.active {
  color: #fff;
  background: var(--red-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 2rem 5rem;
  background: linear-gradient(135deg, #fff 40%, var(--red-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 75% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 80%);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  color: var(--text);
}

.title-line.accent {
  color: var(--red-dark);
}

.hero-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-light);
  border-left: 4px solid var(--red);
  padding-left: 1.5rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: var(--red-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(155, 28, 28, 0.2);
}

.btn-primary:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 57, 43, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  border: 1.5px solid var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-pure);
}

.btn-outline:hover {
  background: var(--red-light);
  border-color: var(--red-dark);
  color: var(--red-dark);
  transform: translateY(-2px);
}

/* HERO IMAGE AREA */
.hero-image-wrap {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-45%);
  z-index: 2;
}

.hero-image-ring {
  position: absolute;
  inset: -15px;
  border-radius: 20px;
  border: 1px dashed var(--border-red);
  animation: rotate-box 40s linear infinite;
}

.ring2 {
  inset: -30px;
  border-color: rgba(179, 143, 45, 0.2);
  animation-duration: 60s;
  animation-direction: reverse;
}

@keyframes rotate-box {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-image-container {
  width: 380px;
  height: 480px;
  position: relative;
  background: var(--bg-pure);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border);
  overflow: hidden;
}

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

/* Fallback card shown when image is not present */
.hero-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #fef8f8 100%);
  padding: 2rem;
  text-align: center;
}

.hero-image-fallback svg {
  width: 140px;
  height: 140px;
}

.hero-image-fallback span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding: 5px;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ============ BİYOGRAFİ ============ */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.bio-card {
  padding: 2.5rem;
  background: var(--bg-pure);
}

.bio-icon {
  width: 60px;
  height: 60px;
  background: var(--red-light);
  border: 1px solid var(--border-red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.bio-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--red-dark);
}

.bio-card ul {
  list-style: none;
}

.bio-card ul li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.bio-card ul li::before {
  content: '•';
  position: absolute;
  left: 0.25rem;
  color: var(--gold);
  font-size: 1.2rem;
  top: 0.35rem;
}

.bio-card ul li:last-child {
  border-bottom: none;
}

/* TIMELINE */
.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--red-dark);
  letter-spacing: 0.02em;
}

.timeline-items {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--red) 0%, var(--gold) 100%);
}

.tl-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.tl-dot {
  position: absolute;
  left: -3rem;
  top: 0.85rem;
  width: 18px;
  height: 18px;
  background: var(--bg-pure);
  border: 4px solid var(--red-dark);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(155, 28, 28, 0.15);
}

.tl-year {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  min-width: 60px;
  padding-top: 0.6rem;
}

.tl-content {
  flex: 1;
  padding: 1.25rem 2rem;
  background: var(--bg-pure);
  font-size: 0.98rem;
  color: var(--text-light);
  border-left: 3px solid var(--gold);
}

/* ============ AÇIKLAMALAR ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  padding: 2.25rem;
  background: var(--bg-pure);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-red);
}

.news-date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--red-dark);
  line-height: 1.45;
}

.news-card p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex: 1;
}

.news-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-link:hover {
  color: var(--red);
  gap: 0.75rem;
}

/* ============ FAALİYETLER ============ */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2.25rem;
  background: var(--bg-pure);
}

.activity-item:hover {
  border-color: var(--border-red);
  transform: translateX(4px);
}

.activity-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  background: var(--red-light);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  text-align: center;
}

.act-day {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--red-dark);
  line-height: 1.1;
}

.act-month {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activity-info {
  flex: 1;
}

.activity-info h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--red-dark);
  margin-bottom: 0.35rem;
}

.activity-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-light);
}

.activity-badge.featured {
  background: var(--red-light);
  border-color: var(--border-red);
  color: var(--red-dark);
}

/* ============ GALERİ ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #000;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 0.85;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
  opacity: 0.95;
}

.gallery-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}

.gallery-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-info span {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: var(--transition);
}

.gallery-item:hover .gallery-info span {
  opacity: 1;
  gap: 0.75rem;
}

/* ============ İLETİŞİM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  padding: 1.5rem 2rem;
  background: var(--bg-pure);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

.social-btn {
  width: 46px;
  height: 46px;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* FORM */
.contact-form {
  padding: 3rem;
  background: var(--bg-pure);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red);
  background: var(--bg-pure);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--red-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(155, 28, 28, 0.15);
}

.btn-submit:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 57, 43, 0.25);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  margin-top: 1.5rem;
  padding: 1.1rem;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 8px;
  color: #27ae60;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-svg {
  width: 44px;
  height: 44px;
}

.footer-logo .logo-name {
  font-size: 1.05rem;
  text-align: left;
}

.footer-logo .logo-title {
  font-size: 0.65rem;
  text-align: left;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.footer-copy-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 46px;
  height: 46px;
  background: var(--red-dark);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(155, 28, 28, 0.2);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--red);
  transform: translateY(-2px);
}

/* FADE ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero-image-wrap {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    width: 100%;
  }
  .hero {
    flex-direction: column;
    padding-top: 8rem;
    min-height: auto;
  }
  .hero-content {
    max-width: 100%;
    margin-right: 0;
  }
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    font-size: 1.3rem;
  }
  .hamburger {
    display: flex;
    z-index: 1000;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .section {
    padding: 5rem 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .activity-item {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-title {
    font-size: clamp(2.5rem, 11vw, 3.75rem);
  }
  .hero-image-container {
    width: 290px;
    height: 370px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .btn-primary, .btn-outline {
    justify-content: center;
    width: 100%;
  }
}

/* ============ KİTAPLAR ============ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-pure);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-red);
  box-shadow: 0 12px 30px rgba(192, 57, 43, 0.08);
}

.book-cover-wrap {
  position: relative;
  width: 140px;
  height: 200px;
  margin-bottom: 1.25rem;
  perspective: 1000px;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.book-card:hover .book-cover {
  transform: rotateY(-10deg) scale(1.05);
  box-shadow: 12px 12px 25px rgba(0, 0, 0, 0.25);
}

/* Spine effect for a realistic book look */
.book-cover-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
  border-radius: 4px 0 0 4px;
}

.book-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--red-dark);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.8em; /* fixed height for alignment */
}

.book-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.btn-book-download {
  flex: 1;
  padding: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--red-dark);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-book-download:hover {
  background: var(--red);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.2);
}

/* ============ GALLERY MODAL & LIGHTBOX ============ */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.gmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.gmodal-wrapper {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 85%;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal.active .gmodal-wrapper {
  transform: translateY(0) scale(1);
}

.gmodal-header {
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gmodal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--red-dark);
  font-weight: 700;
}

.gmodal-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.gmodal-close:hover {
  color: var(--red);
  transform: rotate(90deg);
}

.gmodal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem;
}

.gmodal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.gmodal-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #000;
  transition: var(--transition);
}

.gmodal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gmodal-thumb:hover {
  border-color: var(--red-dark);
  transform: scale(1.03);
}

.gmodal-thumb:hover img {
  opacity: 1;
  transform: scale(1.06);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: scale(1.05);
}

.lightbox-btn.close {
  top: 2rem;
  right: 2rem;
}

.lightbox-btn.prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-btn.next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-btn.prev { left: 1rem; }
  .lightbox-btn.next { right: 1rem; }
  .lightbox-btn.close { top: 1rem; right: 1rem; }
}


