 :root{
    --primary:#3D0B52;
    --secondary:#FFD54A;
    --light:#FAF9FC;
    --text:#2B2B2B;
    --white:#FFFFFF;
}

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

body{
    font-family:'Poppins',sans-serif;
    background:var(--light);
    color:var(--text);
}

/* NAVBAR */
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    position:sticky;
    top:0;
    z-index:1000;
    backdrop-filter:blur(10px);
    background:lavender;
    border-bottom:1px solid rgba(0,0,0,.05);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    background: linear-gradient(90deg,#4A148C,#6A1B9A,#8E24AA);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

nav a{
    text-decoration:none;
    margin:0 15px;
    color:var(--text);
    font-weight:500;
    position:relative;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:3px;
    background:var(--primary);
    transition:.3s;
}

nav a:hover::after{ width:100%; }

.trial-btn{
    background:var(--secondary);
    color:black;
    text-decoration:none;
    padding:12px 24px;
    border-radius:40px;
    font-weight:600;
    transition:.3s;
}

.trial-btn:hover{ transform:translateY(-3px); }

/* HERO */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8%;
    background: linear-gradient(135deg, #faf9fc, #f2e8ff);
    flex-wrap: wrap;
}

.hero-content { max-width: 600px; }

.tag {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 1.1;
    margin: 20px 0;
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: transform .3s, box-shadow .3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: black;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* IMAGE */
.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.blob {
    width: 450px;
    height: 450px;
    background: var(--secondary);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    position: absolute;
    top: 30px;
    left: 20px;
    animation: blobMorph 8s infinite alternate ease-in-out;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* Blob animation */
@keyframes blobMorph {
    0% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
    50% { border-radius: 50% 60% 40% 50% / 60% 50% 50% 40%; }
    100% { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }
    .hero-buttons { justify-content: center; }
    .hero-image { margin-top: 20px; }
    .blob { width: 300px; height: 300px; }
}

/* STATS */
.stats {
    display:flex;
    justify-content:center;
    gap:80px;
    padding:80px 8%;
    background:white;
}

.stat { text-align:center; }

.stat h2 {
    color:var(--primary);
    font-size:3rem;
}

/* FEATURES */
.features {
    padding:100px 8%;
}

.features h2 {
    text-align:center;
    margin-bottom:50px;
    color:var(--primary);
}

.feature-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.feature-card {
    background:white;
    padding:35px;
    border-radius:32px;
    border:1px solid rgba(0,0,0,.05);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition:.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(61,11,82,.15);
}

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

/* TEACHERS */
/* TEACHERS PREVIEW */
.teachers-preview {
    padding: 100px 8%;
    background: white;
    position: relative;
    z-index: 1;
}

.teachers-preview h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
    font-size: 2.5rem;
    text-shadow: 0 4px 12px rgba(61,11,82,0.15);
}

/* TEACHER GRID */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* TEACHER CARD */
.teacher-card {
    background: rgba(255,255,255,0.75); /* glassmorphism */
    backdrop-filter: blur(12px);
    padding: 35px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: transform .4s, box-shadow .4s;
    position: relative;
    overflow: hidden;
}

.teacher-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(61,11,82,.15);
}

.teacher-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(61,11,82,.15);
}

/* IMAGE */
.teacher-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #f2e8ff;
    transition: transform .4s;
}

.teacher-card:hover img {
    transform: rotate(-3deg) scale(1.05);
}

/* NAME + ROLE */
.teacher-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.teacher-card p {
    font-size: 1rem;
    color: #444;
}

/* META BADGES */
.teacher-meta {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.teacher-meta span {
    background: var(--secondary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* VIEW PROFILE BUTTON */
.view-profile {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: transform .3s, box-shadow .3s;
}

.view-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* Glow effect on hover */
.teacher-card::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .4s;
    z-index: 0;
}

.teacher-card:hover::before {
    opacity: 0.25;
}

/* CTA */
.cta {
    background:var(--primary);
    color:white;
    text-align:center;
    padding:100px 8%;
}

.cta h2 {
    font-size:3rem;
    margin-bottom:15px;
}

.cta p { margin-bottom:30px; }

/* FOOTER */
footer {
    text-align:center;
    padding:40px;
    background:#220630;
    color:white;
}

/* MOBILE */
@media(max-width:900px){
    header{ flex-direction:column; gap:15px; }
    .hero{ flex-direction:column; text-align:center; }
    .hero h1{ font-size:3rem; }
    .hero-buttons{ justify-content:center; }
    .hero-image img{ width:100%; max-width:350px; }
    .blob{ width:300px; height:300px; }
    .stats{ flex-direction:column; gap:40px; }
}

/* TEACHER PROFILE LAYOUT */
.teacher-profile-layout {
  display: flex;
  gap: 50px;
  padding: 80px 8%;
  background: linear-gradient(135deg, #f9fff5, #fffbe8); /* soft green-yellow background */
}

/* LEFT SIDE MAIN CONTENT */
.teacher-main {
  flex: 2;
}

.teacher-video-card {
  position: relative;
  margin-bottom: 30px;
}

.teacher-video-card video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  border: 4px solid var(--secondary); /* yellow border */
}

.teacher-name-banner {
  position: absolute;
  top: 15px; /* place near the top */
  left: 15px;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
}



/* LESSON COUNT */
.lesson-count {
  text-align: center;
  margin: 30px 0;
}

.lesson-count h2 {
  font-size: 2.5rem;
  color: var(--accent, #4CAF50); /* fresh green */
}

.lesson-count p {
  color: #555;
}

/* ABOUT SECTION */
.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.about-section p {
  line-height: 1.7;
  color: #333;
}

/* DETAILS GRID */
.teacher-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 25px;
}

.detail-box {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  border-top: 4px solid var(--secondary); /* cheerful yellow accent */
}

.detail-box h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.detail-box ul {
  list-style: none;
  padding: 0;
}

.detail-box li {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #444;
}

/* RIGHT SIDE SIDEBAR */
.teacher-sidebar {
  flex: 1;
  background: white;
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  border-left: 6px solid var(--accent, #4CAF50); /* green accent */
}

.teacher-sidebar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 5px solid var(--secondary);
}

.teacher-sidebar h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.book-btn {
  display: inline-block;
  background: var(--secondary);
  color: black;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
}

.book-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.teacher-stats {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.teacher-stats li {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #333;
}

/* RESPONSIVE */
@media(max-width: 900px) {
  .teacher-profile-layout {
    flex-direction: column;
  }
  .teacher-sidebar {
    margin-top: 30px;
  }
}
/* TEACHERS PREVIEW */
.teachers-preview {
  padding: 80px 8%;
  background: linear-gradient(135deg, #f9fff5, #fffbe8); /* soft green-yellow */
  text-align: center;
}

.teachers-preview h2 {
  font-size: 2.5rem;
  color: #2e7d32; /* fresh green */
  margin-bottom: 15px;
}

.teachers-preview p {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #444;
  line-height: 1.6;
}

/* Trail page */

.trial-form {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.trial-form h2 {
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
}

.trial-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 600;
}

.trial-form input,
.trial-form select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
}

.trial-form .book-btn {
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.trial-form .book-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(61,11,82,.25);
}

/*  thank you submission form */
.thank-you {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 40px;
  background: #fafafa;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.thank-you h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.thank-you p {
  margin-bottom: 30px;
  font-size: 1.1em;
}


/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7%;
  background: rgba(255, 255, 255, 0.87);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.logo span {
  background: linear-gradient(90deg, #4A148C, #6A1B9A, #8E24AA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

nav a {
  text-decoration: none;
  margin: 0 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.82rem;
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

nav a.nav-active {
  color: var(--primary);
  font-weight: 700;
}

.trial-btn {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 213, 74, 0.4);
}
