/* 
 * ============================================================================
 * HOVER EFFECTS ARCHITECTURE
 * ============================================================================
 * 
 * This site uses CSS custom properties to control hover effects, ensuring they
 * only work on devices that support hover (desktop with mouse) and are disabled
 * on touch devices (mobile, tablets).
 * 
 * USAGE FOR NEW INTERACTIVE ELEMENTS:
 * 
 * 1. Use the pre-defined hover variables in your :hover states:
 *    - var(--hover-scale-sm)     : 1.1 scale for buttons/icons
 *    - var(--hover-scale-md)     : 1.15 scale for larger elements  
 *    - var(--hover-scale-img)    : 1.05 scale for images
 *    - var(--hover-lift)         : translateY(-4px) for cards
 *    - var(--hover-opacity-full) : opacity: 1 (for buttons, etc)
 *    - var(--hover-opacity-show) : opacity: 0 → 1 (for showing elements)
 *    - var(--hover-underline)    : width for underline animations (0 → 100%)
 * 
 * 2. For background color changes, use opacity overlays:
 *    - var(--hover-bg-light-alpha) : background alpha for light theme (0.08 → 0.15)
 *    - var(--hover-bg-dark-alpha)  : background alpha for dark theme (0.1 → 0.2)
 * 
 * 3. For box shadows:
 *    - var(--hover-shadow-light) : box shadow for light theme
 *    - var(--hover-shadow-dark)  : box shadow for dark theme
 * 
 * EXAMPLE:
 * .my-button {
 *   transition: transform 0.2s ease;
 * }
 * .my-button:hover {
 *   transform: var(--hover-scale-sm);
 * }
 * 
 * On touch devices, these variables default to "no change" values, so hover
 * effects are automatically disabled without additional media queries.
 * ============================================================================
 */

/* Default values for non-hover devices (mobile/touch) - NO EFFECTS */
:root {
  --hover-scale-sm: scale(1);
  --hover-scale-md: scale(1);
  --hover-scale-img: scale(1);
  --hover-lift: translateY(0);
  --hover-opacity-full: 0.6;
  --hover-opacity-show: 0;
  --hover-underline: 0;
  --hover-bg-light-alpha: 0.08;
  --hover-bg-dark-alpha: 0.1;
  --hover-shadow-light: none;
  --hover-shadow-dark: none;
}

/* Active values for hover-capable devices (desktop with mouse) */
@media (hover: hover) {
  :root {
    --hover-scale-sm: scale(1.1);
    --hover-scale-md: scale(1.15);
    --hover-scale-img: scale(1.05);
    --hover-lift: translateY(-4px);
    --hover-opacity-full: 1;
    --hover-opacity-show: 1;
    --hover-underline: 100%;
    --hover-bg-light-alpha: 0.15;
    --hover-bg-dark-alpha: 0.2;
    --hover-shadow-light: 0 8px 24px rgba(0, 0, 0, 0.1);
    --hover-shadow-dark: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

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

html {
  min-height: 100%;
  overflow-x: hidden;
}

[data-theme="light"] {
  background-color: #cadee1;
}

[data-theme="dark"] {
  background-color: #13191a;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Section pages: allow scrolling */
[data-section] body {
  justify-content: flex-start;
  padding-bottom: 4rem;
}

/* Background image as pseudo-element for opacity control */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Light theme backgrounds */
[data-theme="light"] body::before {
  background-image: url('/images/bg-light-mobile.webp');
}

@media (min-width: 768px) {
  [data-theme="light"] body::before {
    background-image: url('/images/bg-light-desktop.webp');
  }
}

/* Dark theme backgrounds */
[data-theme="dark"] body::before {
  background-image: url('/images/bg-dark-mobile.webp');
}

@media (min-width: 768px) {
  [data-theme="dark"] body::before {
    background-image: url('/images/bg-dark-desktop.webp');
  }
}

/* Section pages: background at 10% opacity */
[data-section] body::before {
  opacity: 0.1;
}

/* Section pages: header background overlay */
[data-section] body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 12rem;
  z-index: 998;
  pointer-events: none;
}

[data-theme="light"][data-section] body::after {
  background: #cadee1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="dark"][data-section] body::after {
  background: #13191a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Language switcher */
.lang-switcher {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1000;
}

.lang-switcher .lang-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.lang-switcher .lang-link:hover {
  opacity: var(--hover-opacity-full);
}

.lang-switcher .lang-link.active {
  opacity: 1;
}

[data-theme="light"] .lang-switcher .lang-link {
  color: #1a1a1a;
}

[data-theme="light"] .lang-switcher .lang-link.active {
  background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .lang-switcher .lang-link {
  color: #f5f5f5;
}

[data-theme="dark"] .lang-switcher .lang-link.active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: var(--hover-scale-sm);
}

.theme-toggle:active {
  transform: scale(0.95);
}

[data-theme="light"] .theme-toggle {
  background-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

[data-theme="dark"] .theme-toggle {
  background-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f5;
}

.icon-sun,
.icon-moon {
  position: absolute;
  transition: opacity 0.2s ease;
  width: 18px;
  height: 18px;
}

[data-theme="light"] .icon-sun { opacity: 0; }
[data-theme="light"] .icon-moon { opacity: 1; }
[data-theme="dark"] .icon-sun { opacity: 1; }
[data-theme="dark"] .icon-moon { opacity: 0; }

/* Main content */
.content {
  text-align: center;
  padding: 2rem;
}

.title {
  font-family: 'Sedan', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .title {
    margin-bottom: -9px;
  }
}

[data-theme="light"] .title {
  color: #1a1a1a;
  -webkit-text-stroke: 2px #1a1a1a;
}

[data-theme="dark"] .title {
  color: #f5f5f5;
  -webkit-text-stroke: 2px #f5f5f5;
}

.subtitle {
  font-family: 'Sedan', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 8rem;
}

[data-theme="light"] .subtitle {
  color: #1a1a1a;
}

[data-theme="dark"] .subtitle {
  color: #f5f5f5;
}

/* Claim section */
.top-header {
  position: fixed;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1000;
}

.header-claim {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.header-location {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

[data-theme="light"] .header-claim,
[data-theme="light"] .header-location,
[data-theme="light"] .header-name {
  color: #1a1a1a;
}

[data-theme="dark"] .header-claim,
[data-theme="dark"] .header-location,
[data-theme="dark"] .header-name {
  color: #f5f5f5;
}

.header-name {
  font-family: 'Sedan', serif;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

[data-theme="light"] .header-name {
  -webkit-text-stroke: 1px #1a1a1a;
}

[data-theme="dark"] .header-name {
  -webkit-text-stroke: 1px #f5f5f5;
}

@media (max-width: 700px) {
  .top-header {
    top: 4.5rem;
  }

  .header-claim {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .header-location {
    font-size: 0.55rem;
  }

  .header-name {
    font-size: 1.3rem;
  }
}

/* Nav container */
nav {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Films Button - Hero CTA with glass effect */
.films-button {
  display: inline-block;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  padding: 1rem 3rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.films-button:hover {
  transform: var(--hover-scale-sm);
}

[data-theme="light"] .films-button {
  color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .films-button:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .films-button {
  color: #f5f5f5;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .films-button:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

/* Navigation sections - simplified two items */
.nav-sections {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  width: 280px;
}

.nav-sections li {
  flex: 1;
}

.nav-sections li:first-child {
  text-align: right;
  padding-right: 1.5rem;
  border-right: 1px solid;
}

.nav-sections li:last-child {
  text-align: left;
  padding-left: 1.5rem;
}

[data-theme="light"] .nav-sections li:first-child {
  border-color: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-sections li:first-child {
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-sections a {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: opacity 0.2s ease;
}

.nav-sections a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  transition: width 0.3s ease;
}

.nav-sections a:hover::after {
  width: var(--hover-underline);
}

[data-theme="light"] .nav-sections a {
  color: #1a1a1a;
}

[data-theme="light"] .nav-sections a::after {
  background-color: #1a1a1a;
}

[data-theme="dark"] .nav-sections a {
  color: #f5f5f5;
}

[data-theme="dark"] .nav-sections a::after {
  background-color: #f5f5f5;
}

/* Social links */
.socials-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Compact spacing for small screens */
@media (max-height: 1000px) {
  .subtitle {
    margin-bottom: 2.5rem;
  }

  nav {
    margin-bottom: 2.5rem;
  }

  .socials {
    gap: 1rem;
  }

  .socials a {
    width: 40px;
    height: 40px;
  }

  .socials a svg {
    width: 20px;
    height: 20px;
  }
}

.socials a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
  position: relative;
  text-decoration: none;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.socials a:hover {
  transform: var(--hover-scale-md);
}

.socials a svg {
  width: 24px;
  height: 24px;
}

.social-label {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  height: 1rem;
}

.social-label.visible {
  opacity: 1;
}

[data-theme="light"] .socials a {
  color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .socials a:hover {
  background-color: rgba(0, 0, 0, var(--hover-bg-light-alpha));
}

[data-theme="light"] .social-label {
  color: #1a1a1a;
  text-shadow: 
    2px -1px 14px rgba(202, 222, 225, 0.95),
    -1px 2px 22px rgba(202, 222, 225, 0.7),
    0 -2px 18px rgba(202, 222, 225, 0.85),
    3px 1px 25px rgba(202, 222, 225, 0.6),
    -2px 0 16px rgba(202, 222, 225, 0.75),
    1px 3px 28px rgba(202, 222, 225, 0.9),
    -3px -1px 20px rgba(202, 222, 225, 0.5),
    0 2px 32px rgba(202, 222, 225, 0.8),
    2px -3px 24px rgba(202, 222, 225, 0.65),
    -1px 0 15px rgba(202, 222, 225, 1)
}

[data-theme="dark"] .socials a {
  color: #f5f5f5;
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .socials a:hover {
  background-color: rgba(255, 255, 255, var(--hover-bg-dark-alpha));
}

[data-theme="dark"] .social-label {
  color: #f5f5f5;
}


/* Section navigation */
.section-nav {
  position: fixed;
  top: 8.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  z-index: 999;
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.back-link:hover {
  transform: var(--hover-scale-sm);
}

.back-link svg {
  width: 24px;
  height: 24px;
}

[data-theme="light"] .back-link {
  background-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .back-link:hover {
  background-color: rgba(0, 0, 0, var(--hover-bg-light-alpha));
}

[data-theme="dark"] .back-link {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .back-link:hover {
  background-color: rgba(255, 255, 255, var(--hover-bg-dark-alpha));
}

.section-name {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

[data-theme="light"] .back-link,
[data-theme="light"] .section-name {
  color: #1a1a1a;
}

[data-theme="dark"] .back-link,
[data-theme="dark"] .section-name {
  color: #f5f5f5;
}

/* Section Container (common styles for section pages) */
.section-container {
  width: 100%;
  padding: 0 1.5rem;
  margin-top: 12rem;
  position: relative;
  z-index: 1;
}

/* Films Container */
.films-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
}

.film-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  padding: 0.75rem;
  padding-bottom: 2.75rem;
  position: relative;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

@media (min-width: 640px) {
  .film-card {
    width: calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .film-card {
    width: calc(33.333% - 1.34rem);
  }
}

.film-card:hover {
  transform: var(--hover-lift);
}

.film-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

/* Skeleton loading animation */
.film-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
  z-index: 1;
  pointer-events: none;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.film-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 2;
  position: relative;
}

/* Fade in when image loads */
.film-thumbnail img.loaded {
  opacity: 1;
}

/* Hide skeleton when image is loaded */
.film-thumbnail:has(img.loaded)::before {
  display: none;
}

.film-card:hover .film-thumbnail img {
  transform: var(--hover-scale-img);
}

.film-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.film-card:hover .film-play {
  opacity: var(--hover-opacity-show);
}

.film-play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

[data-theme="light"] .film-play {
  background-color: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
}

[data-theme="dark"] .film-play {
  background-color: rgba(0, 0, 0, 0.8);
  color: #f5f5f5;
}

.film-info {
  padding: 1rem 0 0 0;
  text-align: center;
}

.film-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.film-location,
.film-date {
  position: absolute;
  bottom: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.film-location {
  left: 0.75rem;
}

.film-date {
  right: 0.75rem;
}

.film-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 85%;
  margin: 0 auto;
}

.film-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  opacity: 0.6;
}

.film-tag:first-child {
  opacity: 1;
  font-weight: 600;
  font-size: 0.7rem;
}

/* Smaller tags on mobile */
@media (max-width: 639px) {
  .film-tags {
    max-width: 95%;
  }

  .film-tag {
    font-size: 0.55rem;
    padding: 0.2rem 0.4rem;
  }
}

[data-theme="light"] .film-card {
  color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .film-card:hover {
  box-shadow: var(--hover-shadow-light);
}

[data-theme="light"] .film-thumbnail {
  background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .film-tag {
  background-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .film-tag:first-child {
  background-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .film-card--live {
  background-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .film-card--live .film-tag:first-child {
  background: linear-gradient(165deg, #000000 0%, #13191a 40%, #3d4f5233 100%);
  color: #f5f5f5;
}

[data-theme="dark"] .film-card {
  color: #f5f5f5;
  background-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .film-card:hover {
  box-shadow: var(--hover-shadow-dark);
}

[data-theme="dark"] .film-thumbnail {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .film-tag {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .film-tag:first-child {
  background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .film-card--live {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 32px rgba(255, 255, 255, 0.18), 0 0 16px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .film-card--live .film-tag:first-child {
  background: linear-gradient(165deg, #9bbcc0 0%, #cadee1 50%, #e8f5f7 100%);
  color: #1a1a1a;
}

/* About Page */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 900px;
}

@media (min-width: 768px) {
  .about-container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem 3rem;
  }

  .about-image {
    grid-column: 1;
    grid-row: 1;
  }

  .about-content {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .about-socials {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }
}

.about-image {
  flex-shrink: 0;
  width: 100%;
  max-width: 280px;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(70%);
}

.about-content {
  flex: 1;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  font-weight: 600;
}

[data-theme="light"] .about-content {
  color: #1a1a1a;
}

[data-theme="light"] .about-content strong {
  color: #000000;
}

[data-theme="dark"] .about-content {
  color: #f5f5f5;
}

[data-theme="dark"] .about-content strong {
  color: #ffffff;
}

.about-socials {
  margin-top: 0;
}

@media (max-width: 767px) {
  .about-socials {
    margin-top: 0.5rem;
  }
}

/* Contact Page */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 0;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form textarea {
  resize: none;
  min-height: 100px;
  margin-top: 0.5rem;
}

.form-submit {
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.form-submit:hover {
  transform: var(--hover-scale-sm);
}

.contact-status {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.5rem;
}

.contact-status.success {
  color: #2d8a4e;
}

.contact-status.error {
  color: #c43c3c;
}

[data-theme="dark"] .contact-status.success {
  color: #5fd87f;
}

[data-theme="dark"] .contact-status.error {
  color: #ff6b6b;
}

.contact-email {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.7;
}

.contact-email a {
  text-decoration: none;
  font-weight: 500;
  opacity: 1;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Light theme contact */
[data-theme="light"] .contact-intro {
  color: #1a1a1a;
}

[data-theme="light"] .contact-intro strong {
  color: #000000;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
  border-color: #1a1a1a;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .form-submit {
  color: #1a1a1a;
  border-color: #1a1a1a;
}

[data-theme="light"] .form-submit:hover {
  background-color: #1a1a1a;
  color: #f5f5f5;
}

[data-theme="light"] .contact-email {
  color: #1a1a1a;
}

[data-theme="light"] .contact-email a {
  color: #1a1a1a;
}

/* Dark theme contact */
[data-theme="dark"] .contact-intro {
  color: #f5f5f5;
}

[data-theme="dark"] .contact-intro strong {
  color: #ffffff;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
  border-color: #f5f5f5;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .form-submit {
  color: #f5f5f5;
  border-color: #f5f5f5;
}

[data-theme="dark"] .form-submit:hover {
  background-color: #f5f5f5;
  color: #1a1a1a;
}

[data-theme="dark"] .contact-email {
  color: #f5f5f5;
}

[data-theme="dark"] .contact-email a {
  color: #f5f5f5;
}

/* reCAPTCHA branding (required by Google) */
.recaptcha-branding {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  text-align: center;
  opacity: 0.25;
  max-width: 320px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  z-index: 10;
}

.recaptcha-branding a {
  text-decoration: none;
  opacity: 0.8;
}

.recaptcha-branding a:hover {
  text-decoration: underline;
  opacity: 1;
}

[data-theme="light"] .recaptcha-branding,
[data-theme="light"] .recaptcha-branding a {
  color: #1a1a1a;
}

[data-theme="dark"] .recaptcha-branding,
[data-theme="dark"] .recaptcha-branding a {
  color: #f5f5f5;
}

/* Hide the floating reCAPTCHA badge since we show text */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* 404 Error Page */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  min-height: 50vh;
}

.error-code {
  font-family: 'Sedan', serif;
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.15;
}

.error-message {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.error-link {
  display: inline-block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid;
  border-radius: 4px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.error-link:hover {
  transform: var(--hover-scale-sm);
}

[data-theme="light"] .error-code,
[data-theme="light"] .error-message,
[data-theme="light"] .error-description {
  color: #1a1a1a;
}

[data-theme="light"] .error-link {
  color: #1a1a1a;
  border-color: #1a1a1a;
}

[data-theme="light"] .error-link:hover {
  background-color: #1a1a1a;
  color: #f5f5f5;
}

[data-theme="dark"] .error-code,
[data-theme="dark"] .error-message,
[data-theme="dark"] .error-description {
  color: #f5f5f5;
}

[data-theme="dark"] .error-link {
  color: #f5f5f5;
  border-color: #f5f5f5;
}

[data-theme="dark"] .error-link:hover {
  background-color: #f5f5f5;
  color: #1a1a1a;
}

/* ============================================================================
 * NEWSLETTER BANNER
 * ============================================================================ */

.newsletter-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.newsletter-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  padding: 4px 8px;
  line-height: 1;
}

.newsletter-close:hover {
  opacity: 1;
}

.newsletter-text {
  font-size: 0.95rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  position: relative;
}

.newsletter-form input[type="email"] {
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.9rem;
  min-width: 220px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.newsletter-form button {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.02em;
}

.newsletter-form button:hover {
  transform: var(--hover-scale-sm);
}

.newsletter-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-status {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}

.newsletter-status:empty {
  display: none;
}

.newsletter-status.error {
  color: #ef4444;
}

/* Thank you message */
.newsletter-thank-you {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  text-align: center;
  font-size: 0.95rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #22c55e;
}

.newsletter-thank-you.visible {
  transform: translateY(0);
}

/* Light theme */
[data-theme="light"] .newsletter-banner {
  background: rgba(245, 245, 245, 0.85);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .newsletter-close {
  color: #1a1a1a;
}

[data-theme="light"] .newsletter-text {
  color: #1a1a1a;
}

[data-theme="light"] .newsletter-form input[type="email"] {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

[data-theme="light"] .newsletter-form input[type="email"]::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .newsletter-form input[type="email"]:focus {
  border-color: #1a1a1a;
}

[data-theme="light"] .newsletter-form button {
  background: #1a1a1a;
  color: #f5f5f5;
}

/* Dark theme */
[data-theme="dark"] .newsletter-banner {
  background: rgba(26, 26, 26, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .newsletter-close {
  color: #f5f5f5;
}

[data-theme="dark"] .newsletter-text {
  color: #f5f5f5;
}

[data-theme="dark"] .newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5f5f5;
}

[data-theme="dark"] .newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .newsletter-form input[type="email"]:focus {
  border-color: #f5f5f5;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .newsletter-form button {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .newsletter-banner {
    padding: 14px 16px 18px;
    flex-direction: column;
    gap: 10px;
  }
  
  .newsletter-close {
    top: 4px;
    right: 8px;
  }
  
  .newsletter-text {
    font-size: 0.9rem;
    text-align: center;
    padding-right: 20px;
  }
  
  .newsletter-form {
    width: 100%;
    flex-direction: column;
  }
  
  .newsletter-form input[type="email"] {
    min-width: unset;
    width: 100%;
  }
  
  .newsletter-form button {
    width: 100%;
  }
}
