/* Homepage hero background override */
.hero-section {
  position: relative;
  background: url("../SOHINI MEDIA/SHOWCASE/Collage1.png") center center / 100% auto no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.hero-section .video-background { display: none !important; }
.hero-section .hero-content { 
  position: relative; 
  z-index: 2; 
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 20px 28px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Responsive tweaks: use cover on small screens to fill viewport */
@media (max-width: 768px) {
  .hero-section {
    background-size: cover;
    background-position: center top;
    min-height: 65vh;
    padding: 60px 0;
  }
}
.hero-section .video-background { display: none !important; }
.hero-section .hero-content { 
  position: relative; 
  z-index: 2; 
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 20px 28px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
/* Feedback Floater Container (for tooltip positioning) */
.feedback-floater {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1400;
}

/* Back to Top (left bottom) */
.back-to-top {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    z-index: 1400;
    outline-offset: 2px; /* prep for visible outline */
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover { background: rgb(252, 15, 192); }
.back-to-top svg { width: 22px; height: 22px; display: block; }
/* Add ring outline on hover/focus to match feedback button */
.back-to-top:hover,
.back-to-top:focus-visible {
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(59, 130, 246, 0.45);
    outline: 2px solid #3b82f6; /* thin, visible */
}

@media (max-width: 480px) {
  .back-to-top { left: 20px; bottom: 20px; width: 48px; height: 48px; }
}

/* Zoom controls */
.lightbox-zoom-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 2002;
}
.lightbox-zoom-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-zoom-btn:hover { background: rgba(0,0,0,0.5); transform: translateY(-1px); }
.lightbox-zoom-btn:active { transform: translateY(0); }

/* Panning cursors */
.lb-pan-enabled { cursor: grab; }
.lb-pan-enabled:active { cursor: grabbing; }

@media (max-width: 768px) {
  .lightbox-zoom-controls { right: 12px; bottom: 14px; }
  .lightbox-zoom-btn { width: 34px; height: 34px; font-size: 1rem; }
}

/* Centered spinner while image loads */
.lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2002;
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================================
   Artist Portfolio Website - Main Styles
   =================================== */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    --ring-color: rgba(231, 76, 60, 0.25);
}

/* Pause bounce when interacting or programmatically disabled */
.feedback-btn:hover,
.feedback-btn:focus,
.feedback-btn.no-bounce,
.feedback-btn.is-pressed {
    animation-play-state: paused;
}

@keyframes subtleBounce {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .feedback-btn { animation: none !important; }
    body::before { animation: none; }
}

/* Organic blob background layer */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  filter: blur(24px);
  opacity: 0.35;
  will-change: transform;
  animation: organicFloat 14s ease-in-out infinite alternate;
}

.blob.pink { background: radial-gradient(circle at 30% 30%, rgba(252,15,192,0.38), rgba(252,15,192,0.12)); }
.blob.violet { background: radial-gradient(circle at 70% 40%, rgba(160,32,240,0.32), rgba(160,32,240,0.1)); }
.blob.magenta { background: radial-gradient(circle at 50% 60%, rgba(255,0,255,0.28), rgba(255,0,255,0.1)); }

.blob.p1 { left: -10vmax; top: -6vmax; animation-duration: 16s; }
.blob.p2 { right: -12vmax; top: 10vmax; animation-duration: 18s; }
.blob.p3 { left: 20vmax; bottom: -12vmax; animation-duration: 22s; }

@keyframes organicFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(2%, -3%, 0) scale(1.06) rotate(2deg); }
  100% { transform: translate3d(-2%, 2%, 0) scale(0.96) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blobs { display: none; }
}

/* Intro underline keyframes (grow then retract) */
@keyframes underlineIntro {
    0% { width: 0; }
    60% { width: 100%; }
    100% { width: 0; }
}

/* Lightbox pop-in */
@keyframes popIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

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

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

/* Prevent fallback font flash: hide navbar until web fonts are ready */
html.fonts-loading .navbar { visibility: hidden; }
html.fonts-ready .navbar { visibility: visible; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring-color);
    border-radius: 6px;
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), #ff7966);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    transition: width 0.15s ease;
    pointer-events: none;
}

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

.logo {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--primary-color);
}

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

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Intro underline animation on initial load (staggered via CSS var) */
body.intro-underline .nav-menu a::after {
    animation: underlineIntro 700ms ease both;
    animation-delay: var(--udelay, 0ms);
}

.nav-menu a:hover {
    transform: translateY(-1px);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
}

/* Hero Section with Video Background */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    will-change: transform;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-color);
    padding: 2rem;
    will-change: transform, opacity;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--text-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: var(--transition-slow);
}

.cta-button:hover::after { left: 150%; }

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

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto;
}

/* Tone down subheadings under Art Showcase (override global h2 !important rules) */
h2.section-title { 
  font-size: 0.95rem !important; 
  color: var(--secondary-color) !important; 
  font-weight: 500 !important; 
  font-style: italic !important; 
  margin-bottom: 0.75rem !important; 
  line-height: 1.35 !important; 
  text-transform: none !important;
  text-align: center !important;
}
h2.section-title::after { display: none !important; }
@media (max-width: 900px) { h2.section-title { font-size: 0.9rem !important; } }

/* Refined Artwork Series Subheadings */
.series-subheading {
  font-family: "Playfair Display", serif;
  text-align: center;
  color: #8a1fa5; /* Slightly deeper purple for better contrast */
  margin: 1.5rem 0;
  line-height: 1.6;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.3s ease, opacity 0.3s ease, letter-spacing 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}

.series-subheading .series-title {
  font-weight: 700; /* Increased from 600 for more presence */
  font-style: normal;
  font-size: 1.5rem; /* Increased from 1.15rem for desktop */
  text-transform: uppercase;
  letter-spacing: 1.2px; /* Slightly increased for readability */
  display: inline;
}

.series-subheading .series-separator {
  margin: 0 0.5rem; /* Slightly wider spacing around dash */
  font-weight: 400;
  font-style: normal;
  font-size: 1.3rem; /* Increased proportionally */
}

.series-subheading .series-subtitle {
  font-weight: 500; /* Increased from 400 for better visibility */
  font-style: italic;
  font-size: 1.3rem; /* Increased from 1rem for desktop */
  text-transform: none;
  letter-spacing: 0.8px; /* Slightly increased */
  display: inline;
}

/* Hover effect */
.series-subheading:hover {
  color: #b147e0; /* Brighter purple on hover */
  transform: translateY(-2px); /* Subtle lift effect */
}

/* Responsive sizing */
@media (max-width: 1024px) {
  .series-subheading .series-title {
    font-size: 1.35rem;
  }
  .series-subheading .series-separator {
    font-size: 1.15rem;
  }
  .series-subheading .series-subtitle {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .series-subheading .series-title {
    font-size: 1.2rem; /* Tablet sizing */
  }
  .series-subheading .series-separator {
    font-size: 1.05rem;
  }
  .series-subheading .series-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .series-subheading .series-title {
    font-size: 1rem; /* Mobile sizing */
    letter-spacing: 1px;
  }
  .series-subheading .series-separator {
    font-size: 0.9rem;
  }
  .series-subheading .series-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
}

/* Fade-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delays for multiple subheadings */
.series-subheading:nth-child(odd) { animation-delay: 0.1s; }
.series-subheading:nth-child(even) { animation-delay: 0.3s; }

/* Restore larger styling for the Home page "Featured Works" heading only */
.section > h2.section-title {
  font-size: inherit !important; /* match default h2 size */
  font-weight: inherit !important; /* match default h2 weight */
  font-style: normal !important;
  color: var(--primary-color) !important;
  margin-bottom: 1.75rem !important;
}
.section > h2.section-title::after {
  display: block !important;
  width: 80px; height: 3px; background: var(--accent-color); margin: 1rem auto;
}

/* Biography Section */
.bio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.bio-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: -28px; /* stronger upward nudge */
    margin-left: -12px; /* stronger left nudge */
    justify-self: start; /* align to left of grid cell */
}

/* Text block placed under the left image (about section) */
.bio-left-text {
  margin-top: 18px;
  padding: 8px 6px 0 2px;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .bio-left-text {
    font-size: 1.05rem;
    line-height: 1.65;
    padding: 6px 0 0 0;
    margin-left: 0;
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  .bio-image {
    margin-top: 0; /* avoid clipping on small screens */
    margin-left: 0;
    justify-self: center;
  }
}

.bio-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.bio-image:hover img {
    transform: scale(1.05);
}

.bio-content {
    padding: 1rem;
}

/* Inline portrait floating to the right within bio text */
.bio-content .bio-inline-img {
    float: right;
    width: 50%;
    max-width: 300px;
    height: auto;
    margin-left: 16px;
    margin-bottom: 12px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.bio-content .bio-inline-img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .bio-content .bio-inline-img {
        float: none;
        display: block;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 12px;
    }
}

.bio-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.bio-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Photo Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Featured Works (Home) — larger boxes */
.featured-grid-2x2 { grid-template-columns: repeat(2, minmax(500px, 1fr)); }
@media (max-width: 1200px) {
  .featured-grid-2x2 { grid-template-columns: repeat(2, minmax(420px, 1fr)); }
}
@media (max-width: 900px) {
  .featured-grid-2x2 { grid-template-columns: 1fr; }
}

/* Featured Works captions: enhanced styling with pink overlay */
.featured-grid-2x2 .gallery-overlay { 
    padding: 1rem 1rem 1.8rem 1rem; /* extra bottom padding for featured works */
    background: transparent;
}
.featured-grid-2x2 .gallery-overlay h3 {
    color: #FFFFFF !important; /* pure white for consistency */
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    font-weight: 600 !important;
    font-size: 0.9em !important; /* slightly bigger font size for featured works */
    letter-spacing: 0.04em !important;
    text-align: center !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
    line-height: 1.4 !important;
    white-space: normal !important; /* allow wrapping for longer titles */
    max-width: 85% !important;
    word-wrap: break-word !important;
    margin: 0 !important;
}

/* Force 4 columns in Showcase */
.gallery-grid-4 { 
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
    margin-top: 2rem;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.gallery-grid-4 .gallery-item {
    flex: 0 0 280px !important;
    max-width: 280px !important;
}
@media (max-width: 1024px) {
  .gallery-grid-4 { 
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .gallery-grid-4 .gallery-item {
    flex: 0 0 280px !important;
    max-width: 280px !important;
  }
}
@media (max-width: 768px) {
  .gallery-grid-4 { 
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .gallery-grid-4 .gallery-item {
    flex: 0 0 280px !important;
    max-width: 280px !important;
  }
}
@media (max-width: 480px) {
  .gallery-grid-4 { 
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .gallery-grid-4 .gallery-item {
    flex: 0 0 280px !important;
    max-width: 280px !important;
  }
}

/* ===================================
 * PERFORMANCE OPTIMIZATIONS APPLIED:
 * - GPU acceleration with translate3d/scale3d
 * - will-change hints for transform/opacity
 * - Faster transition durations (0.3s -> 0.15s on mobile)
 * - RequestAnimationFrame throttling in JS
 * - Forced GPU layers with translate3d(0,0,0)
 * =================================== */

/* Performance-Optimized Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    aspect-ratio: 1;
    will-change: transform, box-shadow; /* GPU hints for hover effects */
    transform-style: preserve-3d;
    transition: transform 0s ease-out, box-shadow 0.3s ease-out; /* Faster transitions */
    /* Speed up rendering for offscreen items */
    content-visibility: auto;
    contain-intrinsic-size: 300px 300px;
    transform: translate3d(0, 0, 0); /* Force GPU layer */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image without cropping */
    background: var(--bg-white);
    transition: transform 0s ease-out; /* Faster, GPU-optimized transitions */
    will-change: transform; /* GPU hint for scaling */
    transform: translate3d(0, 0, 0); /* Force GPU layer */
}

.gallery-item:hover { 
    box-shadow: 0 10px 25px rgba(252,15,192,0.5);
}
.gallery-item:hover img { 
    transform: scale(1.03); 
    filter: brightness(0.9) blur(1px); /* slight dim and blur on hover */
}

/* Optimized pink gradient overlay */
.gallery-item::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 100%; /* full height overlay */
    background: linear-gradient(to top, rgba(252,15,192,0.7), rgba(252,15,192,0.3)); /* shocking pink gradient */
    opacity: 0;
    transition: opacity 0s ease-out; /* Faster transition */
    pointer-events: none;
    z-index: 1;
    will-change: opacity; /* GPU hint for fade */
    transform: translate3d(0, 0, 0); /* Force GPU layer */
}
.gallery-item:hover::after,
.gallery-item:focus-within::after { 
    opacity: 1; 
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end; /* bottom aligned */
    justify-content: center; /* centered horizontally */
    background: transparent;
    padding: 1rem 1rem 1.5rem 1rem; /* extra bottom padding */
    opacity: 0;
    transform: translate3d(0, 10px, 0); /* Use translate3d for GPU */
    transition: transform 0s ease-out, opacity 0s ease-out; /* Faster transitions */
    pointer-events: none;
    z-index: 2; /* above the pink overlay */
    will-change: transform, opacity; /* GPU hints */
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay,
.gallery-item:focus .gallery-overlay {
    transform: translate3d(0, 0, 0); /* Use translate3d for GPU */
    opacity: 1;
}

.gallery-item:hover,
.gallery-item:focus-within {
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    transform: translate3d(0, -2px, 0); /* Use translate3d for GPU */
}

.gallery-item:focus img,
.gallery-item:hover img { 
    transform: scale3d(1.03, 1.03, 1); /* Use scale3d for GPU */
    /* clean hover without dimming/blur */
}

/* Pressed tactile state for gallery items */
.gallery-item.is-pressed {
    transform: translateY(-1px) scale(0.985);
    box-shadow: var(--shadow-md);
}

.gallery-overlay h3 {
    color: #FFFFFF !important; /* pure white text */
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    font-weight: 600 !important; /* semi-bold for elegance */
    font-size: 0.85em !important; /* slightly bigger font size */
    letter-spacing: 0.04em !important;
    text-align: center !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important; /* text shadow for readability */
    line-height: 1.4 !important;
    max-width: 90% !important;
    word-wrap: break-word !important;
    margin: 0 !important;
}

/* Responsive gallery overlay titles */
@media (max-width: 1024px) {
    .gallery-overlay h3 {
        font-size: 0.8em !important; /* slightly bigger on tablet */
        letter-spacing: 0.03em !important;
        max-width: 95% !important;
    }
}

@media (max-width: 768px) {
    .gallery-overlay h3 {
        font-size: 0.75em !important; /* slightly bigger on tablet */
        letter-spacing: 0.02em !important;
    }
    
    /* Optimized hover effects on tablet for touch */
    .gallery-item:hover img {
        transform: scale3d(1.02, 1.02, 1); /* Use scale3d for GPU */
    }
    
    .gallery-overlay {
        padding: 1rem 1rem 1.2rem 1rem; /* maintain bottom padding */
        transition: transform 0s ease-out, opacity 0s ease-out; /* Faster on mobile */
    }
    
    .gallery-item {
        transition: transform 0s ease-out, box-shadow 0s ease-out; /* Faster on mobile */
    }
}

@media (max-width: 480px) {
    .gallery-overlay h3 {
        font-size: 0.7em !important; /* slightly bigger on mobile */
        letter-spacing: 0.01em !important;
        line-height: 1.4 !important;
    }
    
    /* Subtle hover on mobile for better touch experience */
    .gallery-item:hover img {
        transform: scale3d(1.01, 1.01, 1); /* Use scale3d for GPU */
    }
    
    .gallery-overlay {
        padding: 0.75rem 0.75rem 1rem 0.75rem; /* reduced but maintain bottom spacing */
        transition: transform 0s ease-out, opacity 0s ease-out; /* Very fast on mobile */
    }
    
    /* Ultra-fast transitions on mobile */
    .gallery-item,
    .gallery-item img,
    .gallery-item::after {
        transition-duration: 0.15s;
    }
}
/* Lightbox caption - pink theme */
.lightbox-caption {
    color: #FF1EAD; /* shocking pink text */
    background: rgba(0,0,0,0.35);
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    line-height: 1.5;
    text-align: center;
    max-height: 34vh;
    overflow-y: auto;
    animation: fadeIn 0.5s ease;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.lightbox-caption .title { 
    font-weight: 700; 
    display: block; 
    margin-bottom: 4px; 
    color: #FF1EAD; /* shocking pink for title */
}
.lightbox-caption .desc  { 
    opacity: 0.95; 
    display: block; 
    color: #FF1EAD; /* shocking pink for description */
}
.lightbox-caption .meta  { 
    opacity: 0.9; 
    display: block; 
    color: #FF1EAD; /* shocking pink for metadata */
}

@media (min-width: 768px) {
  .lightbox-caption { max-width: 70vw; font-size: 1.05rem; }
}
@media (max-width: 767.98px) {
  .lightbox-caption { font-size: 0.96rem; max-height: 40vh; }
  .lightbox-content img { max-height: calc(92vh - 160px); }
}

/* Performance-Optimized Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: none;
    will-change: opacity; /* GPU hint for fade transitions */
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 92vw;
    max-height: 92vh;
    will-change: transform; /* GPU hint for content transforms */
    z-index: 2001; /* Ensure content is above overlay */
}

.lightbox-content img {
    max-width: 100%;
    /* Reserve room for caption to avoid overflow */
    max-height: calc(92vh - 140px);
    border-radius: 5px;
    transition: transform 0s ease-out, opacity 0s ease-out; /* Faster, optimized transitions */
    will-change: transform, opacity; /* GPU acceleration hints */
    cursor: pointer; /* indicate interactive */
    object-fit: contain; /* Ensure proper aspect ratio */
    width: auto; /* Allow natural width */
    height: auto; /* Allow natural height */
    opacity: 1 !important; /* Force visibility */
    display: block !important; /* Ensure block display */
}

/* Lightbox image hover effect - disabled to prevent interference with dragging */

/* Disable all transitions when actively panning for instant response */
.lightbox-content img.panning {
    transition: none !important;
    animation: none !important;
    pointer-events: none !important;
}

/* When zoomed, use full viewport height and hide caption */
.lightbox.zoomed .lightbox-content img {
    max-height: 92vh;
}
.lightbox.zoomed .lightbox-caption {
    opacity: 0;
    pointer-events: none;
}

/* Pop-in effect on lightbox open - optimized */
.lightbox.opening .lightbox-content img { 
    animation: fadeIn 0s ease-out !important; 
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

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

/* Performance-Optimized Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translate3d(0, -50%, 0); /* Use translate3d for GPU */
    font-size: 2.2rem;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    transition: background 0.2s ease-out, transform 0.2s ease-out; /* Faster transitions */
    user-select: none;
    will-change: transform, background-color; /* GPU hints */
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.4);
    transform: translate3d(0, -50%, 0) scale3d(1.05, 1.05, 1); /* Use 3D transforms */
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

/* Lightbox counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.35);
    color: #ffffff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    z-index: 2001;
}

@media (max-width: 768px) {
    .lightbox-nav { font-size: 1.8rem; width: 42px; height: 42px; }
    #lightbox-prev { left: 10px; }
    #lightbox-next { right: 10px; }
    .lightbox-counter { bottom: 14px; font-size: 0.9rem; }
}

/* Card Layout (Annotations) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Kill transforms/transitions on Perspectives cards to avoid click jitter */
.cards-grid .card {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
}

.cards-grid .card:hover,
.cards-grid .card.is-pressed {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
}

.cards-grid .card-image img {
    transition: none !important;
}

/* Re-enable refined hover only for Perspectives cards that are interactive gallery items */
.cards-grid .card.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.35s ease-in-out !important;
    will-change: transform, box-shadow !important;
}
.cards-grid .card.gallery-item:hover { box-shadow: 0 10px 25px rgba(252,15,192,0.5) !important; }
.cards-grid .card.gallery-item::after { display: none !important; }
/* Apply gradient only over the image area so text subtext stays readable */
.cards-grid .card.gallery-item .card-image { position: relative; }
.cards-grid .card.gallery-item .card-image::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 25%;
    background: linear-gradient(to top, rgba(252,15,192,0.6), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    pointer-events: none;
}
.cards-grid .card.gallery-item:hover .card-image::after { opacity: 1; }

/* Allow image inside card to scale smoothly on hover */
.cards-grid .card.gallery-item .card-image img {
    transition: transform 0.35s ease-in-out !important;
}
.cards-grid .card.gallery-item:hover .card-image img {
    transform: scale(1.05) !important;
}

/* Stabilize card images (Perspectives) to avoid layout jumps */
.cards-grid .card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.cards-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    will-change: transform, box-shadow;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Pressed tactile state for cards */
.card.is-pressed {
    transform: translateY(-2px) scale(0.99);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0s ease;
}

.card:hover .card-image img {
    transform: none;
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1; /* ensure over any image gradient */
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Video Section */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

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

/* Contact Form */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

/* Contact Info Box */
.contact-info-box {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.98));
    border: 1px solid rgba(224,224,224,0.7);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 1.5rem auto 2rem;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-info-box h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* Animated top accent bar */
.contact-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #ff7966, #ffb199, var(--accent-color));
    background-size: 200% 100%;
    animation: gradientFlow 6s linear infinite;
}

.contact-info-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(224,224,224,0.9);
}

.contact-info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1.25rem;
}

.contact-info-item { 
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}
.contact-info-item strong {
    flex: 0 0 110px;
    color: var(--secondary-color);
    margin: 0;
}
.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-info-item a:hover { color: var(--accent-color); }

@media (max-width: 768px) {
    .contact-info-list { grid-template-columns: 1fr; }
}

/* Keyframes for animated accent */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group label .required {
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Pressed tactile state for buttons */
.submit-btn.is-pressed,
.cta-button.is-pressed {
    transform: translateY(0) scale(0.98);
    filter: brightness(0.95);
    box-shadow: var(--shadow-sm);
}

/* Keep feedback button position stable on press */
.feedback-btn.is-pressed {
    filter: brightness(0.95);
    box-shadow: var(--shadow-sm);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Floating Feedback Button */
.feedback-floater {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1500;
}

.feedback-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: subtleBounce 3.5s ease-in-out infinite;
    will-change: transform;
    transform-origin: center center;
    line-height: 0; /* prevent inline layout shifts */
}

.feedback-btn:hover {
    background: #c0392b;
}

/* Use SVG icon for crisp rendering */
.feedback-btn svg {
    width: 26px;
    height: 26px;
    display: block;
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.feedback-btn svg path {
    fill: #ffffff;
}

/* Remove inner highlight to avoid icon shift illusion */

/* Tooltip placed as sibling of the button so it is not clipped */
.feedback-floater .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow-md);
}

.feedback-floater .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--primary-color);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.feedback-floater:hover .tooltip,
.feedback-btn:focus-visible + .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 480px) {
    .feedback-floater { right: 20px; bottom: 20px; }
    .feedback-floater .tooltip { right: 62px; font-size: 0.9rem; }
}

.feedback-form-container {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    transform: scale(0);
    transform-origin: bottom right;
    z-index: 3000; /* Ensure above all other elements including feedback section */
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0;
}

.feedback-form-container.active {
    transform: scale(1);
    opacity: 1;
    animation: fadeIn 0.25s ease;
}

.feedback-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feedback-form-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.close-feedback {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000000;
    transition: var(--transition);
}

.close-feedback:hover {
    color: #000000;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.star.active,
.star:hover {
    color: #ffd700;
}

.star:active { transform: scale(0.9); }

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer .social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: transform 0.15s ease-out, color 0.15s ease-out, text-shadow 0.15s ease-out;
    display: inline-block;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    cursor: pointer;
    transform-origin: center center;
    -webkit-transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 6px 8px;
    line-height: 1;
}

.footer .social-links a:hover,
.footer .social-links a:focus-visible {
    transform: translateY(-2px) scale(1.3) !important;
    -webkit-transform: translateY(-2px) scale(1.3) !important;
    color: var(--accent-color);
    text-shadow: 0 6px 14px rgba(231,76,60,0.25);
}

.footer .social-links a::before { content: none; display: none; }

/* Active press feedback */
.footer .social-links a:active {
    transform: translateY(0) scale(0.96);
    -webkit-transform: translateY(0) scale(0.96);
    text-shadow: none;
}

@media (max-width: 480px) {
    .footer .social-links a:hover,
    .footer .social-links a:focus-visible {
        transform: translateY(-1px) scale(1.2);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes floatSlow {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .bio-section {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

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

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

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .feedback-form-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    /* Prevent heading overflow on small screens */
    .section-title {
        font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
        line-height: 1.2 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        margin-left: 0 !important;
        padding-inline: 2px;
        text-align: left !important;
    }

    h1 { font-size: clamp(1.7rem, 8.5vw, 2.5rem) !important; line-height: 1.2 !important; }
    h2 { font-size: clamp(1.4rem, 7.5vw, 2.1rem) !important; line-height: 1.25 !important; }
    h3 { font-size: clamp(1.2rem, 6.5vw, 1.6rem) !important; line-height: 1.3 !important; }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 2rem;
    }

    .feedback-floater {
        right: 20px;
        bottom: 20px;
    }

    .feedback-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .social-links a { font-size: 1.25rem; }

    /* Extra-tight heading control for very small screens */
    .section-title { font-size: clamp(1.4rem, 9.5vw, 2rem) !important; }
}

/* ===================================
   Brutalist Minimalist Overrides
   Presentation-only restyle; content preserved
   =================================== */
html, body, * {
    border-radius: 0 !important;
}

:root {
    /* Neo-brutalist neon palette */
    --accent-color: #FC0FC0; /* Shocking Pink */
    --primary-color: #111111; /* Near-Black for structure */
    --secondary-color: #A020F0; /* Neon Purple */
    --contrast-blue: #1F51FF; /* Electric Blue */
    --vivid-magenta: #FF00FF; /* Microinteraction accent */
    --text-color: #111111; /* default dark text */
    --light-text: #F7F7F3; /* light text on dark */
    --bg-light: #F7F7F3; /* Off-White */
    --bg-white: #F7F7F3; /* unify light surfaces */
    --border-color: #111111;
}

/* Typography */
body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif !important;
    background: var(--bg-white) !important;
    color: var(--text-color) !important;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
h1 { font-size: 5rem !important; }
h2 { font-size: 3rem !important; }
h3 { font-size: 1.75rem !important; }

/* Links */
a { color: var(--accent-color) !important; text-decoration: underline; transition: all 0.25s linear !important; }
a:hover, a:focus-visible { color: var(--contrast-blue) !important; text-decoration: underline; outline: 2px solid var(--contrast-blue); outline-offset: 2px; }

/* Global removal of soft effects */
*, *::before, *::after { box-shadow: none !important; }
.cta-button::after { display: none !important; }
.ripple { display: none !important; }

/* Containers and sections: hard edges and visible structure */
.container { max-width: 1200px; padding: 3rem 1.5rem !important; }
.section { padding: 3rem 0 !important; border-top: 2px solid var(--primary-color); }
.section-title { text-align: left !important; margin-bottom: 1.5rem !important; }
.section-title::after { display: none !important; }

/* Navbar: solid strip */
.navbar { background: var(--primary-color) !important; box-shadow: none !important; }
.nav-container { border-bottom: 2px solid var(--border-color); padding: 1rem 1.5rem !important; }
.logo {
    color: var(--accent-color) !important; /* Shocking Pink on dark navbar */
    font-family: 'Great Vibes', 'Allura', 'Sacramento', 'Dancing Script', cursive !important;
    font-weight: 400 !important;
    font-style: normal !important; /* script fonts carry their own flow */
    font-size: 2.6rem !important; /* fill navbar vertically */
    letter-spacing: -1.2px !important;
    line-height: 1 !important;
    font-variant-ligatures: contextual common-ligatures;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center; /* vertically center within navbar */
    align-self: stretch; /* fill container height */
}
.logo:hover, .logo:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    opacity: 0.95;
    transition: opacity 0.2s linear, text-decoration-color 0.2s linear;
}
.nav-menu a { color: var(--light-text) !important; text-decoration: none; }
.nav-menu a::after { display: none !important; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-color) !important; transform: none !important; }
.scroll-progress { background: var(--accent-color) !important; height: 2px !important; }

/* Mobile menu: full-screen takeover */
@media (max-width: 768px) {
  .nav-menu { background: var(--primary-color) !important; }
  .nav-menu a { color: var(--light-text) !important; }
  .logo { font-size: 2rem !important; }
}

/* Hero: remove blur/overlay, keep raw video */
.video-background video { filter: none !important; }
.video-overlay { display: none !important; }
.hero-content { color: var(--text-color) !important; }

/* Buttons: rectangular, flat fills, instant hovers */
.cta-button, .submit-btn, .feedback-btn {
    border-radius: 0 !important;
    background: var(--accent-color) !important;
    color: #111111 !important;
    border: 2px solid var(--primary-color) !important;
    transition: all 0.25s linear !important;
    box-shadow: none !important;
}
.cta-button:hover, .submit-btn:hover, .feedback-btn:hover,
.cta-button:focus-visible, .submit-btn:focus-visible, .feedback-btn:focus-visible {
    background: #111111 !important;
    color: #F7F7F3 !important;
    outline: 2px solid var(--contrast-blue);
    outline-offset: 2px;
}

/* Forms: raw inputs */
.form-control {
    border: 2px solid var(--primary-color) !important;
    background: #FFFFFF !important;
    color: var(--text-color) !important;
    box-shadow: none !important;
}
.form-control:focus { outline: 2px solid var(--accent-color) !important; box-shadow: none !important; }

/* Cards and grids: no radius/shadow, hard borders */
.card, .gallery-item, .video-wrapper, .contact-form, .contact-info-box {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 2px solid var(--primary-color) !important;
    background: #FFFFFF !important;
}
.card:hover, .gallery-item:hover { transform: translateY(-2px) scale(1.01) !important; }
.cards-grid, .gallery-grid, .video-container { gap: 1rem !important; }

/* Remove gallery overlay override - keep overlays functional */
/* .gallery-overlay { display: none !important; } */

/* Fade-in animation for overlays */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-content img { 
    transition: none !important; /* No transition for instant dragging response */
}
.lightbox.opening .lightbox-content img { 
    animation: none !important; /* Disabled for instant response */
}

/* Footer: stark banner */
.footer { background: var(--primary-color) !important; color: var(--light-text) !important; border-top: 2px solid var(--primary-color); padding-top: 0 !important; padding-bottom: 2.25rem !important; }
.footer .social-links a { color: var(--light-text) !important; text-decoration: none; }
.footer .brand-gradient { 
    background: linear-gradient(90deg, #7dd3fc 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-decoration: none !important;
}
.footer .social-links { display: flex; align-items: center; justify-content: center; gap: 14px; }
.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    color: var(--light-text) !important;
}
.footer .social-links a svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.footer .social-links a:hover { color: var(--accent-color) !important; transform: none !important; }

/* New multi-column footer layout */
.footer .footer-grid { 
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 1.5rem;
    padding: 0 1rem 1rem; /* start at very top, expand downward */
    align-items: stretch;
}
.footer .footer-col.center { display: flex; flex-direction: column; justify-content: flex-start; min-height: 100%; }
/* Push everything after the first address block (i.e., Contact header + details) to the bottom */
.footer .footer-col.center .address-block:first-of-type { margin-bottom: auto !important; }
.footer .footer-col h4 { font-size: 1rem; margin: 0 0 0.2rem; color: var(--light-text); }
.footer .footer-col p, .footer .footer-col a, .footer .footer-col li { font-size: 0.95rem; color: var(--light-text); text-decoration: none; }
.footer .footer-socials { display: flex; gap: 10px; margin: 0.05rem 0 0.35rem; }
.footer .footer-socials { justify-content: center; }
.footer .footer-socials a { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; }
.footer .footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer .footer-mid-title { text-align: center; font-size: 0.95rem; margin: 0 0 0.2rem; }
.footer .footer-powered { text-align: center; font-size: 0.9rem; opacity: 0.9; margin-bottom: 0; line-height: 1; }
.footer .footer-brand { margin-top: 0; }
.footer .footer-brand img { max-width: 260px; height: auto; display: inline-block; transition: transform 160ms ease; margin-top: -2px; }
/* Center the Powered By column (second column) both vertically and horizontally */
.footer .footer-grid .footer-col:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center within stretched grid cell */
  align-items: center;     /* horizontal center */
}
/* Ensure center column aligns with overall center on wide screens */
@media (min-width: 901px) {
  .footer .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer .footer-brand img:hover { transform: scale(1.06); }
.footer .center-contact { margin-top: 1.25rem; }
.footer .contact-title { margin-bottom: 0.1rem !important; }
.footer .contact-lines.center-contact { text-align: left; max-width: 360px; margin-left: 0; margin-right: auto; }
/* Contact block wrap: center title, left-align details under it */
.footer .contact-wrap { max-width: 420px; margin: 1rem auto 0; }
.footer .contact-wrap h4 { text-align: left; margin: 0 0 0.15rem; padding-left: 12px; }
.footer .contact-wrap .contact-lines { text-align: left; margin: 0 auto; padding-left: 12px; }
.footer .contact-wrap .center-contact { margin-top: 0.35rem; }
.footer .contact-lines p { margin: 0.18rem 0; }
.footer .footer-powered { text-align: center; font-size: 0.9rem; opacity: 0.9; margin-bottom: 0.05rem; }
.footer .footer-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.2rem; }
.footer .footer-col.center { text-align: center; }
.footer .contact-lines p { margin: 0.25rem 0; }
.footer .address-block { margin-top: 0.5rem; max-width: 420px; margin-left: auto; margin-right: auto; text-align: left; display: block; }
.footer .address-block p { color: var(--light-text); line-height: 1.4; }
.footer .list-plain { list-style: none; padding: 0; margin: 0; }
.footer .list-plain li { margin: 0.25rem 0; }
.footer .icon { width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; fill: currentColor; }
.footer .footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 1.25rem 0 1rem; }
.footer .footer-bottom { text-align: center; padding: 0 1rem 0; font-size: 0.95rem; }

@media (max-width: 900px) {
  .footer .footer-grid { grid-template-columns: 1fr; }
  .footer .footer-rows { grid-template-columns: 1fr; }
}

/* ===================================
 * FEEDBACK DISPLAY SECTION
 * =================================== */

.feedback-section {
    padding: 4rem 0;
    background: var(--bg-light);
    margin-top: 3rem;
}

.feedback-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feedback-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* Feedback Entries Grid */
.feedback-entries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Feedback Card */
.feedback-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.feedback-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Feedback Header */
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feedback-name {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.feedback-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Star Rating */
.feedback-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.feedback-rating .star {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-block;
}

.feedback-rating .star::before {
    content: '★';
    font-size: 18px;
    color: #ddd;
    position: absolute;
    top: 0;
    left: 0;
}

.feedback-rating .star.filled::before {
    color: #FFD700; /* Gold color for filled stars */
}

/* Feedback Message */
.feedback-message {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    word-wrap: break-word;
}

.feedback-message:empty {
    display: none;
}

/* Empty State */
.feedback-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.feedback-empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.feedback-empty-text {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feedback-empty-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.feedback-empty-link:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

/* Loading State */
.feedback-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Error State */
.feedback-error {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    background: #ffeaea;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-section {
        padding: 3rem 0;
        margin-top: 2rem;
    }
    
    .feedback-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .feedback-entries {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feedback-card {
        padding: 1.5rem;
    }
    
    .feedback-name {
        font-size: 1.1rem;
    }
    
    .feedback-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .feedback-section {
        padding: 2rem 0;
        margin-top: 1.5rem;
    }
    
    .feedback-card {
        padding: 1.25rem;
    }
    
    .feedback-name {
        font-size: 1rem;
    }
    
    .feedback-rating .star {
        width: 16px;
        height: 16px;
    }
    
    .feedback-rating .star::before {
        font-size: 16px;
    }
}

/* Animations */
@keyframes feedbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-card {
    animation: feedbackFadeIn 0.5s ease-out;
}

.feedback-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feedback-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feedback-card:nth-child(4) {
    animation-delay: 0.3s;
}

.feedback-card:nth-child(5) {
    animation-delay: 0.4s;
}
.feedback-floater .tooltip { background: var(--primary-color) !important; border: 2px solid var(--accent-color); color: var(--light-text) !important; border-radius: 0 !important; box-shadow: none !important; }
.feedback-floater .tooltip::after { display: none !important; }

/* Animations: optimized for performance */
* { transition-duration: 0.25s; }
.stagger-in { animation: none !important; }
.intro-underline { animation: none !important; }
/* Preserve lightbox animations */
.opening { animation: fadeIn 0.2s ease-out !important; }
.pop-in { animation: popIn 0.3s ease !important; }

/* Intentional rigid outlines for sections */
.section, .container { outline: 1px solid var(--primary-color); outline-offset: -1px; }

/* Alternate section backgrounds for contrast */
