/* Desktop Navigation Styles */
.main-nav {
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(203, 213, 225, 0.3);
  margin: 0 0.5rem;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-weight: 500;
}

.nav-link.portfolio {
  color: #ffffff;
}

.nav-link.portfolio:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.portfolio.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-link.info {
  color: #60a5fa;
}

.nav-link.info:hover {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.15);
}

.nav-link.info.active {
  background: rgba(96, 165, 250, 0.25);
  border-color: rgba(96, 165, 250, 0.4);
}

/* Mobile Performance Optimizations */
:root {
  --animation-duration: 0.3s;
  --shadow-intensity: 0.2;
  --transform-scale: 1;
  --backdrop-blur: 10px;
  --border-opacity: 0.2;
}

/* Mobile-specific performance optimizations */
@media (max-width: 768px) {
  :root {
    --animation-duration: 0s; /* Disable animations on mobile */
    --shadow-intensity: 0;    /* Remove shadows on mobile */
    --transform-scale: 0.98;  /* Reduce transform effects */
    --backdrop-blur: 5px;     /* Reduce backdrop blur */
    --border-opacity: 0.1;    /* Reduce border opacity */
  }
  
  /* Disable expensive CSS properties on mobile */
  * {
    will-change: auto !important;
    transform-style: flat !important;
  }
  
  /* Reduce GPU acceleration on mobile */
  .gpu-accelerated {
    transform: none !important;
    will-change: auto !important;
  }
  
  /* Hide vertical nav divider on mobile */
  .nav-divider {
    display: none;
  }
  

  
  /* Make contact form wider on mobile */
  .contact-page .contact-wrap {
    padding: 2rem 1rem;
    max-width: 100%;
  }
  
  .contact-card {
    padding: 1.5rem;
    margin: 0 0.5rem 2rem;
    max-width: calc(100% - 1rem);
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 18px 20px;
    font-size: 1.1rem;
  }
  
  .contact-btn {
    padding: 20px 24px;
    font-size: 1.2rem;
  }
  
  .contact-title {
    font-size: 2.2rem;
  }
  
  .contact-sub {
    font-size: 1.1rem;
  }
}

/* Mobile Navigation Toggle - Hidden by default */
.mobile-nav-toggle {
  display: none; /* Hidden on desktop by default */
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation - Simple Horizontal Row */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: none; /* Hide hamburger button */
  }
  
  .main-nav {
    display: flex; /* Always visible on mobile */
    flex-direction: row;
    gap: 0.25rem;
    width: auto;
    margin: 0;
    padding: 0;
    align-items: center;
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    position: static;
    z-index: auto;
  }
  
  .nav-group {
    flex-direction: row;
    gap: 0.25rem;
    width: auto;
    align-items: center;
  }
  
  .nav-link {
    width: auto;
    max-width: none;
    text-align: center;
    padding: 0.3rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(203, 213, 225, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    justify-content: center;
    white-space: nowrap;
  }
  
  /* Hide St. Ignatius 3DGS links on mobile */
  .nav-link[href="viewer.html"] {
    display: none;
  }
  

  
  .nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(203, 213, 225, 0.3);
    margin: 0 0.25rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  header {
    padding: 0.75rem;
  }
  
  .header-left {
    gap: 0.75rem;
  }
  
  .logo {
    max-width: 70px;
  }
  
  .site-title {
    font-size: 1.1rem;
  }
  
  .page-title {
    font-size: 0.9rem;
  }
  
  .mobile-nav-toggle {
    font-size: 1.3rem;
    padding: 0.4rem;
  }
}

/* Mobile Content Optimizations */
@media (max-width: 768px) {
  body {
    padding: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
  }
  
  /* Mobile video gallery */
  .video-gallery {
    margin-top: 0.5rem;
    padding: 0 0.5rem;
    text-align: center;
  }
  
  .description {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    text-align: center;
  }
  
  .video-block {
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .video-block h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .video-caption {
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0 0.5rem;
    text-align: center;
  }
  
  /* Mobile iframe and video */
  iframe,
  video {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 6px;
    margin: 0 auto;
    display: block;
  }
  
  /* Mobile tags */
  .tag {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }
  
  /* Mobile footer */
  footer {
    margin-top: 3rem;
    font-size: 0.85rem;
    padding: 0 0.5rem;
    text-align: center;
  }
}

/* Mobile About Page Optimizations */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    text-align: center;
    align-items: center;
  }
  
  .about-left,
  .about-right {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  
  .about-left {
    order: 2;
  }
  
  .about-right {
    order: 1;
  }
  
  .founder-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 1rem;
    display: block;
  }
  
  .founder-caption {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .content-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .content-section h3 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .content-section ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
  }
  
  .workflow-step {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .workflow-step h4 {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .cta-section {
    text-align: center;
    padding: 2rem 1rem;
    margin: 2rem 0;
  }
  
  .cta-section h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .cta-section p {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .cta-button {
    margin: 0 auto;
    display: block;
  }
}

/* Mobile Services Page Optimizations */
@media (max-width: 768px) {
  .service-block {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem 1rem;
  }
  
  .service-block h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .service-description {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .capability-item {
    display: grid;
    gap: 0.75rem;          /* space between title, text, button */
    padding: 1.5rem 1rem;
  }
  
  .capability-item h3 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .capability-item p {
    text-align: center;
  }
  
  /* Style the inline links in capability items to match page-title styling */
  .capability-item .inline-link,
  .capabilities-grid .capability-item .inline-link,
  .capability-item p .inline-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-size: 1.2rem !important;
    transition: color 0.2s ease !important;
  }
  
  .capability-item .inline-link:visited,
  .capabilities-grid .capability-item .inline-link:visited,
  .capability-item p .inline-link:visited {
    color: #cbd5e1 !important;
    text-decoration: none !important;
  }
  
  .capability-item .inline-link:hover,
  .capabilities-grid .capability-item .inline-link:hover,
  .capability-item p .inline-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
  }
  
  .attribution-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
  }
  
  .attribution-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .attribution-text {
    text-align: center;
  }
}

/* Mobile Portfolio Page Optimizations */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .portfolio-item {
    text-align: center;
    padding: 1.5rem 1rem;
  }
  
  .portfolio-item h3 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .portfolio-item p {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .portfolio-item img {
    margin: 0 auto;
    display: block;
  }
  
  .portfolio-item video {
    margin: 0 auto;
    display: block;
  }
  
  .portfolio-item iframe {
    margin: 0 auto;
    display: block;
  }
}

/* Mobile Loading Screen Optimizations */
@media (max-width: 768px) {
  .loading-overlay {
    padding: 2rem 1rem;
  }
  
  .loading-logo {
    max-width: 120px;
    margin-bottom: 1.5rem;
  }
  
  .loading-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }
  
  .loading-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .loading-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .loading-steps {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .loading-step {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  .loading-progress {
    height: 8px;
    margin-bottom: 1.5rem;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
}

/* Touch-friendly interactions for mobile */
@media (max-width: 768px) {
  /* Larger touch targets */
  .nav-link,
  .cta-button,
  .launch-viewer-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Touch feedback */
  .nav-link:active,
  .cta-button:active,
  .launch-viewer-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .nav-link:hover,
    .cta-button:hover,
    .launch-viewer-btn:hover,
    .workflow-step:hover {
      transform: none;
      box-shadow: none;
      background: inherit;
    }
  }
}

/* Mobile-specific utility classes */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-block {
    display: block !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
  
  .mobile-padding {
    padding: 1rem !important;
  }
  
  .mobile-margin {
    margin: 1rem !important;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  header {
    padding: 0.5rem 1rem;
  }
  
  .header-left {
    gap: 0.75rem;
  }
  
  .logo {
    max-width: 60px;
  }
  
  .site-title {
    font-size: 1rem;
  }
  
  .page-title {
    font-size: 0.85rem;
  }
  
  .mobile-nav-toggle {
    font-size: 1.2rem;
    padding: 0.3rem;
  }
}

/* High-DPI mobile devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Mobile performance monitoring */
@media (max-width: 768px) {
  /* Reduce paint complexity */
  * {
    contain: layout style paint;
  }
  
  /* Optimize scrolling */
  html {
    scroll-behavior: auto;
  }
  
  /* Reduce repaints */
  .sticky-header {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Prevent zoom on form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
        padding: 12px 16px;
        border: 1px solid rgba(203, 213, 225, 0.3);
        background: rgba(255, 255, 255, 0.05);
        color: #f4f4f4;
        transition: all var(--animation-duration) ease;
    }
    
    /* Touch-friendly button states */
    button,
    .nav-link,
    .cta-button,
    .launch-viewer-btn {
        -webkit-tap-highlight-color: rgba(96, 165, 250, 0.3);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Improved touch feedback */
    button:active,
    .nav-link:active,
    .cta-button:active,
    .launch-viewer-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        button:hover,
        .nav-link:hover,
        .cta-button:hover,
        .launch-viewer-btn:hover,
        .workflow-step:hover {
            transform: none;
            box-shadow: none;
            background: inherit;
        }
    }
}

/* Mobile Scrollbar Optimization */
@media (max-width: 768px) {
    /* Custom scrollbar for mobile */
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(203, 213, 225, 0.1);
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(96, 165, 250, 0.5);
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(96, 165, 250, 0.7);
    }
    
    /* Firefox scrollbar */
    * {
        scrollbar-width: thin;
        scrollbar-color: rgba(96, 165, 250, 0.5) rgba(203, 213, 225, 0.1);
    }
}

/* Mobile Loading State Optimizations */
@media (max-width: 768px) {
    /* Optimize loading animations for mobile */
    .loading-spinner {
        animation: spin 1.5s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Reduce animation complexity on mobile */
    .workflow-step:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Mobile-friendly transitions */
    .nav-link,
    .cta-button,
    .launch-viewer-btn {
        transition: all 0.2s ease;
    }
}

/* Mobile Landscape Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    /* Optimize for landscape mobile */
    header {
        padding: 0.5rem 1rem;
    }
    
    .header-left {
        gap: 0.75rem;
    }
    
    .logo {
        max-width: 60px;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 0.85rem;
    }
    
    .mobile-nav-toggle {
        font-size: 1.2rem;
        padding: 0.3rem;
    }
    
    /* Adjust content spacing for landscape */
    .video-gallery {
        margin-top: 0.25rem;
    }
    
    .description {
        margin-bottom: 1.5rem;
    }
    
    .video-block {
        margin-bottom: 2rem;
    }
}

/* Mobile High-DPI Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Optimize high-DPI displays */
    .loading-logo,
    .founder-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mobile Accessibility Improvements */
@media (max-width: 768px) {
    /* Improve focus states for mobile */
    .nav-link:focus,
    .cta-button:focus,
    .launch-viewer-btn:focus,
    button:focus {
        outline: 2px solid #60a5fa;
        outline-offset: 2px;
    }
    
    /* Better contrast for mobile */
    .tag {
        background: rgba(96, 165, 250, 0.2);
        color: #ffffff;
        border: 1px solid rgba(96, 165, 250, 0.4);
    }
    
    /* Mobile-friendly text selection */
    ::selection {
        background: rgba(96, 165, 250, 0.3);
        color: #ffffff;
    }
    
    ::-moz-selection {
        background: rgba(96, 165, 250, 0.3);
        color: #ffffff;
    }
}

/* Mobile Performance Utilities */
@media (max-width: 768px) {
    /* Utility classes for mobile */
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-block {
        display: block !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-padding {
        padding: 1rem !important;
    }
    
    .mobile-margin {
        margin: 1rem !important;
    }
    
    /* Mobile-specific spacing */
    .mobile-compact {
        margin: 0.5rem 0 !important;
        padding: 0.5rem !important;
    }
    
    .mobile-expanded {
        margin: 1.5rem 0 !important;
        padding: 1.5rem !important;
    }
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #f4f4f4;
  text-align: center;
  padding: 1rem;
  min-height: 100vh;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.2);
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.logo {
  max-width: 120px;
  margin: 0;
  height: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.page-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: #94a3b8;
  margin: 0;
  font-style: italic;
}

/* Responsive header */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  
  .header-left {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }
  
  .header-titles {
    align-items: center;
    text-align: center;
  }
  
  .main-nav {
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    max-width: 400px;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    text-align: center;
  }
  
  .logo {
    max-width: 100px;
  }
  
  .site-title {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .page-title {
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 2rem; /* Added separation between header banner and hero image */
  margin-bottom: -0.5rem; /* Added even more space between hero and content */
  border-radius: 12px; /* Add rounded corners to the container */
}

.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%; /* Centers the statue better */
  border-radius: 12px;
}

.hero-overlay {
  position: absolute;
  top: 65%; /* nice placement */
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* soften the background */
  background: rgba(15, 32, 60, 0.25);  /* single-tone semi-transparent navy */
  
  padding: 2rem 3rem;   /* slightly less vertical padding so it feels sleeker */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-align: center;
  
  max-width: 840px;    /* narrower card so it doesn't sprawl edge to edge */
  width: 80%;           /* scales gracefully on smaller screens */
  
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); /* softer shadow */
  
  backdrop-filter: blur(8px); /* optional: frosted glass look */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
}

/* Override for mobile */
@media (max-width: 600px) {
  .hero-overlay {
    top: 65%;
    left: 46.5%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 550px;
    padding: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
  }
}



.hero-overlay h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-overlay .hero-subtitle {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Bottom gradient overlay for seamless blend */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(26, 26, 46, 0.1) 20%,
    rgba(26, 26, 46, 0.4) 50%,
    rgba(26, 26, 46, 0.8) 80%,
    rgba(26, 26, 46, 0.95) 100%
  );
  z-index: 1;
}

.hero-overlay .hero-subtitle {
  font-size: 1.3rem;
  color: #d1d5db;
  margin: 0;
  line-height: 1.5;
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
    margin-bottom: -0.75rem; /* Proportional spacing for mobile */
  }
  
  .hero-overlay {
    padding: 2rem;
    margin: 1rem;
  }
  
  .hero-overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-overlay .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
  }
  
  .hero-overlay {
    padding: 1.5rem;
    margin: 0.75rem;
  }
  
  .hero-overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-overlay .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }
  
  .logo {
    max-width: 80px;
  }
  
  .site-title {
    font-size: 1.2rem;
  }
  
  .page-title {
    font-size: 1rem;
  }
}

.video-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: -1.25rem; /* Tightened spacing by ~20px (from 1rem to -1.25rem) */
}

/* Add breathing room between header and content on non-home pages */
.video-gallery:not(.contact-page) {
  margin-top: 2rem; /* Add space between header banner and page content */
}

.description {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: #d1d5db;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-block {
  margin-bottom: 4rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.video-block h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.video-caption {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.video-caption strong {
  font-weight: 500;
  color: #ffffff;
}

.video-gallery iframe {
  margin: 0 auto;
}

iframe {
  width: 90%;
  max-width: 960px;
  height: 540px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

video {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #94a3b8;
}

/* Viewer Preview Styles */
.viewer-preview {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.viewer-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.launch-viewer-btn {
  display: inline-block;
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #1a1a2e;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.launch-viewer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(203, 213, 225, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
}

/* Attribution Section */
.attribution-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.attribution-section h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
  margin-top: 0;
}

.attribution-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.attribution-text a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.attribution-text a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Side by Side Layout */
.side-by-side-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.side-by-side-item {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
}

/* Responsive side-by-side layout */
@media (max-width: 768px) {
  .side-by-side-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .side-by-side-item {
    width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }
  
  .description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .video-block h2 {
    font-size: 1.8rem;
  }
  
  iframe {
    width: 100%;
    height: 315px;
  }
  
  .video-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .description {
    font-size: 0.95rem;
  }
  
  .video-block h2 {
    font-size: 1.6rem;
  }
}

/* Service Page Styles */
.service-block {
  margin-bottom: 4rem;
  margin-top: -1.25rem; /* Reduced spacing from hero by ~20px */
  text-align: left;
}

.service-block h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #ffffff;
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #d1d5db;
  max-width: 900px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem; /* Increased from 1.5rem to 2rem to prevent hover cutoff */
}



.capability-item {
  background: rgba(203, 213, 225, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  margin-top: 0.5rem; /* Move cards down slightly in their containers */
}

.capability-item:hover {
  background: rgba(203, 213, 225, 0.08);
  border-color: rgba(203, 213, 225, 0.3);
  transform: translateY(-2px);
}

.capability-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.capability-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

/* About Page Styles */
.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.about-left {
  text-align: left;
  max-width: 450px;
  margin: 0 auto;
}

.founder-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.founder-caption {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.founder-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.about-right {
  text-align: left;
}

.about-content h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 1.5rem;
  text-align: left;
}

.delivery-list, .trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.delivery-list li, .trust-list li {
  font-size: 1rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.delivery-list li:before, .trust-list li:before {
  content: "•";
  color: #60a5fa;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.about-bottom {
  text-align: center;
}

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

.workflow-section h2 {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.workflow-step {
  background: rgba(203, 213, 225, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.workflow-step:hover {
  background: rgba(203, 213, 225, 0.08);
  border-color: rgba(203, 213, 225, 0.3);
  transform: translateY(-4px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0 auto 1rem;
}

.workflow-step h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
  margin-top: 0;
}

.workflow-step p {
  font-size: 1rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

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

.location-section h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}

.location-section p {
  font-size: 1.1rem;
  color: #d1d5db;
  margin: 0;
}

.cta-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2rem;
  margin-top: 0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Responsive About Page */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .founder-image {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .content-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .section-icon {
    font-size: 2rem;
  }
  
  .founder-card {
    padding: 1.5rem;
  }
  
  .founder-credentials {
    flex-direction: column;
    align-items: center;
  }
  
  .credential-tag {
    width: 100%;
    text-align: center;
  }
  
  .location-card {
    padding: 2rem 1.5rem;
  }
  
  .cta-section {
    padding: 3rem 1.5rem;
    margin: 3rem 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-text {
    font-size: 1.1rem;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .workflow-step {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  
  .content-section {
    padding: 1rem;
  }
  
  .section-icon {
    font-size: 1.8rem;
  }
  
  .founder-card {
    padding: 1rem;
  }
  
  .founder-name {
    font-size: 1.3rem;
  }
  
  .founder-title {
    font-size: 1rem;
  }
  
  .location-card {
    padding: 1.5rem 1rem;
  }
  
  .location-icon {
    font-size: 2.5rem;
  }
  
  .cta-section {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .cta-section h2 {
    font-size: 1.6rem;
  }
  
  .cta-text {
    font-size: 1rem;
  }
}



/* Content Sections */
.content-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(203, 213, 225, 0.08);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.content-section:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(203, 213, 225, 0.15);
}

.section-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Founder Card */
.founder-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.founder-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(203, 213, 225, 0.3);
}

.founder-info {
  margin-top: 1.5rem;
}

.founder-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.founder-title {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.founder-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.credential-tag {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Section Titles */
.section-title {
  font-size: 2.2rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 2px;
}

/* Location Section */
.location-section {
  margin-bottom: 4rem;
  text-align: center;
}

.location-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  transition: border-color 0.3s ease;
}

.location-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(203, 213, 225, 0.3);
}

.location-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.location-card p {
  font-size: 1.2rem;
  color: #d1d5db;
  margin: 0;
  line-height: 1.6;
}

/* Enhanced CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  margin-top: 0;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.3rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Enhanced Workflow Steps */
.workflow-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(203, 213, 225, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.workflow-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(203, 213, 225, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
}

.workflow-step h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
  margin-top: 0;
}

.workflow-step p {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

/* Responsive CTA */
@media (max-width: 768px) {
  .cta-section {
    padding: 3rem 1.5rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-subtitle {
    font-size: 1.2rem;
  }
  
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 2.5rem 1rem;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-subtitle {
    font-size: 1.1rem;
  }
  
  .cta-button {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }
}

/* Additional Mobile Centering */
@media (max-width: 768px) {
  /* Center all images */
  img {
    margin: 0 auto;
    display: block;
  }
  
  /* Center all videos */
  video {
    margin: 0 auto;
    display: block;
  }
  
  /* Center all iframes */
  iframe {
    margin: 0 auto;
    display: block;
  }
  
  /* Center all buttons */
  button {
    margin: 0 auto;
    display: block;
  }
  
  /* Center all form elements */
  input, select, textarea {
    margin: 0 auto;
    display: block;
  }
  
  /* Center all headings */
  h1, h2, h3, h4, h5, h6 {
    text-align: center;
  }
  
  /* Center all paragraphs */
  p {
    text-align: center;
  }
  
  /* Center all lists */
  ul, ol {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
  }
  

}

/* CTA Button Styles */
.btn.cta {
  display: inline-block;
  background: #60a5fa;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.btn.cta:hover {
  background: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.btn.cta:active {
  transform: translateY(0);
}



/* Base/reset */
*,*::before,*::after{box-sizing:border-box}
.sr-only{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Generic contact block */
.contact{max-width:640px;margin:0 auto;padding:3rem 1rem;text-align:center}
.contact-hero h2{font-size:1.8rem;margin:.0 0 .5rem}
.contact-subtitle{opacity:.8;margin:0 0 2rem}

/* Form primitives */
.form-group{display:flex;flex-direction:column;text-align:left}
input,select,textarea{
  width:100%;padding:.65rem .75rem;border-radius:6px;border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.05);color:#fff;font:inherit;transition:.2s
}
input:focus,select:focus,textarea:focus{outline:0;border-color:#4da3ff}

/* Legacy button (if used elsewhere) */
.submit-button{
  margin-top:.5rem;padding:.75rem 1.25rem;font-weight:600;border:1px solid currentColor;border-radius:8px;
  background:transparent;cursor:pointer;transition:.2s
}
.submit-button:hover{background:rgba(255,255,255,.1)}

/* ===== Contact page (inside .video-gallery) ===== */
.video-gallery.contact-page{display:block;overflow-x:hidden;padding-inline:0}
.video-gallery.contact-page .contact-wrap{
  width:min(92vw,720px);margin-inline:auto;padding:3rem 1rem;text-align:center
}
.contact-title{font-size:clamp(28px,4.8vw,36px);letter-spacing:-.3px;margin:.2rem 0 .6rem;color:#fff}
.contact-sub{color:rgba(255,255,255,.8);margin:0 auto 2rem;max-width:60ch;font-size:1.1rem}

/* Card + form */
.contact-card{
  width:auto;max-width:min(720px,100%);margin:0 auto 32px;padding:2rem;border:1px solid rgba(255,255,255,.2);
  border-radius:16px;background:rgba(255,255,255,.08);backdrop-filter:blur(10px);
  box-shadow:0 8px 32px rgba(0,0,0,.3)
}
.contact-form{display:grid;gap:1.5rem;text-align:left;min-width:0}
.contact-form>*{min-width:0}
.contact-form label{display:block;margin:0 0 8px;font-size:.95rem;font-weight:500;color:rgba(255,255,255,.9)}
.contact-form input,.contact-form select,.contact-form textarea{
  border-radius:12px;padding:16px 18px;background:rgba(255,255,255,.1);font-size:1rem;box-sizing:border-box;max-width:100%
}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:rgba(255,255,255,.5)}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{
  border-color:#4da3ff;background:rgba(255,255,255,.15);box-shadow:0 0 0 3px rgba(77,163,255,.2)
}

/* Custom select caret */
.contact-form select{
  appearance:none;padding-right:50px;background-repeat:no-repeat;background-position:right 18px center;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='white' opacity='.85'><path d='M7 10l5 5 5-5'/></svg>")
}

/* CTA button */
.contact-btn{
  width:100%;padding:18px 24px;border:0;border-radius:12px;color:#fff;font-weight:600;font-size:1.1rem;
  background:linear-gradient(135deg,#4da3ff,#2563eb);cursor:pointer;transition:.2s;text-align:center;
  box-shadow:0 4px 16px rgba(37,99,235,.3);display:block;max-width:100%
}
.contact-btn:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(37,99,235,.4);background:linear-gradient(135deg,#60a5fa,#3b82f6)}
.contact-btn:active{transform:none}
.contact-btn:disabled{opacity:.7;cursor:not-allowed}

/* Notices + privacy */
.contact-notice{
  margin-top:1rem;padding:16px 18px;border:1px solid rgba(255,255,255,.2);border-radius:12px;
  background:rgba(255,255,255,.1);color:#fff;text-align:center
}
.contact-notice.ok{border-color:rgba(34,197,94,.5);background:rgba(34,197,94,.1)}
.contact-notice.fail{border-color:rgba(239,68,68,.5);background:rgba(239,68,68,.1)}
.contact-privacy{color:rgba(255,255,255,.7);margin:1rem 0 0;font-size:.9rem;line-height:1.5;text-align:center}

/* ===== Responsive tweaks ===== */
@media (max-width:768px){
  .video-gallery.contact-page .contact-wrap{padding:2rem .5rem}
  .contact-card{padding:1rem;margin:0 1rem 2rem}
  .contact-title{font-size:2rem}
  .contact-sub{font-size:1rem}
}
@media (max-width:480px){
  .video-gallery.contact-page .contact-wrap{width:min(94vw,720px)}
}
@media (max-width:400px){
  .contact-card{max-width:calc(100vw - 24px);margin-inline:8px;padding:8px}
  .contact-btn{padding:16px 18px;font-size:1.05rem}
}
@media (max-width:360px){
  .contact-form input,.contact-form select,.contact-form textarea{padding:16px}
}
/* Business Value Page Styles */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 12px;
}

.hero-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.project-showcase {
  margin-bottom: 3rem;
}

.project-showcase h2 {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}

.project-impact {
  font-size: 1.1rem;
  color: #d1d5db;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border-left: 4px solid #22c55e;
  border-radius: 4px;
}

.business-metrics {
  margin: 3rem 0;
}

.business-metrics h3 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.metric-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.use-cases {
  margin: 3rem 0;
}

.use-cases h3 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.use-case-list {
  list-style: none;
  padding: 0;
}

.use-case-list li {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(203, 213, 225, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 8px;
  color: #d1d5db;
}

.use-case-list li strong {
  color: #ffffff;
}

.deliverables-section {
  margin: 3rem 0;
}

.deliverables-section h3 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2rem;
}

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

.deliverable-item {
  padding: 1.5rem;
  background: rgba(203, 213, 225, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.deliverable-item:hover {
  background: rgba(203, 213, 225, 0.08);
  border-color: rgba(203, 213, 225, 0.3);
  transform: translateY(-2px);
}

.deliverable-item h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.deliverable-item p {
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.collaboration-highlight {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
}

.collaboration-highlight h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}

.collaboration-highlight p {
  color: #d1d5db;
  line-height: 1.6;
  margin: 0;
}

.roi-section {
  margin: 3rem 0;
  text-align: center;
}

.roi-section h2 {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2rem;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.roi-item {
  padding: 2rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.roi-item:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.roi-item h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}

.roi-item p {
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.client-results {
  margin: 3rem 0;
}

.client-results h2 {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.result-item {
  padding: 2rem;
  background: rgba(203, 213, 225, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.result-item:hover {
  background: rgba(203, 213, 225, 0.08);
  border-color: rgba(203, 213, 225, 0.3);
  transform: translateY(-2px);
}

.result-item h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}

.result-item p {
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.cta-subtitle {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: 0.05em;
  font-weight: 300;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-button {
  padding: 1rem 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.cta-button:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

/* Media Section for Side-by-Side Layout */
.media-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.media-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-item img,
.media-item video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-caption {
  font-size: 1.1rem;
  color: #d1d5db;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(203, 213, 225, 0.05);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 8px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .media-section {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .roi-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section h2 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* St. Ignatius viewer responsive display */
  .mobile-viewer {
    display: none;
  }
  
  .desktop-viewer {
    display: block;
  }
  
  @media (max-width: 768px) {
    .mobile-viewer {
      display: block !important;
    }
    
    .desktop-viewer {
      display: none !important;
    }
  }
}

/* Service Features List Styling */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.service-features li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: 600;
}

.service-features li:last-child {
  margin-bottom: 0;
}

/* Proof Stripe Styling */
.proof-stripe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0 4rem;
  padding: 2rem;
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
}

.proof-item {
  text-align: center;
}

.proof-number {
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-label {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Service Card Styling */
.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(203, 213, 225, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 4rem;
  transition: all 0.3s ease;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(203, 213, 225, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Different background shades for each service card */
.service-card-1 {
  background: rgba(255, 255, 255, 0.03);
}

.service-card-2 {
  background: rgba(96, 165, 250, 0.02);
}

.service-card-3 {
  background: rgba(139, 92, 246, 0.02);
}

.service-header {
  margin-bottom: 1.5rem;
}

.service-card h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card .service-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #d1d5db;
  max-width: 900px;
}

.service-card .service-features {
  margin-bottom: 2rem;
}

/* ===== Service Card Upgrade ===== */
.service-card{
  position:relative;
  max-width: 880px;
  margin: 0 auto 3rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(96,165,250,.06), transparent 60%) ,
              rgba(255,255,255,0.03);
  border: 1px solid rgba(203,213,225,0.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.service-card:hover{
  transform: translateY(-2px);
  border-color: rgba(203,213,225,0.24);
  background: radial-gradient(120% 140% at 0% 0%, rgba(96,165,250,.09), transparent 60%),
              rgba(255,255,255,0.05);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
}

/* Per-card tint (optional) */
.service-card-1{ background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.06), transparent 60%), rgba(255,255,255,0.03); }
.service-card-2{ background: radial-gradient(120% 140% at 0% 0%, rgba(96,165,250,.09), transparent 60%), rgba(255,255,255,0.03); }
.service-card-3{ background: radial-gradient(120% 140% at 0% 0%, rgba(139,92,246,.09), transparent 60%), rgba(255,255,255,0.03); }

.service-header{ margin: 0 0 1rem; }
.service-card h2{
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.2px;
  background: linear-gradient(135deg,#60a5fa,#3b82f6);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}

/* Copy */
.service-card .service-description{
  color:#d1d5db;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height:1.65;
  margin: .25rem 0 1.25rem;
  max-width: 65ch;
}

/* Feature list */
.service-features{
  list-style:none; padding:0; margin:0 0 1.75rem;
  display:grid; gap:.75rem;
}
.service-features li{
  position:relative; padding-left:1.5rem; color:#e5e7eb;
}
.service-features li::before{
  content:"";
  position:absolute; left:0; top:.58rem;
  width:.6rem; height:.6rem; border-radius:999px;
  background: linear-gradient(135deg,#60a5fa,#3b82f6);
  box-shadow: 0 0 0 6px rgba(59,130,246,.12);
}

/* CTA */
.case-study-button{ margin-top:.5rem; }
.case-study-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  text-decoration:none; color:#fff; font-weight:700;
  padding: .9rem 1.25rem;
  border-radius:12px;
  border:1px solid rgba(59,130,246,.35);
  background: linear-gradient(135deg,#4da3ff,#2563eb);
  box-shadow: 0 4px 16px rgba(37,99,235,.28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.case-study-btn::after{ content:"↗"; transform: translate(0,0); transition: transform .18s ease; }
.case-study-btn:hover{ transform: translateY(-1px); box-shadow:0 10px 24px rgba(37,99,235,.34); background:linear-gradient(135deg,#60a5fa,#3b82f6); }
.case-study-btn:hover::after{ transform: translate(2px,-2px); }
.case-study-btn:active{ transform:none; }

/* Tighten small screens */
@media (max-width: 640px){
  .service-card{ margin: 0 1rem 2rem; }
  .service-card .service-description{ margin-bottom: 1rem; }
}

/* Case Study Button Styling */
.case-study-button {
  margin-top: 2rem;
  text-align: center;
}

.case-study-btn {
  display: inline-block;
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  transition: all 0.2s ease;
}

.case-study-btn:hover {
  background: rgba(96, 165, 250, 0.25);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-1px);
}

/* Mobile Responsiveness for Proof Stripe */
@media (max-width: 768px) {
  .proof-stripe {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
    padding: 1.5rem;
  }
  
  .proof-number {
    font-size: 1.8rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .service-card h2 {
    font-size: 1.6rem;
  }
  
  .service-card .service-description {
    font-size: 1rem;
  }
  
  .service-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
