/* ==========================================================================
   Beanola Technologies - Design System
   ========================================================================== */

/* ==========================================================================
   1. Google Fonts Import
   ========================================================================== */

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

/* ==========================================================================
   2. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Colors - Requirement 8.1, 8.2, 8.3, 8.4, 8.5, 8.6 */
  --color-primary: #6366F1;        /* Indigo - primary actions and highlights */
  --color-primary-hover: #4F46E5;  /* Darker indigo for hover states */
  --color-primary-light: #818CF8; /* Lighter indigo for accents */
  
  --color-secondary: #10B981;      /* Emerald - success states and accents */
  --color-secondary-hover: #059669;
  --color-secondary-light: #34D399;
  
  --color-background: #0F0F0F;     /* Main background */
  --color-surface: #1A1A1A;        /* Card and component backgrounds */
  --color-surface-hover: #252525;  /* Surface hover state */
  --color-surface-border: #2A2A2A; /* Subtle borders */
  
  --color-text: #FAFAFA;           /* Primary text content */
  --color-text-secondary: #A1A1AA; /* Secondary/muted text */
  --color-text-tertiary: #71717A;  /* Tertiary/disabled text */
  
  --color-accent: #F59E0B;         /* Highlights and warnings */
  --color-accent-hover: #D97706;
  
  /* Additional semantic colors */
  --color-error: #EF4444;
  --color-error-light: #FCA5A5;
  --color-success: var(--color-secondary);
  --color-warning: var(--color-accent);
  
  /* Typography - Requirement 8.7, 8.8 */
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-glow-secondary: 0 0 20px rgba(16, 185, 129, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  
  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Glassmorphism - Requirements 6.1, 6.2, 6.3, 6.4, 6.5, 6.6 */
  --glass-blur: 10px;
  --glass-blur-hover: 15px;
  --glass-bg-opacity: 0.8;
  --glass-border-opacity: 0.2;

  /* ==========================================================================
     Theme CSS Variables - Requirements 12.4, 12.5
     Dark theme is the default
     ========================================================================== */
  
  /* Theme Colors - Dark Mode (Default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
}

/* ==========================================================================
   Light Theme Variables - Requirement 12.4
   Applied when data-theme="light" attribute is set on html/body
   ========================================================================== */

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --accent-primary: #4f46e5;
  --accent-secondary: #7c3aed;
  
  /* Override existing color variables for light theme */
  --color-background: #ffffff;
  --color-surface: #f8f9fc;
  --color-surface-hover: #eef0f5;
  --color-surface-border: #e2e4e9;
  --color-text: #1a1a2e;
  --color-text-secondary: #4a4a5a;
  --color-text-tertiary: #6b6b7a;
  
  /* Adjust shadows for light theme */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.15);
  --shadow-glow-secondary: 0 0 30px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   Light Theme Component Overrides
   Specific styling for components in light mode
   ========================================================================== */

/* Navbar - Light Mode */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e2e4e9;
}

[data-theme="light"] .brand-name {
  color: var(--color-text);
}

[data-theme="light"] .hamburger,
[data-theme="light"] .hamburger::before,
[data-theme="light"] .hamburger::after {
  background: #1a1a2e;
}

/* Mobile nav in light mode */
@media (max-width: 768px) {
  [data-theme="light"] .nav-links {
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }
  
  [data-theme="light"] .nav-link {
    border-bottom-color: #e2e4e9;
  }
}

/* Hero Section - Light Mode */
[data-theme="light"] .hero,
[data-theme="light"] .gradient-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

[data-theme="light"] .hero .gradient-orb,
[data-theme="light"] .gradient-hero .gradient-orb {
  opacity: 0.15;
  filter: blur(120px);
}

[data-theme="light"] .hero .orb-1,
[data-theme="light"] .gradient-hero .orb-1 {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

[data-theme="light"] .hero .orb-2,
[data-theme="light"] .gradient-hero .orb-2 {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

[data-theme="light"] .hero-icons .floating-icon {
  opacity: 0.12;
}

[data-theme="light"] .hero-title {
  color: #1a1a2e;
}

[data-theme="light"] .hero-subtitle {
  color: #4a4a5a;
}

/* Cards and Surfaces - Light Mode */
[data-theme="light"] .card,
[data-theme="light"] .service-card,
[data-theme="light"] .stats-card,
[data-theme="light"] .tech-showcase-card,
[data-theme="light"] .team-card,
[data-theme="light"] .mission-card,
[data-theme="light"] .vision-card,
[data-theme="light"] .timeline-content,
[data-theme="light"] .contact-card {
  background: #ffffff;
  border-color: #e2e4e9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .stats-card:hover,
[data-theme="light"] .tech-showcase-card:hover,
[data-theme="light"] .team-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Service Icon Background - Light Mode */
[data-theme="light"] .service-icon,
[data-theme="light"] .stats-icon,
[data-theme="light"] .tech-showcase-icon,
[data-theme="light"] .mission-icon,
[data-theme="light"] .vision-icon {
  background: rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .service-card:hover .service-icon,
[data-theme="light"] .stats-card:hover .stats-icon,
[data-theme="light"] .tech-showcase-card:hover .tech-showcase-icon {
  background: rgba(79, 70, 229, 0.15);
}

/* Footer - Light Mode */
[data-theme="light"] .footer {
  background: #f8f9fc;
  border-top-color: #e2e4e9;
}

[data-theme="light"] .footer-bottom {
  border-top-color: #e2e4e9;
}

/* Form Inputs - Light Mode */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: #ffffff;
  border-color: #e2e4e9;
  color: #1a1a2e;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #9ca3af;
}

/* Buttons - Light Mode */
[data-theme="light"] .btn-primary {
  color: #ffffff;
}

[data-theme="light"] .btn-outline {
  border-color: #e2e4e9;
  color: #1a1a2e;
}

[data-theme="light"] .btn-outline:hover {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.05);
}

[data-theme="light"] .btn-ghost {
  color: #4a4a5a;
}

[data-theme="light"] .btn-ghost:hover {
  background: #f8f9fc;
  color: #1a1a2e;
}

/* CTA Section - Light Mode */
[data-theme="light"] .cta-section {
  background: linear-gradient(135deg, #f8f9fc 0%, #eef0f5 100%);
}

[data-theme="light"] .cta-content {
  background: #ffffff;
  border-color: #e2e4e9;
}

/* Stats Section - Light Mode */
[data-theme="light"] .stats-section::before {
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
}

/* Tech Showcase Section - Light Mode */
[data-theme="light"] .tech-showcase-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 50%, #ffffff 100%);
}

/* Testimonials - Light Mode */
[data-theme="light"] .testimonial-card {
  background: #ffffff;
  border-color: #e2e4e9;
}

/* Timeline - Light Mode */
[data-theme="light"] .timeline-marker {
  background: #ffffff;
  border-color: #4f46e5;
}

[data-theme="light"] .timeline::before {
  background: #e2e4e9;
}

/* Mission/Vision Section - Light Mode */
[data-theme="light"] .mission-vision-section {
  background: #f8f9fc;
}

[data-theme="light"] .mission-card,
[data-theme="light"] .vision-card {
  background: #ffffff;
}

/* Story Section - Light Mode */
[data-theme="light"] .story-image-wrapper {
  background: #ffffff;
  border-color: #e2e4e9;
}

/* Contact Cards - Light Mode */
[data-theme="light"] .contact-card {
  background: #ffffff;
}

[data-theme="light"] .contact-card:hover {
  background: #f8f9fc;
}

[data-theme="light"] .location-card {
  background: #f8f9fc;
  border-color: #e2e4e9;
}

/* Clients Section - Light Mode */
[data-theme="light"] .client-logo {
  background: #ffffff;
  border-color: #e2e4e9;
}

/* Tags and Badges - Light Mode */
[data-theme="light"] .tag {
  background: #f8f9fc;
  border-color: #e2e4e9;
  color: #4a4a5a;
}

[data-theme="light"] .tag-primary {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: #4f46e5;
}

/* Skip Link - Light Mode */
[data-theme="light"] .skip-link {
  background: #4f46e5;
  color: #ffffff;
}

/* Custom Cursor - Light Mode */
[data-theme="light"] .custom-cursor {
  border-color: #4f46e5;
}

/* Values Section - Light Mode */
[data-theme="light"] .value-item {
  background: #ffffff;
  border-color: #e2e4e9;
}

/* Service Features - Light Mode */
[data-theme="light"] .service-features li {
  border-top-color: #e2e4e9;
}

/* Project Cards - Light Mode */
[data-theme="light"] .project-card {
  background: #ffffff;
  border-color: #e2e4e9;
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-placeholder-icon {
  color: #4f46e5;
}

[data-theme="light"] .tech-tag {
  background: #f8f9fc;
  border-color: #e2e4e9;
  color: #4a4a5a;
}

[data-theme="light"] .project-card:hover .tech-tag {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Filter Buttons - Light Mode */
[data-theme="light"] .filter-btn {
  background: #ffffff;
  border-color: #e2e4e9;
  color: #4a4a5a;
}

[data-theme="light"] .filter-btn:hover {
  border-color: #4f46e5;
  color: #1a1a2e;
  background: rgba(79, 70, 229, 0.05);
}

[data-theme="light"] .filter-btn.active {
  color: #ffffff;
}

/* Game Page - Light Mode */
[data-theme="light"] .game-canvas-container {
  background: #f8f9fc;
  border-color: #e2e4e9;
}

[data-theme="light"] .game-stats {
  background: #ffffff;
  border-color: #e2e4e9;
}

[data-theme="light"] .leaderboard-container {
  background: #ffffff;
  border-color: #e2e4e9;
}

[data-theme="light"] .leaderboard-item {
  background: #f8f9fc;
  border-color: #e2e4e9;
}

[data-theme="light"] .leaderboard-item:hover {
  background: #eef0f5;
}

/* Benchmark Page - Light Mode */
[data-theme="light"] .benchmark-card {
  background: #ffffff;
  border-color: #e2e4e9;
}

[data-theme="light"] .benchmark-bar {
  background: #e2e4e9;
}

[data-theme="light"] .runtime-badge {
  background: #f8f9fc;
  border-color: #e2e4e9;
}

/* Globe Page - Light Mode */
[data-theme="light"] .globe-container {
  background: #f8f9fc;
}

[data-theme="light"] .visitor-list {
  background: #ffffff;
  border-color: #e2e4e9;
}

[data-theme="light"] .visitor-item {
  border-bottom-color: #e2e4e9;
}

/* Code/Pre Elements - Light Mode */
[data-theme="light"] pre,
[data-theme="light"] code {
  background: #f8f9fc;
  border-color: #e2e4e9;
}

/* Scrollbar - Light Mode */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f8f9fc;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #d4d4d8;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* ==========================================================================
   Theme Transition Animation - Requirement 12.5
   Applied during theme changes for smooth 300ms transition
   ========================================================================== */

.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 300ms ease,
              color 300ms ease,
              border-color 300ms ease,
              box-shadow 300ms ease,
              fill 300ms ease,
              stroke 300ms ease !important;
}

/* ==========================================================================
   3. CSS Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

small, .text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

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

/* ==========================================================================
   5. Links
   ========================================================================== */

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

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: var(--color-text);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

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

/* Secondary Button */
.btn-secondary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-hover) 100%);
  color: var(--color-text);
  box-shadow: var(--shadow-md), var(--shadow-glow-secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.4);
}

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

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-surface-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Button with Icon */
.btn svg,
.btn .icon {
  width: 1.25em;
  height: 1.25em;
}

/* ==========================================================================
   7. Forms
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-6);
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 2px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--color-text-tertiary);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-tertiary);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form validation states */
.input-error {
  border-color: var(--color-error);
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.error-message {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-2);
}

.success-message {
  font-size: var(--text-sm);
  color: var(--color-success);
  margin-top: var(--space-2);
}

/* ==========================================================================
   8. Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-lg {
  max-width: var(--container-lg);
}

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

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

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Text alignment */
.text-center {
  text-align: center;
}

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

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

/* ==========================================================================
   9. Cards
   ========================================================================== */

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.card-description {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Glassmorphism Cards - Requirements 6.1, 6.2, 6.3, 6.4, 6.5, 6.6
   Modern frosted glass effect for service and project cards
   ========================================================================== */

.glass-card {
  /* Requirement 6.2: Semi-transparent background with 80% opacity */
  background: rgba(26, 26, 26, var(--glass-bg-opacity, 0.8));
  
  /* Requirement 6.1: Backdrop blur of 10px */
  -webkit-backdrop-filter: blur(var(--glass-blur, 10px));
  backdrop-filter: blur(var(--glass-blur, 10px));
  
  /* Requirement 6.4: Subtle border with 20% white opacity */
  border: 1px solid rgba(255, 255, 255, var(--glass-border-opacity, 0.2));
  
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

/* Requirement 6.3: Hover state with increased blur (15px) */
.glass-card:hover {
  -webkit-backdrop-filter: blur(var(--glass-blur-hover, 15px));
  backdrop-filter: blur(var(--glass-blur-hover, 15px));
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

/* Requirement 6.5: Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
  .glass-card {
    /* Solid background fallback */
    background: var(--color-surface);
    border-color: var(--color-surface-border);
  }
  
  .glass-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
  }
}

/* Requirement 6.6: Light theme variant styles */
[data-theme="light"] .glass-card {
  /* Light theme: semi-transparent white background */
  background: rgba(255, 255, 255, var(--glass-bg-opacity, 0.8));
  
  /* Light theme: subtle dark border for contrast */
  border-color: rgba(0, 0, 0, var(--glass-border-opacity, 0.2));
}

[data-theme="light"] .glass-card:hover {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: var(--shadow-lg);
}

/* Light theme fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  [data-theme="light"] .glass-card {
    background: #ffffff;
    border-color: #e2e4e9;
  }
  
  [data-theme="light"] .glass-card:hover {
    background: #f8f9fc;
    border-color: #4f46e5;
  }
}

/* ==========================================================================
   10. Tags & Badges
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-full);
}

.tag-primary {
  color: var(--color-primary-light);
  background-color: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.tag-secondary {
  color: var(--color-secondary-light);
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
}

.badge-primary {
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

/* ==========================================================================
   11. Lists
   ========================================================================== */

ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.list-none {
  list-style: none;
  padding-left: 0;
}

/* ==========================================================================
   12. Dividers
   ========================================================================== */

hr {
  border: none;
  height: 1px;
  background-color: var(--color-surface-border);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   13. Images
   ========================================================================== */

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

.img-rounded {
  border-radius: var(--radius-lg);
}

.img-circle {
  border-radius: var(--radius-full);
}

/* Lazy Loading Styles
   ========================================================================== */

/* Skeleton loading animation keyframe */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Placeholder state - shown before image starts loading */
.lazy-placeholder {
  background: linear-gradient(
    90deg,
    var(--color-surface, #1A1A1A) 25%,
    var(--color-surface-hover, #252525) 50%,
    var(--color-surface, #1A1A1A) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  min-height: 100px;
}

/* Loading state - image is being fetched */
.lazy-loading {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Loaded state - image has successfully loaded */
.lazy-loaded {
  opacity: 1;
  animation: lazy-fade-in 0.3s ease-in-out;
}

@keyframes lazy-fade-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Error state - image failed to load */
.lazy-error {
  background: var(--color-surface, #1A1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 1px dashed var(--color-surface-border, #2A2A2A);
  border-radius: var(--radius-md, 0.5rem);
}

/* Light theme overrides for lazy loading */
[data-theme="light"] .lazy-placeholder {
  background: linear-gradient(
    90deg,
    #f8f9fc 25%,
    #eef0f5 50%,
    #f8f9fc 75%
  );
  background-size: 200% 100%;
}

[data-theme="light"] .lazy-error {
  background: #f8f9fc;
  border-color: #e2e4e9;
}

/* ==========================================================================
   Page Loader Styles - Requirements 3.1, 3.2
   Full-screen loading overlay with animated Beanola logo
   ========================================================================== */

/* Main container - full screen overlay */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background, #0F0F0F);
  opacity: 1;
  transition: opacity 300ms ease-out;
}

/* Content wrapper for centering */
.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6, 1.5rem);
}

/* Logo with pulsing animation - Requirement 3.1 */
.page-loader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-lg, 0.75rem);
  animation: page-loader-pulse 1.5s ease-in-out infinite;
}

/* "Still loading..." message - hidden by default */
.page-loader-message {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, #A1A1AA);
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Fade out state - Requirement 3.2 */
.page-loader-fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Light theme overrides for page loader */
[data-theme="light"] .page-loader {
  background: var(--color-background, #ffffff);
}

[data-theme="light"] .page-loader-message {
  color: var(--color-text-secondary, #4a4a5a);
}

/* ==========================================================================
   14. Visibility & Display Utilities
   ========================================================================== */

.hidden {
  display: none !important;
}

.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;
}

/* ==========================================================================
   Skip Navigation Link - Requirement 16.6
   Visually hidden but accessible to screen readers and keyboard users.
   Becomes visible when focused for keyboard navigation.
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-sticky) + 10);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-decoration: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* ==========================================================================
   15. Spacing Utilities
   ========================================================================== */

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-8 { padding-bottom: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }


/* ==========================================================================
   16. Navigation Component
   Requirements: 11.1, 11.2, 11.3, 11.4, 11.5
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-surface-border);
    padding: var(--space-3) 0;
}

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

/* Logo and Brand Name Container */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    border-radius: var(--radius-sm);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo:hover img {
    opacity: 0.9;
}

/* Brand Name with Typing Animation */
.brand-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text);
    white-space: nowrap;
    letter-spacing: -0.02em;
    position: relative;
    min-width: 120px;
    line-height: 1.2;
}

.brand-name .typing-char {
    display: inline-block;
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.brand-name .typing-char.scramble {
    color: var(--color-primary);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: color 0.15s ease, background-color 0.15s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Active navigation link - Requirement 11.4 */
.nav-link.active {
    color: var(--color-text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

/* Don't show underline on CTA button when active */
.nav-link.cta-button.active::after {
    display: none;
}

.nav-link.cta-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-text);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-link.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
    background-color: transparent;
}

/* Theme Toggle Button - Always Visible */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    color: var(--color-text);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
    transform: rotate(15deg);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Toggle - Modern Hamburger */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-sticky) + 10);
    -webkit-tap-highlight-color: transparent;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    border-radius: 2px;
    transition: background 0.1s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.2s ease;
    will-change: transform;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Nav Actions Container - Mobile Theme Toggle + Hamburger */
.nav-actions {
    display: none;
    align-items: center;
    gap: var(--space-2);
}

/* Desktop-only elements */
.desktop-only {
    display: block;
}

/* Mobile Theme Toggle (outside nav-links) */
.mobile-theme-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-actions {
        display: flex;
    }
    
    .mobile-theme-toggle {
        display: flex;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Mobile menu open state */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   17. Footer Component
   ========================================================================== */

.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-surface-border);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-20);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--space-4);
}

.footer-description {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.footer-badge {
    margin-top: var(--space-4);
}

.footer-heading {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.footer-contact a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-surface-border);
}

.footer-bottom p {
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   18. WhatsApp Widget Component
   Requirements: 12.1, 12.2, 12.3, 12.4
   ========================================================================== */

.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-widget:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-widget:active {
    transform: scale(1.05);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
}

/* ==========================================================================
   19. Page Content Spacing (for fixed navbar)
   ========================================================================== */

/* Add padding to body/main to account for fixed navbar */
body {
    padding-top: 72px; /* navbar height + padding */
}

/* ==========================================================================
   20. Responsive Styles for Navigation, Footer, WhatsApp
   Requirements: 10.1, 10.2, 10.3, 10.4, 10.5
   ========================================================================== */

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

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile Logo */
    .logo img {
        height: 36px;
        width: 36px;
    }
    
    /* Brand name visible on mobile */
    .brand-name {
        display: block;
        font-size: var(--text-base);
    }
    
    .footer-logo img {
        height: 42px;
    }
    
    /* Mobile Nav Container - Theme toggle always visible */
    .navbar-container {
        gap: var(--space-2);
    }
    
    /* Mobile Nav Actions - Theme toggle + Hamburger */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }
    
    /* Theme toggle always visible on mobile */
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Mobile Nav Links - Slide-in Panel */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: var(--color-surface);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: calc(var(--space-16) + 20px) var(--space-5) var(--space-6);
        gap: var(--space-1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.open {
        transform: translateX(0);
    }
    
    /* Hide theme toggle inside nav-links on mobile (it's outside now) */
    .nav-links .theme-toggle-btn {
        display: none;
    }
    
    .nav-link {
        font-size: var(--text-base);
        width: 100%;
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-md);
        border-bottom: none;
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
    }
    
    .nav-link.cta-button {
        margin-top: var(--space-4);
        text-align: center;
        width: 100%;
        padding: var(--space-3) var(--space-4);
    }
    
    /* Mobile active state */
    .nav-link.active {
        color: var(--color-primary);
        background: rgba(99, 102, 241, 0.1);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    /* Mobile Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    /* Mobile WhatsApp Widget */
    .whatsapp-widget {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Hamburger Animation - Fast and Smooth */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Overlay for closing menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: calc(var(--z-sticky) - 1);
    -webkit-tap-highlight-color: transparent;
}

.nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Extra small screens */
@media (max-width: 480px) {
    .logo img {
        height: 32px;
        width: 32px;
    }
    
    .footer-logo img {
        height: 38px;
    }
    
    .navbar {
        padding: var(--space-2) 0;
    }
    
    .nav-links {
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle-btn {
        width: 34px;
        height: 34px;
    }
}


/* ==========================================================================
   21. Hero Section Styles
   Requirements: 1.2, 1.3, 1.4
   ========================================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-20) 0;
}

/* Services page hero - shorter than home page */
.services-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--space-20) + 72px) 0 var(--space-16);
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 var(--space-6);
}

.hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: var(--color-text);
    word-wrap: break-word;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 var(--space-4);
}

.hero-subtitle {
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-4);
    text-align: center;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

/* Floating Tech Icons */
.hero-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-icons .floating-icon {
    position: absolute;
    color: var(--color-primary);
    opacity: 0.15;
}

.hero-icons .icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.hero-icons .icon-2 {
    top: 25%;
    right: 15%;
    animation-delay: 0.5s;
    color: var(--color-secondary);
}

.hero-icons .icon-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 1s;
}

.hero-icons .icon-4 {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
    color: var(--color-accent);
}

.hero-icons .icon-5 {
    bottom: 20%;
    right: 25%;
    animation-delay: 2s;
}

.hero-icons .icon-6 {
    top: 40%;
    left: 20%;
    animation-delay: 2.5s;
    color: var(--color-secondary);
}

/* Gradient Orbs */
.hero .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.hero .orb-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite;
}

.hero .orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: -50px;
    left: -100px;
    animation: float-slow 12s ease-in-out infinite reverse;
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 72px);
        padding: var(--space-12) 0;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
        padding: 0 var(--space-4);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-icons .floating-icon {
        opacity: 0.1;
    }
    
    .hero .gradient-orb {
        opacity: 0.2;
    }
    
    .hero .orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .hero .orb-2 {
        width: 250px;
        height: 250px;
    }
}


/* ==========================================================================
   22. Services Preview Section (Home Page)
   Requirements: 1.5
   ========================================================================== */

.services-preview {
    background: var(--color-background);
    position: relative;
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.service-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.service-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0 0;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
    border-top: 1px solid var(--color-surface-border);
}

.service-features li:first-child {
    border-top: none;
    padding-top: 0;
}

.service-features li svg {
    flex-shrink: 0;
    color: var(--color-secondary);
}

/* Full services page grid - larger cards with more spacing */
.services-grid-full {
    gap: var(--space-8);
}

.services-grid-full .service-card {
    text-align: left;
    padding: var(--space-10);
}

.services-grid-full .service-icon {
    margin-bottom: var(--space-6);
}

.services-grid-full .service-description {
    margin-bottom: var(--space-4);
}

.services-cta {
    margin-top: var(--space-8);
}

/* ==========================================================================
   Tech Showcase Section
   ========================================================================== */

.tech-showcase-section {
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-surface) 50%, var(--color-background) 100%);
}

.tech-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.tech-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.tech-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tech-showcase-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.tech-showcase-card:hover::before {
    opacity: 1;
}

.tech-showcase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.tech-showcase-card:hover .tech-showcase-icon {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.tech-showcase-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.tech-showcase-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-4) 0;
    flex-grow: 1;
}

.tech-showcase-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.tech-showcase-card:hover .tech-showcase-link {
    color: var(--color-primary-light);
}

.tech-showcase-cta {
    margin-top: var(--space-4);
}

/* Services Grid Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    .tech-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-showcase-card {
        padding: var(--space-6);
    }
}

/* ==========================================================================
   22.5 Statistics Counter Section
   Requirements: 13.2 - Display projects completed, clients served, years experience, team members
   ========================================================================== */

.stats-section {
    background: var(--color-background);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient background */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

.stats-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

/* Gradient top border on hover */
.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stats-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.stats-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.stats-card:hover .stats-icon {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.stats-value {
    margin-bottom: var(--space-2);
}

.stats-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stats-label {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stats Section Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .stats-card {
        padding: var(--space-8);
    }
    
    .stats-number {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .stats-card {
        padding: var(--space-6);
    }
    
    .stats-icon {
        width: 64px;
        height: 64px;
        margin-bottom: var(--space-4);
    }
    
    .stats-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .stats-number {
        font-size: var(--text-3xl);
    }
    
    .stats-label {
        font-size: var(--text-sm);
    }
}

/* ==========================================================================
   23. Client Logos Marquee Section
   Requirements: 1.6
   ========================================================================== */

.clients-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-surface-border);
    border-bottom: 1px solid var(--color-surface-border);
    overflow: hidden;
}

.clients-label {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-8);
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    gap: var(--space-16);
    padding: var(--space-4) 0;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 0 var(--space-4);
    color: var(--color-text-tertiary);
    opacity: 0.7;
    transition: opacity var(--transition-base), color var(--transition-base);
}

.client-logo:hover {
    opacity: 1;
    color: var(--color-text-secondary);
}

.client-name {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Pause marquee on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* ==========================================================================
   24. Call-to-Action Section
   Requirements: 1.7
   ========================================================================== */

.cta-section {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        var(--color-background) 50%,
        rgba(16, 185, 129, 0.1) 100%
    );
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-text {
    margin-bottom: var(--space-10);
}

.cta-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.cta-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

/* CTA Responsive */
@media (max-width: 640px) {
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* ==========================================================================
   25. Projects Page Styles
   Requirements: 3.1, 3.2, 3.3, 3.4, 3.5
   ========================================================================== */

/* Projects Hero - similar to services hero */
.projects-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--space-20) + 72px) 0 var(--space-16);
}

/* Category Filter Buttons */
.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-12);
}

.filter-btn {
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}

.filter-btn.active {
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.filter-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* Project Card - Requirement 3.4 */
.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Project Preview - Requirement 3.5 */
.project-preview {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-preview img {
    transform: scale(1.1);
}

/* Placeholder icon for projects without images */
.project-placeholder-icon {
    width: 64px;
    height: 64px;
    color: var(--color-primary);
    opacity: 0.5;
    transition: all var(--transition-base);
}

.project-card:hover .project-placeholder-icon {
    opacity: 0.8;
    transform: scale(1.1);
}


/* Project Info */
.project-info {
    padding: var(--space-6);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.project-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

/* Tech Stack Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.project-card:hover .tech-tag {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Hidden state for filtered projects */
.project-card.hidden {
    display: none;
}

/* Projects Grid Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-filters {
        gap: var(--space-2);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-preview {
        height: 180px;
    }
    
    .project-info {
        padding: var(--space-5);
    }
}


/* ==========================================================================
   26. About Page Styles
   Requirements: 4.1, 4.2, 4.3, 4.4, 4.5, 4.6
   ========================================================================== */

/* About Hero - similar to services/projects hero */
.about-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--space-20) + 72px) 0 var(--space-16);
}

/* Gradient Hero (shared across pages) */
.gradient-hero {
    position: relative;
    background: var(--color-background);
}

.gradient-hero .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.gradient-hero .gradient-orb-primary {
    background: var(--color-primary);
}

.gradient-hero .gradient-orb-secondary {
    background: var(--color-secondary);
}

.gradient-hero .orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite;
}

.gradient-hero .orb-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -100px;
    animation: float-slow 12s ease-in-out infinite reverse;
}

/* Section Label */
.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

/* ==========================================================================
   26.1 Company Story Section - Requirement 4.2
   ========================================================================== */

.story-section {
    background: var(--color-background);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.story-content {
    max-width: 560px;
}

.story-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.story-text:last-child {
    margin-bottom: 0;
}

.story-image {
    position: relative;
}

.story-image-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.story-placeholder-icon {
    width: 120px;
    height: 120px;
    color: var(--color-primary);
    opacity: 0.3;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    width: 100%;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Story Section Responsive */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .story-content {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .story-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .stat-item {
        padding: var(--space-4);
        background: rgba(99, 102, 241, 0.05);
        border-radius: var(--radius-lg);
    }
}


/* ==========================================================================
   26.2 Mission & Vision Section - Requirement 4.4
   ========================================================================== */

.mission-vision-section {
    background: var(--color-surface);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.mission-card,
.vision-card {
    background: var(--color-background);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    text-align: center;
    transition: all var(--transition-base);
}

.mission-card:hover,
.vision-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mission-icon,
.vision-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.mission-card:hover .mission-icon,
.vision-card:hover .vision-icon {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.mission-title,
.vision-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.mission-text,
.vision-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Core Values */
.values-section {
    text-align: center;
}

.values-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: var(--color-background);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.value-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-primary);
}

.value-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

/* Mission/Vision Responsive */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card,
    .vision-card {
        padding: var(--space-8);
    }
    
    .values-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .value-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}


/* ==========================================================================
   26.3 Team Section - Requirement 4.3
   ========================================================================== */

.team-section {
    background: var(--color-background);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.team-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-base);
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-placeholder-icon {
    width: 60px;
    height: 60px;
    color: var(--color-primary);
    opacity: 0.5;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.team-name {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin: 0;
}

.team-role {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.team-bio {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-4) 0;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: auto;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-background);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.team-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-2px);
}

/* Team Grid Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        padding: var(--space-6);
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
    }
}


/* ==========================================================================
   26.4 Timeline Section - Requirement 4.5
   ========================================================================== */

.timeline-section {
    background: var(--color-surface);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--space-10);
}

/* Timeline vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--color-primary),
        var(--color-secondary),
        var(--color-primary)
    );
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-12);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Timeline marker dot */
.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-10) - 8px);
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--color-background);
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-marker {
    background: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-content {
    background: var(--color-background);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    border-color: var(--color-primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.timeline-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.timeline-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Timeline Responsive */
@media (max-width: 640px) {
    .timeline {
        padding-left: var(--space-8);
    }
    
    .timeline-marker {
        left: calc(-1 * var(--space-8) - 8px);
        width: 16px;
        height: 16px;
    }
    
    .timeline-content {
        padding: var(--space-5);
    }
    
    .timeline-item:hover .timeline-content {
        transform: translateX(4px);
    }
}


/* ==========================================================================
   30. Contact Page Styles
   Requirements: 5.1, 5.2, 5.4, 5.5, 5.6, 5.7
   ========================================================================== */

/* Contact Hero */
.contact-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--space-20) + 72px) 0 var(--space-16);
}

/* Contact Section */
.contact-section {
    padding-top: var(--space-12);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
}

.contact-form-wrapper .section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.contact-form-wrapper .section-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: var(--space-5);
}

.contact-form label {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.contact-form .required {
    color: var(--color-error);
}

.contact-form input,
.contact-form textarea {
    background: var(--color-background);
}

.contact-form textarea {
    min-height: 140px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    margin-top: var(--space-4);
}

.submit-btn .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.submit-btn .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Messages */
.form-message {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
    font-size: var(--text-sm);
}

.form-message.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-secondary);
}

.form-message.error-message-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
}

.form-message svg {
    flex-shrink: 0;
}


/* Contact Info Wrapper */
.contact-info-wrapper .section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.contact-info-wrapper .section-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
}

/* Contact Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: var(--color-primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.whatsapp-card .contact-card-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.whatsapp-card:hover .contact-card-icon {
    background: #25D366;
    color: white;
}

.linkedin-card .contact-card-icon {
    background: rgba(0, 119, 181, 0.1);
    color: #0077B5;
}

.linkedin-card:hover .contact-card-icon {
    background: #0077B5;
    color: white;
}

.email-card .contact-card-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

.email-card:hover .contact-card-icon {
    background: var(--color-primary);
    color: white;
}

.phone-card .contact-card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-secondary);
}

.phone-card:hover .contact-card-icon {
    background: var(--color-secondary);
    color: white;
}

.contact-card-content {
    flex: 1;
}

.contact-card-content h3 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin: 0 0 var(--space-1) 0;
}

.contact-card-content p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

.contact-card-arrow {
    color: var(--color-text-tertiary);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.contact-card:hover .contact-card-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}


/* Location Info */
.location-info h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.location-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-xl);
}

.location-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    flex-shrink: 0;
    padding-top: var(--space-3);
}

.location-details {
    flex: 1;
}

.location-address {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.location-address strong {
    color: var(--color-text);
}

.location-hours {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.location-hours strong {
    color: var(--color-text);
}

/* Contact Page Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: calc(var(--space-16) + 72px) 0 var(--space-12);
    }
    
    .contact-form-wrapper {
        padding: var(--space-6);
    }
    
    .contact-card {
        padding: var(--space-4);
    }
    
    .contact-card-icon {
        width: 48px;
        height: 48px;
    }
    
    .contact-card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .location-card {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .location-icon {
        width: 48px;
        height: 48px;
        padding-top: var(--space-2);
    }
}


/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   Requirements: 10.1, 10.2, 10.3, 10.4
   
   Breakpoints (from design system):
   - Mobile: 480px
   - Tablet: 768px
   - Desktop: 1024px
   - Wide: 1280px
   
   Mobile-first approach: Base styles are mobile, then scale up
   ========================================================================== */

/* ==========================================================================
   R1. Responsive Typography - Requirement 10.4
   Ensure typography scales appropriately across all screen sizes
   ========================================================================== */

/* Mobile-first base typography (already set in base styles) */
/* Scale up typography for larger screens */

@media (min-width: 480px) {
    :root {
        --text-5xl: 3.25rem;
        --text-6xl: 4rem;
    }
}

@media (min-width: 768px) {
    :root {
        --text-5xl: 3.5rem;
        --text-6xl: 4.5rem;
    }
    
    h1 {
        font-size: var(--text-5xl);
    }
    
    h2 {
        font-size: var(--text-4xl);
    }
}

@media (min-width: 1024px) {
    :root {
        --text-5xl: 3.75rem;
        --text-6xl: 5rem;
    }
}

/* ==========================================================================
   R2. Mobile Navigation - Requirement 10.2
   Display mobile navigation menu when viewport < 768px
   ========================================================================== */

/* Mobile menu overlay background */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-sticky) - 1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile-first: hamburger visible by default on small screens */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
        background: var(--color-surface);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: calc(var(--space-20) + var(--space-4)) var(--space-6) var(--space-6);
        gap: 0;
        transition: right var(--transition-base) ease-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: var(--z-sticky);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-link {
        display: block;
        font-size: var(--text-lg);
        font-weight: var(--font-medium);
        width: 100%;
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--color-surface-border);
        color: var(--color-text-secondary);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--color-text);
    }
    
    .nav-link.cta-button {
        margin-top: var(--space-6);
        padding: var(--space-4);
        text-align: center;
        border-bottom: none;
        border-radius: var(--radius-lg);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Tablet and up: show full navigation */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        overflow: visible;
    }
    
    .nav-link {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
        border-bottom: none;
    }
}

/* ==========================================================================
   R3. Responsive Grid Layouts - Requirement 10.3
   Adapt grid layouts to single-column on mobile
   ========================================================================== */

/* Services Grid - Mobile first (single column) */
@media (max-width: 479px) {
    .services-grid,
    .services-grid-full {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .service-card {
        padding: var(--space-5);
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
        margin-bottom: var(--space-4);
    }
    
    .service-title {
        font-size: var(--text-lg);
    }
}

/* Services Grid - Tablet (2 columns) */
@media (min-width: 480px) and (max-width: 767px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .services-grid-full {
        grid-template-columns: 1fr;
    }
}

/* Services Grid - Small Desktop (2 columns) */
@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid,
    .services-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

/* Services Grid - Desktop (3 columns) */
@media (min-width: 1024px) {
    .services-grid,
    .services-grid-full {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

/* Projects Grid - Mobile first (single column) */
@media (max-width: 479px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .project-preview {
        height: 160px;
    }
    
    .project-info {
        padding: var(--space-4);
    }
    
    .project-title {
        font-size: var(--text-lg);
    }
    
    .projects-filters {
        gap: var(--space-2);
        padding: 0 var(--space-2);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
}

/* Projects Grid - Tablet (2 columns) */
@media (min-width: 480px) and (max-width: 1023px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

/* Projects Grid - Desktop (3 columns) */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Team Grid - Mobile first (single column) */
@media (max-width: 479px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .team-card {
        padding: var(--space-5);
    }
    
    .team-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: var(--space-4);
    }
    
    .team-name {
        font-size: var(--text-lg);
    }
}

/* Team Grid - Tablet (2 columns) */
@media (min-width: 480px) and (max-width: 1023px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

/* Team Grid - Desktop (4 columns) */
@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Footer Grid - Mobile first (single column) */
@media (max-width: 479px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

/* Footer Grid - Tablet (2 columns) */
@media (min-width: 480px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

/* Footer Grid - Desktop (4 columns) */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Mission/Vision Grid - Mobile first (single column) */
@media (max-width: 767px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .mission-card,
    .vision-card {
        padding: var(--space-6);
    }
    
    .mission-icon,
    .vision-icon {
        width: 64px;
        height: 64px;
        margin-bottom: var(--space-4);
    }
    
    .mission-title,
    .vision-title {
        font-size: var(--text-xl);
    }
}

/* Story Grid - Mobile first (single column) */
@media (max-width: 1023px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .story-content {
        max-width: 100%;
        order: 1;
    }
    
    .story-image {
        order: 2;
    }
}

/* Contact Grid - Mobile first (single column) */
@media (max-width: 1023px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* ==========================================================================
   R4. Responsive Container & Spacing
   ========================================================================== */

/* Mobile container padding */
@media (max-width: 479px) {
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }
    
    .section-sm {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }
}

/* Tablet container padding */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }
    
    .section {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }
}

/* ==========================================================================
   R5. Responsive Hero Sections
   ========================================================================== */

@media (max-width: 479px) {
    .hero {
        min-height: calc(100vh - 72px);
        min-height: calc(100dvh - 72px);
        padding: var(--space-8) 0;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-4);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
        padding: 0;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
        padding: 0 var(--space-4);
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Reduce gradient orb sizes on mobile */
    .hero .orb-1,
    .gradient-hero .orb-1 {
        width: 200px;
        height: 200px;
        opacity: 0.15;
    }
    
    .hero .orb-2,
    .gradient-hero .orb-2 {
        width: 150px;
        height: 150px;
        opacity: 0.15;
    }
    
    /* Hide some floating icons on mobile for cleaner look */
    .hero-icons .icon-3,
    .hero-icons .icon-5,
    .hero-icons .icon-6 {
        display: none;
    }
    
    /* Page-specific heroes */
    .services-hero,
    .projects-hero,
    .about-hero,
    .contact-hero {
        padding: calc(var(--space-12) + 72px) 0 var(--space-8);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .services-hero,
    .projects-hero,
    .about-hero,
    .contact-hero {
        padding: calc(var(--space-16) + 72px) 0 var(--space-12);
    }
}

/* ==========================================================================
   R6. Responsive Section Headers
   ========================================================================== */

@media (max-width: 479px) {
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .section-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-3);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
    }
    
    .section-label {
        font-size: var(--text-xs);
        margin-bottom: var(--space-3);
    }
}

/* ==========================================================================
   R7. Responsive CTA Section
   ========================================================================== */

@media (max-width: 479px) {
    .cta-section {
        padding: var(--space-12) 0;
    }
    
    .cta-title {
        font-size: var(--text-xl);
    }
    
    .cta-description {
        font-size: var(--text-base);
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   R8. Responsive Client Logos Marquee
   ========================================================================== */

@media (max-width: 479px) {
    .clients-section {
        padding: var(--space-8) 0;
    }
    
    .clients-label {
        font-size: var(--text-xs);
        margin-bottom: var(--space-6);
    }
    
    .marquee-content {
        gap: var(--space-10);
    }
    
    .client-logo {
        min-width: 80px;
    }
    
    .client-logo svg {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   R9. Responsive Timeline
   ========================================================================== */

@media (max-width: 479px) {
    .timeline {
        padding-left: var(--space-6);
    }
    
    .timeline-marker {
        left: calc(-1 * var(--space-6) - 7px);
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        padding: var(--space-4);
    }
    
    .timeline-year {
        font-size: var(--text-xs);
    }
    
    .timeline-title {
        font-size: var(--text-lg);
    }
    
    .timeline-description {
        font-size: var(--text-xs);
    }
    
    .timeline-item:hover .timeline-content {
        transform: translateX(4px);
    }
}

/* ==========================================================================
   R10. Responsive Values Grid
   ========================================================================== */

@media (max-width: 767px) {
    .values-grid {
        flex-direction: column;
        align-items: stretch;
    }
    
    .value-item {
        justify-content: flex-start;
        padding: var(--space-3) var(--space-4);
    }
    
    .value-icon {
        width: 36px;
        height: 36px;
    }
    
    .value-name {
        font-size: var(--text-sm);
    }
}

/* ==========================================================================
   R11. Responsive WhatsApp Widget - Requirement 10.5
   Ensure WhatsApp widget remains accessible on all screen sizes
   ========================================================================== */

@media (max-width: 479px) {
    .whatsapp-widget {
        bottom: 12px;
        right: 12px;
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .whatsapp-widget {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
}

/* ==========================================================================
   R12. Responsive Forms
   ========================================================================== */

@media (max-width: 479px) {
    .contact-form-wrapper {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }
    
    .contact-form .form-group {
        margin-bottom: var(--space-4);
    }
    
    input,
    textarea,
    select {
        padding: var(--space-3);
        font-size: var(--text-base); /* Prevent zoom on iOS */
    }
    
    textarea {
        min-height: 100px;
    }
    
    .contact-card {
        padding: var(--space-3);
        gap: var(--space-3);
    }
    
    .contact-card-icon {
        width: 44px;
        height: 44px;
    }
    
    .contact-card-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-card-content h3 {
        font-size: var(--text-sm);
    }
    
    .contact-card-content p {
        font-size: var(--text-xs);
    }
    
    .location-card {
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-4);
    }
    
    .location-icon {
        width: 44px;
        height: 44px;
        padding-top: var(--space-2);
    }
}

/* ==========================================================================
   R13. Responsive Utility Classes
   ========================================================================== */

/* Hide on mobile */
@media (max-width: 479px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on tablet */
@media (min-width: 480px) and (max-width: 767px) {
    .hide-tablet {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 480px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Show only on tablet and up */
@media (max-width: 479px) {
    .show-tablet-up {
        display: none !important;
    }
}

/* Show only on desktop */
@media (max-width: 767px) {
    .show-desktop-only {
        display: none !important;
    }
}

/* ==========================================================================
   R14. Responsive Grid Utility Classes
   ========================================================================== */

/* Mobile: 1 column */
@media (max-width: 479px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Tablet: 2 columns max */
@media (min-width: 480px) and (max-width: 767px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small desktop: 3 columns max */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   R15. Responsive Flex Utilities
   ========================================================================== */

@media (max-width: 479px) {
    .flex-col-mobile {
        flex-direction: column;
    }
    
    .items-stretch-mobile {
        align-items: stretch;
    }
    
    .gap-4-mobile {
        gap: var(--space-4);
    }
}

/* ==========================================================================
   R16. Responsive Text Alignment
   ========================================================================== */

@media (max-width: 479px) {
    .text-center-mobile {
        text-align: center;
    }
    
    .text-left-mobile {
        text-align: left;
    }
}

/* ==========================================================================
   R17. Touch-friendly Targets
   Ensure all interactive elements meet minimum 44x44px touch target
   ========================================================================== */

@media (max-width: 767px) {
    /* Ensure buttons have adequate touch targets */
    .btn {
        min-height: 44px;
        padding: var(--space-3) var(--space-5);
    }
    
    .btn-sm {
        min-height: 40px;
    }
    
    /* Ensure nav links have adequate touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Ensure filter buttons have adequate touch targets */
    .filter-btn {
        min-height: 40px;
    }
    
    /* Ensure form inputs have adequate touch targets */
    input,
    textarea,
    select {
        min-height: 44px;
    }
    
    /* Ensure social links have adequate touch targets */
    .team-social a,
    .footer-social a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ==========================================================================
   R18. Print Styles
   ========================================================================== */

@media print {
    .navbar,
    .whatsapp-widget,
    .mobile-menu-toggle,
    .nav-overlay {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background: white;
        color: black;
    }
    
    .hero,
    .gradient-hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .hero .gradient-orb,
    .gradient-hero .gradient-orb {
        display: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* ==========================================================================
   Custom Cursor - Requirement 13.2
   A modern, subtle custom cursor for desktop devices
   Disabled on touch devices for better UX
   ========================================================================== */

/* Custom cursor container - only visible on non-touch devices */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    opacity: 0;
}

/* Main cursor dot */
.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-text);
    border-radius: 50%;
    transition: transform 0.2s ease-out, background 0.2s ease-out;
}

/* Outer ring */
.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    opacity: 0.5;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, border-color 0.2s ease-out;
}

/* Cursor visible state */
.custom-cursor.visible {
    opacity: 1;
}

/* Cursor hover state - expands when hovering interactive elements */
.custom-cursor.hover {
    transform: scale(1.5);
}

.custom-cursor.hover::before {
    transform: translate(-50%, -50%) scale(0.5);
    background: var(--color-primary);
}

.custom-cursor.hover::after {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: var(--color-primary);
    opacity: 0.8;
}

/* Cursor click state */
.custom-cursor.click {
    transform: scale(0.9);
}

.custom-cursor.click::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.custom-cursor.click::after {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
}

/* Hide default cursor on desktop when custom cursor is active */
body.custom-cursor-active {
    cursor: none;
}

body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active select,
body.custom-cursor-active [role="button"],
body.custom-cursor-active .btn,
body.custom-cursor-active .nav-link,
body.custom-cursor-active .service-card,
body.custom-cursor-active .project-card,
body.custom-cursor-active .filter-btn,
body.custom-cursor-active .whatsapp-widget {
    cursor: none;
}

/* Touch device detection - disable custom cursor */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
    
    body.custom-cursor-active {
        cursor: auto;
    }
    
    body.custom-cursor-active a,
    body.custom-cursor-active button,
    body.custom-cursor-active input,
    body.custom-cursor-active textarea,
    body.custom-cursor-active select,
    body.custom-cursor-active [role="button"],
    body.custom-cursor-active .btn,
    body.custom-cursor-active .nav-link,
    body.custom-cursor-active .service-card,
    body.custom-cursor-active .project-card,
    body.custom-cursor-active .filter-btn,
    body.custom-cursor-active .whatsapp-widget {
        cursor: pointer;
    }
}

/* Also hide on small screens (typically touch devices) */
@media (max-width: 768px) {
    .custom-cursor {
        display: none !important;
    }
    
    body.custom-cursor-active {
        cursor: auto;
    }
    
    body.custom-cursor-active a,
    body.custom-cursor-active button,
    body.custom-cursor-active input,
    body.custom-cursor-active textarea,
    body.custom-cursor-active select,
    body.custom-cursor-active [role="button"],
    body.custom-cursor-active .btn,
    body.custom-cursor-active .nav-link,
    body.custom-cursor-active .service-card,
    body.custom-cursor-active .project-card,
    body.custom-cursor-active .filter-btn,
    body.custom-cursor-active .whatsapp-widget {
        cursor: pointer;
    }
}

/* ==========================================================================
   404 Error Page Styles
   Requirements: Error Handling
   ========================================================================== */

.error-page {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-20) 0;
}

.error-container {
    position: relative;
    z-index: 10;
}

.error-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-8);
    color: var(--color-primary);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    }
}

.error-code {
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: var(--font-bold);
    line-height: 1;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.error-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.error-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-12);
}

.error-quick-links {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-surface-border);
}

.quick-links-label {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-6);
}

.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    min-width: 100px;
}

.quick-link:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quick-link svg {
    color: var(--color-primary);
}

.quick-link span {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* Error Page Responsive */
@media (max-width: 768px) {
    .error-page {
        min-height: calc(100vh - 72px);
        padding: var(--space-12) 0;
    }
    
    .error-icon {
        width: 120px;
        height: 120px;
    }
    
    .error-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: var(--text-2xl);
    }
    
    .error-description {
        font-size: var(--text-base);
        padding: 0 var(--space-4);
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .quick-links-grid {
        gap: var(--space-3);
    }
    
    .quick-link {
        padding: var(--space-3) var(--space-4);
        min-width: 90px;
    }
}

/* ==========================================================================
   Theme Toggle Button Styles
   Requirements: 12.1 - Theme toggle button in navigation
   ========================================================================== */

.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--color-text-secondary);
    transition: color 200ms ease, transform 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.theme-toggle-btn:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.theme-toggle-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Hide icon based on current theme */
.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
    transition: opacity 200ms ease, transform 200ms ease;
}

.theme-toggle-btn .hidden {
    display: none;
}

/* Mobile navigation theme toggle */
@media (max-width: 768px) {
    .nav-links .theme-toggle-btn {
        width: 100%;
        justify-content: flex-start;
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--color-surface-border);
        border-radius: 0;
    }
    
    .nav-links .theme-toggle-btn:hover {
        transform: none;
        background: rgba(99, 102, 241, 0.1);
    }
}

/* ==========================================================================
   Testimonials Carousel Styles
   Requirements: 15.1, 15.2, 15.3, 15.4, 15.5, 15.6
   ========================================================================== */

.testimonials-section {
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-surface) 50%, var(--color-background) 100%);
}

.testimonials-carousel-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-carousel {
    position: relative;
    width: 100%;
}

.testimonials-slides {
    position: relative;
    min-height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimonial-quote {
    text-align: center;
    margin-bottom: var(--space-8);
}

.testimonial-text {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
    font-style: italic;
    position: relative;
    padding: 0 var(--space-8);
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: var(--text-4xl);
    color: var(--color-primary);
    opacity: 0.5;
    position: absolute;
    font-family: Georgia, serif;
}

.testimonial-text::before {
    top: -10px;
    left: 0;
}

.testimonial-text::after {
    bottom: -30px;
    right: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.testimonial-avatar,
.testimonial-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.testimonial-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.testimonial-author-name {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    font-style: normal;
}

.testimonial-author-role {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.testimonial-company {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--font-medium);
}

/* Navigation Dots */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--color-surface-border);
    border: none;
    cursor: pointer;
    transition: all 200ms ease;
    padding: 0;
}

.testimonial-dot:hover {
    background: var(--color-text-secondary);
    transform: scale(1.2);
}

.testimonial-dot.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: scale(1.2);
    box-shadow: var(--shadow-glow);
}

.testimonial-dot:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .testimonials-slides {
        min-height: 350px;
    }
    
    .testimonial-text {
        font-size: var(--text-lg);
        padding: 0 var(--space-4);
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: var(--text-3xl);
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author-info {
        text-align: center;
    }
    
    .testimonial-avatar,
    .testimonial-avatar-placeholder {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .testimonials-slides {
        min-height: 400px;
    }
    
    .testimonial-text {
        font-size: var(--text-base);
        padding: 0 var(--space-2);
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: var(--text-2xl);
    }
}
