@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #111111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
.container {
  width: 100%;
  background-color: #111111;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ensures it's aligned to the left */
}

.logo {
  height: 70px; /* increased logo size */
  margin-right: 10px;
}

.site-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

/* === Main Navigation === */
.main-nav {
  display: flex;
  align-items: center; /* Align items vertically */
  gap: 12px; /* Even, small spacing between nav items */
}

/* === Doroosi-style nav buttons (Home & Courses) === */
.nav-button {
  background-color: #76249E;
  color: white;
  padding: 10px 24px;
  border-radius: 35px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-flex; /* for vertical centering */
  align-items: center;
  margin-right: 6px; /* space between Home & Courses */
  box-shadow: 0 8px 24px rgba(118, 36, 158, 0.25);
  font-family: 'Poppins', sans-serif !important;
}

.nav-button:hover {
  background-color: #5e1d7c;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(94, 29, 124, 0.35);
}

.nav-button:active {
  background-color: #4a1462;
  transform: scale(0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}


/* === Login Button (White background, Black text) === */
.login-button {
  background-color: white;
  color: black;
  padding: 10px 24px;
  border-radius: 35px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid #ccc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  height: 44px; /* same as nav-button approx */
  min-width: 140px; /* match nav-button width */
  box-sizing: border-box;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}


.login-button:hover {
  background-color: #f2f2f2;
  transform: translateY(-2px);
}

.login-button:active {
  transform: scale(0.96);
  background-color: #e5e5e5;
}

/* === Inside Login Button === */
.login-button img.profile-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.login-button .username-label {
  font-weight: 500;
}

.login-button .dropdown-arrow {
  margin-left: 4px;
  font-size: 0.85rem;
}

/* === Dropdown Menu === */
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
  min-width: 160px;
}

.user-dropdown a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
}

.user-dropdown a:hover {
  background: #f0f0f0;
}

/* === Show Dropdown on Hover === */
.login-button:hover .user-dropdown {
  display: block;
}


/* === MAIN CONTENT === */
.main-content {
  text-align: center;
  padding: 60px 20px;
  flex: 1;
}

.main-content h1 {
  font-size: 38px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 15px;
}

.main-content p {
  font-size: 17px;
  color: #333333;
  max-width: 700px;
  margin: 0 auto;
}

/* === FOOTER === */
.site-footer {
  background-color: #111111;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  color: #cccccc;
  margin-top: auto;
}

.hero-section {
  background: url('/doroosi/frontend/assets/images/background1.png') no-repeat center center;
  padding: 100px 5vw;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
  gap: 60px;
  flex-wrap: wrap;
}

/* Content Side */
.hero-content {
  flex: 1;
  min-width: 400px;
  margin-top: -150px; /* Moves the text content higher */
}


.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #1e0f39;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #5e2b97;
  margin-bottom: 25px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.hero-highlights li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #444;
  display: flex;
  align-items: center;
}

.hero-highlights li i {
  margin-right: 10px;
  color: #c22d7c;
}

/* Button */
.hero-btn {
  background-color: #76249E;
  color: white;
  padding: 14px 34px;
  border-radius: 35px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(118, 36, 158, 0.25);
}

.hero-btn:hover {
  background-color: #5e1d7c;
  transform: translateY(-3px);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  transform: scale(1.2); /* scales the entire stats section */
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 120px;
  text-align: center;
}

.hero-stats strong {
  font-size: 2rem;
  color: #76249E;
  display: block;
  font-weight: 800;
  transition: all 0.3s ease-in-out;
}

.hero-stats span {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
}

/* Image */
.hero-image {
  flex: 1;
  text-align: center;
  min-width: 500px;
  margin-top: -180px; /* Move the whole image block up */
}

.hero-image img {
  max-width: 100%;
  max-height: 800px; /* Bigger image */
  object-fit: contain;
}

/* Optional: keep this if you're targeting a specific class */
.hero-image .main-hero-illustration {
  max-height: 700px;
  width: 100%;
  object-fit: contain;
}


/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-content, .hero-image {
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 20px;
  }
}

/* Background elements */
.hero-bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cloud {
  position: absolute;
  animation: floatCloud 40s linear infinite;
  opacity: 0.2;
  z-index: 0;
}

.cloud1 {
  top: 20%;
  left: -20%;
  width: 300px;
}

.cloud2 {
  bottom: 10%;
  right: -25%;
  width: 350px;
}

.floating-star {
  position: absolute;
  top: 30%;
  right: 10%;
  width: 40px;
  animation: floatStar 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes floatCloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(140%); }
}

@keyframes floatStar {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Floating icons around the illustration */
.floating-icon {
  position: absolute;
  animation: float 5s ease-in-out infinite;
  opacity: 0.9;
  z-index: 2;
}

.floating-icon.book {
  top: 20%;
  left: 80%;
  width: 32px;
}

.floating-icon.lamp {
  top: 5%;
  right: 0%;
  width: 28px;
}

.floating-icon.flag {
  bottom: 10%;
  right: 15%;
  width: 36px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hero tagline */
.hero-tagline {
  font-size: 1rem;
  color: #ba47c2;
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Button hover effect */
.hero-btn {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: -100%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.hero-btn:hover::after {
  left: 120%;
}

/* Wave Divider */
.wave-divider {
  background: url('assets/images/wave.svg') no-repeat bottom center;
  background-size: cover;
  height: 80px;
  margin-top: -40px;
}



/* === Features Section === */
.features-section {
  padding: 60px 10%;
  text-align: center;
}
.features-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: black; /* Keep the main title black */
}
.features-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-card {
  background: #76249E;
  padding: 20px;
  border-radius: 12px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
}
.feature-card img {
  width: 60px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: white; /* Make card title white */
}

.feature-card p {
  color: white; /* Make card text white */
}

/* === Testimonials Section === */
.testimonials-section {
  padding: 60px 10%;
  text-align: center;
}
.testimonials-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.testimonial {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}
.testimonial p {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 10px;
}
.testimonial span {
  display: block;
  font-weight: bold;
  color: #555;
}
