/* ===== Custom Properties ===== */
:root {
  --purple: #7d4292;
  --blue: #495ac5;
  --pink: #f8c7c3;
  --yellow: #f5e600;
  --cream: #FAF5EF;
  --dark: #1a1a1a;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
}

@font-face {
  font-family: 'Hore';
  src: url('../assets/Fonts/Hore/TTF-FILE/Hore.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
}

h1, h2, h3, button {
  font-family: 'Hore', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

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

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--purple);
  padding: 16px 0;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

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

.navbar__logo img {
  width: 48px;
  height: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__links a {
  color: var(--cream);
  font-weight: 600;
  text-transform: capitalize;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background var(--transition);
  font-size: 15px;
}

.navbar__links a:hover,
.navbar__links a.active {
  background: rgba(255, 255, 255, 0.15);
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
  background: var(--purple);
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero__content h1 {
  font-size: clamp(48px, 6vw, 80px);
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 24px;
}

.hero__content p {
  color: var(--cream);
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Hore', sans-serif;
  font-size: 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--pink {
  background: var(--pink);
  color: var(--purple);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--blue);
}

.btn--purple {
  background: var(--purple);
  color: var(--cream);
}

/* Carousel */
.hero__carousel {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-size: cover;
  background-position: center;
}

.carousel__slide.active {
  opacity: 1;
}

.carousel__slide:nth-child(odd) {
  background-image: url('../assets/images/slider_backgorund.png');
}

.carousel__slide:nth-child(even) {
  background-image: url('../assets/images/slider_backgorund_left.png');
}

.carousel__slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--transition);
}

.carousel__dot.active {
  background: var(--cream);
}

/* ===== Stats Section ===== */
.stats {
  background: var(--cream);
  padding: 100px 0;
  position: relative;
}

.stats .container {
  text-align: center;
}

.stats__heading h2 {
  font-size: clamp(40px, 5vw, 80px);
  color: var(--blue);
  margin-bottom: 16px;
}

.stats__heading p {
  color: var(--blue);
  max-width: 560px;
  margin: 0 auto 48px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  background: var(--white);
  padding: 32px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card h3 {
  font-size: 48px;
  color: var(--purple);
  margin-bottom: 4px;
}

.stat-card p {
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
}

/* ===== Services Section ===== */
.services {
  background: var(--purple);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/play_backgournd_1.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services__heading {
  text-align: center;
  margin-bottom: 60px;
}

.services__heading h2 {
  font-size: clamp(40px, 5vw, 80px);
  color: var(--cream);
  margin-bottom: 16px;
}

.services__heading p {
  color: var(--cream);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  margin: 0 auto 20px;
}

.service-card h3 {
  font-size: 22px;
  color: var(--purple);
  margin-bottom: 4px;
}

.service-card__subtitle {
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 12px;
}

.service-card p:last-child {
  font-size: 14px;
  color: var(--dark);
  opacity: 0.8;
}

/* ===== Contact Form Section ===== */
.contact-section {
  background: var(--blue);
  padding: 100px 0;
}

.contact-section .container {
  text-align: center;
}

.contact-section__heading h2 {
  font-size: clamp(40px, 5vw, 80px);
  color: var(--cream);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.contact-form {
  background: var(--cream);
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius);
  text-align: left;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--dark);
  outline: none;
  color: var(--dark);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%231a1a1a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.form-group .error {
  color: #e74c3c;
  font-size: 13px;
  display: none;
  margin-top: 4px;
}

.contact-form .btn {
  margin-top: 8px;
  font-size: 22px;
}

.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--purple);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__logo img {
  width: 220px;
  margin-bottom: 16px;
}

.footer__about p {
  color: var(--yellow);
  font-size: 14px;
  opacity: 0.9;
}

.footer__contact h3 {
  color: var(--yellow);
  margin-bottom: 20px;
  font-size: 24px;
}

.footer__contact ul li {
  position: relative;
  padding-left: 28px;
  padding-bottom: 14px;
  line-height: 1.5;
}

.footer__contact ul li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--yellow);
}

.footer__contact ul li,
.footer__contact ul li a {
  color: var(--yellow);
  font-size: 14px;
}

.footer__contact ul li a:hover {
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid rgba(245, 230, 0, 0.2);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  color: var(--yellow);
  font-size: 13px;
}

.footer__bottom a {
  color: var(--yellow);
  font-weight: 600;
}

.footer__bottom a:hover {
  text-decoration: underline;
}

/* ===== Branch Cards (Contact Page) ===== */
.branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 60px;
}

.branch-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.branch-card h3 {
  font-size: 28px;
  color: var(--purple);
  margin-bottom: 20px;
}

.branch-card ul li {
  position: relative;
  padding-left: 28px;
  padding-bottom: 14px;
  line-height: 1.5;
  font-size: 14px;
  color: var(--dark);
}

.branch-card ul li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--purple);
}

.branch-card ul li a {
  color: var(--dark);
}

.branch-card ul li a:hover {
  color: var(--purple);
  text-decoration: underline;
}

/* ===== About Page ===== */
.about-hero {
  background: var(--cream);
  padding: 140px 0 80px;
}

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

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

.about-hero__content h1 {
  font-size: clamp(40px, 5vw, 72px);
  color: var(--purple);
  margin-bottom: 20px;
}

.about-hero__content p {
  color: var(--purple);
  margin-bottom: 16px;
  font-weight: 500;
}

/* Team */
.team {
  background: var(--cream);
  padding: 80px 0;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.team-card h3 {
  font-size: 24px;
  color: var(--purple);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 14px;
  color: var(--purple);
  opacity: 0.8;
  padding: 0 8px;
}

/* Gallery */
.gallery {
  background: var(--purple);
  padding: 80px 0;
}

.gallery h2 {
  font-size: clamp(40px, 5vw, 72px);
  color: var(--yellow);
  text-align: center;
  margin-bottom: 40px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--transition);
}

.gallery__grid img:hover {
  transform: scale(1.03);
}

/* ===== Blog Page ===== */
.blog-hero {
  background: var(--cream);
  padding: 140px 0 80px;
}

.blog-hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  color: var(--purple);
  text-align: center;
  margin-bottom: 48px;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.blog-card__content {
  padding: 24px;
}

.blog-card__content h3 {
  font-size: 22px;
  color: var(--purple);
  margin-bottom: 12px;
}

.blog-card__content p {
  font-size: 14px;
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 16px;
}

.blog-card__content .btn {
  font-size: 18px;
  padding: 10px 24px;
}

/* ===== Contact Page ===== */
.contact-page {
  background: var(--cream);
  padding: 140px 0 80px;
}

.contact-page h1 {
  font-size: clamp(40px, 5vw, 72px);
  color: var(--purple);
  text-align: center;
  margin-bottom: 48px;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-page .contact-form {
  box-shadow: var(--shadow);
}

.contact-page .map iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content p {
    max-width: 100%;
  }

  .hero__content .btn {
    margin: 0 auto;
  }

  .hero__carousel {
    max-width: 340px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero__content p {
    max-width: 100%;
  }

  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__links a {
    width: 100%;
    text-align: left;
  }

  .navbar__toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .carousel__track {
    height: 350px;
  }

  .stats {
    padding: 60px 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-card h3 {
    font-size: 36px;
  }

  .services {
    padding: 60px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-form {
    padding: 28px;
  }

  .team__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

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

  .gallery__grid img {
    height: 200px;
  }

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

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

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