/* Genel Stiller - Tarayıcı Uyumluluğu Geliştirildi */
:root {
  --primary-color: #4f46e5;
  --secondary-color: #7c3aed;
  --accent-color: #f43f5e;
  --gradient-1: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-2: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%);
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-image: url("../assets/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #1e293b;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; /* Safari ve Chrome için font yumuşatma */
  -moz-osx-font-smoothing: grayscale; /* Firefox için font yumuşatma */
}

html {
  scroll-behavior: smooth;
}

/* Header ve Navbar - Tarayıcı Uyumluluğu Geliştirildi */
header {
  background-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid rgba(79, 70, 229, 0.1);
}

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

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 50px;
  max-width: 100%;
  display: block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(79, 70, 229, 0.2));
  border-radius: 10px;
}

.logo img:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 6px 8px rgba(79, 70, 229, 0.3));
  border-radius: 10px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

.nav-links li {
  margin: 0 20px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  position: relative;
}

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

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

.nav-links a i {
  margin-right: 8px;
  font-size: 1.1em;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.nav-links a:hover i {
  transform: translateY(-3px) scale(1.1);
  color: var(--secondary-color);
}

.auth-button button {
  background: var(--gradient-1);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.5rem; /* Adjusted padding to accommodate icon */
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px; /* Space between icon and text */
}

.auth-button button img {
  width: 24px; /* Adjust size as needed */
  height: 24px;
  border-radius: 50%; /* Make it circular */
  object-fit: cover;
}

.auth-button button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.auth-button button:hover::before {
  left: 100%;
}

.auth-button button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: var(--gradient-2);
}

/* Ana İçerik (Main) - Tarayıcı Uyumluluğu Geliştirildi */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section - Tarayıcı Uyumluluğu Geliştirildi */
.hero-section {
  display: flex;
  align-items: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
  margin-bottom: 60px;
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(79, 70, 229, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.hero-content {
  flex: 1.2;
  padding-right: 60px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari için */
  color: transparent;
  line-height: 1.2;
  font-weight: 700;
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-detay {
  display: inline-block;
  background: var(--gradient-1);
  color: #fff;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn-detay::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.btn-detay:hover::before {
  left: 100%;
}

.btn-detay:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: var(--gradient-2);
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeInRight 1s ease-out;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
  transition: all 0.5s ease;
  transform: perspective(1000px) rotateY(-5deg);
  max-width: 550px; /* Resim boyutunu sınırlamak için max-width eklendi */
  width: 100%; /* Responsiveness için width: 100% eklendi */
  display: block; /* Görüntülerin blok seviyesinde davranmasını sağlar */
  margin: 0 auto; /* Merkezi hizalama için */
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
  box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2);
}

/* Özellikler Section - Tarayıcı Uyumluluğu Geliştirildi */
.features-section {
  padding: 80px 40px;
  background-color: #ffffff;
  background: #ffffff;
  border-radius: 30px;
  margin-bottom: 60px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(124, 58, 237, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.features-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari için */
  color: transparent;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.feature {
  background-color: #ffffff;
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature:hover::before {
  opacity: 1;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.2);
}

.feature i {
  font-size: 2.5em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari için */
  color: transparent;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature:hover i {
  transform: scale(1.1) rotate(5deg);
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1e293b;
  font-weight: 600;
}

.feature p {
  color: #4a5568;
  line-height: 1.6;
}

/* Öğretmenler Section - Tarayıcı Uyumluluğu Geliştirildi */
.teachers-section {
  padding: 80px 40px;
  background-color: #ffffff;
  background: #ffffff;
  border-radius: 30px;
  margin-bottom: 60px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
  position: relative;
  overflow: hidden;
}

.teachers-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(244, 63, 94, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.teachers-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari için */
  color: transparent;
  position: relative;
  z-index: 2;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.teacher {
  background-color: #ffffff;
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
  position: relative;
  overflow: hidden;
}

.teacher::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(244, 63, 94, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.teacher:hover::before {
  opacity: 1;
}

.teacher:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
  border-color: rgba(244, 63, 94, 0.2);
}

.teacher img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 4px solid transparent;
  background: var(--gradient-2);
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s ease;
  max-width: 150px; /* Resim boyutunu sınırlamak için max-width eklendi */
  width: 100%; /* Responsiveness için width: 100% eklendi */
  display: block; /* Görüntülerin blok seviyesinde davranmasını sağlar */
  margin: 0 auto; /* Merkezi hizalama için */
}

.teacher:hover img {
  transform: scale(1.05);
  border-width: 6px;
}

.teacher h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1e293b;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari için */
  color: transparent;
}

.teacher p {
  color: #4a5568;
  margin: 5px 0;
}

/* Testimonials Section - Tarayıcı Uyumluluğu Geliştirildi */
.testimonials-section {
  padding: 80px 40px;
  background-color: #ffffff;
  background: #ffffff;
  border-radius: 30px;
  margin-bottom: 60px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(79, 70, 229, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.testimonials-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari için */
  color: transparent;
  position: relative;
  z-index: 2;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.testimonial {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
  max-width: 400px;
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial:hover::before {
  opacity: 1;
}

.testimonial:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.2);
}

.testimonial p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial .author {
  color: #1e293b;
  font-weight: 600;
  font-style: italic;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari için */
  color: transparent;
}

/* Contact Section - Tarayıcı Uyumluluğu Geliştirildi */
.contact-section {
  padding: 80px 40px;
  background-color: #ffffff;
  background: #ffffff;
  border-radius: 30px;
  margin-bottom: 60px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(79, 70, 229, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari için */
  color: transparent;
  position: relative;
  z-index: 2;
}

.contact-section p {
  color: #4a5568;
  font-size: 1.1rem;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

address {
  font-style: normal;
  color: #4a5568;
  line-height: 2;
  position: relative;
  z-index: 2;
}

address p {
  margin: 10px 0;
  transition: all 0.3s ease;
}

address p:hover {
  transform: translateX(5px);
  color: var(--primary-color);
}

/* Footer - Tarayıcı Uyumluluğu Geliştirildi */
footer {
  text-align: center;
  padding: 30px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  color: #4a5568;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(79, 70, 229, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

/* Animations - Tarayıcı Uyumluluğu Geliştirildi - vendor prefix gerekmiyor, standart */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Tasarım - Tarayıcı Uyumluluğu Geliştirildi - standart media queries */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .hero-content {
    padding-right: 0;
    padding-bottom: 40px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .feature {
    padding: 20px;
  }

  .btn-detay {
    padding: 12px 25px;
  }
}
