/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  /* shift the page-wide gradient to favor purple at the top while keeping blue accents */
  background: linear-gradient(135deg,#6b3aa8 0%,#3348c8 28%,#5a2a99 60%,#7b2fa2 100%);
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 0;
}

/* Style the linked site title so it matches the previous heading appearance */
.nav-logo a {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 0;
  text-decoration: none;
  display: inline-block;
}
.nav-logo a:hover { color: #333; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #333;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #333;
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #2c3e50;
  margin: 3px 0;
  transition: 0.3s;
}

/* Sections */
.section {
  min-height: 100vh;
  padding: 120px 0 80px;
  display: block; /* allow natural scrolling between sections */
  scroll-margin-top: 110px; /* account for fixed navbar when jumping to anchors */
}

/* Section base positioning (overlays use section-relative stacking) */
.section {
  position: relative;
}
.section .container {
  position: relative;
  z-index: 2; /* put content above separators/overlays */
}

/* Thin, subtle separator between sections (appears at the top of each section except the first) */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.16), rgba(255,255,255,0.03));
  pointer-events: none;
  z-index: 1;
}

.section-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 3rem;
}

/* Home Section */
#home {
  background: transparent; /* use body gradient for continuous color flow */
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Unified subtle overlay for all sections to keep color blending consistent */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(107,58,168,0.12) 0%, rgba(51,72,200,0.12) 40%, rgba(90,42,153,0.12) 70%),
    linear-gradient(rgba(0,0,0,0.06), rgba(0,0,0,0.10));
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  color: white;
  margin-bottom: 1rem;
}

/* Stronger, punchy hero heading */
.hero-text h1 {
  font-size: 4rem;
  letter-spacing: 0.6px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
  line-height: 1.05;
}

.hero-text h2 {
  color: #ecf0f1;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ecf0f1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #333;
  color: white;
}

.btn-primary:hover {
  background: #555;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

/* Make the prominent CTA stand out */
.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 0 30px rgba(255,255,255,0.03) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-secondary:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35), 0 0 40px rgba(255,255,255,0.04) inset;
}

.btn-secondary:hover {
  background: white;
  color: #333;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 300px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.image-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Photo styles for hero */
.hero-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  border: 4px solid rgba(255, 255, 255, 0.12);
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  /* gentle float animation while keeping size unchanged */
  animation: float 6s ease-in-out infinite;
}

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

/* Hero background animation (subtle, behind content) */
.hero-anim-bg{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0; /* beneath the unified overlay (which is z-index:1) and below content (container z-index:2) */
  opacity: 0.12;
}
.hero-anim-bg .hero-bg-video{
  width: 70%;
  max-width: 900px;
  object-fit: cover;
  filter: saturate(1.02) contrast(0.98);
}
@media (max-width:800px){
  .hero-anim-bg{ display:none; }
}

@media (max-width: 800px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }
}

/* Home bio spacing */
.home-bio {
  margin-top: 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  padding: 0 10px;
}

/* Make the bio appear on a subtle frosted card for separation */
.home-bio {
  background: rgba(255,255,255,0.04);
  padding: 1.6rem 1.2rem;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

@media (max-width: 800px) {
  .home-bio {
    margin-top: 2rem;
    text-align: center;
    padding: 0 16px;
  }
}

/* Accompanist Section */
.accompanist-content {
  display: grid;
  gap: 4rem;
}

.qualifications {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 15px;
  border-left: 5px solid #333;
}

.qualification-item {
  margin-bottom: 2rem;
}

.qualification-item:last-child {
  margin-bottom: 0;
}

.qualification-item h4 {
  color: #333;
  margin-bottom: 0.5rem;
}

.samples h3 {
  margin-bottom: 2rem;
  text-align: center;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.sample-item {
  background: rgba(255,255,255,0.06);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.sample-item:hover {
  transform: translateY(-5px);
}

.sample-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
}

.sample-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-info {
  text-align: center;
  max-width: 800px;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* Make non-home sections visually match Home: dark gradient background and translucent cards */
.section:not(#home) {
  background: transparent; /* show body gradient for smooth color flow */
  color: #fff;
  position: relative;
  overflow: visible;
}

/* Emphasize blue in the bottom section (teacher) while keeping the continuous page gradient */
#teacher::before { /* keep a light overlay, but unified .section::before controls main tint */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.02), rgba(0,0,0,0.04));
  pointer-events: none;
  z-index: 0;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.02), rgba(0,0,0,0.04));
  pointer-events: none;
  z-index: 0;
}

.section:not(#home) .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative; /* keep content above overlay */
  z-index: 1;
}

/* Ensure inner blocks are translucent on top of the section overlays */
.section:not(#home) .contact-item,
.section:not(#home) .contact-form,
.section:not(#home) .qualifications,
.section:not(#home) .teacher-content,
.section:not(#home) .service-item,
.section:not(#home) .testimonial-item,
.section:not(#home) .sample-item {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.04);
}

.section-title {
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg,#89a1ff,#c186ff);
}

/* Translucent card styles for inner blocks to match Home's frosted look */
.section:not(#home) .qualifications,
.section:not(#home) .contact-form,
.section:not(#home) .teacher-content,
.section:not(#home) .samples-grid .sample-item,
.section:not(#home) .services-grid .service-item,
.section:not(#home) .testimonials-grid .testimonial-item {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}

/* Ensure text inside those cards is readable on dark bg */
.section:not(#home) h3,
.section:not(#home) h4,
.section:not(#home) p {
  color: rgba(255,255,255,0.95);
}

@media (max-width: 900px) {
  .section:not(#home) .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section-title::after {
    width: 50px;
  }
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 350px;
}

.contact-item i {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.9);
  margin-right: 1rem;
  width: 30px;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  color: rgba(255,255,255,0.95);
}

.contact-form {
  background: rgba(255,255,255,0.06);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.7);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.22);
}

/* Teacher Section */
.teacher-content {
  display: grid;
  gap: 4rem;
}

.teaching-philosophy {
  /* Make card translucent to allow the section overlay to show through
     and improve readability on the dark, blended background */
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  padding: 3rem;
  border-radius: 15px;
  border-left: 5px solid rgba(255,255,255,0.06);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center; /* center single/few items */
  justify-items: center;
}

.service-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 560px; /* constrain single card width */
  margin: 0 auto;
}
.sample-item p {
  font-family: "Lora", serif;
  font-size: 1rem;
}
.service-item:hover {
  transform: translateY(-5px);
}

.service-item i {
  font-size: 3rem;
  color: #333;
  margin-bottom: 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-item {
  background: rgba(255,255,255,0.06);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  border-left: 5px solid rgba(255,255,255,0.06);
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-item h4 {
  color: #333;
  text-align: right;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-info h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ccc;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .image-placeholder {
    width: 250px;
    height: 300px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .contact-details {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .contact-item {
    width: 100%;
    max-width: 100%;
  }

  .contact-info {
    width: 100%;
    padding: 0 1rem;
  }

  .samples-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .sample-item {
    width: 100%;
    padding: 1.5rem;
    margin: 0;
  }

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

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

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }

  .section {
    padding: 40px 0 30px;
    min-height: auto;
  }
}

/* Responsive video wrapper for YouTube embeds */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #000; /* placeholder bg while loading */
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .image-placeholder {
    width: 200px;
    height: 250px;
  }

  .qualifications,
  .teaching-philosophy {
    padding: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-content {
    padding: 0;
  }

  .contact-info {
    padding: 0;
  }

  .contact-item {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .contact-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
  }

  .samples-grid {
    gap: 1rem;
  }

  .sample-item {
    padding: 1rem;
  }

  .sample-item h4 {
    font-size: 1.1rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-links {
    gap: 0.75rem;
  }
}

/* Animation for hamburger menu */
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
