* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: cursive;
  background: black;
  color: white;
}

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: linear-gradient(to right, #000000, #2c284a);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Logo Animation */
.logo {
  font-family: 'Playfair Display', serif;
  color: #6C2BD9;
  font-size: 2rem;
  display: inline-block;
  animation: floatLogo 3s ease-in-out infinite, glowPulse 2s ease-in-out infinite alternate;
}

@keyframes floatLogo {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 10px #6C2BD9, 0 0 20px #6C2BD9;
  }

  50% {
    text-shadow: 0 0 20px #6C2BD9, 0 0 40px #6C2BD9, 0 0 60px #6C2BD9;
  }

  100% {
    text-shadow: 0 0 10px #6C2BD9, 0 0 20px #6C2BD9;
  }
}

/* Desktop Navigation */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 30px;
  transition:
    background 0.4s ease,
    color 0.4s ease,
    filter 0.4s ease,
    opacity 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

nav a:hover {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 30;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -250px;
    /* hidden initially */
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    transition: right 0.4s ease;
    gap: 20px;
    z-index: 20;
  }

  nav a {
    font-size: 18px;
    color: white;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  nav.active {
    right: 0;
  }

  nav.active a {
    opacity: 1;
    transform: translateX(0);
  }
}

/* hero section*/

.hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("Music-Academy.png") center/cover no-repeat;
  overflow: hidden;
}

/* Glow Accent */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top,
      rgba(108, 43, 217, 0.45),
      transparent 65%);
  z-index: 1;
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  max-width: 900px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 14px;
  animation: heroSlide 2s ease-in-out forwards;
}

/* Hero Slide Animation */
@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: translateY(40px) translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateY(0) translateX(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

/* Hero Text */
.hero-content h1 {
  font-size: 3.8rem;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.hero-content h1 span {
  color: #6C2BD9;
  text-shadow: 0 0 35px rgba(108, 43, 217, 0.9);
}

/* Typing Animation */
.typing {
  display: inline-block;
  border-right: 3px solid #6C2BD9;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(30, end), blink 0.7s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.9;
}

/* Buttons */
.hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 15px 36px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.35s ease;
}

.hero-btn.primary {
  background: #6C2BD9;
  color: black;
  box-shadow: 0 0 40px rgba(108, 43, 217, 0.8);
}

.hero-btn.primary:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(108, 43, 217, 1);
}

.hero-btn.secondary {
  border: 2px solid #6C2BD9;
  color: white;
}

.hero-btn.secondary:hover {
  background: #6C2BD9;
  color: black;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .typing {
    border-right: 2px solid #6C2BD9;
  }
}

/* SERVICES SECTION */
.services {
  height: 100vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;

}

.services h2 {
  color: #6C2BD9;
  font-size: 2.7rem;
}

.service-card {
  position: relative;
  border-radius: 22px;
  min-height: 360px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top,
      rgba(93, 0, 255, 0.35),
      #000000 75%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-image {
  width: 100%;
  height: 50%;
  overflow: hidden;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  margin: 10px 0 5px 0;
  text-align: center;
  color: #7627ff;
  font-size: 1.6rem;
  transition: color 0.4s ease, transform 0.4s ease;
}

.service-card p {
  text-align: center;
  padding: 0 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 20px 40px rgba(108, 43, 217, 0.45);
}

.service-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover h3 {
  transform: translateY(-3px);
}

.services-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .services-wrapper {
    grid-template-columns: 1fr;
  }
}

/* SERVICE CARD DIRECTION ANIMATION*/
.service-card {
  opacity: 0;
  animation: serviceReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-timeline: view();
  animation-range: entry 30% cover 45%;
}

.service-card:nth-child(1) {
  transform: translateX(-120px);
}

.service-card:nth-child(2) {
  transform: translateY(-120px);
}

.service-card:nth-child(3) {
  transform: translateX(120px);
}

@keyframes serviceReveal {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* SERVICES – RESPONSIVE */
@media (max-width: 1024px) {
  .services {
    height: auto;
    padding: 80px 30px;
  }

  .services h2 {
    font-size: 2.3rem;
  }

  .services-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 70px 20px;
  }

  .services h2 {
    font-size: 2.1rem;
  }

  .service-card {
    min-height: 340px;
  }

  .service-card h3 {
    font-size: 1.45rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .services h2 {
    font-size: 1.9rem;
  }

  .services-wrapper {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-card {
    min-height: 320px;
    border-radius: 20px;
  }

  .service-image {
    height: 48%;
  }
}


/* fearture */
.featured {
  padding: 100px 40px;
  text-align: center;
  background: radial-gradient(circle at top,
      rgba(108, 43, 217, 0.35),
      #000000 75%);
  color: white;
}

.featured h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 70px;
}

/* Grid */
.featured-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}


/* Card */
.featured-card {
  position: relative;
  padding: 45px 35px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  overflow: hidden;
}

.featured-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle,
      rgba(108, 43, 217, 0.45),
      transparent 60%);
  opacity: 0;
  transition: 0.5s;
}

.featured-card:hover {
  transform: translateY(-14px) scale(1.05);
  box-shadow: 0 30px 70px rgba(108, 43, 217, 0.6);
}

.featured-card:hover .featured-glow {
  opacity: 1;
}

.featured-card h3 {
  position: relative;
  color: #6C2BD9;
  margin-bottom: 18px;
  font-size: 1.6rem;
}

.featured-card p {
  position: relative;
  opacity: 0.9;
  line-height: 1.7;
  font-size: 1rem;
}

/* FEATURED CARD FLOAT-UP ANIMATION */
.featured-card {
  opacity: 0;
  transform: translateY(80px) scale(0.9) rotateZ(-2deg);
  animation: featuredFloat 1s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  animation-timeline: view();
  animation-range: entry 30% cover 45%;
}

.featured-card:nth-child(1) {
  animation-delay: 0.1s;
}

.featured-card:nth-child(2) {
  animation-delay: 0.25s;
}

.featured-card:nth-child(3) {
  animation-delay: 0.4s;
}

.featured-card:nth-child(4) {
  animation-delay: 0.55s;
}

.featured-card:nth-child(5) {
  animation-delay: 0.7s;
}

.featured-card:nth-child(6) {
  animation-delay: 0.85s;
}

/* Keyframes */
@keyframes featuredFloat {
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateZ(0);
  }
}

/* FEATURED – RESPONSIVE */
@media (max-width: 1024px) {
  .featured {
    padding: 80px 30px;
  }

  .featured h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .featured {
    padding: 70px 20px;
  }

  .featured h2 {
    font-size: 2.1rem;
    margin-bottom: 40px;
  }

  .featured-card {
    padding: 35px 25px;
  }

  .featured-card h3 {
    font-size: 1.45rem;
  }

  .featured-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .featured h2 {
    font-size: 1.9rem;
  }

  .featured-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .featured-wrapper {
    gap: 28px;
  }
}

/* about section*/
.about {
  padding: 80px 20px;
  background: radial-gradient(circle at top, rgba(108, 43, 217, 0.15), #000 70%);
  color: #fff;
}

.about-main-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #7627ff;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 900px;
  margin: auto;
}

.about-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

.about-card:hover {
  box-shadow: 0 20px 50px rgba(108, 43, 217, 0.6);
}

.about-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.about-content {
  padding: 30px;
  text-align: center;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #7627ff;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #e0e0e0;
}

/* ABOUT SECTION – STORY REVEAL*/
.about-card {
  opacity: 0;
  transform: scale(0.96);
  clip-path: inset(0 100% 0 0);
  animation: aboutReveal 1s ease-in-out forwards;
  animation-timeline: view();
  animation-range: entry 25% cover 45%;
}

.about-card:nth-child(2) {
  clip-path: inset(0 0 0 100%);
}

.about-card:nth-child(1) {
  animation-delay: 0.1s;
}

.about-card:nth-child(2) {
  animation-delay: 0.3s;
}

.about-card:nth-child(3) {
  animation-delay: 0.5s;
}

/* Keyframes */
@keyframes aboutReveal {
  to {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0 0 0 0);
  }
}

/* ABOUT – RESPONSIVE */
@media (max-width: 1024px) {
  .about {
    padding: 70px 25px;
  }

  .about-main-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .about-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 60px 20px;
  }

  .about-main-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .about-card img {
    height: 260px;
  }

  .about-content {
    padding: 26px;
  }

  .about-content h3 {
    font-size: 1.6rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .about-main-title {
    font-size: 1.85rem;
  }

  .about-card {
    border-radius: 18px;
  }

  .about-card img {
    height: 220px;
  }

  .about-content {
    padding: 22px;
  }

  .about-content p {
    line-height: 1.7;
  }
}

/* Contact */
.contact {
  padding: 100px 40px;
  background: radial-gradient(circle at top,
      rgba(108, 43, 217, 0.25),
      #000000 75%);
  color: white;
}

.contact h2 {
  text-align: center;
  font-size: 2.8rem;
  color: #6C2BD9;
  margin-bottom: 60px;
  font-family: 'Playfair Display', serif;
}

/* MAIN LAYOUT */
.contact-wrapper {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* LEFT INFO BOX */
.contact-info {
  padding: 20px;
}

.contact-info h3 {
  color: #6C2BD9;
  font-size: 1.6rem;
  margin-bottom: 25px;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-info span {
  margin-right: 8px;
  color: #6C2BD9;
}

.map-container {
  margin-top: 20px;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  max-width: 450px;
  padding: 35px;
  border-radius: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-form h3 {
  color: #6C2BD9;
  margin-bottom: 22px;
  font-size: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s ease;
}

.contact-form textarea {
  min-height: 130px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6C2BD9;
  box-shadow: 0 0 0 2px #7627ff;
}

.contact-form button {
  background: #6C2BD9;
  color: black;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 20px #6C2BD9;
}

/* CONTACT SECTION – FOCUS REVEAL */
.contact-info {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  animation: contactInfoReveal 0.9s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 30% cover 45%;
}

.contact-form {
  opacity: 0;
  transform: scale(0.88);
  filter: brightness(0.7);
  animation: contactFormFocus 1s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  animation-timeline: view();
  animation-range: entry 35% cover 50%;
  animation-delay: 0.25s;
}

/* Keyframes */
@keyframes contactInfoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes contactFormFocus {
  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* CONTACT – RESPONSIVE */
@media (max-width: 1024px) {
  .contact {
    padding: 80px 30px;
  }

  .contact h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
  }

  .contact-wrapper {
    gap: 45px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 70px 20px;
  }

  .contact h2 {
    font-size: 2.1rem;
    margin-bottom: 40px;
  }

  .contact-info h3,
  .contact-form h3 {
    font-size: 1.4rem;
  }

  .contact-form {
    max-width: 100%;
    padding: 30px;
  }

  .map-container {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 60px 15px;
  }

  .contact h2 {
    font-size: 1.9rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .contact-form {
    padding: 26px;
    border-radius: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
  }

  .map-container {
    height: 180px;
    border-radius: 14px;
  }
}

footer {
  background: linear-gradient(to right, #000000, #2c284a, #000000);
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

/* Logo */
.logo {
  font-size: 2rem;
  color: #6C2BD9;
  flex-shrink: 0;
  margin-right: 30px;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.footer-block .row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

/* Headings */
.footer-block h4 {
  flex-basis: 100%;
  font-size: 1.2rem;
  color: #6C2BD9;
  margin-bottom: 8px;
}

/* Links */
.footer-block a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.3s ease;
}

.footer-block a:hover {
  color: #6C2BD9;
}

/* Social icon buttons */
.footer-block a i {
  display: inline-flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #6C2BD9;
  color: white;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-block a:hover i {
  transform: scale(1.2);
  background-color: #fff;
  color: #6C2BD9;
}

/* Footer bottom text */
footer small {
  display: block;
  margin-top: 15px;
  opacity: 0.7;
  font-size: 0.85rem;
}

/* Responsive */
@media(max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-block {
    text-align: center;
  }

  .footer-block .row-links {
    justify-content: center;
  }
}

@media(max-width: 480px) {
  footer {
    padding: 30px 15px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .footer-block h4 {
    font-size: 1rem;
  }

  .footer-block a {
    font-size: 0.85rem;
  }
}
footer {
  opacity: 0;
  transform: scale(0.92) translateZ(-120px);
  filter: blur(6px);
  animation: sectionDepth 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-timeline: view();
  animation-range: entry 20% cover 40%;
}

@keyframes sectionDepth {
  to {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: blur(0);
  }
}