:root {
  --blue: #0b63a6;
  --dark: #072d4b;
  --accent: #ffffff;
  --muted: #a8bacd;
  --glass: rgba(255, 255, 255, 0.06);
  --max-width: 1200px;
  --shadow-glow: 0 0 10px var(--accent);
  --gold: rgba(244, 180, 0, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Montserrat", sans-serif;
  background-color: var(--dark);
  color: white;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(11, 99, 166, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll olunca arkası maviye döner */
.main-header.scrolled {
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Logo */
.logo-img {
  margin-left: 50%;
  height: 60px;
  width: auto;
}

/* Menü */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__items {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav__item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s;
  padding: 0;
}

.main-nav__text {
  margin-top: 1.5%;
}

.main-nav__item a:hover {
  color: var(--gold);
}

/* Başvur butonu */
.btn.btn-secondary {
  background: var(--dark);
  color: var(--gold);
  padding: 8px 16px;
  margin-right: 50px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.btn.btn-secondary:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Hamburger menü */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobil görünüm */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: rgba(7, 45, 75, 0.92);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .main-nav.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav__items {
    flex-direction: column;
    gap: 25px;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 2000;
  }

  /* Hamburger aktifken */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* ----------- Background & Video ----------- */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -15;
  overflow: hidden;
}
.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
  animation: slowZoom 40s ease-in-out infinite alternate;
  user-select: none;
  pointer-events: none;
}
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 45, 75, 0.7), rgba(0, 0, 0, 0.9));
  z-index: -10;
}
/* ----------- Main Content ----------- */

main {
  position: relative;
  z-index: 1;
  background: rgba(11, 99, 166, 0.3);
  backdrop-filter: blur(8px);
  padding-bottom: 200px;
  margin-top: 80px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px 80px 24px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.main-bottom-bg {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: rgba(11, 99, 166, 0.3);
  z-index: 0;
  pointer-events: none;
}

/* ----------- Hero Section ----------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  min-height: 85vh;
  gap: 40px;
  color: white;
}
.hero-title {
  font-family: "Merriweather", serif;
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1.05;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(244, 180, 0, 0.9);
}
.hero-sub {
  font-size: 1.3rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 24px;
}
.hero-cta {
  display: flex;
  gap: 18px;
}
.btn-primary {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #d8a700;
  box-shadow: 0 0 25px #d8a700;
  outline: none;
  transform: scale(1.05);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--accent);
  color: var(--dark);
  box-shadow: var(--shadow-glow);
  outline: none;
  transform: scale(1.05);
}

/* Hero Card */
.hero-card {
  background: rgba(255 255 255 / 0.9);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(11, 99, 166, 0.12);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.3;
  user-select: none;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s ease;
}
.hero-card:hover {
  transform: translateZ(40px) scale(1.03);
  box-shadow: 0 20px 40px rgba(244, 180, 0, 0.4);
}
.hero-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.5rem;
}
.hero-card p {
  margin: 6px 0;
  color: #666;
  font-weight: 500;
}

/* Scroll hint */
.scroll-hint {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scroll-hint .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ----------- Sections ----------- */
section {
  margin-top: 80px;
}
section h2 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}
section p.lead {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 760px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--blue));
  border-radius: 12px;
  box-shadow: 0 0 20px var(--accent);
}
.event {
  position: relative;
  margin: 30px 0;
  padding: 20px 30px;
  background: rgba(255 255 255 / 0.95);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(11, 99, 166, 0.15);
  color: var(--dark);
  transition: transform 0.3s ease;
  cursor: default;
}
.event:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 45px rgba(244, 180, 0, 0.5);
}
.event .date {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.event .desc {
  font-weight: 500;
  color: #555;
}
.event::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 28px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

.date {
  color: #d8a700 !important;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.4s ease;
}
.photo:hover {
  box-shadow: 0 12px 40px var(--accent);
}
.photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 16px;
}
.photo:hover img {
  transform: scale(1.12);
  filter: brightness(1.1);
}
.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 0 8px #000;
}

/* Join Section */
#join {
  background: linear-gradient(
    180deg,
    rgba(7, 45, 75, 0.2),
    rgba(7, 45, 75, 0.35)
  );
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(11, 99, 166, 0.3);
}
#join h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass);
  border: 1.5px solid rgba(244, 180, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}
.icon:hover {
  background-color: var(--accent);
  color: var(--dark);
  box-shadow: 0 0 20px var(--accent);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.active {
  display: flex;
  opacity: 1;
}
.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 14px;
  box-shadow: 0 0 40px var(--accent);
  transition: transform 0.4s ease;
  transform: scale(1);
}
.modal img:hover {
  transform: scale(1.05);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.form-button {
  margin-top: 3%;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 32px;
  }
  .hero-card {
    margin: 0 auto;
    max-width: 420px;
  }
  header {
    padding: 0 16px;
  }
  nav a {
    margin-left: 14px;
    font-size: 14px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 520px) {
  header {
    height: 56px;
    padding: 0 12px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

.teacher-students-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 100px;
}

/* Öğretmen */
.teacher-card {
  position: relative;
  width: 220px;
  cursor: pointer;
  width: 50%;
}
.teacher-card img {
  width: 100%;
  border-radius: 16px;
  display: block;
}
.teacher-name {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 0 0 16px 16px;
  transform: translateY(0);
  transition: opacity 0.4s ease;
}

.teacher-card .teacher-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

@media (max-width: 768px) {
  .teacher-students-section {
    flex-direction: column; /* yataydan dikeye */
    text-align: center; /* yazı ortalansın */
  }

  .teacher-img img,
  .teacher-students-section .students-container {
    width: 100%; /* tam genişlik */
  }
}

.teacher-card:hover .teacher-name {
  opacity: 1;
  visibility: visible;
}

/* Oklar */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(6, 40, 97, 0.7);
  border: none;
  font-size: 28px;
  color: white;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}
.arrow:hover {
  background: rgba(27, 48, 120, 0.9);
}
.arrow.left {
  left: 10px;
}
.arrow.right {
  right: 10px;
}

/* Kapatma butonu */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.modal.active {
  display: flex;
}
.modal-content video {
  max-width: 80%;
  border-radius: 12px;
  box-shadow: 0 0 30px var(--accent);
}

#videoModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center; /* tam ortalama */
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#videoModal.active {
  opacity: 1;
  visibility: visible;
}

#videoModal video {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}
