body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  width: 100%;
}

.logo {
  height: 80px;
  cursor: pointer;
  margin-right: 10px;
}
  
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background-color: #fdf5e6;
  box-shadow: 2px 5px 12px rgba(0,0,0,0.1);
  z-index: 999;
  position: sticky;
  top: 0;
  left: 0;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quran {
  color: #63405d;  
  font-size: 26px;
  font-weight: bold;
}

.academy {
  color: #edb974;
  font-size: 20px;
  font-weight: 500;
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Branding (Logo + Academy name) animation */
.branding {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-60px); /* left side shift */
  animation: slideInLeft 0.9s ease forwards;
}

/* Navbar li items ke liye right se animation */
#navbar li {
  list-style: none;
  padding: 10px 15px;
  position: relative;
  text-align: right;
  opacity: 0;
  transform: translateX(60px); /* right side shift */
  animation: slideInRight 0.8s ease forwards;
}

/* har ek item delay ke sath aye */
#navbar li:nth-child(1) { animation-delay: 0.2s; }
#navbar li:nth-child(2) { animation-delay: 0.4s; }
#navbar li:nth-child(3) { animation-delay: 0.6s; }
#navbar li:nth-child(4) { animation-delay: 0.8s; }

/* Keyframes */
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


#navbar li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active{
  color: #edb974;
}

#navbar li a.active::after,
  #navbar li a:hover::after {
    content: "";
    width: 30%;
    height: 2px;
    background: #63415e;
    position: absolute;
    bottom: -4px;
    left: 20px;
  transition: 0.3s ease;

}


/* ---------- HERO ---------- */
:root{
  --purple:#63405d;
  --gold:#edb974;
  --cream:#fdf5e6;
  --text:#1a1a1a;
}

#hero{
  /* light cream + subtle pattern overlay */
  background:
    linear-gradient(rgba(253,245,230,.92), rgba(253,245,230,.92)),
    url('img/subtle-islamic-pattern.png');
  background-size: cover;
  background-position: center;
  padding: 70px 20px;
}

.hero-container{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1{
  font-size: 44px;
  line-height: 1.2;
  color: var(--purple);
  margin: 0 0 14px;
  font-weight: 800;
}

.hero-text p{
  font-size: 18px;
  color: #333;
  margin: 0 0 20px;
}

.hero-cta{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn{
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: .25s ease;
}

.btn-primary{
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99,64,93,.25);
}
.btn-primary:hover{
  background: var(--gold);
  color: var(--purple);
}

.btn-outline{
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
}
.btn-outline:hover{
  border-color: var(--gold);
  color: var(--purple);
  background: var(--gold);
}

.hero-bullets{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hero-bullets li{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
  position: relative;
  padding-left: 22px;
}
.hero-bullets li::before{
  content: "✔";
  color: var(--purple);
  position: absolute;
  left: 0;
  top: 0;
}

.hero-media img{
  width: 100%;
  max-width: 460px;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}


/* Contact Links */
.contact-links {
  margin-top: 15px;
}

.contact-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin: 0 5px;
  color: var(--purple);
  transition: .3s;
}

.contact-links a:hover {
  color: var(--gold);
}
  

/* ---------- FREE TRIAL ---------- */
#free-trial {
  background: var(--purple);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

#free-trial h2 {
  font-size: 34px;
  margin-bottom: 12px;
  font-weight: 800;
  color: #fff;
}

#free-trial p {
  font-size: 18px;
  margin-bottom: 24px;
}

/* Free Trial Button Special */
#free-trial .btn {
  position: relative;
  background: #edbc7b;
  color: #000;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
  overflow: hidden;
}

/* Corner line effect */
#free-trial .btn::after {
  content: "";
  position: absolute;
  bottom: 8px;   /* thoda upar niche adjust karna */
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}

/* Hover effect - line expand */
#free-trial .btn:hover::after {
  width: 60%;   /* kitna underline aaye */
}

/* Hover par background bhi change ho */
#free-trial .btn:hover {
  background: var(--purple);
  color: #fff;
}


/* ---------- SERVICES ---------- */
#services {
  background: #fff;
  padding: 70px 20px;
}

.services-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#services h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--purple);
  font-weight: 800;
}

.services-intro {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--cream);
  padding: 28px 22px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: .3s ease;
  border-top: 6px solid var(--gold);
  text-align: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--purple);
  font-weight: 700;
}

.service-card p {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
}

/* Service Card Advantages (bullet points) */
.adv-list {
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.adv-list li {
  position: relative;
  padding-left: 22px;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}

.adv-list li::before {
  content: "✔";
  color: var(--purple);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* price edit */
.price {
  font-size: 18px;
  font-weight: bold;
  color: var(--purple);
  margin: 12px 0;
}

.badge {
  font-size: 14px;
  background: var(--gold);
  color: #fff;
  padding: 6px 09px;
  border-radius: 12px;
  margin-left: 8px;
}

.badge.highlight {
  background: #e63946; /* red for popular */
}


/* ---------- ABOUT US ---------- */
#about {
  background: #f9f9f9;
  padding: 80px 20px;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#about h2 {
  font-size: 36px;
  color: var(--purple);
  font-weight: 800;
  margin-bottom: 20px;
}

.about-intro {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

.about-benefits {
  text-align: left;
}

.about-benefits h3 {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-benefits ul {
  list-style: none;
  padding: 0;
}

.about-benefits li {
  font-size: 18px;
  margin-bottom: 12px;
  color: #444;
  display: flex;
  align-items: center;
}


/* CONTACT SECTION */
#contact {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contact-container {
  max-width: 800px;
  margin: auto;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

#contact p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

/* FORM STYLING */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #63415e; /* purple shade */
  box-shadow: 0 0 8px rgba(106, 27, 154, 0.2);
}

/* BUTTON */
form button {
  background: #63415e;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #63415e;
}

/* SOCIAL ICONS */
.social-icons {
  margin-top: 20px;
}

.social-icons a {
  font-size: 28px;
  margin: 0 12px;
  color: #63415e;
  transition: 0.3s;
}

.social-icons a:hover {
  color:#eeb975 ; /* hover effect orange */
  transform: scale(1.2);
}



/* Confetti style */
.confetti {
  position: fixed;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  border-radius: 2px;
  z-index: 2000;
  pointer-events: none;
}

/* scroll style */
html {
  scroll-behavior: smooth;
}





/* ================= RESPONSIVE DESIGN ================= */

/* --- Laptop & Desktop (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Tablets (max-width: 992px) --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-media img {
    max-width: 320px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-benefits {
    text-align: center;
  }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  #header {
    flex-wrap: wrap;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
  }

  #navbar {
    display: none; /* mobile pe by default navbar hide */
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fdf5e6;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  #navbar.show {
    display: flex;
    animation: slideInRight 0.5s ease forwards;
  }

  #navbar li {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.5s forwards;
  }

  #navbar li:nth-child(1) { animation-delay: 0.1s; }
  #navbar li:nth-child(2) { animation-delay: 0.2s; }
  #navbar li:nth-child(3) { animation-delay: 0.3s; }
  #navbar li:nth-child(4) { animation-delay: 0.4s; }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .hero-media img {
    max-width: 260px;
  }

  .services-intro {
    font-size: 16px;
  }

  .service-card {
    padding: 20px;
  }

  #free-trial h2 {
    font-size: 24px;
  }

  #free-trial p {
    font-size: 14px;
  }
}

/* --- Ultra Small Devices (max-width: 360px) --- */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 20px;
  }

  .hero-text p {
    font-size: 12px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  #navbar {
    width: 160px;
    padding: 15px;
  }
}

/* Default: hamburger hide hoga */
.hamburger {
  display: none;
}

/* Jab screen chhoti ho (tablet / mobile) tab hamburger show hoga */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
  }

  #navbar {
    display: none; /* mobile pe by default navbar hide */
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fdf5e6;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  #navbar.show {
    display: flex; /* jab hamburger click hoga tab dikhai dega */
    animation: slideInRight 0.5s ease forwards;
  }

  #navbar li {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.5s forwards;
  }

  #navbar li:nth-child(1) { animation-delay: 0.1s; }
  #navbar li:nth-child(2) { animation-delay: 0.2s; }
  #navbar li:nth-child(3) { animation-delay: 0.3s; }
  #navbar li:nth-child(4) { animation-delay: 0.4s; }
}

