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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1b3a 0%, #2d1b69 50%, #1a1b3a 100%);
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  padding: 20px 0;
  position: relative;
  z-index: 1000;
  background: rgba(26, 27, 58, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 34px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: cornflowerblue;
  transition: width 0.3s ease;
}

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

/* Dropdown Arrow */
.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid white;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(26, 27, 58, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: cornflowerblue;
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.sign-in {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.sign-in:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.book-demo {
  background-color: white;
  color: #040404;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.book-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 27, 58, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  animation: slideDown 0.3s ease;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #ffd93d;
}

/* Hero Section */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-images {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInScale 1s ease 1s forwards;
  margin-left: 100px;
}

.student-image {
  width: 220px;
  height: 210px;
  border-radius: 20px;
  background-image: url("./assets/image.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.teacher-image {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  background-image: url("./assets/image_second.png");
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  bottom: -110px;
  left: -80px;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Elements */
.floating-icon {
  position: absolute;
  font-size: 24px;
  animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 20%;
  right: 20%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 1s;
}

.floating-icon:nth-child(3) {
  bottom: 20%;
  left: 15%;
  animation-delay: 2s;
}

/* What is SchoolCoreOS Section */
.about-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.about-title {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.about-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
}

.about-description.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Book Demo Button */
.mobile-book-demo {
  display: none;
  margin-top: 30px;
  text-align: center;
}

.mobile-book-demo .book-demo {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 1.5s forwards;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Tablet View */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .nav-menu {
    gap: 30px;
  }

  .about-title {
    font-size: 36px;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-actions {
    gap: 15px;
  }

  .header-actions .book-demo {
    display: none;
  }

  .hero-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .hero-images {
    transform: scale(0.8);
  }

  .mobile-book-demo {
    display: block;
  }

  .container {
    padding: 0 15px;
  }

  .sign-in {
    padding: 6px 12px;
    font-size: 14px;
  }

  .about-title {
    font-size: 32px;
  }

  .about-description {
    font-size: 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 25px;
  }

  .header-actions {
    gap: 10px;
  }

  .logo {
    font-size: 30px;
  }

  .student-image {
    width: 180px;
    height: 160px;
  }

  .teacher-image {
    width: 200px;
    height: 130px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-description {
    font-size: 14px;
  }
}
