@tailwind base;
@tailwind components;
@tailwind utilities;

/* Responsive gallery section */

/* ---------------------------------
   GALLERY WRAPPER
---------------------------------- */
#gallery {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

#gallery .gallery-container {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff, #f7f9fc);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

/* ---------------------------------
   CAROUSEL IMAGE AREA
---------------------------------- */
#carousel-images {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 1024px) {
  #carousel-images {
    height: 340px;
  }
}

@media (max-width: 900px) {
  #carousel-images {
    height: 280px;
  }
}

@media (max-width: 700px) {
  #carousel-images {
    height: 220px;
  }
}

@media (max-width: 500px) {
  #carousel-images {
    height: 180px;
  }
}

@media (max-width: 400px) {
  #carousel-images {
    height: 140px;
  }
}

/* ---------------------------------
   NAVIGATION ARROWS
---------------------------------- */
#carousel-left,
#carousel-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid #d0d0e0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  color: #1a1a1a;
  font-size: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

#carousel-left:hover,
#carousel-right:hover {
  background: #0f6cff;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(15, 108, 255, 0.3);
}

#carousel-left {
  left: 20px;
}
#carousel-right {
  right: 20px;
}

/* Smaller arrows for mobile */
@media (max-width: 700px) {
  #carousel-left,
  #carousel-right {
    font-size: 1.6rem;
    width: 42px;
    height: 42px;
    border-width: 1.5px;
  }
  #carousel-left {
    left: 10px;
  }
  #carousel-right {
    right: 10px;
  }
}

/* ---------------------------------
   COVERFLOW IMAGES
---------------------------------- */
.carousel-img-coverflow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 85%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.3, 1),
    opacity 0.5s ease,
    box-shadow 0.4s ease;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  filter: saturate(0.9) brightness(0.95);
}

/* Active image (center) */
.carousel-img-coverflow.active {
  left: 20%;
  transform: scale(1.1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  filter: saturate(1.1) brightness(1);
}

/* Previous image (left) */
.carousel-img-coverflow.prev {
  left: 0;
  transform: scale(0.9) translateX(-25%);
  opacity: 0.7;
  z-index: 2;
  filter: blur(1px) brightness(0.9);
}

/* Next image (right) */
.carousel-img-coverflow.next {
  left: 40%;
  transform: scale(0.9) translateX(25%);
  opacity: 0.7;
  z-index: 2;
  filter: blur(1px) brightness(0.9);
}

/* ---------------------------------
   RESPONSIVE COVERFLOW TUNING
---------------------------------- */
@media (max-width: 900px) {
  .carousel-img-coverflow {
    width: 70%;
    height: 80%;
  }
  .carousel-img-coverflow.active {
    left: 15%;
  }
  .carousel-img-coverflow.prev {
    left: 0;
    transform: scale(0.9) translateX(-20%);
  }
  .carousel-img-coverflow.next {
    left: 45%;
    transform: scale(0.9) translateX(20%);
  }
}

@media (max-width: 700px) {
  .carousel-img-coverflow {
    width: 85%;
    left: 7%;
    height: 75%;
  }
  .carousel-img-coverflow.next {
    left: 60%;
  }
}

@media (max-width: 500px) {
  .carousel-img-coverflow {
    width: 95%;
    left: 2.5%;
    height: 70%;
  }
  .carousel-img-coverflow.next {
    left: 70%;
  }
}

/* ---------------------------------
   ANIMATION FOR ACTIVE IMAGE
---------------------------------- */
.carousel-img-coverflow.active {
  animation: fadeInScale 0.6s ease both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* End coverflow styles */

/* High-contrast, bright theme text defaults */
html[data-theme="light"] body,
body {
    color: #0f172a; /* slate-900 */
    background-color: #ffffff;
}

html[data-theme="light"] h1 {
    color: #ffffff; /* override to white */
}

html[data-theme="light"] h2,
html[data-theme="light"] h3,
h2, h3 {
    color: #0b1220; /* black */
}

html[data-theme="light"] h4,
h4 {
    color: #ffffff; /* white */
}
 /* deep heading color */


html[data-theme="dark"] p,
p {
    color: #ffffff; /* white for paragraphs */
}

html[data-theme="light"] li,
li {
    color: #555555; /* light black for list items */
}

/* Links with accessible contrast */
a { color: #2563eb; }
a:hover { color: #1d4ed8; }

/* Utility helpers to force readable text on varying backgrounds */
.bright-text { color: #0f172a !important; }
.bright-heading { color: #0b1220 !important; }
.muted-text { color: #475569 !important; }
.on-dark { color: #ffffff !important; }

/* Universal lightweight animations for all devices */
@keyframes universalFadeUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* Enhanced scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations */
.reveal-seq:nth-child(1) { transition-delay: 0.1s; }
.reveal-seq:nth-child(2) { transition-delay: 0.2s; }
.reveal-seq:nth-child(3) { transition-delay: 0.3s; }
.reveal-seq:nth-child(4) { transition-delay: 0.4s; }
.reveal-seq:nth-child(5) { transition-delay: 0.5s; }
.reveal-seq:nth-child(6) { transition-delay: 0.6s; }

/* Floating animations */
.floating {
    animation: float 6s ease-in-out infinite;
}

/* Accessibility helpers */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Mobile menu styling to sit below fixed nav and receive focus */
#mobile-menu {
    position: absolute;
    top: 4rem; /* below the fixed nav height (approx) */
    left: 0;
    right: 0;
    z-index: 60;
    outline: none;
}

/* Ensure visible when toggled (avoid specificity issues) */
 #mobile-menu:not(.hidden) { display: block !important; }


.floating.visible {
    animation-play-state: running;
}

/* Page load animations */
.fade-up { 
    opacity: 0; 
    animation: universalFadeUp 600ms ease forwards; 
}
.fade-up.delay-1 { animation-delay: 120ms; }
.fade-up.delay-2 { animation-delay: 240ms; }
.fade-up.delay-3 { animation-delay: 360ms; }

.page-load {
    opacity: 0;
    transform: translateY(20px);
    animation: universalFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Enhanced page load animations */
.page-loaded .page-load {
    opacity: 0;
    transform: translateY(30px);
    animation: universalFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-loaded .page-load:nth-child(1) { animation-delay: 0.1s; }
.page-loaded .page-load:nth-child(2) { animation-delay: 0.2s; }
.page-loaded .page-load:nth-child(3) { animation-delay: 0.3s; }
.page-loaded .page-load:nth-child(4) { animation-delay: 0.4s; }
.page-loaded .page-load:nth-child(5) { animation-delay: 0.5s; }

/* Staggered content reveal */
.content-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section special animations */

.hero-title {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: fadeInScale 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: universalFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: universalFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.9s;
}


/* Enhanced hover effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s ease;
}

/* Defensive: ensure typewriter headline never shows a caret on hover/focus */
#headline-dynamic,
.typewriter #headline-dynamic,
.typing-animation,
.typewriter #headline-dynamic:hover,
.typewriter #headline-dynamic:focus,
.typing-animation:hover,
.typing-animation:focus {
    border-right: none !important;
    caret-color: transparent !important;
    animation: none !important;
}

/* Defensive: prevent SVG pattern overlays from blinking on hover by disabling transitions/animations */
.absolute.opacity-5,
.absolute.inset-0.opacity-5,
.absolute.top-0.right-0.opacity-5 {
    pointer-events: none !important; /* ignore hover events */
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
}

.absolute.opacity-5 svg,
.absolute.opacity-5 svg *,
.absolute.inset-0.opacity-5 svg,
.absolute.inset-0.opacity-5 svg *,
.absolute.top-0.right-0.opacity-5 svg,
.absolute.top-0.right-0.opacity-5 svg * {
    transition: none !important;
    animation: none !important;
    opacity: 0.05 !important; /* keep consistent low opacity */
    caret-color: transparent !important;
    backface-visibility: hidden !important;
}

/* Also guard against parent hover altering overlay opacity */
.card-enhanced:hover .absolute.opacity-5,
.card-enhanced:focus-within .absolute.opacity-5,
.card-enhanced:hover .absolute.inset-0.opacity-5 {
    opacity: 0.05 !important;
    transition: none !important;
}

/* Neutralize any JS-driven loading/pulse/shimmer classes that might affect overlays */
.card-enhanced.loading-pulse .absolute.opacity-5,
.card-enhanced.loading-pulse .absolute.inset-0.opacity-5,
.card-enhanced.loading-pulse .absolute.top-0.right-0.opacity-5,
.card-enhanced .loading-shimmer .absolute.opacity-5,
.card-enhanced.loading-pulse svg,
.card-enhanced.loading-pulse svg *,
.card-enhanced .loading-shimmer svg,
.card-enhanced .loading-shimmer svg * {
    opacity: 0.05 !important;
    transition: none !important;
    animation: none !important;
    pointer-events: none !important;
}

/* If loading-pulse adds transform/scale/opacity via pseudo-elements, hide them for overlays */
.card-enhanced.loading-pulse::before,
.card-enhanced.loading-pulse::after,
.card-enhanced .loading-shimmer::before,
.card-enhanced .loading-shimmer::after {
    display: none !important;
}

/* Extra hard guard: target the checkPattern SVG and its elements to prevent any hover/animation changes */
#checkPattern, #checkPattern *,
.absolute.opacity-5 svg, .absolute.opacity-5 svg *,
.absolute.inset-0.opacity-5 svg, .absolute.inset-0.opacity-5 svg *,
.absolute.top-0.right-0.opacity-5 svg, .absolute.top-0.right-0.opacity-5 svg * {
    animation: none !important;
    transition: none !important;
    pointer-events: none !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    will-change: auto !important;
}

/* Force stable low opacity for shapes inside the pattern */
#checkPattern circle,#checkPattern path,#checkPattern rect,
.absolute.opacity-5 svg rect,
.absolute.opacity-5 svg circle,
.absolute.opacity-5 svg path {
    opacity: 0.05 !important;
    stroke-opacity: 0.5 !important;
    fill-opacity: 0.05 !important;
    stroke: currentColor !important;
}

/* Ensure parent hover cannot override shape styles */
.card-enhanced:hover #checkPattern circle,
.card-enhanced:hover #checkPattern path,
.card-enhanced:hover .absolute.opacity-5 svg *,
.card-enhanced:focus-within #checkPattern circle,
.card-enhanced:focus-within .absolute.opacity-5 svg * {
    opacity: 0.05 !important;
    transition: none !important;
    animation: none !important;
}




.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    filter: brightness(1.05);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.08);
}

.hover-glow {
    transition: box-shadow 0.3s ease, 
                transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

/* Card hover effects */
.card-enhanced {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.card-enhanced:hover::before {
    left: 100%;
}

.card-enhanced:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Button hover effects */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-enhanced::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.btn-enhanced:hover::after {
    width: 300px;
    height: 300px;
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Feature card hover effects */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text hover effects */
.hover-text-glow {
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.hover-text-glow:hover {
    text-shadow: 0 0 10px currentColor;
    color: #6366f1;
}

/* Image hover effects */
.hover-image-scale {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hover-image-scale:hover {
    transform: scale(1.00);
}

.hover-image-scale img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-image-scale:hover img {
    transform: scale(1.1);
}

/* Enhanced loading states */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-bounce {
    animation: bounceIn 1s ease-in-out infinite;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Card loading state */
.card-loading {
    position: relative;
    overflow: hidden;
}

.card-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* Focus states for accessibility */
.focus-ring {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Enhanced micro-interactions */
.btn-enhanced:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.card-enhanced:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Smooth transitions for all interactive elements */
* {
    transition: box-shadow 0.2s ease, outline 0.2s ease;
}

/* Micro-interactions */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* Enhanced mobile optimizations */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .floating {
        animation-duration: 4s;
        animation-timing-function: ease-in-out;
    }
    
    /* Optimize scroll reveals for mobile */
    .scroll-reveal {
        transform: translateY(15px);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    
    .scroll-reveal-left {
        transform: translateX(-20px);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    
    .scroll-reveal-right {
        transform: translateX(20px);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    
    /* Simplified hover effects for mobile */
    .hover-lift:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    
    .hover-scale:hover {
        transform: scale(1.03);
    }
    
    .card-enhanced:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    /* Touch-friendly interactions */
    .btn-enhanced:active {
        transform: scale(0.98);
    }
    
    .card-enhanced:active {
        transform: scale(0.99);
    }
    
    /* Reduce floating animation intensity */
    .floating {
        animation-duration: 3s;
    }
    
    /* Optimize page load animations for mobile */
    .page-load {
        animation-duration: 0.6s;
    }
    
    .hero-title {
        animation-duration: 0.8s;
    }
    
    .hero-subtitle {
        animation-duration: 0.6s;
    }
    
    .hero-cta {
        animation-duration: 0.6s;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up, .scroll-reveal, .floating, .hover-lift, .hover-scale { 
        animation: none !important; 
        opacity: 1 !important; 
        transform: none !important;
        transition: none !important;
    }
}

/* Force white text in the Use Cases overview gradient block */
.bg-gradient-to-r.from-trust-blue.to-accent-blue,
.bg-gradient-to-r.from-trust-blue.to-accent-blue * {
    color: #ffffff !important;
}

/* ==========================
   Hero refinements
   ========================== */
.gradient-bg {
    background: linear-gradient(180deg, rgba(15,23,42,0.95) 0%, rgba(99,102,241,0.85) 45%, rgba(6,182,212,0.06) 100%);
    color: #fff;
}
.gradient-bg .text-white { color: #fff !important; }
.gradient-bg h1 {
    font-size: clamp(1.8rem, 3.6vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}
.gradient-bg p { color: rgba(255,255,255,0.92); }
.hero-ctas { display: flex; gap: 0.75rem; align-items: center; }
.hero-primary {
    background: linear-gradient(90deg, #10b981, #06b6d4);
    box-shadow: 0 12px 30px rgba(6,182,212,0.12), 0 6px 12px rgba(16,185,129,0.08);
    padding: 0.875rem 1.3rem;
    border-radius: 0.85rem;
    font-weight: 700;
    border: none;
}
.hero-primary:focus { outline: 3px solid rgba(6,182,212,0.18); outline-offset: 3px; }
.hero-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.95);
    padding: 0.75rem 1.2rem;
    border-radius: 0.75rem;
}
.hero-visual { display:flex; align-items:center; justify-content:center; }
.hero-image-9-17 { box-shadow: 0 20px 40px rgba(2,6,23,0.12); }

/* Responsive hero tweaks */
@media (max-width: 1024px) {
    .gradient-bg { padding-top: 6rem; }
    .hero-primary, .hero-secondary { width: 100%; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
}

/* cap background sizing and decorative blobs for smaller viewports */
@media (max-width: 900px) {
    .gradient-bg { background-size: cover; background-position: center top; padding-top: 4rem; padding-bottom: 3rem; }
    .pointer-events-none.absolute.-top-24.-right-24 { transform: scale(0.6) translate(10px, -10px); opacity: 0.9; }
    .pointer-events-none.absolute.-bottom-24.-left-24 { transform: scale(0.7) translate(-10px, 10px); opacity: 0.9; }
}

@media (max-width: 480px) {
    .gradient-bg { padding-top: 3.5rem; padding-bottom: 2.5rem; }
    .hero-image-9-17 { width: min(320px, 42vw); }
    .pointer-events-none.absolute.-top-24.-right-24, .pointer-events-none.absolute.-bottom-24.-left-24 { display: none; }
}

/* ==========================
   Gallery refinements
   ========================== */
#carousel-images { position: relative; outline: none; }
.carousel-img-coverflow { border-radius: 1rem; box-shadow: 0 18px 40px rgba(2,6,23,0.12); }
.carousel-img-coverflow.active { transform: translateY(-6px) scale(1.06); box-shadow: 0 32px 60px rgba(2,6,23,0.18); }

/* Dots */
.carousel-dot { width: 10px; height: 10px; border-radius: 9999px; display:inline-block; transition: transform 200ms ease, background-color 200ms ease; }
.carousel-dot[aria-pressed="true"] { transform: scale(1.2); background-color: #6366f1; }

/* Accessible arrows */
#carousel-left, #carousel-right { background: rgba(255,255,255,0.96); color: #111827; }
#carousel-left:focus, #carousel-right:focus { outline: 3px solid rgba(99,102,241,0.18); outline-offset: 3px; }

/* Pause hint */
.carousel-container[aria-roledescription]::after {
    content: attr(data-hint);
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: rgba(0,0,0,0.6);
}

/* make controls larger on mobile */
@media (max-width:700px){
    #carousel-left, #carousel-right { width:44px; height:44px; }
    .carousel-dot { width:8px; height:8px; }
}

/* Ensure focus styles for carousel images */
.carousel-img-coverflow:focus { outline: 3px solid rgba(99,102,241,0.18); outline-offset: 6px; }


