/* =========================================
   CSS variables extracted from logo image
   ========================================= */
:root {
  /* Core Brand Colors */
  --primary-color: #331853; /* Deep Purple */
  --primary-light: #472473;
  --secondary-color: #E5007D; /* Vibrant Magenta */
  --secondary-light: #ff1c9b;
  --accent-color: #00AEEF; /* Cyan */
  --accent-light: #33bfff;
  --highlight-color: #FFF200; /* Yellow */
  --highlight-dark: #e6da00;
  
  /* Text and Backgrounds */
  --text-dark: #1f1235;
  --text-body: #4a5568;
  --text-light: #a0aec0;
  --bg-color: #f8f9fa;
  --bg-light: #ffffff;
  --white: #ffffff;
  
  /* Utilities */
  --shadow-sm: 0 4px 6px -1px rgba(51, 24, 83, 0.1), 0 2px 4px -1px rgba(51, 24, 83, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(51, 24, 83, 0.1), 0 4px 6px -2px rgba(51, 24, 83, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(51, 24, 83, 0.15), 0 10px 10px -5px rgba(51, 24, 83, 0.04);
  --shadow-glow: 0 0 20px rgba(229, 0, 125, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s ease-in-out;
}

/* =========================================
   Base Styles & Reset
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-color);
}

/* =========================================
   Typography & Color Utilities
   ========================================= */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }

.bg-primary-light { background-color: rgba(51, 24, 83, 0.1); }
.bg-secondary-light { background-color: rgba(229, 0, 125, 0.1); }
.bg-accent-light { background-color: rgba(0, 174, 239, 0.1); }
.bg-highlight-light { background-color: rgba(255, 242, 0, 0.2); }
.text-highlight { color: #d4c900; } /* Darker yellow for text visibility */

.gradient-text {
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(229, 0, 125, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(51, 24, 83, 0.4);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* =========================================
   Header & Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-img {
  max-height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

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

.footer-logo-img {
  max-height: 80px;
  background-color: var(--white);
  border-radius: 50%;
  padding: 5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

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

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  padding: 160px 0 100px 0;
  overflow: hidden;
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-shapes .shape {
  position: absolute;
  z-index: 0;
  opacity: 0.1;
  border-radius: 50%;
}

.hero-shapes .shape-1 {
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  top: -100px;
  right: -100px;
  filter: blur(80px);
}

.hero-shapes .shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-color);
  bottom: -50px;
  left: -150px;
  filter: blur(80px);
}

.hero-shapes .shape-3 {
  width: 300px;
  height: 300px;
  background: var(--highlight-color);
  top: 40%;
  left: 40%;
  filter: blur(60px);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(0, 174, 239, 0.1);
  color: var(--accent-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 174, 239, 0.2);
}

.hero-title {
  font-size: 3.8rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 50%;
  z-index: -1;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  border: 10px solid var(--white);
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.card-1 {
  top: 40px;
  left: -40px;
  animation-delay: 0s;
}

.card-1 i {
  color: var(--secondary-color);
  font-size: 1.8rem;
  background: rgba(229, 0, 125, 0.1);
  padding: 12px;
  border-radius: 12px;
}

.card-2 {
  bottom: 40px;
  right: -40px;
  animation-delay: 2s;
}

.card-2 i {
  color: var(--accent-color);
  font-size: 1.8rem;
  background: rgba(0, 174, 239, 0.1);
  padding: 12px;
  border-radius: 12px;
}

.floating-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.floating-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

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

/* =========================================
   Section Headers
   ========================================= */
.section-subtitle {
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.header-line {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  margin: 0 auto 24px auto;
  border-radius: 4px;
}

.header-line.left-align {
  margin-left: 0;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-body);
  font-size: 1.1rem;
}

/* =========================================
   Courses Section
   ========================================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.course-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--secondary-color);
}

.course-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.course-card:hover .course-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.course-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.course-desc {
  color: var(--text-body);
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-link {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.course-link i {
  margin-left: 8px;
  transition: var(--transition);
}

.course-link:hover {
  color: var(--secondary-color);
}

.course-link:hover i {
  transform: translateX(5px);
}

/* =========================================
   About Section
   ========================================= */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary-color);
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-bottom: 5px solid var(--highlight-color);
}

.experience-badge h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0px;
}

.experience-badge p {
  color: var(--highlight-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.about-desc {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-features {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-dark);
}

.about-features i {
  font-size: 1.2rem;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.contact-info {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, transparent, rgba(229, 0, 125, 0.4));
  border-radius: 50%;
}

.contact-title {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: var(--highlight-color);
  flex-shrink: 0;
}

.info-text h4 {
  color: var(--white);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.info-text p, .info-text a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.info-text a:hover {
  color: var(--highlight-color);
}

/* Form Styles */
.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #f8fafc;
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(229, 0, 125, 0.1);
  background-color: var(--white);
}

textarea.form-control {
  resize: vertical;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 80px 0 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo .logo-text {
  color: var(--white);
}

.footer-desc {
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a i {
  font-size: 0.8rem;
  color: var(--accent-color);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* =========================================
   Responsive Design
   ========================================= */
@media screen and (max-width: 1024px) {
  .hero-container, .about-container, .contact-wrapper {
    gap: 40px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media screen and (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-info::before {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  
  /* Navbar */
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 85px;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 16px 0;
  }
  
  /* Hero */
  .hero {
    padding-top: 120px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 30px auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .card-1 {
    top: 20px;
    left: 10px;
  }
  
  .card-2 {
    bottom: 20px;
    right: 10px;
  }
  
  /* general */
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .header-line.left-align {
    margin: 0 auto 24px auto;
  }
  
  .about-content {
    text-align: center;
    order: -1;
  }
  
  .about-features {
    text-align: left;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .floating-card {
    padding: 10px 15px;
  }
  
  .floating-card h4 {
    font-size: 0.9rem;
  }
  
  .floating-card p {
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    padding: 30px 20px;
  }
  
  .contact-info {
    padding: 30px 20px;
  }
}
