/* Kelex Labs Website Styles */

/* CSS Custom Properties (Variables) */
:root {
  /* Primary Colors (Dark Theme) */
  --primary-gold: #CBB26A;
  --primary-dark: #A89553;
  --primary-light: #D4C484;
  
  /* Secondary Colors */
  --accent-blue: #4A90E2;
  --success-green: #10B981;
  --warning-orange: #F59E0B;
  --error-red: #EF4444;
  
  /* Dark Theme Neutral Colors */
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --background: #111827;
  --background-alt: #1F2937;
  --background-card: #374151;
  --border: #4B5563;
  --border-light: #6B7280;

  /* Typography */
  --font-family-headings: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-body: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 95px;

  /* Shadows (Dark Theme) */
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-default: all 0.2s ease-in-out;
  --transition-hover: 0.15s ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

/* Links */
a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-hover);
}

a:hover {
  color: var(--primary-gold);
  text-decoration: none;
}

a:visited {
  color: var(--text-primary);
}

a:visited:hover {
  color: var(--primary-gold);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
  line-height: 1.25;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.3;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
}

p {
  margin-bottom: 1em;
}

.text-large {
  font-size: 1.125rem;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-caption {
  font-size: 0.75rem;
  line-height: 1.4;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

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

/* Center section subtext paragraphs */
.text-large.text-secondary {
  text-align: center;
}

/* Layout Components */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-large {
  padding: var(--space-3xl) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  height: var(--header-height);
  padding-top: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-default);
}

.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.5px;
  background: var(--primary-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header:hover::before {
  opacity: 1;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo img {
  height: 59px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary) !important;
  font-weight: 400;
  transition: var(--transition-hover);
}

.nav-link:visited {
  color: var(--text-secondary) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-gold) !important;
  font-weight: 500;
  border: 2px solid var(--primary-gold);
  border-radius: 4px;
  padding: 8px 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
  
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: var(--space-lg);
    gap: var(--space-lg);
    z-index: 1001;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
  box-shadow: var(--shadow-button);
  font-size: 1rem;
  line-height: 1;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--primary-gold);
  color: var(--background);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: black !important;
}

/* Specific override for header button */
.header .btn-primary:hover {
  background: var(--primary-dark);
  color: black !important;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  padding: 10px 22px;
}

.btn-secondary:hover {
  background: var(--primary-gold);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--background-alt);
}

/* Hero Section */
.hero {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url('HeroBackground.png') center center / cover no-repeat;
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s ease-out;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  animation: fadeInUp 1s ease-out 0.2s both;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
  box-shadow: 0 4px 12px rgba(203, 178, 106, 0.3);
}

/* Stamp Text Styling */
.stamp-text {
  display: inline-block;
  background-color: var(--primary-gold);
  color: var(--background);
  padding: 8px 12px;
  border: 3px solid var(--primary-gold);
  border-radius: 4px;
  font-family: 'Courier New', 'Courier', monospace;
  font-weight: 700;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transform: rotate(-2deg);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--transition-default);
}

.stamp-text:nth-child(even) {
  transform: rotate(1.5deg);
}

.stamp-text::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px dashed var(--primary-dark);
  border-radius: 6px;
  opacity: 0.6;
}

.stamp-text:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: white;
}


/* Keyframe animations */
@keyframes heroGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* New AI-themed animations */
@keyframes neuralPulse {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.8;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

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

@keyframes circuitFlow {
  0% {
    background-position: 0px 0px, 0px 0px;
  }
  100% {
    background-position: 80px 80px, 60px 60px;
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) scale(0.9);
    opacity: 1;
  }
  75% {
    transform: translateY(-30px) scale(1.05);
    opacity: 0.7;
  }
}

@keyframes aiVisualization {
  0%, 100% {
    opacity: 0.12;
    transform: scale(1);
  }
  25% {
    opacity: 0.18;
    transform: scale(1.02);
  }
  50% {
    opacity: 0.15;
    transform: scale(0.98);
  }
  75% {
    opacity: 0.2;
    transform: scale(1.01);
  }
}

/* Pulse animation for CTA button */
.hero .btn-primary {
  position: relative;
  overflow: hidden;
}

.hero .btn-primary::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;
}

.hero .btn-primary:hover::before {
  left: 100%;
}

/* Cards */
.card {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-default);
}

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

.card-feature {
  background: var(--background-alt);
  border: none;
  border-radius: 6px;
  padding: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--primary-gold);
  margin: 0 auto var(--space-md) auto;
  display: block;
}

/* Service Items */
.service-items {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.service-item {
  background: var(--background-alt);
  padding: var(--space-md);
  border-radius: 6px;
  border-left: 3px solid var(--primary-gold);
}

.service-item h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.service-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.process-step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary-gold);
  color: var(--background);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.step-description {
  color: var(--text-secondary);
}

/* Testimonials */
.testimonial {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-xl);
  position: relative;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.testimonial-quote::before {
  content: '"';
  font-size: 2rem;
  color: var(--primary-gold);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  background: var(--background);
  color: var(--text-primary);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.cta-section h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.cta-section .btn-primary {
  background: var(--primary-gold);
  color: var(--background);
  margin-bottom: var(--space-xl);
}

.cta-section .btn-primary:hover {
  background: var(--primary-dark);
  color: black;
}

.btn-subtext {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: var(--space-sm);
  font-weight: 400;
}

.cta-subtext {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  padding: var(--space-xl) 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-hover);
}

.footer-link:hover {
  color: var(--primary-gold);
}

/* Responsive Design */
@media (max-width: 1023px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

@media (max-width: 767px) {
  /* Typography */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }

  /* Layout */
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-large {
    padding: var(--space-3xl) 0;
  }

  /* Hero Mobile Optimizations */
  .hero {
    height: auto;
    min-height: 60vh;
    max-height: 70vh;
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.9rem;
    margin: 0 auto var(--space-md);
    line-height: 1.5;
  }

  /* Mobile Stamp Text Adjustments */
  .stamp-text {
    font-size: 0.8em;
    padding: 6px 10px;
    letter-spacing: 0.5px;
  }

  /* Header */
  .header {
    height: auto;
    min-height: var(--header-height);
    padding-bottom: var(--space-lg);
  }
  
  .header-content {
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
  }
  
  .nav {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-menu-toggle {
    display: block;
    color: var(--text-primary);
    position: fixed;
    right: var(--space-md);
    top: var(--space-md);
    z-index: 1002;
  }
  
  .mobile-menu-toggle i {
    width: 24px;
    height: 24px;
  }
  
  /* Header button responsive - ensure it's visible and centered */
  .nav .btn-primary {
    display: inline-flex;
    padding: 12px 20px;
    font-size: 0.875rem;
    white-space: nowrap;
    margin: 0 auto;
  }

  /* Grid */
  .grid {
    gap: var(--space-md);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Process Steps */
  .process-steps {
    gap: var(--space-xl);
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile Landscape Orientation Fixes */
@media screen and (max-height: 500px) and (orientation: landscape) {
  /* Reduce header height in landscape */
  :root {
    --header-height: 70px;
  }
  
  .header {
    min-height: var(--header-height);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
  
  .logo img {
    height: 40px;
  }
  
  /* Hide navigation links and show hamburger menu in landscape */
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    color: var(--text-primary);
    position: fixed;
    right: var(--space-md);
    top: var(--space-sm);
    z-index: 1002;
  }
  
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: var(--space-lg);
    gap: var(--space-lg);
    z-index: 1001;
  }
  
  /* Adjust header content layout for landscape */
  .header-content {
    flex-wrap: nowrap;
    gap: var(--space-md);
    padding-bottom: 0;
    padding-right: 60px; /* Add space for hamburger menu */
  }
  
  .nav {
    position: relative;
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-md);
  }
  
  /* Keep the consultation button visible but smaller and positioned to avoid hamburger */
  .nav .btn-primary {
    display: inline-flex;
    padding: 6px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin: 0;
    margin-right: var(--space-lg); /* Add margin to avoid hamburger overlap */
  }
  
  /* Optimize hero section for landscape */
  .hero {
    min-height: calc(100vh - var(--header-height));
    height: auto;
    padding: var(--space-md) 0;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .service-selection-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .service-selection-card {
    padding: 1rem;
  }
  
  .service-selection-card .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-sm);
  }
  
  .service-selection-card .card-icon img {
    width: 28px;
    height: 28px;
  }
  
  .service-selection-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
  }
  
  .service-selection-card p {
    font-size: 0.8rem;
    margin-bottom: var(--space-md);
    line-height: 1.4;
  }
  
  .hero-actions {
    gap: var(--space-sm);
  }
  
  .hero-actions .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  /* Reduce section padding in landscape */
  .section {
    padding: var(--space-xl) 0;
  }
  
  .section-large {
    padding: var(--space-2xl) 0;
  }
  
  /* Optimize typography for landscape */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Optimize carousel for landscape */
  .story-card {
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  
  .story-icon {
    width: 50px;
    height: 50px;
  }
  
  .story-icon i {
    width: 20px;
    height: 20px;
  }
  
  .story-content h3 {
    font-size: 1.125rem;
  }
  
  .story-content blockquote {
    font-size: 0.9rem;
  }
}

/* Additional landscape fixes for very wide mobile screens */
@media screen and (max-height: 450px) and (orientation: landscape) {
  .hero {
    padding: var(--space-sm) 0;
  }
  
  .service-selection-card {
    padding: 0.75rem;
  }
  
  .service-selection-card h3 {
    font-size: 0.9rem;
  }
  
  .service-selection-card p {
    font-size: 0.75rem;
    margin-bottom: var(--space-sm);
  }
  
  .hero-actions .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .section-large {
    padding: var(--space-xl) 0;
  }
}

/* Ensure proper viewport handling */
@media screen and (max-width: 767px) and (orientation: landscape) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  /* Ensure service cards don't overflow */
  .service-selection-cards {
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Optimize navigation for landscape */
  .nav .btn-primary {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  /* Ensure footer doesn't take too much space */
  .footer {
    padding: var(--space-md) 0;
  }
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* User Stories Carousel */
.user-stories-carousel {
  margin-top: var(--space-2xl);
  position: relative;
}

.carousel-container {
  overflow: hidden;
  border-radius: 12px;
  background: var(--background-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.story-card {
  min-width: 100%;
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.story-card.active {
  opacity: 1;
}

.story-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(203, 178, 106, 0.3);
}

.story-icon i {
  width: 32px;
  height: 32px;
  color: var(--background);
}

.story-content {
  flex: 1;
}

.story-content h3 {
  color: var(--primary-gold);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.story-content blockquote {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-lg);
}

.story-content blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--primary-gold);
  opacity: 0.7;
  font-family: serif;
}

.story-author {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.story-author strong {
  color: var(--text-primary);
  font-weight: 600;
}

.story-author span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.carousel-btn {
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-default);
  color: var(--text-secondary);
}

.carousel-btn:hover {
  background: var(--primary-gold);
  color: var(--background);
  border-color: var(--primary-gold);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-btn:disabled:hover {
  background: var(--background-alt);
  color: var(--text-secondary);
  border-color: var(--border);
}

.carousel-btn i {
  width: 20px;
  height: 20px;
}

.carousel-indicators {
  display: flex;
  gap: var(--space-sm);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition-default);
}

.indicator.active {
  background: var(--primary-gold);
  transform: scale(1.2);
}

.indicator:hover {
  background: var(--primary-light);
}

/* Mobile Responsive for Carousel */
@media (max-width: 767px) {
  .story-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
    gap: var(--space-lg);
  }
  
  .story-icon {
    width: 60px;
    height: 60px;
  }
  
  .story-icon i {
    width: 24px;
    height: 24px;
  }
  
  .story-content h3 {
    font-size: 1.25rem;
  }
  
  .story-content blockquote {
    font-size: 1rem;
    padding-left: var(--space-md);
  }
  
  .story-content blockquote::before {
    font-size: 2rem;
    top: -5px;
  }
  
  .carousel-controls {
    gap: var(--space-md);
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn i {
    width: 16px;
    height: 16px;
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Service Selection Cards */
.service-selection-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.service-selection-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
}

.service-selection-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.service-selection-card {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-default);
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-selection-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--primary-gold);
}

.service-selection-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(203, 178, 106, 0.1), transparent);
  transition: left 0.6s;
}

.service-selection-card:hover::before {
  left: 100%;
}

.service-selection-card .card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 12px rgba(203, 178, 106, 0.3);
  transition: var(--transition-default);
}

.service-selection-card .card-icon:has(img) {
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.service-selection-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(203, 178, 106, 0.4);
}

.service-selection-card:hover .card-icon:has(img) {
  transform: none;
  box-shadow: none;
}

.service-selection-card .card-icon i {
  width: 32px;
  height: 32px;
  color: var(--background);
}

.service-selection-card .card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-selection-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.service-selection-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.service-selection-card .btn {
  position: relative;
  z-index: 2;
}

.service-selection-card .btn:hover {
  color: black;
}

/* Hero Actions for Service Selection Cards */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.hero-actions .btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

/* Learn more links */
.learn-more-link {
  display: inline-block;
  color: var(--primary-gold);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: var(--space-sm);
  transition: var(--transition-default);
  position: relative;
}

.learn-more-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.learn-more-link:hover {
  color: var(--primary-light);
}

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

/* Service benefit styling */
.service-benefit {
  font-size: 0.875rem;
  color: var(--primary-gold);
  font-weight: 500;
  font-style: italic;
  margin-bottom: var(--space-xs) !important;
}

/* Mobile responsive for service selection cards */
@media (max-width: 767px) {
  .service-selection-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .service-selection-card {
    padding: 1rem;
    min-height: auto;
  }
  
  .service-selection-card .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
  }
  
  .service-selection-card .card-icon i {
    width: 24px;
    height: 24px;
  }
  
  .service-selection-card .card-icon img {
    width: 32px;
    height: 32px;
  }
  
  .service-selection-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
  }
  
  /* Hide subtext on mobile */
  .service-selection-card p {
    display: none;
  }
  
  .hero-actions {
    gap: var(--space-sm);
    margin-top: var(--space-sm);
  }
  
  .hero-actions .btn {
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    max-width: 100%;
    color: black !important;
    min-height: 48px;
    border-radius: 8px;
  }
  
  .hero-actions .btn:hover {
    color: black !important;
    transform: scale(1.02);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .service-selection-card {
    padding: 1.25rem;
  }
  
  .service-selection-card .card-icon {
    width: 48px;
    height: 48px;
  }
  
  .service-selection-card .card-icon img {
    width: 32px;
    height: 32px;
  }
  
  .service-selection-card h3 {
    font-size: 1.125rem;
  }
  
  .service-selection-card p {
    font-size: 0.8rem;
  }
  
  .hero-actions .btn {
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: black !important;
    min-height: 52px;
    border-radius: 8px;
  }
  
  .hero-actions .btn:hover {
    color: black !important;
    transform: scale(1.02);
  }
}
