/* CSS Custom Properties for Light/Dark Mode */
:root {
  /* Light mode colors (default) */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-color: #e0e0e0;
    --accent-hover: #8d8d8d;
    --border-color: #404040;
    --button-text: black;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow-hover: rgba(0, 0, 0, 0.4);
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-color: #e0e0e0;
    --accent-hover: #8d8d8d;
    --border-color: #404040;
    --button-text: black;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow-hover: rgba(0, 0, 0, 0.4);
  }
}

/* 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: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-muted);
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
section {
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Home Section */
.home-section {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)),
    url('images/home/780b13_54bdef07340d453b8b0470e1eabb4e6a~mv2.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  justify-content: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.main-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.title-word,
.title-separator {
  display: inline-block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.instagram-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: #405de6;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.instagram-link:hover {
  background: #3448c5;
}

.contact-email {
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.contact-email a {
  color: #ffffff;
  text-decoration: underline;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.contact-email a:hover {
  color: #f0f0f0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

/* About Section */
.about-section {
  background: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.about-section h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.bio-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.bio-content p {
  margin-bottom: 2rem;
}

.bio-image {
  float: right;
  margin: 0 0 2rem 2rem;
  max-width: 300px;
  width: 40%;
}

.bio-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-section {
  text-align: center;
}

.cv-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: #2c3e50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.cv-link:hover {
  background: #34495e;
}

/* Choreography Section */
.choreography-section {
  background: #f8f9fa;
}

.choreography-section h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 3rem;
  text-align: center;
  color: #2c3e50;
}

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

.video-item {
  text-align: center;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-item video {
  width: 100%;
  height: auto;
  display: block;
}

.video-item h3 {
  color: #2c3e50;
  margin: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.video-item p {
  color: #666;
  margin: 0 1rem 1rem 1rem;
  font-size: 0.9rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Featured video - spans all 3 columns at top */
.work-item.featured {
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 0 auto 3rem;
}

/* Regular videos - each takes 1 column in rows of 3 */
.work-item:not(.featured) {
  grid-column: span 1;
}

.work-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Year dividers and visual groupings */
.year-divider {
  grid-column: 1 / -1;
  text-align: center;
  margin: 2rem 0 1rem;
  position: relative;
}

.year-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
}

.year-divider span {
  background: white;
  padding: 0 2rem;
  color: #666;
  font-weight: 500;
  font-size: 1.1rem;
}

.work-item video {
  width: 100%;
  height: 250px;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
}

/* Featured video gets larger thumbnail display */
.work-item.featured video {
  min-height: 400px;
  height: 400px;
  object-fit: cover;
}

.work-item:hover video {
  transform: scale(1.02);
}

/* Video overlay for better text readability */
.work-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-item:hover::after {
  opacity: 1;
}

.work-item iframe {
  width: 100%;
  height: 250px;
  display: block;
  border: none;
}

.work-image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.work-item h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #2c3e50;
}

.work-item p {
  padding: 0 1.5rem 1.5rem;
  color: #666;
  font-size: 1rem;
}

/* Performances Section */
.performances-section {
  background: #fff;
}

.performances-section h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 3rem;
  text-align: center;
  color: #2c3e50;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.performance-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.performance-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.performance-item video {
  width: 100%;
  height: auto;
  display: block;
}

.performance-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #fa709a 0%, #fee140 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.performance-item h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #2c3e50;
}

.performance-item p {
  padding: 0 1.5rem 1.5rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Photos Section */
.photos-section {
  background: #f8f9fa;
}

.photos-section h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 3rem;
  text-align: center;
  color: #2c3e50;
}

.photo-gallery {
  max-width: 1000px;
  margin: 0 auto;
}

/* Featured Image Container */
.featured-image-container {
  position: relative;
  width: 100%;
  height: 700px;
  margin-bottom: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.featured-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: none;
}

/* Navigation Buttons */
.nav-buttons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 10;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 2rem;
}

.thumbnail {
  position: relative;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(45, 62, 80, 0.3);
}

.thumbnail.active {
  border-color: #2c3e50;
  box-shadow: 0 5px 15px rgba(45, 62, 80, 0.3);
}

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

.thumbnail:hover img {
  opacity: 0.9;
}

/* Responsive Design */
/* Large tablet/small desktop styles */
@media (max-width: 1200px) {
  .featured-image-container {
    height: 550px;
  }

  .photo-gallery {
    max-width: 900px;
  }
}

/* Tablet styles */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item.featured {
    grid-column: 1 / -1;
    max-width: 700px;
  }

  .work-item.featured video {
    min-height: 300px;
    height: 300px;
  }

  .work-item:not(.featured) video {
    height: 200px;
  }

  /* Photo Gallery Tablet Styles */
  .featured-image-container {
    height: 450px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .thumbnail {
    height: 80px;
  }

  .work-item:not(.featured) {
    grid-column: span 1;
  }

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

  .performance-item:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Small tablet styles */
@media (max-width: 900px) {
  .featured-image-container {
    height: 400px;
  }

  .photo-gallery {
    max-width: 100%;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .thumbnail {
    height: 75px;
  }
}

@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;
  }

  .home-section {
    background-attachment: scroll;
  }

  .main-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    flex-direction: column;
    white-space: normal;
  }

  .title-separator {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .work-grid,
  .performance-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-item.featured {
    grid-column: 1;
    max-width: 100%;
  }

  .work-item.featured video {
    min-height: 250px;
    height: 250px;
  }

  .work-item:not(.featured) {
    grid-column: 1;
  }

  .work-item:not(.featured) video {
    height: 180px;
  }

  /* Photo Gallery Mobile Styles */
  .featured-image-container {
    height: 350px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .thumbnail {
    height: 60px;
    border-radius: 6px;
  }

  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .nav-buttons {
    padding: 0 10px;
  }

  .about-section h2,
  .choreography-section h2,
  .performances-section h2,
  .photos-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .bio-image {
    float: none;
    margin: 0 auto 2rem;
    max-width: 250px;
    width: 80%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
    letter-spacing: 1px;
    flex-direction: column;
    white-space: normal;
  }

  .title-separator {
    display: none;
  }

  .nav-container {
    padding: 1rem;
  }

  .work-grid,
  .performance-grid {
    grid-template-columns: 1fr;
  }
}

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

.work-item,
.performance-item {
  animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling for all anchor links */
a[href^='#'] {
  scroll-behavior: smooth;
}

/* ---------------------------------------------- */
/* Adaptive Light/Dark Mode Overrides (Variables) */
/* ---------------------------------------------- */
/* Section backgrounds (alternate pattern) */
.choreography-section { background: var(--bg-secondary); transition: background-color 0.3s ease; }
.performances-section { background: var(--bg-primary); transition: background-color 0.3s ease; }
.photos-section { background: var(--bg-secondary); transition: background-color 0.3s ease; }

/* Headings */
.choreography-section h2,
.performances-section h2,
.photos-section h2 { color: var(--accent-color); transition: color 0.3s ease; }

/* Cards / Items */
.video-item,
.work-item,
.performance-item { background: var(--card-bg); box-shadow: 0 5px 15px var(--card-shadow); transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }

.video-item:hover,
.work-item:hover,
.performance-item:hover { box-shadow: 0 10px 25px var(--card-shadow-hover); }

/* Card text */
.video-item h3,
.work-item h3,
.performance-item h3 { color: var(--accent-color); transition: color 0.3s ease; }

.video-item p,
.work-item p,
.performance-item p { color: var(--text-muted); transition: color 0.3s ease; }

/* Year divider */
.year-divider::before { background: linear-gradient(to right, transparent, var(--border-color), transparent); }
.year-divider span { background: var(--card-bg); color: var(--text-muted); }

/* CV button */
.cv-link { background: var(--accent-color); color: var(--button-text); transition: background-color 0.3s ease; }
.cv-link:hover { background: var(--accent-hover); color: var(--button-text); }

/* Mobile nav menu background */
@media (max-width: 768px) { .nav-menu { background-color: var(--card-bg); } }

/* Photo gallery container */
.featured-image-container { background: var(--bg-secondary); transition: background-color 0.3s ease; }

/* Thumbnail active state */
.thumbnail.active { border-color: var(--accent-color); box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color) 40%, transparent); }

/* Navigation button in gallery */
.nav-btn { background: color-mix(in srgb, var(--card-bg) 90%, transparent); color: var(--accent-color); }
.nav-btn:hover { background: var(--card-bg); }

/* Instagram button brand color - keep brand but soften in dark mode */
@media (prefers-color-scheme: dark) {
  .instagram-link { background: #5b74f0; }
  .instagram-link:hover { background: #4862d9; }
  .bio-image img { box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
}

/* High contrast focus outline improvements */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }

/* Smooth transition for global elements */
body, .navigation, .nav-menu, .year-divider span { transition: background-color 0.3s ease, color 0.3s ease; }

