/* ==========================================================================
   LILY FILMS - CSS DESIGN SYSTEM
   ========================================================================== */

/* Variables & Custom Properties */
:root {
  --bg-color: #FDEFE2;
  --bg-card: rgba(255, 255, 255, 0.45);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --border-color: rgba(3, 64, 42, 0.1);
  --border-glow: rgba(230, 193, 181, 0.45);
  
  --primary: #03402A;
  --primary-hover: #0b241c;
  --primary-rgb: 3, 64, 42;
  
  --text-main: rgba(3, 64, 42, 0.82);
  --text-muted: rgba(3, 64, 42, 0.6);
  --text-bright: #03402A;
  
  --accent-blue: #406B55;
  --accent-purple: rgba(230, 193, 181, 0.25);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  
  --blur-amount: 16px;
  --glass-shadow: 0 8px 32px 0 rgba(3, 64, 42, 0.06);
  --glow-shadow: 0 0 20px rgba(3, 64, 42, 0.15);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(64, 107, 85, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Ambient Glow Backgrounds */
.ambient-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  animation: float-glow 20s infinite alternate ease-in-out;
}

.glow-1 {
  top: -10vw;
  right: -10vw;
  background-color: var(--accent-purple);
}

.glow-2 {
  top: 50vh;
  left: -10vw;
  background-color: rgba(64, 107, 85, 0.15);
  animation-delay: -10s;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(8%, 8%) scale(1.15);
  }
}

/* Utility Components */
.section-tag {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  font-weight: 300;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary);
  color: #FDEFE2;
  box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(3, 64, 42, 0.25);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-bright);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background-color: rgba(3, 64, 42, 0.04);
  transform: translateY(-2px);
}

/* ==========================================================================
   1. HEADER NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(253, 239, 226, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background: rgba(253, 239, 226, 0.9);
  padding: 0.5rem 0;
}

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

.logo-link {
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo-capsule {
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 18px;
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(3, 64, 42, 0.05);
  border: 1px solid rgba(3, 64, 42, 0.06);
  transition: var(--transition-smooth);
  height: 52px;
}

.logo-link:hover .logo-capsule {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 193, 181, 0.25);
}

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

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

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

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

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 2rem 60px 2rem;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Hero CSS Creative Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.visual-circle {
  position: absolute;
  width: 280px;
  height: 280px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.25;
  animation: float-slow 8s infinite alternate ease-in-out;
}

.visual-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  animation: rotate-ring 24s infinite linear;
}

.hero-flower-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 320px;
  z-index: 5;
  transform-origin: bottom center;
  animation: float-slow 8s infinite alternate ease-in-out;
}

.hero-flower-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: flower-entrance 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 0 35px rgba(230, 193, 181, 0.35));
  transform-origin: bottom center;
}

@keyframes flower-entrance {
  0% {
    transform: scale(0.3) translateY(60px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes flower-breathe {
  0% {
    transform: scale(1) rotate(-1.5deg);
  }
  50% {
    transform: scale(1.06) rotate(1.5deg);
  }
  100% {
    transform: scale(1.01) rotate(-1.5deg);
  }
}

@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-15px) scale(1.05); }
}

@keyframes rotate-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ==========================================================================
   3. WORK / PORTFOLIO SECTION
   ========================================================================== */
.work-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem;
}

.section-header {
  margin-bottom: 3rem;
}

.filter-wrapper {
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.filter-tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem;
  border-radius: 40px;
  gap: 0.25rem;
}

.filter-tab {
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.filter-tab.active {
  background-color: var(--primary);
  color: #FDEFE2;
  font-weight: 600;
  box-shadow: var(--glow-shadow);
}

.filter-tab:hover:not(.active) {
  color: var(--text-bright);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  min-height: 300px;
  transition: var(--transition-smooth);
}

/* Portfolio Cards */
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  opacity: 1;
  transform: translateY(0);
}

/* Filtering entry/exit animations simulated via class state */
.video-card.hidden {
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  pointer-events: none;
  display: none;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), var(--border-glow);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #000;
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 64, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.play-button-visual {
  width: 56px;
  height: 56px;
  background: #E6C1B5;
  color: #03402A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(230, 193, 181, 0.5);
  transform: scale(0.85);
  transition: var(--transition-smooth);
}

.play-button-visual svg {
  width: 24px;
  height: 24px;
  margin-left: 2px; /* Center-offset the triangle visually */
  fill: currentColor;
}

.video-card:hover .play-button-visual {
  transform: scale(1);
}

.card-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-category-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-video-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-video-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton Loading State */
.grid-skeleton {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: rgba(253, 239, 226, 0.04);
  position: relative;
  overflow: hidden;
}

.skeleton-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skeleton-text {
  background-color: rgba(253, 239, 226, 0.04);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-tag {
  width: 30%;
  height: 0.75rem;
}

.skeleton-title {
  width: 70%;
  height: 1.25rem;
  margin-top: 0.2rem;
}

.skeleton-desc {
  width: 90%;
  height: 1.8rem;
  margin-top: 0.2rem;
}

.skeleton-media::after,
.skeleton-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(253, 239, 226, 0.08);
  animation: loading-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes loading-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* ==========================================================================
   4. ABOUT SECTION
   ========================================================================== */
.about-section {
  background-color: rgba(64, 107, 85, 0.04);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-lead {
  font-size: 1.3rem;
  color: var(--text-bright);
  font-weight: 400;
  line-height: 1.5;
}

.about-description {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* About Section Glass Panel Visual */
.about-visual-content {
  display: flex;
  justify-content: center;
  position: relative;
}

.glass-container {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.glass-bg-accent {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background-color: var(--primary);
  opacity: 0.15;
  filter: blur(8px);
}

.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.glass-header {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 6px;
}

.glass-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.glass-header .dot.red { background-color: #ff5f56; }
.glass-header .dot.yellow { background-color: #ffbd2e; }
.glass-header .dot.green { background-color: #27c93f; }

.glass-body {
  padding: 2rem;
}

.glass-body h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.about-section-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
  transition: var(--transition-smooth);
}

.about-section-logo:hover {
  transform: scale(1.03) translateY(-4px);
  opacity: 1;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.18));
}

/* ==========================================================================
   5. CONTACT SECTION
   ========================================================================== */
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.contact-container::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(230, 193, 181, 0.03);
  filter: blur(50px);
  pointer-events: none;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.contact-method-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  outline: none;
}

/* Floating labels */
.input-group label {
  position: absolute;
  top: 0.8rem;
  left: 0;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Floating behavior when typing or focused */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -1.2rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* Highlight border bottom on focus */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--primary);
  background: rgba(230, 193, 181, 0.02);
}

/* Special treatment for select */
.input-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.input-group select:focus ~ .select-label,
.input-group select:valid ~ .select-label {
  top: -1.2rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* Customize focus rings accessibility */
.input-group input:focus-visible,
.input-group select:focus-visible,
.input-group textarea:focus-visible {
  outline: 1px solid var(--border-glow);
  border-radius: 4px;
}

/* Submit Button */
.btn-submit {
  align-self: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.submit-arrow {
  width: 18px;
  height: 18px;
  transition: var(--transition-smooth);
}

.btn-submit:hover .submit-arrow {
  transform: translateX(4px);
}

/* Form Success/Error States */
.form-feedback {
  font-size: 0.9rem;
  margin-top: -0.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.form-feedback.success {
  color: #27c93f;
}

.form-feedback.error {
  color: #ff5f56;
}

/* ==========================================================================
   6. LIGHTBOX VIDEO DIALOG
   ========================================================================== */
dialog#videoDialog {
  border: none;
  background: transparent;
  border-radius: 20px;
  padding: 0;
  max-width: 900px;
  width: calc(100% - 4rem);
  margin: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  outline: none;
}

/* Base state - closed */
dialog#videoDialog {
  opacity: 0;
  transform: scale(0.95);
  
  /* Discrete transition support */
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

/* Open state */
dialog#videoDialog[open] {
  opacity: 1;
  transform: scale(1);
  
  @starting-style {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Backdrop */
dialog#videoDialog::backdrop {
  background-color: rgba(4, 4, 6, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  
  transition: 
    display 0.35s allow-discrete,
    overlay 0.35s allow-discrete,
    background-color 0.35s ease-out,
    backdrop-filter 0.35s ease-out;
}

dialog#videoDialog[open]::backdrop {
  background-color: rgba(3, 64, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  @starting-style {
    background-color: rgba(3, 64, 42, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

/* Modal Inner Container */
.dialog-content {
  background: #FDEFE2;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.dialog-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-video-title {
  font-size: 1.3rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.dialog-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
  transform: rotate(90deg);
}

.dialog-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Responsive Iframe Wrapper */
.video-container-wrapper {
  background: #000;
}

.video-ratio-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-ratio-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Video loading spinner placeholder */
.video-loading-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: #FDEFE2;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(230, 193, 181, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dialog-body {
  padding: 1.5rem 2rem 2rem 2rem;
  border-top: 1px solid var(--border-color);
}

.dialog-video-desc {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.main-footer {
  border-top: 1px solid var(--border-color);
  background-color: #03402A;
  padding: 4rem 2rem 2rem 2rem;
  color: rgba(253, 239, 226, 0.7);
}

.main-footer p,
.main-footer .footer-info p {
  color: rgba(253, 239, 226, 0.75);
}

.main-footer .footer-bottom {
  border-top: 1px solid rgba(253, 239, 226, 0.15);
  color: rgba(253, 239, 226, 0.6);
}

.main-footer .social-links a {
  color: rgba(253, 239, 226, 0.8);
}

.main-footer .social-links a:hover {
  color: #E6C1B5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   8. RESPONSIVE DESIGN & ACCESSIBILITY
   ========================================================================== */

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .ambient-glow,
  .visual-circle,
  .visual-ring,
  .card-wave span {
    animation: none !important;
  }
  
  dialog#videoDialog {
    transform: none !important;
    transition-duration: 0.1s !important;
  }
  
  @starting-style {
    dialog#videoDialog[open] {
      transform: none !important;
    }
  }
}

/* Media Queries */
@media (max-width: 968px) {
  html {
    scroll-padding-top: 80px;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
    gap: 3rem;
    min-height: auto;
  }
  
  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-visual {
    height: 300px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-visual-content {
    order: -1; /* Place the visual on top on mobile */
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .btn {
    width: 100%;
  }

  .filter-tabs {
    width: 100%;
    overflow-x: auto;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-container {
    padding: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  dialog#videoDialog {
    width: calc(100% - 1.5rem);
  }
  
  .dialog-header {
    padding: 1rem 1.25rem;
  }
  
  .dialog-body {
    padding: 1rem 1.25rem 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   9. LOCAL ADMIN REORDERING STYLES
   ========================================================================== */

/* Shifting layout down when Admin Bar is active */
body.admin-mode-active {
  padding-top: 50px;
}

body.admin-mode-active .main-header {
  top: 50px;
}

/* Admin Bar Panel */
.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid #E6C1B5;
  z-index: 150;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slide-down-admin 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-down-admin {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.admin-bar-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-status-badge {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #E6C1B5;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #E6C1B5;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite alternate ease-in-out;
}

@keyframes pulse-dot {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-btn {
  padding: 0.4rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.admin-btn-save {
  background-color: #E6C1B5;
  color: #03402A;
}

.admin-btn-save:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--glow-shadow);
}

.admin-btn-export {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
}

.admin-btn-export:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.admin-btn-exit {
  background-color: transparent;
  color: var(--text-muted);
}

.admin-btn-exit:hover {
  color: #ff5f56;
}

/* Floating Edit Toggle (Visible only on localhost) */
.admin-toggle-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow), var(--glow-shadow);
  transition: var(--transition-smooth);
}

.admin-toggle-btn:hover {
  transform: scale(1.08) translateY(-2px);
  background: #E6C1B5;
  color: #03402A;
  box-shadow: 0 0 25px rgba(230, 193, 181, 0.4);
}

.admin-toggle-btn svg {
  width: 24px;
  height: 24px;
}

/* Reordering Card Controls Overlay */
.card-admin-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  pointer-events: none;
}

/* When Admin Mode is active, show the arrows on cards */
body.admin-mode-active .card-admin-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hide normal hover overlay play button when in admin reorder mode */
body.admin-mode-active .video-card:hover .card-overlay {
  background-color: rgba(3, 64, 42, 0.4);
}

body.admin-mode-active .video-card:hover .play-button-visual {
  display: none;
}

.card-admin-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: var(--transition-fast);
}

.card-admin-btn:hover {
  background: #E6C1B5;
  border-color: #E6C1B5;
  color: #03402A;
  transform: scale(1.1);
}

.card-admin-btn svg {
  width: 16px;
  height: 16px;
}

/* Style Dialog Export Overlay Scrollbar */
.export-textarea::-webkit-scrollbar {
  width: 6px;
}
.export-textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.export-textarea::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.admin-btn-add {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
}

.admin-btn-add:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.card-admin-btn-delete:hover {
  background: #ff5f56 !important;
  border-color: #ff5f56 !important;
  color: #fff !important;
}

body.admin-mode-active [contenteditable="true"] {
  outline: 1px dashed var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
  transition: var(--transition-fast);
}

body.admin-mode-active [contenteditable="true"]:hover {
  background-color: rgba(230, 193, 181, 0.05);
}

body.admin-mode-active [contenteditable="true"]:focus {
  outline: 1px solid var(--primary);
  background-color: rgba(230, 193, 181, 0.1);
}

/* Drag and Drop styling */
.video-card.dragging {
  opacity: 0.4;
  border: 2px dashed var(--primary) !important;
  background: rgba(230, 193, 181, 0.05) !important;
}

.video-card.drag-over {
  border-color: var(--primary) !important;
  transform: scale(0.98) translateY(2px) !important;
  box-shadow: 0 0 25px rgba(230, 193, 181, 0.3) !important;
}

/* ==========================================================================
   10. CINEMATIC INTRO SPLASH SCREEN
   ========================================================================== */
.splash-screen {
  position: fixed;
  inset: 0;
  background-color: #FDEFE2;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px; /* Large cinematic logo */
  animation: splash-logo-intro 3.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo {
  width: 100%;
  height: auto;
}

@keyframes splash-logo-intro {
  0% {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(8px);
  }
  20% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0px);
  }
  80% {
    opacity: 1;
    transform: scale(1.07);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
    filter: blur(4px);
  }
}

/* Page Reveal Transitions */
.main-header,
.hero-content,
.hero-visual {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.site-revealed .main-header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

body.site-revealed .hero-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

body.site-revealed .hero-visual {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}
