@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core Colors */
  --bg-dark: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-hover: #121212;

  --text-main: #ffffff;
  --text-muted: #a1a1aa;

  /* Accent Definitions */
  --accent-guitar: #FF462E;
  --accent-piano: #8B23D4;
  --accent-drums: #FEB706;
  --accent-vocal: #139CD4;

  /* Theme Control (Default to Guitar) */
  --current-accent: var(--accent-guitar);
  --current-glow: rgba(255, 70, 46, 0.4);

  /* Layout */
  --max-width: 1280px;
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Theme Transition */
body.theme-transitioning * {
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease !important;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  letter-spacing: -0.02em;
  width: 100%;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

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

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shine {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes vibrate {
  0% {
    transform: rotate(-2deg) skewX(-5deg) translate(0.5px, 0.5px);
  }

  25% {
    transform: rotate(-2deg) skewX(-5deg) translate(-0.5px, 0.5px);
  }

  50% {
    transform: rotate(-2deg) skewX(-5deg) translate(0.5px, -0.5px);
  }

  75% {
    transform: rotate(-2deg) skewX(-5deg) translate(-0.5px, -0.5px);
  }

  100% {
    transform: rotate(-2deg) skewX(-5deg) translate(0.5px, 0.5px);
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 101;
}

.logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--current-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--current-accent);
  transition: var(--transition-fast);
}

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

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 0.75rem;
  line-height: 1;
}

.btn-primary {
  background-color: var(--current-accent);
  color: #ffffff;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--current-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Section Spacing */
section {
  padding: 8rem 0;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(5, 5, 5, 0.7) 0%,
      rgba(5, 5, 5, 0.4) 50%,
      var(--bg-dark) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background:
    repeating-linear-gradient(135deg,
      transparent 0px,
      transparent 12px,
      rgba(255, 255, 255, 0.1) 12px,
      rgba(255, 255, 255, 0.1) 13px,
      transparent 13px,
      transparent 25px),
    linear-gradient(to right,
      #139CD4 0%,
      /* Vocal Blue */
      #FF462E 33%,
      /* Guitar Red */
      #8B23D4 66%,
      /* Piano Purple */
      #FEB706 100%
      /* Drum Yellow */
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: uppercase;
  display: inline-block;
  vertical-align: baseline;
  letter-spacing: inherit;
  white-space: nowrap;
  /* Multi-layer grunge shadow for depth */
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
  cursor: default;
}

.text-gradient:hover {
  filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.6));
  animation: vibrate 0.1s linear infinite;
}

.hero-content p {
  font-size: 1.25rem;
  margin: 1.5rem auto 3rem;
  max-width: 600px;
  color: #d4d4d8;
}

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

.btn-outline i {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Theme Selector Integrated in Hero --- */
.hero-theme-wrapper {
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.selector-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.theme-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 110px;
}

.theme-btn .theme-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-btn .theme-icon i {
  width: 18px;
  height: 18px;
}

.theme-btn .theme-name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.theme-btn.active {
  border-color: var(--current-accent);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  box-shadow: 0 10px 30px var(--current-glow);
}

.theme-btn.active .theme-icon {
  background: var(--current-accent);
  color: #fff;
}

/* --- About Section --- */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  text-align: center;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-image {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.accent-text {
  color: var(--current-accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1;
  letter-spacing: -8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.plus-sign {
  font-size: 0.4em;
  margin-top: 0.1em;
  margin-left: 0.05em;
  color: var(--current-accent);
}

.stat-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-top: 1rem;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.glow-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--current-glow);
  filter: blur(100px);
  z-index: -1;
  border-radius: 50%;
}

/* --- Classes Section --- */
.section-header {
  margin-bottom: 4rem;
}

.section-header p {
  max-width: 600px;
  margin-top: 1rem;
}

.section-header.center {
  text-align: center;
  margin: 0 auto 4rem;
}

.section-header.center p {
  margin: 1rem auto 0;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.class-card {
  background: var(--bg-surface);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.class-card {
  --card-accent: var(--accent-vocal);
}

.class-card[data-category="vocal"] {
  --card-accent: var(--accent-vocal);
}

.class-card[data-category="drums"] {
  --card-accent: var(--accent-drums);
}

.class-card[data-category="guitar"] {
  --card-accent: var(--accent-guitar);
}

.class-card[data-category="piano"] {
  --card-accent: var(--accent-piano);
}

.class-card:hover {
  transform: translateY(-10px);
  border-color: var(--card-accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.class-card:hover .card-img img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-surface), transparent);
}

.card-content {
  padding: 2rem;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.icon-box {
  position: absolute;
  top: -24px;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--card-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition-fast);
}

.class-card:hover .icon-box {
  transform: scale(1.1);
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.class-card:hover .card-content h3 {
  color: var(--card-accent);
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.explore-btn i {
  transition: transform 0.3s ease;
}

.explore-btn:hover i {
  transform: translateX(5px);
  color: var(--card-accent);
}

/* --- Info Section Layout --- */
.info-section {
  background: var(--bg-surface);
  position: relative;
}

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

.info-box {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.info-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.info-box i {
  color: var(--accent);
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
}

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

/* --- Teachers Section --- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.teacher-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-surface);
}

.teacher-img {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.teacher-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.teacher-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.3s ease;
}

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

.teacher-card:hover .teacher-overlay {
  opacity: 1;
}

.socials {
  display: flex;
  gap: 1rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.teacher-card:hover .socials {
  transform: translateY(0);
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.socials a:hover {
  background: var(--text-main);
  color: var(--bg-dark);
}

.teacher-info {
  padding: 1.5rem;
  text-align: center;
}

.teacher-info h3 {
  margin-bottom: 0.25rem;
}

.role {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vocal-role {
  color: var(--accent-vocal);
}

.drums-role {
  color: var(--accent-drums);
}

.piano-role {
  color: var(--accent-piano);
}

.guitar-role {
  color: var(--accent-guitar);
}

/* --- Video Gallery --- */
.gallery {
  background: var(--bg-surface);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.video-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--bg-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.thumbnail {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 0.8;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
  z-index: 2;
}

.play-btn.large {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.play-btn i {
  width: 24px;
  height: 24px;
}

.video-card:hover .thumbnail img {
  transform: scale(1.05);
  opacity: 1;
}

.video-card:hover .play-btn {
  background: var(--text-main);
  color: var(--bg-dark);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card.playing .yt-thumb {
  opacity: 0 !important;
}

.video-card.playing .play-btn {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.9) !important;
}

.video-card.playing .iframe-container {
  opacity: 1 !important;
}

.video-info {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.video-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.center-btn {
  text-align: center;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--text-main);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--text-main);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--text-main);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Online Lessons Page specific styles --- */
body.subpage .navbar {
  background-color: var(--bg-dark);
}

.bg-surface {
  background-color: var(--bg-surface);
}

.short-card {
  display: block;
  background: var(--bg-dark);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.short-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.short-thumbnail {
  position: relative;
  height: 400px;
}

.short-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.short-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  z-index: 2;
}

.short-card:hover .short-thumbnail img {
  transform: scale(1.05);
}

.short-info {
  padding: 1.5rem;
}

.short-info h4 {
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.short-card:hover .short-info h4 {
  color: var(--accent);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .about-grid,
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  section {
    padding: 5rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}