/* ========== GENEL AYARLAR ========== */
:root {
  --bg: #ffffff;
  --fg: #020817;
  --muted: #6b7280;
  --primary: #7c3aed;
  --yellow: #FFD700;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 16px;
}

.section {
  margin: 6rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ========== TYPOGRAPHY ========== */
h1 {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.05;
  font-family: Poppins, sans-serif;
  max-width: 475px;
}

h2 {
  font-size: 36px;
  font-weight: bold;
  font-family: Poppins, sans-serif;
  margin-bottom: 2.5rem;
  text-align: center;
}

h3,
h4 {
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.handwriting {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.3em;
  color: var(--primary);
  line-height: .8;
}

.h-b2:hover .handwriting {
  color: var(--yellow);
}

/* ========== COMPONENTS ========== */
.card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.sign-up-card {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.button-primary {
  display: inline-block;
  background: linear-gradient(to bottom, #5b1b9a, #4423ba);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
}

.button-primary:hover {
  background: linear-gradient(to bottom, #885EBA, #B369FF);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.button-primary:active {
  background: linear-gradient(to bottom, #774499, #9966CC);
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: #000;
}

.btn-outline:hover {
  background: linear-gradient(to bottom, #5b1b9a, #4423ba);
  color: #fff;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  border-radius: 20%;
  margin-bottom: 4px;
  width: 2.5rem;
  height: 2.5rem;
}

/* Icon Gradients */
.gradient-yellow-blue {
  background: linear-gradient(135deg, var(--yellow), #1E90FF);
}

.gradient-purple-blue {
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
}

.gradient-blue-purple {
  background: linear-gradient(135deg, #3B82F6, #7C3AED);
}

/* ========== HEADER & NAV - İYİLEŞTİRİLMİŞ ========== */
/* Bu kısmı eski header stillerinizin yerine koyun */

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: var(--fg);
  z-index: 1001;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 5px;
}

/* Hamburger Icon - Animasyonlu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  width: 32px;
  height: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger i {
  display: none;
}

/* Hamburger çizgileri */
.hamburger::before,
.hamburger::after,
.hamburger span {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--fg);
  border-radius: 3px;
  transition: all 0.3s ease;
  left: 0;
}

.hamburger::before {
  top: 0;
}

.hamburger span {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::after {
  bottom: 0;
}

/* Hamburger açık durumda X animasyonu */
.hamburger.active::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Navigation - Desktop */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  width: 100%;
}

/* Başvur ve Deneme butonu özel stil */
.nav a[href*="forms.gle"],
.nav a[href="#trial"] {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.nav a[href*="forms.gle"]:hover,
.nav a[href="#trial"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.nav a[href*="forms.gle"]::after,
.nav a[href="#trial"]::after {
  display: none;
}

/* Overlay - Menü açıkken arka plan */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ========== MOBİL RESPONSIVE ========== */
@media (max-width: 958px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    backdrop-filter: blur(20px);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav li {
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 0.4s ease forwards;
  }

  .nav.active li:nth-child(1) {
    animation-delay: 0.1s;
  }

  .nav.active li:nth-child(2) {
    animation-delay: 0.15s;
  }

  .nav.active li:nth-child(3) {
    animation-delay: 0.2s;
  }

  .nav.active li:nth-child(4) {
    animation-delay: 0.25s;
  }

  .nav.active li:nth-child(5) {
    animation-delay: 0.3s;
  }

  .nav.active li:nth-child(6) {
    animation-delay: 0.35s;
  }

  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  .nav a:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateX(8px);
    border-color: rgba(124, 58, 237, 0.2);
  }

  .nav a::after {
    display: none;
  }

  .nav a[href*="forms.gle"],
  .nav a[href="#trial"] {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    font-weight: 600;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  }

  .nav a[href*="forms.gle"]:hover,
  .nav a[href="#trial"]:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
  }
}

@media (max-width: 480px) {
  .nav {
    width: 85%;
  }

  .nav-box {
    padding: 1rem 1rem;
  }
}

/* ========== PROGRAMS SECTION ========== */
.programs-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--fg);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.primary-number {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.3rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.program-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.program-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(124, 58, 237, 0.1);
}

.program-card-header h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.program-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.program-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(59, 130, 246, 0.05));
  border-radius: 10px;
  transition: all 0.2s ease;
}

.program-features li:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.1));
  transform: translateX(4px);
}

.program-features li i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.program-features li span {
  font-size: 0.95rem;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.4;
}

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

  .programs-subtitle {
    font-size: 1rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
  }

  .program-card {
    padding: 20px;
  }

  .program-card-header h4 {
    font-size: 1.2rem;
  }
}

/* ========== HERO ========== */
.hero .grid-2 {
  align-items: center;
}

.hero img {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-title-highlight {
  color: var(--primary);
  border-bottom: 4px solid rgba(124, 58, 237, 0.3);
  padding-bottom: 4px;
}

/* ========== SECTIONS ========== */
#about .badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

#about .badges .card {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

#about i,
#system i {
  font-size: 24px;
  color: var(--primary);
}

.testimonials-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonials-carousel .card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 280px;
  scroll-snap-align: start;
}

.arrow {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: absolute;
}

.arrow:hover {
  background: #5b1b9a;
}

.left-arrow {
  left: -20px;
}

.right-arrow {
  right: -20px;
}

/* ========== TEACHERS SECTION ========== */
.teachers-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.teachers-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
}

.teachers-carousel::-webkit-scrollbar {
  display: none;
}

.teacher-card {
  flex: 0 0 calc(50% - 10px);
  min-width: 400px;
  min-height: 220px;
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.teacher-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}

.teacher-photo img {
  width: 140px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.teacher-photo h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0;
  letter-spacing: 0.5px;
}

.teacher-info {
  flex: 1;
  display: flex;
  align-items: center;
}

.teacher-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teacher-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.4;
}

.teacher-info ul li i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.teacher-info ul li strong {
  white-space: nowrap;
  flex-shrink: 0;
}

.teachers-left-arrow {
  left: -20px;
}

.teachers-right-arrow {
  right: -20px;
}

@media (max-width: 768px) {
  .teacher-card {
    flex-direction: column;
    min-width: 280px;
    min-height: auto;
    text-align: center;
  }

  .teacher-photo {
    min-width: auto;
  }

  .teacher-info ul li {
    text-align: left;
    flex-wrap: wrap;
    gap: 4px;
  }

  .teacher-info ul li strong {
    color: var(--primary);
    font-size: 0.85rem;
  }

  .teachers-left-arrow,
  .teachers-right-arrow {
    display: none;
  }
}

.contact-gradient {
  background: linear-gradient(90deg, #6d28d9, #4f46e5);
  color: white;
  padding: 1.5rem;
}

.contact-yellow {
  background-color: #f8c83a;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* ========== FOOTER ========== */
footer {
  background: #f9fafb;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #about .badges {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-carousel .card {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .trial-title .handwriting {
    display: block;
    margin-bottom: 8px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 2rem;
    transition: right 0.3s ease;
  }

  .nav.active {
    right: 0;
    display: flex;
    padding-top: 100px;
  }

  #about .badges {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-carousel .card {
    flex: 0 0 85%;
  }

  .button-primary {
    padding: 10px 20px;
    font-size: 14px;
  }

  .arrow {
    display: none;
  }

  .sign-up-card iframe {
    height: 1400px;
  }
}

@media (max-width: 640px) {
  #about .badges {
    grid-template-columns: 1fr;
  }
}