/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3d1e48;
  --secondary-color: #5a2d70;
  --accent-color: #7c3a9a;
  --text-color: #ffffff;
  --light-bg: #1a0f24;
  --white: #0a0410;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

/* Navigation */
nav {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease-in-out;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header/Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  padding: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
  margin-top: 0;
}

.hero .container {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

@keyframes rotateHero {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content */
main {
  min-height: 70vh;
}

h2 {
  color: #b8a4ff;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  color: #e0c4ff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--light-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-top: 0;
}

/* Courses/Content Sections */
.course {
  background: var(--light-bg);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--secondary-color);
  border-radius: 4px;
}

.course h4 {
  color: #e0c4ff;
  margin-bottom: 0.5rem;
}

.course-info {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.info-item {
  flex: 1;
  min-width: 150px;
}

.info-label {
  font-weight: bold;
  color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--light-bg);
  color: #ffffff;
  padding: 2rem;
  text-align: center;
  margin-top: 0;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .course-info {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.section {
  padding: 3rem 0;
}

.section:nth-child(even) {
  background-color: var(--light-bg);
}

/* Speech Bubbles */
.speech-bubble {
  background-color: var(--light-bg);
  border: 2px solid var(--secondary-color);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1rem 0;
  position: relative;
  box-shadow: var(--shadow);
}

.speech-bubble:nth-child(odd) {
  margin-left: 2rem;
}

.speech-bubble:nth-child(even) {
  margin-right: 2rem;
}

.speech-bubble h4 {
  margin-top: 0;
  color: var(--secondary-color);
}

.speech-bubble p {
  margin-bottom: 0;
}
