@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
}

/* === GLOBAL VARIABLES === */
:root {
  /* Easing for that "premium" smooth feel */
  --smooth-ease: cubic-bezier(0.25, 1, 0.5, 1); 
  --split-speed: 2s;
  
  /* Colors */
  --music-accent: #cca43b; /* Gold/Brass */
  --dance-accent: #00e0ff; /* Electric Cyan */
  
  /* Fonts */
  --font-classical: 'Cormorant Garamond', serif;
  --font-dance: 'Montserrat', sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%; /* Important for the split screen */
  font-family: var(--font-dance); /* Default fallback */
  background: #0f0f10;
  color: #fff;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* === NAVIGATION === */
.floating-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 5vw; /* Adjust padding as needed */
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  /* REMOVE THIS: mix-blend-mode often conflicts with backgrounds */
  /* mix-blend-mode: difference; */ 
  
  color: #fff;

  /* === NEW BACKGROUND STYLES === */
  /* 1. The Gray Shade: Black with 60% opacity (0.6) */
  /* background: rgba(0, 0, 0, 0.1);  */
  
  /* 2. The Glass Effect: Blurs the image behind the bar */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  
  /* Optional: Smooth transition if you animate it later */
  transition: background 0.3s ease;
}

.logo {
  font-family: var(--font-classical);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links a {
  margin-left: 2.5rem;
  font-family: var(--font-dance);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.nav-links a:hover { opacity: 0.7; }

/* === SPLIT SCREEN LOGIC === */
.split-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
}

.split {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: width var(--split-speed) var(--smooth-ease); /* The smooth magic */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Background Images */
.bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--smooth-ease); /* Slower zoom for drama */
  z-index: 0;
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background 0.5s;
}

.theme-music .overlay { background: rgba(20, 15, 10, 0.5); }
.theme-dance .overlay { background: rgba(10, 15, 20, 0.6); }

/* Content Wrapper */
.content {
  position: relative;
  z-index: 10;
  padding: 0 3rem;
  max-width: 500px;
  opacity: 0.9;
  transition: opacity 0.4s, transform 0.4s;
}

/* TYPOGRAPHY & BUTTONS */
h2 {
  font-size: 3.5rem;
  margin: 0 0 1rem;
  line-height: 1;
}

.theme-music h2 { font-family: var(--font-classical); font-style: italic; font-weight: 400; }
.theme-dance h2 { font-family: var(--font-dance); text-transform: uppercase; font-weight: 700; letter-spacing: -2px; }

p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.8;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
}

.theme-music .btn:hover { background: var(--music-accent); border-color: var(--music-accent); color: #000; }
.theme-dance .btn:hover { background: var(--dance-accent); border-color: var(--dance-accent); color: #000; }

/* === INTERACTION (Desktop) === */
@media (min-width: 800px) {
  /* Hover Left: Left becomes 65%, Right becomes 35% */
  .split.left:hover { width: 65%; }
  .split.left:hover ~ .split.right { width: 35%; }

  /* Hover Right: Right becomes 65%, Left becomes 35% */
  .split.right:hover { width: 65%; }
  .split-container:has(.split.right:hover) .split.left { width: 35%; }

  /* Image Zoom on Hover */
  .split:hover .bg-img { transform: scale(1.05); }
  
  /* Dim the non-hovered side text slightly */
  .split-container:has(.split:hover) .split:not(:hover) .content { opacity: 0.5; transform: scale(0.95); }

  .split:hover {
  /* This adds the 20px thick "glass" rim around the very edge */
  border: 20px solid rgba(255,255,255,0.1); 
}
/* Creates a virtual layer on top of the .split section */
.split::after {
  content: "";               /* Necessary to make the element exist */
  position: absolute;        /* Allows us to float it on top of the image */
  
  /* Initial Position (Hidden) */
  top: 2rem; left: 2rem; right: 2rem; bottom: 2rem;
  
  /* The Look */
  border: 1px solid rgba(255,255,255,0.3); /* Thin, semi-transparent white line */
  z-index: 20;               /* Sits on top of the image */
  pointer-events: none;      /* Lets your mouse click "through" it to the button */
  
  /* Animation Setup */
  opacity: 0; 
  transition: 0.5s;
}

/* The "Action" State (When Hovered) */
.split:hover::after { 
  opacity: 1;                /* Fade in */
  top: 1.5rem; bottom: 1.5rem; /* Shrink vertically for that "focus" effect */
}
}
/* === BLEND THE SEAM (Desktop) === */
  
  /* 1. Fade the Right edge of the Left Section */
  .split:first-child::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 0; 
    width: 200px; /* How wide the fade is */
    
    /* Gradient: Transparent -> Dark Page Color */
    background: linear-gradient(to right, transparent, #0f0f10);
    z-index: 5; /* Visible above image, below text */
    pointer-events: none; /* Allows clicking through it */
  }

  /* 2. Fade the Left edge of the Right Section */
  .split:last-child::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0; 
    width: 200px; 
    
    /* Gradient: Dark Page Color -> Transparent */
    background: linear-gradient(to right, #0f0f10, transparent);
    z-index: 5;
    pointer-events: none;
  }
  
/* === MOBILE (iPhone/Vertical Split) === */
@media (max-width: 800px) {
  
  /* 1. LOCK THE SCREEN (Prevent scrolling so it feels like an app) */
  .home-body { 
    overflow: hidden; 
    position: fixed; /* fix for some iOS bounce effects */
    width: 100%;
    height: 100%;
  }

  /* 2. VERTICAL CONTAINER (With Padding Fix) */
  .split-container { 
    flex-direction: column; 
    width: 100%; 
    height: 100dvh; /* "dvh" adapts to the dynamic iPhone address bar */
    
    /* FIX: Pushes the images down so the Nav bar doesn't block them */
    padding-top: 80px; 
  }

  /* 3. FLEXIBLE SECTIONS */
  .split { 
    width: 100% !important; 
    flex: 1; /* Both start equal (50/50) */
    height: auto; 
    transition: flex 0.6s var(--smooth-ease); /* Smooth grow/shrink animation */
  }

  /* 4. THE INTERACTION (Touch to Enlarge) */
  .split:active { 
    flex: 2; 
  }
  
  /* === BLEND THE SEAM (Mobile Only) === */
  
  /* 1. Fade the bottom of the Top Section (Music) */
  .split:first-child::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; 
    width: 100%; 
    height: 150px; /* How tall the fade is */
    
    /* Gradient: Transparent -> Dark Background Color */
    background: linear-gradient(to bottom, transparent, #0f0f10);
    z-index: 2; /* Sit on top of image, but below text */
    pointer-events: none; /* Click through it */
  }

  /* 2. Fade the top of the Bottom Section (Dance) */
  .split:last-child::before {
    content: "";
    position: absolute;
    top: 0; left: 0; 
    width: 100%; 
    height: 150px; 
    
    /* Gradient: Dark Background Color -> Transparent */
    background: linear-gradient(to bottom, #0f0f10, transparent);
    z-index: 2;
    pointer-events: none;
  }

  .split-container:has(.split:active) .split:not(:active) .content {
    opacity: 0.5;
    transform: scale(0.9);
  }

  /* 5. NAVIGATION FIX */
  .floating-nav { 
    /* Changed from fixed to absolute so it scrolls UP with the page content */
    position: absolute !important; 
    top: 0;
    padding: 1.5rem 5vw; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); /* Improves readability */
  }

  /* Adjust Content positioning for tight spaces */
  .content { padding: 0 1.5rem; }
  h2 { font-size: 2.5rem; }

  /* 6. INFO/CONTACT PAGE FIXES */
  .info-section { flex-direction: column; gap: 2rem; text-align: center; }
  .profile-frame { width: 200px; margin: 0 auto; }
  .contact-form { width: 100%; text-align: left; }
  
  /* lightbox adjustment */
  .close-btn { top: 1rem; right: 1.5rem; font-size: 2rem; }
  .lightbox-content { max-width: 95%; }

  /* 7. GALLERY CAPTIONS (Always Visible) */
  .gallery-caption {
    opacity: 1 !important; /* Force visibility without hover */
    transform: translateY(0) !important; /* Reset position */
    
    /* Make the background slightly darker so white text is always readable on mobile */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 80%, transparent 100%);
  }
}

/* === PORTFOLIO PAGE SPECIFICS (Grid) === */
.portfolio-header {
  padding: 8rem 5vw 4rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0 5vw 4rem;
}

.gallery-item {
  display: block; /* Make it a link */
  position: relative;
  aspect-ratio: 3/4; /* Vertical portrait shape */
  overflow: hidden;
  background: #222;
}

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--smooth-ease);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 100%;
  padding: 1.5rem;
  
  /* CHANGE 1: Explicitly set text to White */
  color: #ffffff; 
  
  /* CHANGE 2: Stronger Background 
     - Starts at 0.95 (very dark) 
     - Fades to 0.0 (transparent) 
     - "to top" ensures the bottom is darkest */
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  
  /* Optional: Adds a tiny shadow to text to pop it off the background further */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);

  /* Animation properties (kept the same) */
  opacity: 0; 
  transform: translateY(10px);
  transition: 0.4s;
}

/* NEW: Increase Title Size */
.gallery-caption h3 {
  font-size: 1.5rem;   /* Adjust this number (default is usually ~1.17rem) */
  margin: 0 0 0.5rem;  /* Adds a little space below the title */
  font-weight: 600;    /* Makes it bold */
}

/* NEW: Increase Description Size */
.gallery-caption p {
  font-size: 1.1rem;   /* Adjust this number (default is usually 1rem) */
  margin: 0;
  font-weight: 400;
}

.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* === THEME SPECIFIC PAGE STYLES === */

/* Classical Theme Wrapper (Light Mode) */
.page-classical {
  background-color: #fcfaf7; /* Cream/Paper color */
  color: #2d2a26;            /* Dark Gray text */
  font-family: var(--font-classical);
}
.page-classical .nav-links a, .page-classical .logo { 
  color: #2d2a26; /* Dark Navigation links */
}

/* Dance Theme Wrapper (Dark Mode) */
.page-dance {
  background-color: #050505; /* Deep Black */
  color: #ffffff;            /* White text */
  font-family: var(--font-dance);
}

/* === LIGHTBOX (FULL SCREEN VIEW) === */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 2000; /* Sit on top of EVERYTHING */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.95); /* Deep black background */
  backdrop-filter: blur(5px);
  
  /* Flexbox to center the image */
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* The Image itself */
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh; /* Leave room for caption */
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

/* The Caption Text */
#caption-text {
  margin-top: 0rem;
  color: #ccc;
  font-family: var(--font-dance);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 3rem;
}

/* The Close Button (X) */
.close-btn {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: #f1f1f1;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 2001;
}

.close-btn:hover { color: var(--music-accent); }

/* Animation for opening */
@keyframes zoomIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Mobile Adjustment */
@media (max-width: 800px) {
  .close-btn { top: 1rem; right: 1.5rem; font-size: 2rem; }
  .lightbox-content { max-width: 95%; }
}

/* === ABOUT & CONTACT PAGE STYLES === */
.page-info {
  background-color: #111;
  color: #fff;
  font-family: var(--font-dance);
  padding-top: 8rem; /* Space for the fixed nav */
}

.info-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5vw 4rem;
}

.info-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
  text-align: center;
}

/* Profile Photo */
.profile-frame {
  flex: 1;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 50%; /* Makes it circular */
  border: 1px solid rgba(255,255,255,0.1);
}
.profile-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); /* Artistic black & white */
}

/* Typography */
.info-text { flex: 1; }
.section-title {
  font-family: var(--font-classical);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--music-accent); /* Adds that Gold accent */
}

.contact-list {
  list-style: none;
  padding: 0;
  opacity: 0.8;
  line-height: 2;
  margin-bottom: 2rem;
}

/* Divider Line */
.divider {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 4rem 0;
}

/* Contact Form */
.contact-form { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; opacity: 0.6; }

/* Stylish Inputs */
.contact-form input, 
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--font-dance);
  padding: 0.5rem 0;
  font-size: 1rem;
  transition: 0.3s;
}
.contact-form input:focus, 
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--dance-accent);
}

/* Mobile Layout */
@media (max-width: 800px) {
  .info-section { flex-direction: column; gap: 2rem; text-align: center; }
  .profile-frame { width: 200px; margin: 0 auto; }
  .contact-form { width: 100%; text-align: left; }
}

/* === CENTERED CONTACT SECTION === */
.contact-centered {
  display: block; /* Stacks everything vertically instead of side-by-side */
  text-align: center; /* Centers the text */
  margin-top: 4rem;
}

.contact-centered .info-text {
  max-width: 600px;
  margin: 0 auto; /* Centers the block itself in the middle of the screen */
}

.contact-centered .contact-list {
  display: inline-block; /* Keeps the list bullets inside the center alignment */
  text-align: left; /* Optional: Keeps the list items readable */
  margin: 2rem 0;
  font-size: 1.2rem;
}

/* Optional: Make the button centered and spaced nicely */
.contact-centered .btn {
  margin-top: 1rem;
}