@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;       /* Royal Blue */
  --primary-dark: #1e40af;
  --secondary: #f97316;     /* Vibrant Orange */
  --secondary-dark: #ea580c;
  --dark: #0f172a;
  --gray-dark: #334155;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -5px rgba(23, 37, 84, 0.1);
  --shadow-float: 0 30px 60px -10px rgba(37, 99, 235, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;
  
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-dark);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ======================= */
/*      TOP HEADER         */
/* ======================= */
.top-header {
  background: var(--dark);
  color: #fff;
  padding: 0.8rem 0;
  font-size: 0.85rem;
}

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

.top-info {
  display: flex;
  gap: 2rem;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-socials a {
  color: #fff;
  margin-left: 1rem;
  transition: var(--transition);
}

.top-socials a:hover { color: var(--secondary); }

/* ======================= */
/*        NAVBAR           */
/* ======================= */
nav {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.logo span { color: var(--primary); }
.logo .dot { color: var(--secondary); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
}

/* ======================= */
/*      HERO SECTION       */
/* ======================= */
.hero {
  background: var(--bg-alt);
  padding: 6rem 0 10rem;
  position: relative;
  overflow: hidden;
}

/* Abstract Background Shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }

.hero-subtitle {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: rgba(249, 115, 22, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero-text h1 span {
  color: var(--primary);
  position: relative;
}

.hero-text h1 span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(249, 115, 22, 0.2);
  z-index: -1;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.play-btn-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
}

.play-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  animation: pulse-ring 2s infinite;
}

.play-btn-wrapper span {
  font-weight: 600;
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
}

.play-btn-wrapper:hover .play-btn {
  background: var(--secondary);
  color: #fff;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hero-img {
  flex: 1;
  position: relative;
}

.hero-img img {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
}

/* Blob behind image */
.blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--primary);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 1;
  animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.float-card {
  position: absolute;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-float);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 4s ease-in-out infinite;
}

.fc-1 { bottom: 10%; left: -10%; }
.fc-2 { top: 20%; right: -5%; animation-delay: 2s; }

.float-card .icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.fc-2 .icon { background: rgba(249, 115, 22, 0.1); color: var(--secondary); }

.float-card h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.float-card p { font-size: 0.85rem; color: var(--gray); margin: 0; }

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

/* ======================= */
/*      OVERLAP FEATURES   */
/* ======================= */
.features-overlap {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  margin-bottom: 6rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feat-box {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.feat-box:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--primary);
}

.feat-box .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}

.feat-box:hover .icon {
  background: var(--primary);
  color: #fff;
}

.feat-box h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.feat-box p { font-size: 0.95rem; }

/* ======================= */
/*   SECTION COMPONENTS    */
/* ======================= */
.section { padding: 6rem 0; }
.section-gray { background: var(--bg-alt); }

.sec-title {
  text-align: center;
  margin-bottom: 4rem;
}

.sec-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.sec-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ======================= */
/*      CATEGORIES         */
/* ======================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.cat-box {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.cat-box:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.cat-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.cat-box h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cat-box p { font-size: 0.85rem; color: var(--gray); margin: 0; }

/* ======================= */
/*      COURSES GRID       */
/* ======================= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.course-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.c-img {
  position: relative;
  overflow: hidden;
}

.c-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s;
}

.course-card:hover .c-img img { transform: scale(1.05); }

.c-tag {
  position: absolute;
  top: 15px; left: 15px;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
}

.c-price {
  position: absolute;
  bottom: -15px; right: 20px;
  background: var(--secondary);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  border: 4px solid #fff;
  font-family: 'Poppins', sans-serif;
}

.c-body { padding: 2rem 1.5rem 1.5rem; }

.c-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.c-meta span { display: flex; align-items: center; gap: 0.4rem; }

.c-body h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.course-card:hover .c-body h3 { color: var(--primary); }

.c-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.c-author { display: flex; align-items: center; gap: 0.8rem; }
.c-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.c-author h4 { font-size: 0.95rem; }

.c-rating {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ======================= */
/*      TESTIMONIALS       */
/* ======================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testi-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--gray-light);
}

.testi-card::before {
  content: '”';
  position: absolute;
  top: 10px; right: 20px;
  font-size: 6rem;
  color: var(--bg-alt);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.testi-card p {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-author img { width: 50px; height: 50px; border-radius: 50%; }
.testi-author h4 { margin-bottom: 0.2rem; }
.testi-author span { color: var(--gray); font-size: 0.85rem; }

/* ======================= */
/*          CTA            */
/* ======================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  color: #fff;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><circle cx="90%" cy="10%" r="200" fill="white" opacity="0.05"/><circle cx="10%" cy="90%" r="300" fill="white" opacity="0.05"/></svg>');
  z-index: 0;
}

.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: 2.5rem; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2.5rem; }

/* ======================= */
/*        FOOTER           */
/* ======================= */
footer {
  background: var(--dark);
  color: var(--gray);
  padding: 5rem 0 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.foot-brand .logo { color: #fff; margin-bottom: 1.5rem; display: block; }
.foot-brand p { margin-bottom: 1.5rem; line-height: 1.8; }

.foot-contact p { margin-bottom: 0.5rem; color: #fff; display: flex; align-items: center; gap: 0.5rem; }

.foot-title { color: #fff; font-size: 1.2rem; margin-bottom: 1.5rem; }

.foot-links a {
  display: block;
  margin-bottom: 0.8rem;
}
.foot-links a:hover { color: var(--secondary); transform: translateX(5px); }

.foot-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.foot-bottom a { color: var(--secondary); font-weight: 600; }

/* ======================= */
/*      CONTACT PAGE       */
/* ======================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--primary);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 { color: #fff; margin-bottom: 2rem; font-size: 1.8rem; }

.c-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.c-item .c-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.c-item h4 { color: #fff; margin-bottom: 0.2rem; font-size: 1.1rem; }
.c-item p { color: rgba(255,255,255,0.8); margin: 0; }

.contact-form-card {
  background: #fff;
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--dark); }
.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-alt);
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; }

/* ======================= */
/*      RESPONSIVE         */
/* ======================= */
@media (max-width: 992px) {
  .top-header { display: none; }
  .hero-inner { flex-direction: column; text-align: center; gap: 3rem; }
  .hero-btns { justify-content: center; }
  .features-overlap { margin-top: 3rem; }
  .features-grid, .testi-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .menu-btn { display: block; }
  .hero-text h1 { font-size: 2.8rem; }
  .blob-bg { width: 100%; height: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: #fff;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }
}
