/* ==========================================================================
   MAIN STYLESHEET - Uses variables from config.css
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ==========================================================================
   NAVIGATION - Minimalist hamburger menu for all devices
   ========================================================================== */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-navbar);
  padding: var(--spacing-lg) var(--spacing-xl);
  transition: all var(--transition-normal);
}

/* Optional: Add subtle background on scroll */
nav.scrolled {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--spacing-md) var(--spacing-xl);
}

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

.logo {
  font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-2xl));
  font-weight: var(--font-weight-bold);
  font-family: var(--font-heading);
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: var(--letter-spacing-tight);
  opacity: 0.9;
  transition: opacity var(--transition-normal);
}

.logo:hover {
  opacity: 1;
}

/* Hamburger Menu Button - Now visible on all devices */
.mobile-menu-toggle {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  padding: var(--spacing-sm);
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-normal);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: var(--border-radius-sm);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Full-screen overlay menu */
.nav-links {
  display: flex;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: var(--spacing-2xl);
  padding: var(--spacing-3xl);
  transition: right var(--transition-normal);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
  position: relative;
  opacity: 0.8;
}

.nav-links.active a {
  animation: fadeInRight 0.5s ease forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

.nav-links li:nth-child(1) {
  --i: 1;
}
.nav-links li:nth-child(2) {
  --i: 2;
}
.nav-links li:nth-child(3) {
  --i: 3;
}
.nav-links li:nth-child(4) {
  --i: 4;
}
.nav-links li:nth-child(5) {
  --i: 5;
}
.nav-links li:nth-child(6) {
  --i: 6;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 0.8;
    transform: translateX(0);
  }
}

.nav-links a:hover {
  color: var(--accent-primary);
  opacity: 1;
  transform: translateX(10px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-2);
  transition: width var(--transition-normal);
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100vh;
  width: 100vw; /* Use viewport width */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-dark);
  overflow: hidden;
  margin: 0; /* Remove any margins */
  padding: 0; /* Remove any padding */
  margin-left: calc(-50vw + 50%); /* Break out of container */
  margin-right: calc(-50vw + 50%); /* Break out of container */
}

/* Full-width background image layer */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--hero-image-opacity);
  z-index: 0;
}

/* Animated dots overlay */
.hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: var(--gradient-radial);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: 1;
  opacity: var(--hero-dots-opacity);
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  text-align: center;
  z-index: 2; /* Above both image and dots */
  padding: var(--spacing-xl);
  animation: fadeInUp 1s ease;
  position: relative;
}

.hero-title {
  font-size: clamp(
    var(--hero-title-size-mobile),
    8vw,
    var(--hero-title-size-max)
  );
  margin-bottom: var(--spacing-md);
  color: white; /* Simple white text */
  letter-spacing: var(--letter-spacing-tight);
  font-weight: var(--font-weight-black);
  font-family: var(--font-heading);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Keep shadow for readability */
}

.tagline {
  font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-2xl));
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  font-weight: var(--font-weight-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Just shadow for readability */
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.cta-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: var(--spacing-md) calc(var(--spacing-xl) * 1.25);
  border: none;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-2);
  color: white;
  box-shadow: var(--shadow-accent);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: var(--border-width-thick) solid var(--accent-secondary);
}

.btn-secondary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   SECTIONS & LAYOUT
   ========================================================================== */

section {
  padding: var(--spacing-4xl) var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

/* Special handling for hero section to be full width */
section.hero {
  max-width: none;
  padding: 0;
  margin: 0;
}

.section-title {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  position: relative;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
}

.card {
  background: var(--bg-section);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  margin: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   BIO SECTION
   ========================================================================== */

.bio::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(233, 69, 96, 0.05) 0%,
    transparent 70%
  );
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.bio-content {
  position: relative;
  z-index: var(--z-above);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.bio-text {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  text-align: justify;
  text-justify: inter-word;
}

.bio-text p {
  margin-bottom: var(--spacing-md);
}

/* Stats Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.stat {
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

/* ==========================================================================
   SHOWREEL SECTION
   ========================================================================== */

.showreel {
  margin: var(--spacing-3xl) auto;
  max-width: 1200px;
  padding: 0 var(--spacing-xl);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 1075px;
  margin: 0 auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   GALLERY - With hover overlays for descriptions
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  height: 300px;
  background: var(--bg-section);
  cursor: default; /* Changed from pointer since clicking does nothing */
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-accent);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-normal);
  pointer-events: none; /* Prevent image interaction */
  user-select: none; /* Prevent image selection */
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

/* Gallery overlay with text */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-xl);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none; /* Prevent overlay from blocking interactions */
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }

  .gallery-item:hover .gallery-title,
  .gallery-item:hover .gallery-description {
    transform: translateY(0);
  }
}

.gallery-title {
  color: white;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.gallery-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  transform: translateY(20px);
  transition: transform var(--transition-normal) 0.1s;
}

/* Mobile scroll-based reveal */
@media (hover: none), (max-width: 768px) {
  .gallery-overlay {
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .gallery-overlay.visible-mobile {
    opacity: 1;
  }

  .gallery-overlay.visible-mobile .gallery-title,
  .gallery-overlay.visible-mobile .gallery-description {
    transform: translateY(0);
  }

  .gallery-title,
  .gallery-description {
    transition: transform 0.4s ease;
  }

  /* Ensure text doesn't interfere with scrolling on mobile */
  .gallery-item {
    cursor: default;
  }

  /* No hover effects on mobile */
  .gallery-item:hover {
    transform: none;
    box-shadow: none;
  }

  .gallery-item:hover img {
    transform: none;
    filter: none;
  }
}

/* ==========================================================================
   REPERTOIRE
   ========================================================================== */

.repertoire-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-size: var(--font-size-lg);
}

.repertoire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.repertoire-category h3 {
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.repertoire-category ul {
  list-style: none;
}

.repertoire-category li {
  padding: var(--spacing-sm) 0;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  cursor: default;
  border-bottom: 1px solid var(--border-color);
}

.repertoire-category li:last-child {
  border-bottom: none;
}

.repertoire-category li:hover {
  color: var(--text-primary);
  padding-left: var(--spacing-sm);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact {
  background: linear-gradient(
    135deg,
    var(--bg-section) 0%,
    var(--primary-dark) 100%
  );
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-xl);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-family: var(--font-primary);
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================================================
   SOCIAL LINKS - Fixed scaling issues
   ========================================================================== */

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: var(--border-radius-circle);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.social-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--gradient-2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-accent);
  border-color: transparent;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-xl);
  background: var(--primary-dark);
  color: var(--text-muted);
}

footer p {
  margin: var(--spacing-sm) 0;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  /* Navigation already styled for all devices - no changes needed */

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .btn-full {
    max-width: 100%;
  }

  .card {
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin: 0 var(--spacing-md); /* Only side margins to match gallery */
  }

  /* Also fix the video section */
  .showreel {
    padding: 0 var(--spacing-md); /* Match the gallery section padding */
  }

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

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

  /* Ensure social links stay circular on mobile */
  .social-links {
    gap: var(--spacing-md);
  }

  .section-title {
    font-size: var(--font-size-4xl); /* Reduced from 3xl-5xl */
    margin-bottom: var(--spacing-sm); /* Reduced from 2xl */
  }

  /* Reduce spacing between sections on mobile */
  section {
    padding: var(--spacing-2xl) var(--spacing-md); /* Reduced from 3xl */
  }

  /* Adjust specific sections that need it */
  #bio,
  #repertoire,
  #contact {
    padding: var(--spacing-2xl) 0; /* Match the reduced spacing */
  }

  #gallery {
    padding: var(--spacing-sm) var(--spacing-sm); /* Match other sections */
  }

  .gallery {
    margin-top: var(--spacing-sm); /* Reduced from 2xl */
  }

  #gallery .section-title {
    padding: 0 var(--spacing-sm); /* Add padding to title if needed */
    margin-bottom: var(--spacing-sm); /* Match reduced spacing */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--hero-title-size-mobile);
  }

  .tagline {
    font-size: var(--font-size-lg);
  }

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

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