@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Modern Tech Design System for Maurits Hagemans - Adaptable.be
   Focused on digital twins, research, and media technology
   All colors MUST be HSL.
*/

:root {
  /* Pure White Mode Color Palette - Clean, Modern, Professional */
  --background: 0 0% 100%;
  --foreground: 0 0% 10%;
  
  /* Primary - Deep Black for Strong Contrast */
  --primary: 0 0% 8%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 0 0% 20%;
  
  /* Blue-Green Accent - Vibrant and Modern */
  --accent: 180 85% 45%;
  --accent-foreground: 0 0% 100%;
  --accent-glow: 180 85% 55%;
  
  /* Surface Colors - Pure White with Subtle Variations */
  --card: 0 0% 100%;
  --card-foreground: 0 0% 10%;
  --card-hover: 0 0% 98%;
  
  /* Muted & Secondary - Soft Grays */
  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 25%;
  --muted: 0 0% 97%;
  --muted-foreground: 0 0% 45%;
  
  /* Interactive States - Clean Borders */
  --border: 0 0% 90%;
  --input: 0 0% 90%;
  --ring: 180 85% 45%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 10%;
  
  /* Feedback Colors - Clear and Accessible */
  --destructive: 0 85% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 76% 36%;
  --success-foreground: 0 0% 100%;
  
  /* Modern Gradients - Clean and Professional */
  --gradient-primary: linear-gradient(135deg, hsl(0 0% 8%), hsl(0 0% 20%));
  --gradient-accent: linear-gradient(135deg, hsl(180 85% 45%), hsl(180 85% 55%));
  --gradient-hero: linear-gradient(135deg, hsl(0 0% 8%) 0%, hsl(180 85% 45%) 100%);
  --gradient-subtle: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(0 0% 98%) 100%);
  
  /* Enhanced Shadows for Depth */
  --shadow-subtle: 0 2px 8px hsl(0 0% 0% / 0.06);
  --shadow-medium: 0 4px 16px hsl(0 0% 0% / 0.1);
  --shadow-large: 0 8px 32px hsl(0 0% 0% / 0.15);
  --shadow-glow: 0 0 40px hsl(180 85% 45% / 0.25);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout */
  --radius: 0.75rem;
  --section-padding: 6rem;
  --container-max: 1200px;
  
  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark {
  --background: 0 0% 6%;
  --foreground: 0 0% 75%;
  
  --primary: 0 0% 95%;
  --primary-foreground: 0 0% 6%;
  --primary-glow: 0 0% 80%;
  
  --accent: 180 84% 55%;
  --accent-foreground: 0 0% 6%;
  --accent-glow: 180 84% 70%;
  
  --card: 0 0% 8%;
  --card-foreground: 0 0% 95%;
  --card-hover: 0 0% 12%;
  
  --secondary: 0 0% 12%;
  --secondary-foreground: 0 0% 85%;
  --muted: 0 0% 10%;
  --muted-foreground: 0 0% 65%;
  
  --border: 0 0% 18%;
  --input: 0 0% 18%;
  --ring: 180 84% 55%;
  --popover: 0 0% 8%;
  --popover-foreground: 0 0% 95%;
  
  --destructive: 0 84% 65%;
  --destructive-foreground: 0 0% 98%;
  
  --gradient-primary: linear-gradient(135deg, hsl(0 0% 95%), hsl(0 0% 80%));
  --gradient-accent: linear-gradient(135deg, hsl(180 84% 55%), hsl(180 84% 70%));
  --gradient-hero: linear-gradient(135deg, hsl(0 0% 95%) 0%, hsl(180 84% 55%) 100%);
  --gradient-subtle: linear-gradient(180deg, hsl(0 0% 6%) 0%, hsl(0 0% 8%) 100%);
  
  --shadow-subtle: 0 2px 8px hsl(0 0% 0% / 0.3);
  --shadow-medium: 0 4px 16px hsl(0 0% 0% / 0.4);
  --shadow-large: 0 8px 32px hsl(0 0% 0% / 0.5);
  --shadow-glow: 0 0 40px hsl(180 84% 55% / 0.4);
}

/* Base Styles */
* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 0 0 1rem 0;
}

p {
  margin: 0 0 1rem 0;
}

/* Utility Classes */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-8 { margin-top: 2rem; gap: 2rem; }
.gap-12 { gap: 3rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-8 { padding: 2rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 5rem; padding-bottom: 3rem; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border-t { border-top-width: 1px; border-top-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-8 { bottom: 2rem; }

.z-50 { z-index: 50; }

.transform { transform: translateZ(0); }
.translate-x-1 { transform: translateX(-50%); }

.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; }
.duration-300 { transition-duration: 300ms; }

.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }

.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Responsive */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:hidden { display: none; }
  .md\:h-20 { height: 5rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-left { text-align: left; }
  .md\:text-center { text-align: center; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-6xl { font-size: 3.75rem; }
}

/* Colors */
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-gradient-hero { background: var(--gradient-hero); }
.bg-gradient-subtle { background: var(--gradient-subtle); }

.text-foreground { color: hsl(var(--foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-accent { color: hsl(var(--accent)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }

.border-border { border-color: hsl(var(--border)); }

/* Component Styles */
.container-custom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-section {
  min-height: 100vh;
  background: var(--gradient-subtle);
  position: relative;
  display: flex;
  align-items: center;
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-padding-sm {
  padding-top: calc(var(--section-padding) * 0.5);
  padding-bottom: calc(var(--section-padding) * 0.5);
}

/* Navigation */
.nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition-smooth);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

.nav-button:hover {
  background-color: hsl(var(--card-hover));
  color: hsl(var(--accent));
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  position: relative;
}

.nav-dropdown-toggle .dropdown-arrow {
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.nav-dropdown.active .nav-dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-large);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9375rem;
}

.nav-dropdown-item:hover {
  background-color: hsl(var(--card-hover));
  color: hsl(var(--accent));
}

/* Mobile Navigation Dropdown */
.mobile-nav-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-nav-dropdown-toggle {
  width: 100%;
  justify-content: space-between;
}

.mobile-nav-dropdown-toggle .dropdown-arrow {
  transition: transform 0.3s ease;
}

.mobile-nav-dropdown.active .mobile-nav-dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-nav-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1rem;
}

.mobile-nav-dropdown.active .mobile-nav-dropdown-menu {
  max-height: 300px;
  padding-top: 0.5rem;
}

.mobile-nav-dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9375rem;
  border-left: 2px solid hsl(var(--border));
  margin-left: 1rem;
}

.mobile-nav-dropdown-item:hover {
  background-color: hsl(var(--card-hover));
  color: hsl(var(--accent));
  border-left-color: hsl(var(--accent));
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  margin-left: 1rem;
}

.cta-button:hover {
  opacity: 0.9;
}

.mobile-nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition-smooth);
  cursor: pointer;
  justify-content: flex-start;
  width: 100%;
}

.mobile-nav-button:hover {
  background-color: hsl(var(--card-hover));
  color: hsl(var(--accent));
}

.mobile-cta-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

.mobile-cta-button:hover {
  opacity: 0.9;
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: hsl(var(--card) / 0.8);
  border: 1px solid hsl(var(--border) / 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.badge-outline {
  background: transparent;
  color: hsl(var(--accent));
  border: 1px solid hsl(var(--accent));
}

.badge-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-primary {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: hsl(var(--accent));
  border: 1px solid hsl(var(--accent));
}

.btn-outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-outline-light {
  background: transparent;
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--primary-foreground) / 0.3);
}

.btn-outline-light:hover {
  background: hsl(var(--primary-foreground) / 0.1);
}

.btn-example {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  padding: 1rem 1.5rem;
  transition: var(--transition-smooth);
}

.btn-example:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
  background: hsl(var(--card-hover));
}

.btn-example-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  height: 48px;
  width: auto;
  text-decoration: none;
  color: hsl(var(--foreground));
  gap: 0.5rem;
}

.btn-example-logo:hover {
  background: hsl(var(--accent) / 0.1);
  border-color: hsl(var(--accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-example-logo .logo-icon {
  height: 32px;
  width: 32px;
  color: hsl(var(--foreground));
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.btn-example-logo:hover .logo-icon {
  transform: scale(1.05);
  color: hsl(var(--accent));
}

.btn-example-logo .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--foreground));
  color: white;
  border-radius: 10px;
  padding: 0.4rem;
  width: 32px;
  height: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.btn-example-logo:hover .logo {
  background: hsl(var(--accent));
  transform: scale(1.05);
}

.btn-example-logo .logo svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-example-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  transition: var(--transition-smooth);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.btn-example-logo:hover .logo-text {
  color: hsl(var(--accent));
}

@media (max-width: 640px) {
  .btn-example-logo {
    padding: 0.4rem 0.6rem;
    min-width: 50px;
    max-width: 140px;
    width: auto;
    height: 42px;
  }
  
  .btn-example-logo .logo-icon {
    height: 28px;
    width: 28px;
  }
  
  .btn-example-logo .logo-text {
    font-size: 0.875rem;
    letter-spacing: 0.3px;
  }
  
  .btn-example-logo-text {
    padding: 0.4rem 0.6rem;
    min-width: 50px;
    max-width: 100px;
    height: 42px;
  }
  
  .btn-example-logo-text .logo-text {
    font-size: 0.875rem;
  }
  
  .btn-example-logo-text .logo-circle {
    width: 24px;
    height: 24px;
    border-width: 1.5px;
    box-shadow: 1.5px 1.5px 0 0 hsl(var(--foreground));
  }
  
  .btn-example-logo-text:hover .logo-circle {
    box-shadow: 2px 2px 0 0 hsl(var(--foreground));
  }
  
  .btn-example-logo .logo {
    width: 28px;
    height: 28px;
    padding: 0.35rem;
  }
  
  .btn-example-logo .logo svg {
    width: 18px;
    height: 18px;
  }
}

.btn-example-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  height: 48px;
  width: auto;
  text-decoration: none;
  color: hsl(var(--foreground));
  gap: 0.75rem;
}

.btn-example-logo-text:hover {
  background: hsl(var(--accent) / 0.1);
  border-color: hsl(var(--accent));
  transform: translate(-1px, -3px);
  box-shadow: var(--shadow-medium);
}

.btn-example-logo-text .logo-text {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-example-logo-text:hover .logo-text {
  color: hsl(var(--accent));
}

.btn-example-logo-text .logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: hsl(var(--accent));
  border: 2px solid hsl(var(--foreground));
  box-shadow: 2px 2px 0 0 hsl(var(--foreground));
  display: inline-block;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-example-logo-text:hover .logo-circle {
  transform: scale(1.05);
  box-shadow: 3px 3px 0 0 hsl(var(--foreground));
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* Cards */
.project-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

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

.highlight-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  overflow: hidden;
}

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

/* Highlight Image Styles */
.highlight-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: hsl(var(--muted));
}

.highlight-image img {
  transition: var(--transition-smooth);
  width: 100%;
  height: 15rem;
  object-fit: cover;
}

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

.highlight-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, hsl(var(--card) / 0.1) 100%);
  pointer-events: none;
}

/* Forms */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

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

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.stagger-animation {
  animation-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

.tech-animation {
  animation: tech-pulse 2s ease-in-out infinite alternate;
}

@keyframes tech-pulse {
  0% {
    box-shadow: 0 0 20px hsl(var(--primary) / 0.2);
  }
  100% {
    box-shadow: 0 0 40px hsl(var(--accent) / 0.4);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0,-4px,0);
  }
}

/* Text Gradients */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shadows */
.shadow-medium {
  box-shadow: var(--shadow-medium);
}

.shadow-large {
  box-shadow: var(--shadow-large);
}

/* Aspect Ratios */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Background Opacities */
.bg-card\/20 {
  background-color: hsl(var(--card) / 0.2);
}

.bg-accent\/20 {
  background-color: hsl(var(--accent) / 0.2);
}

.bg-primary\/20 {
  background-color: hsl(var(--primary) / 0.2);
}

.bg-primary-foreground\/20 {
  background-color: hsl(var(--primary-foreground) / 0.2);
}

/* Text Sizes */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

/* Font Weights */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Leading */
.leading-tight { line-height: 1.25; }

/* Max Width */
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }

/* Border Radius */
.rounded-xl { border-radius: 0.75rem; }

/* Z-index */
.z-10 { z-index: 10; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Backdrop Filter */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Transform */
.transform { transform: translateZ(0); }
.-translate-x-1 { transform: translateX(-50%); }

/* Position */
.absolute { position: absolute; }
.-top-4 { top: -1rem; }
.-right-4 { right: -1rem; }
.-bottom-4 { bottom: -1rem; }
.-left-4 { left: -1rem; }

/* Width/Height */
.w-1 { width: 0.25rem; }
.h-1 { height: 0.25rem; }
.h-3 { height: 0.75rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }

/* Border */
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-primary\/60 { border-color: hsl(var(--primary) / 0.6); }

/* Background */
.bg-primary\/60 { background-color: hsl(var(--primary) / 0.6); }

/* Margin */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* Padding */
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }

/* Display */
.inline-flex { display: inline-flex; }

/* Justify */
.justify-start { justify-content: flex-start; }

/* Width */
.w-100 { width: 100%; }

/* Rows */
.rows-4 { grid-template-rows: repeat(4, minmax(0, 1fr)); }

/* Border Top */
.border-t { border-top-width: 1px; border-top-style: solid; }

/* Border Color */
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }

/* Background Muted */
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }

/* Text Color */
.text-primary-foreground\/80 { color: hsl(var(--primary-foreground) / 0.8); }

/* Background Color */
.bg-accent\/20 { background-color: hsl(var(--accent) / 0.2); }

/* Text Color */
.text-accent-glow { color: hsl(var(--accent-glow)); }

/* Hover Effects */
.hover\:text-accent:hover { color: hsl(var(--accent)); }
.hover\:text-accent-glow:hover { color: hsl(var(--accent-glow)); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:bg-card-hover:hover { background-color: hsl(var(--card-hover)); }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-large); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }

/* Group Hover */
.group:hover .group-hover\:text-primary { color: hsl(var(--primary)); }

/* Focus States */
.focus\:outline-none:focus { outline: none; }
.focus\:border-accent:focus { border-color: hsl(var(--accent)); }
.focus\:ring-3:focus { box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1); }

/* Responsive Text */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-left { text-align: left; }
}

/* Animation Delay */
.animation-delay-1s { animation-delay: 1s; }

/* Stagger Animation */
.stagger-animation {
  animation-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

/* Video Controls */
#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Mobile Menu */
#mobile-menu {
  transition: var(--transition-smooth);
}

#mobile-menu.hidden {
  pointer-events: none;
}

/* Mobile Menu Button - Hide on Desktop */
@media (min-width: 768px) {
  #mobile-menu-btn {
    display: none !important;
  }
}

/* Mobile Navigation Styles - White Theme */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  will-change: opacity, visibility;
}

.mobile-nav-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-container {
  width: 100%;
  max-width: 320px;
  height: 100vh;
  max-height: 100vh;
  background: hsl(var(--card));
  padding: 2rem;
  backdrop-filter: blur(10px);
  border-left: 1px solid hsl(var(--border));
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
}

.mobile-nav-overlay:not(.hidden) .mobile-nav-container {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
}

.mobile-nav-title {
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.mobile-close-btn:hover {
  background: hsl(var(--card-hover));
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

.mobile-nav-link:hover {
  background: hsl(var(--card-hover));
  transform: translateX(-0.25rem);
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.mobile-nav-link svg {
  color: hsl(var(--foreground));
  flex-shrink: 0;
}

.mobile-nav-link:hover svg {
  color: hsl(var(--accent));
}

.mobile-nav-link span {
  font-weight: 500;
  font-size: 1rem;
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.mobile-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.mobile-nav-cta svg {
  color: hsl(var(--primary-foreground));
}

/* Navigation Scroll Effect */
.nav-scrolled {
  backdrop-filter: blur(10px);
  background: hsl(var(--card) / 0.8);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-medium);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: hsl(var(--accent) / 0.2);
  color: hsl(var(--accent));
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--accent));
}

/* 3D Cube Scroll Indicator */
.cube-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  perspective: 1000px;
  padding-top: 2rem;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-rotate 3s infinite linear;
}

.cube-face {
  position: absolute;
  width: 40px;
  height: 40px;
  background: hsl(var(--accent) / 0.2);
  border: 2px solid hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: hsl(var(--accent));
  font-weight: bold;
}

.cube-face.front { transform: rotateY(0deg) translateZ(20px); }
.cube-face.back { transform: rotateY(180deg) translateZ(20px); }
.cube-face.right { transform: rotateY(90deg) translateZ(20px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(20px); }
.cube-face.top { transform: rotateX(90deg) translateZ(20px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(20px); }

@keyframes cube-rotate {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Contact Section - Ensure proper width and margin alignment */
#contact .container-custom {
  padding-left: 1rem;
  padding-right: 2rem;
}

@media (max-width: 1024px) {
  #contact .container-custom {
    padding-left: 1rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  #contact .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden;
  }
  
  #contact .grid {
    margin-right: 0;
    max-width: 100%;
  }
  
  #contact .grid > * {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  #contact .aspect-square {
    aspect-ratio: auto;
    min-height: auto;
    padding: 1.5rem;
  }
  
  #contact #contact-adaptable-btn {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  #contact .bg-gradient-hero {
    padding: 1.5rem !important;
  }
}

/* About More Expandable Section */
.about-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.about-more-content.expanded {
  max-height: 2000px;
  opacity: 1;
}

.about-more-content.hidden {
  display: none;
}

.about-more-arrow {
  transition: transform 0.3s ease;
}

.about-more-arrow.rotated {
  transform: rotate(180deg);
}

#about-more-btn {
  transition: var(--transition-smooth);
}

#about-more-btn:hover {
  transform: translateY(-2px);
}

.highlights-show-more-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

#highlights-toggle-btn {
  padding: 0.75rem 1.75rem;
}

/* Downward Arrow */
.down-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  animation: arrow-bounce 2s infinite;
}

@keyframes arrow-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Highlight page specific styles */
.highlight-card {
  scroll-margin-top: 120px; /* Account for fixed navigation */
}
  /* The following keyframe rules were misplaced and are already correctly defined above in the @keyframes arrow-bounce block, so they are removed to fix the CSS. */


/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: hsl(var(--accent));
  border-radius: 50%;
  border: 3px solid hsl(var(--background));
}

.timeline-date {
  font-weight: bold;
  color: hsl(var(--accent));
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Expertise Cards */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.expertise-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
}

.expertise-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: hsl(var(--accent));
}

.expertise-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--accent-foreground));
}

.expertise-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* More Button */
.more-button {
  display: block;
  margin: 3rem auto 0;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition-smooth);
  text-align: center;
  max-width: 200px;
}

.more-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Enhanced Card Styles for Collaborate Section */
.collaborate-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.collaborate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.collaborate-card:hover::before {
  opacity: 1;
}

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

/* Enhanced Badge Styles */

#expertise-areas {
  margin-left: 15px;
}

.badge-expertise {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-radius: 10px;
  font-size: 0.5rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  
}

.badge-expertise:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
  transform: translateY(-1px);
}

/* Tech Logo Badges */
.tech-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  height: 48px !important;
  width: auto;
  min-width: 60px;
  max-width: 140px;
  flex: 0 1 auto;
  position: relative;
  cursor: pointer;
}

@media (max-width: 640px) {
  .tech-logo-badge {
    padding: 0.4rem 0.6rem;
    min-width: 50px;
    max-width: 140px;
    width: auto;
    height: 42px !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .tech-logo-badge {
    max-width: 120px;
  }
}

.tech-logo-badge:hover {
  background: hsl(var(--accent) / 0.1);
  border-color: hsl(var(--accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Tooltip */
.tech-logo-badge::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 1000;
  box-shadow: var(--shadow-medium);
  border: 1px solid hsl(var(--border));
}

.tech-logo-badge::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: hsl(var(--background));
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 1000;
}

.tech-logo-badge:hover::before,
.tech-logo-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tech-logo-img {
  height: 32px !important;
  width: auto !important;
  max-width: 100px !important;
  object-fit: contain;
  filter: brightness(0.9);
  transition: var(--transition-smooth);
  display: block;
}

@media (max-width: 640px) {
  .tech-logo-img {
    height: 22px !important;
    max-width: 60px !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .tech-logo-img {
    height: 30px !important;
    max-width: 90px !important;
  }
}

/* Responsive logo container */
.tech-logo-container {
  gap: 0.5rem;
  max-width: 100%;
}

@media (max-width: 640px) {
  .tech-logo-container {
    gap: 0.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 100%;
    row-gap: 0.75rem;
  }
  
  .tech-logo-badge {
    width: auto;
    max-width: 140px;
    min-width: 50px;
  }
}

@media (min-width: 641px) {
  .tech-logo-container {
    gap: 1rem;
    display: flex;
  }
}

@media (min-width: 768px) {
  .tech-logo-container {
    gap: 1.5rem;
  }
}

.tech-logo-badge:hover .tech-logo-img {
  filter: brightness(1);
  transform: scale(1.05);
}

.tech-logo-text {
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
}

.tech-logo-text span {
  display: inline-block;
}

/* Profile Card Enhancements */
.profile-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.profile-card-link:hover {
  text-decoration: none;
}

.profile-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.profile-card-link:hover .profile-card {
  box-shadow: var(--shadow-medium);
  border-color: hsl(var(--accent) / 0.3);
}

.profile-avatar {
  position: relative;
  overflow: hidden;
  margin-right: 15px;
}

.profile-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid hsl(var(--accent) / 0.3);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.profile-card-link:hover .profile-card .profile-avatar::after {
  border-color: hsl(var(--accent));
  transform: scale(1.05);
}

/* Workflow Section Styles - White Theme */
.workflow-card {
  position: relative;
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid hsl(var(--border));
  z-index: 1;
  transition: var(--transition-smooth);
}

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

.workflow-number {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  width: 2rem;
  height: 2rem;
  background: hsl(var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--accent-foreground));
  font-size: 0.875rem;
  font-weight: 600;
}

.workflow-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.workflow-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.workflow-tag {
  display: inline-block;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.workflow-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Compact Workflow Card */
.workflow-card-compact {
  padding: 1rem;
  min-width: 0;
  flex: 1 1 0;
  max-width: 100%;
}

@media (max-width: 767px) {
  .workflow-cards-container {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  
  .workflow-card-compact {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 100%;
    width: 100%;
  }
}

.workflow-card-compact .workflow-number {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
  top: -0.5rem;
  left: -0.5rem;
}

.workflow-card-compact .workflow-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
}

.workflow-card-compact .workflow-title {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.workflow-card-compact .workflow-tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  margin-bottom: 0.5rem;
}

.workflow-card-compact .workflow-description {
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Workflow grid with arrows */
.workflow-section .grid {
  position: relative;
}

.workflow-section .grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, hsl(var(--accent)) 20%, hsl(var(--accent)) 80%, transparent 100%);
  transform: translateY(-50%);
  z-index: 0;
}

@media (max-width: 768px) {
  .workflow-section .grid::before {
    display: none;
  }
}

/* Video Container */
.video-container {
  width: 412px;
  height: 412px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .video-container {
    width: 100%;
    max-width: 412px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* Highlight page specific styles */
.highlight-card {
  scroll-margin-top: 120px; /* Account for fixed navigation */
}