/* ==========================================
   MARTEQ MEDIA - MAIN STYLESHEET
   Modern marketing agency website design
   ========================================== */

/* CSS Variables for theming */
:root {
  /* Colors - Light Theme */
  --primary-color: #6366f1;
  --primary-light: #8b5cf6;
  --primary-dark: #4f46e5;
  --secondary-color: #ec4899;
  --accent-color: #06b6d4;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 120px 0;
  --element-border-radius: 12px;
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  
  /* Z-index layers */
  --z-header: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-color: #475569;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-family: var(--font-secondary);
}

/* Utilities */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

.section-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--element-border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-medium);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ==========================================
   WORK PAGE STYLES
   ========================================== */

.work-page {
  padding-top: 0; /* Remove padding since we want full coverage */
}

/* Featured Section - Extended to cover navigation */
.featured-section {
  padding: 340px 0 120px; /* Increased top padding to push content below navigation */
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
  margin-top: -100px; /* Pull section up to cover behind navigation */
}

.featured-background {
  position: fixed; /* Changed to fixed to cover entire viewport including header */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1; /* Above featured section background but below navigation */
  pointer-events: none; /* Allow clicks to pass through */
}

.featured-background.active {
  opacity: 0.4; /* Slightly higher opacity for better effect */
  animation: backgroundPulse 1200ms ease-out;
}

@keyframes backgroundPulse {
  0% { transform: scale(0.98); filter: blur(2px); }
  50% { transform: scale(1.01); filter: blur(0px); }
  100% { transform: scale(1); filter: blur(0px); }
}

.featured-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 500ms ease, filter 600ms ease, transform 700ms ease;
}

/* Video reveal once ready */
.featured-background.video-background .featured-bg-video.show {
  opacity: 0.6;
}

/* Subtle motion/blur during transition */
.featured-background.transitioning .featured-bg-video {
  filter: blur(4px) saturate(110%);
  transform: scale(1.03);
}

/* Loading indicator during transition */
.featured-background.transitioning::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  border-top-color: rgba(99, 102, 241, 0.6);
  animation: spin 1s linear infinite;
  z-index: 5;
}

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

.featured-background.video-background {
  opacity: 0.6; /* Slightly higher opacity for video backgrounds */
}

/* Animated transition layer */
.featured-transition-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: linear-gradient(90deg,
    rgba(99,102,241,0) 0%,
    rgba(99,102,241,0.15) 30%,
    rgba(99,102,241,0.25) 50%,
    rgba(99,102,241,0.15) 70%,
    rgba(99,102,241,0) 100%);
  transform: translateX(-120%);
}

.featured-background.transitioning .featured-transition-layer {
  animation: featuredWipe 750ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes featuredWipe {
  0% { transform: translateX(-120%); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.featured-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, transparent 50%, var(--bg-secondary) 100%);
  opacity: 0.8;
}

.featured-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDEwIDAgTCAwIDAgMCAxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsIDAsIDAsIDAuMDIpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=') repeat;
  opacity: 0.5;
  pointer-events: none;
}

.featured-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 3;
}

.featured-label {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 30px;
}

.featured-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--primary-color);
  transform: translateY(-50%);
}

.featured-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.featured-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 3;
}

.featured-project {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-medium);
  background: var(--bg-primary);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.featured-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--shadow-hover);
}

.featured-project.active {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.45);
  position: relative;
}

.featured-project.active::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, 
    rgba(99, 102, 241, 0.25), 
    rgba(168, 85, 247, 0.25), 
    rgba(236, 72, 153, 0.25));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% { opacity: 0.6; }
  100% { opacity: 0.85; filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.25)); }
}


.project-image-container {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--text-muted);
  transition: all var(--transition-medium);
}

.project-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  opacity: 0.7;
}

.project-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.8;
}

.project-placeholder small {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 0.5rem;
  display: block;
}

.featured-project:hover .project-placeholder,
.grid-item:hover .project-placeholder {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.featured-project:hover .project-placeholder i,
.grid-item:hover .project-placeholder i {
  color: white;
  opacity: 1;
  transform: scale(1.1);
}

.featured-project:hover .project-placeholder span,
.grid-item:hover .project-placeholder span {
  opacity: 1;
}

.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

/* Featured projects should show their media (including video) by default */
.featured-project .project-video {
  opacity: 1;
}

.project-image-container:hover .project-video {
  opacity: 1;
}

.project-image-container:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem;
  color: white;
  transform: translateY(0);
  opacity: 1;
  transition: all var(--transition-medium);
}

.featured-project:hover .project-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  transform: translateY(-5px);
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.project-client {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
/* Ensure featured cards never prepend a label to client name */
.featured-project .project-client::before { content: none !important; }

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Projects Table Section */
.projects-table-section {
  padding: 120px 0;
  position: relative;
  z-index: 10; /* Above featured background */
  background: var(--bg-primary); /* Ensure solid background */
}

.table-header {
  margin-bottom: 3rem;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
  transition: all var(--transition-fast);
  position: relative;
}

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

.filter-btn.active {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  font-weight: 600;
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transform: translateX(-50%);
}

.view-controls {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.view-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.view-btn.active {
  color: white;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Table View */
.projects-table {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.projects-table.active {
  display: block;
  opacity: 1;
}

.table-headers {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 0.8fr 1fr;
  gap: 2rem;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table-body {
  border-radius: var(--element-border-radius);
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 0.8fr 1fr;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  align-items: center;
}

/* Ensure all cells vertically center their contents */
.table-row .row-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background: var(--bg-secondary);
  transform: translateX(5px);
}

.project-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-number {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  min-width: 30px;
}

.project-title {
  font-size: 1rem;
}

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

/* Only in the table, vertically center client text */
.table-row .project-client {
  display: flex;
  align-items: center;
  margin-top: 4px; /* slight optical adjustment to align with project title */
}

.project-category .category-tag {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.project-year {
  color: var(--text-secondary);
  font-family: var(--font-secondary);
}

.status-indicator {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-indicator.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* Grid View */
.projects-grid {
  display: none;
  opacity: 0;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  transition: opacity var(--transition-medium);
}

.projects-grid.active {
  display: grid;
  opacity: 1;
}

.grid-item {
  background: var(--bg-primary);
  border-radius: var(--element-border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.grid-project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.grid-project-image video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* visible by default in grid */
  transition: transform var(--transition-slow);
}

.grid-item:hover .grid-project-image img,
.grid-item:hover .grid-project-image video {
  transform: scale(1.05);
}

/* Mobile-only image for grid items (hidden by default) */
.grid-project-image .mobile-grid-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Mobile: show image instead of video in grid view */
@media (max-width: 768px) {
  .grid-project-image .mobile-grid-image {
    display: block;
  }
  .grid-project-image .project-video,
  .grid-project-image .desktop-grid-image {
    display: none !important;
  }
  .grid-item:hover .grid-project-image .mobile-grid-image {
    transform: scale(1.05);
  }
  /* Always show overlay text on mobile (no hover needed) */
  .grid-overlay {
    transform: translateY(0) !important;
  }
  .grid-item:hover .grid-overlay {
    transform: translateY(0) !important;
  }
}

@media (min-width: 769px) {
  .grid-project-image .mobile-grid-image {
    display: none;
  }
}

.grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.grid-item:hover .grid-overlay {
  transform: translateY(0);
}

.grid-project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: white;
}

.grid-project-info p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Hover Preview */
.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--bg-primary);
  border-radius: var(--element-border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  overflow: hidden;
  z-index: var(--z-tooltip);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.hover-preview.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.preview-content {
  padding: 0;
}

.preview-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.preview-media img,
.preview-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-info {
  padding: 1.5rem;
}

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

.preview-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preview-tags .tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

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

.fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .filter-controls {
    justify-content: center;
  }
  
  .view-controls {
    justify-content: center;
  }
  
  .table-headers {
    display: none;
  }
  
  .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .table-row:hover {
    transform: none;
  }
  
  .row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .row-item:last-child {
    border-bottom: none;
  }
  
  .row-item::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  /* Scope mobile labels to table rows only to avoid affecting featured cards */
  .table-row .project-name::before { content: 'Project'; }
  .table-row .project-client::before { content: 'Client'; }
  .table-row .project-status::before { content: 'Status'; }
  
  /* Remove Category/Year/Client labels on mobile for project detail pages */
  .project-detail-container .project-category::before,
  .project-detail-container .project-year::before,
  .project-detail-container .project-client::before {
    content: none !important;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .hover-preview {
    width: 320px;
  }
}

/* Header & Navigation - Stealth Media Style */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Well above featured background */
  background: transparent;
  backdrop-filter: none; /* Remove backdrop filter to prevent white background */
  border-bottom: none; /* Remove border */
  transition: all var(--transition-medium);
  overflow: hidden; /* Ensure all content is clipped when header is hidden */
}

/* Hidden state for header */
.header.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .header {
  background: transparent; /* Completely transparent */
  border-bottom: none; /* Remove border */
}

.header.scrolled {
  background: transparent; /* Keep header transparent on scroll */
  backdrop-filter: none; /* Remove backdrop filter */
  box-shadow: none; /* Remove box shadow */
  border-bottom: none; /* Remove border */
}

[data-theme="dark"] .header.scrolled {
  background: transparent; /* Keep header transparent on scroll */
  box-shadow: none; /* Remove box shadow */
}

.navbar {
  padding: 1.5rem 0;
  min-height: 160px; /* Increased to fully show logo text */
  max-height: 160px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px; /* Increased from var(--container-max-width) */
  margin: 0.5rem auto; /* Reduced margin for taller logo */
  padding: 0.25rem; /* Further reduced padding */
  background: transparent; /* Completely transparent */
  border-radius: 60px;
  backdrop-filter: none; /* Remove backdrop filter */
  border: none; /* Remove border */
  box-shadow: none; /* Remove box shadow */
}

[data-theme="dark"] .nav-container {
  background: transparent; /* Completely transparent */
  border: none; /* Remove border */
}

/* Logo Section - Separate styling like Stealth Media */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 140px; /* Taller to avoid clipping the text in the logo image */
  width: auto;
  z-index: 10;
  padding: 0.75rem 1.5rem; /* Increased padding for bigger logo */
}

/* Navigation Menu - Centered with subtle background */
.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(100, 116, 139, 0.8); /* Default gray background */
  border-radius: 40px;
  padding: 0.5rem;
  backdrop-filter: blur(20px); /* Add backdrop blur */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Subtle shadow */
  transition: all var(--transition-medium);
}

[data-theme="dark"] .nav-menu {
  background: rgba(15, 23, 42, 0.8); /* Slightly more opaque in dark mode */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .nav-menu {
  background: rgba(100, 116, 139, 0.85); /* Proper gray background with high opacity */
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Actions Section - Right aligned */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem;
}

/* Logo link styling */
.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  border-radius: 12px;
}

.nav-logo a:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

/* Logo image styling */
.nav-logo img {
  height: 9rem; /* Even larger logo to show full text - 144px */
  width: auto;
  transition: all var(--transition-medium);
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.15));
  border-radius: 8px;
  object-fit: contain; /* Ensure full image is visible */
}

/* Logo icon fallback styling */
.nav-logo .logo-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.5rem;
}

.nav-logo .logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Legacy icon support (fallback) */
.nav-logo i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem; /* Tighter spacing in the centered menu */
  margin: 0;
  padding: 0;
  align-items: center;
}

/* CLEAN NAV-LINK STYLES - Single definition */
.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  transition: color 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
  position: relative;
  background: transparent;
  backdrop-filter: none;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  cursor: pointer;
  transform: none;
  scale: none;
  box-shadow: none;
  outline: none;
}

/* Remove ALL pseudo-elements that could cause double highlights */
.nav-link::before,
.nav-link::after {
  display: none !important;
  content: none !important;
}

/* Clean hover state */
.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Clean active state */
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Ensure desktop nav-links have clean, consistent styling */
@media (min-width: 769px) {
  .nav-link {
    text-transform: none !important;
    letter-spacing: normal !important;
    transform: none !important;
    overflow: visible !important;
    position: relative !important;
  }
  
  /* Absolutely ensure no pseudo-elements on desktop */
  .nav-link::before,
  .nav-link::after {
    content: none !important;
    display: none !important;
  }
  
  .nav-link:hover {
    transform: none !important;
    scale: none !important;
  }
  
  .nav-link.active {
    transform: none !important;
    scale: none !important;
  }
}


/* Enhanced CTA button in navigation */
.nav-actions .btn-primary {
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

.theme-toggle {
  width: 60px;
  height: 32px;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  top: 2px;
  left: 2px;
  transition: all var(--transition-medium);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

[data-theme="dark"] .theme-toggle {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(28px);
  background: #fbbf24;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.theme-toggle #theme-icon {
  position: absolute;
  font-size: 12px;
  transition: all var(--transition-medium);
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

[data-theme="light"] .theme-toggle #theme-icon {
  right: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  transform: translateY(-50%);
}

[data-theme="dark"] .theme-toggle #theme-icon {
  left: 10px;
  color: #fbbf24;
  opacity: 1;
  text-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
  transform: translateY(-50%);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1001;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transform: scale(1.05);
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-toggle span:nth-child(1) {
  transform-origin: top left;
}

.nav-toggle span:nth-child(3) {
  transform-origin: bottom left;
}

/* Light mode hamburger visibility fix */
[data-theme="light"] .nav-toggle span {
  background: rgba(0, 0, 0, 0.8) !important; /* Dark hamburger bars for light mode */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Dark mode keeps light hamburger bars */
[data-theme="dark"] .nav-toggle span {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/* Hero Section - Enhanced for transparent navigation */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding-top: 0; /* Remove padding since nav is transparent */
  margin-top: -80px; /* Pull hero up behind navigation */
}

/* Mobile hero section fix */
@media (max-width: 768px) {
  /* Ensure mobile header still fits nicely */
  .navbar { min-height: 140px; max-height: 140px; }
  .nav-logo { height: 120px; }
  .nav-logo img { height: 7rem; }
  .hero {
    margin-top: 0 !important;
    padding-top: 120px !important; /* Increased from 100px */
    min-height: calc(100vh - 120px) !important;
  }
  
  .hero-container {
    padding: 80px 1.5rem 0 !important; /* Increased from 60px */
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    order: 2; /* Content below on mobile */
    padding-top: 2rem; /* Add spacing above content */
  }
  
  .hero-title {
    margin-top: 0 !important; /* Reset desktop margin on mobile */
    margin-bottom: 1.25rem !important;
    font-size: 2.5rem !important; /* Optimize title size for mobile */
    line-height: 1.2 !important;
  }
  
  .hero-description {
    font-size: 1.1rem !important; /* Slightly smaller on mobile */
    margin-bottom: 2rem !important;
    max-width: 100% !important;
  }
  
  .hero-actions {
    justify-content: center !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem;
  }
  
  .hero-actions .btn {
    font-size: 0.95rem !important;
    padding: 0.75rem 1.5rem !important;
  }
  
  .hero-visual {
    order: 1; /* Visual on top for mobile */
    display: block !important;
    margin-top: 2rem; /* Add space from top navigation */
    padding-top: 1rem;
  }
  
  /* Mobile floating elements (compact, non-overlapping) */
  .floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: block !important;
    z-index: 1; /* Below scroll indicator (z=10) */
  }
  
  .floating-card {
    position: absolute !important;
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    animation: floatUp 8s ease-in-out infinite;
    transform: translateZ(0);
    z-index: 1;
  }
  
  [data-theme="dark"] .floating-card {
    background: rgba(30,41,59,0.9);
    border-color: rgba(148,163,184,0.15);
  }
  
  /* Compact positions suitable for mobile - moved further from top */
  .floating-card[data-float="1"] { top: 25%; left: 8%; animation-delay: 0s; }
  .floating-card[data-float="2"] { top: 55%; right: 8%; animation-delay: 2s; }
  .floating-card[data-float="3"] { bottom: 15%; left: 18%; animation-delay: 4s; }
  
  .hero-image-container {
    width: 100% !important;
    max-width: 340px;
    height: 260px;
    margin: 1.5rem auto 1rem;
  }
  
  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-image-placeholder {
    width: 100% !important;
    max-width: 340px; /* Slightly smaller for better mobile fit */
    height: 260px; /* Slightly taller for better aspect ratio */
    margin: 1.5rem auto 1rem; /* More top margin, less bottom */
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    position: relative;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); /* Enhanced shadow for depth */
  }
  
  .hero-image-placeholder i {
    font-size: 64px !important;
    color: var(--primary-color);
    opacity: 0.28;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  z-index: -1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 60px 60px;
  animation: particlesFloat 20s linear infinite;
}

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

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 180px 1.5rem 0; /* Increased to account for taller header */
}

.hero-title {
  margin-top: 120px; /* Move only the title down to create better spacing */
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.title-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.title-subtitle {
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-container {
  width: 500px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-color);
  position: relative;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.hero-image-placeholder {
  width: 500px;
  height: 400px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 40px var(--shadow-color);
  overflow: hidden;
}

.hero-image-placeholder i {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--element-border-radius);
  box-shadow: 0 10px 25px var(--shadow-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: floatUp 6s ease-in-out infinite;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .floating-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.floating-card[data-float="1"] {
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.floating-card[data-float="2"] {
  top: 60%;
  right: -15%;
  animation-delay: 2s;
}

.floating-card[data-float="3"] {
  bottom: 10%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  animation: bounceDown 2s ease-in-out infinite;
  z-index: 10;
}

/* Center scroll indicator within container on services and contact pages */
.services-hero .hero-scroll-indicator,
.contact-hero .hero-scroll-indicator {
  /* Position relative within container, not absolute */
  position: relative;
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  animation: bounceDown 2s ease-in-out infinite;
  z-index: 10;
}

/* Override absolute positioning for these specific hero sections */
.services-hero .hero-scroll-indicator,
.contact-hero .hero-scroll-indicator {
  bottom: auto;
  left: auto;
  transform: none;
}

/* Hide scroll indicator on mobile devices */
@media (max-width: 768px) {
  .hero-scroll-indicator {
    display: none;
  }
  
  /* Keep services/contact page scroll indicators but hide on mobile too */
  .services-hero .hero-scroll-indicator,
  .contact-hero .hero-scroll-indicator {
    display: none;
  }
}

/* Extra small mobile screens - scroll indicator already hidden */

/* Extra spacing for very small mobile screens */
@media (max-width: 480px) {
  .hero {
    padding-top: 140px !important;
  }
  
  .hero-container {
    padding: 100px 1rem 0 !important;
    gap: 2.5rem;
  }
  
  .hero-visual {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }
  
  .hero-image-container {
    max-width: 300px;
    height: 240px;
    margin: 2rem auto 1rem;
  }
  
  .hero-image-placeholder {
    max-width: 300px;
    height: 240px;
    margin: 2rem auto 1rem;
  }
  
  /* Adjust floating cards for very small screens */
  .floating-card {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.6rem !important;
    gap: 0.3rem !important;
  }
  
  .floating-card[data-float="1"] { top: 30%; left: 5%; }
  .floating-card[data-float="2"] { top: 60%; right: 5%; }
  .floating-card[data-float="3"] { bottom: 12%; left: 15%; }
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0px); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ========================================== */
/* HOMEPAGE STATS SECTION - CLEAN IMPLEMENTATION */
/* ========================================== */

.stats {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.stats .stat-item {
  background: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 1 !important;
  transform: none !important;
}

[data-theme="dark"] .stats .stat-item {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stats .stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

/* NUMBER STYLING */
.stats .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0;
}

.stats .stat-suffix {
  font-size: 2rem;
  font-weight: 800;
  color: #6366f1;
  margin-left: 0.2rem;
}

[data-theme="dark"] .stats .stat-suffix {
  color: #8b5cf6;
}

/* LABEL STYLING - EMPHASIS ON VISIBILITY */
.stats .stat-label {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.2rem;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

[data-theme="dark"] .stats .stat-label {
  color: #f1f5f9;
}

/* SUBHEADER STYLING */
.stats .stat-subheader {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.5;
}

[data-theme="dark"] .stats .stat-subheader {
  color: #94a3b8;
}

/* ========================================== */

/* About Section */
.about {
  padding: var(--section-padding);
}

.about-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.about-visual {
  width: 100%;
  max-width: 500px;
}

.about-video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow-color);
  display: block;
}

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 40px var(--shadow-color);
  overflow: hidden;
}

.about-image-placeholder i {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.about-metrics {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.metric-bubble {
  position: absolute;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: var(--element-border-radius);
  box-shadow: 0 8px 20px var(--shadow-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  animation: floatMetric 4s ease-in-out infinite;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .metric-bubble {
  background: var(--bg-secondary);
}

.metric-bubble[data-float="1"] {
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.metric-bubble[data-float="2"] {
  top: 50%;
  left: 5%;
  animation-delay: 1.5s;
}

.metric-bubble[data-float="3"] {
  bottom: 20%;
  right: 15%;
  animation-delay: 3s;
}

@keyframes floatMetric {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.services-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.service-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--element-border-radius);
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-description {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.service-features i {
  color: var(--primary-color);
  font-size: 0.875rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.service-link:hover {
  transform: translateX(5px);
}

/* CTA Section */
.cta {
  padding: var(--section-padding);
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 25% 25%, white 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, white 1px, transparent 1px);
  background-size: 50px 50px, 25px 25px;
  animation: ctaPattern 20s linear infinite;
}

@keyframes ctaPattern {
  0% { transform: translateY(0px); }
  100% { transform: translateY(50px); }
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
}

.cta-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-title {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.contact-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--element-border-radius);
  transition: transform var(--transition-fast);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: #6366f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-details p {
  margin: 0;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: var(--element-border-radius);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--element-border-radius);
  font-family: var(--font-secondary);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

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

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

/* Footer */
.footer {
  background: var(--bg-tertiary);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10; /* Ensure footer appears above featured background */
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 5.5rem;
  width: auto;
  transition: all var(--transition-medium);
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.15));
  border-radius: 6px;
}

.footer-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(99, 102, 241, 0.2));
}

/* Footer logo icon fallback styling */
.footer-logo .logo-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.5rem;
}

.footer-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Legacy icon support (fallback) */
.footer-logo i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-description {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--secondary-color);
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-secondary);
}

.contact-info i {
  color: var(--primary-color);
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Error Page */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.error-icon i {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.error-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.error-message {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  background: #4f46e5;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.back-to-top:active {
  transform: scale(0.95);
}

[data-theme="dark"] .back-to-top {
  background: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

[data-theme="dark"] .back-to-top:hover {
  background: #7c3aed;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

/* Custom Calendly Button */
.calendly-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: auto;
  height: 56px;
  padding: 0 24px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 998;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  text-decoration: none;
  animation: calendlyPulse 2s ease-in-out infinite;
}

.calendly-button.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.calendly-button:hover {
  background: #4f46e5;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
  animation: none;
  color: white;
  text-decoration: none;
}

.calendly-button:active {
  transform: scale(0.95);
}

.calendly-button i {
  font-size: 1.2rem;
}

@keyframes calendlyPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.6);
  }
}

/* Dark theme */
[data-theme="dark"] .calendly-button {
  background: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

[data-theme="dark"] .calendly-button:hover {
  background: #7c3aed;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  .calendly-button {
    bottom: 20px;
    left: 20px;
    height: 50px;
    padding: 0 20px;
    font-size: 0.9rem;
  }
  
  .calendly-button i {
    font-size: 1.1rem;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

.fadeInDown {
  animation: fadeInDown 0.5s ease forwards;
}

.fadeInLeft {
  animation: fadeInLeft 0.5s ease forwards;
}

.fadeInRight {
  animation: fadeInRight 0.5s ease forwards;
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
      rgba(15, 23, 42, 0.98) 0%, 
      rgba(30, 41, 59, 0.98) 50%, 
      rgba(51, 65, 85, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 0 !important; /* remove rounded corners on mobile overlay */
    box-shadow: none;
    transform: translateY(-100%) !important; width: 100vw; height: 100vh; padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999; /* Increased z-index to cover everything */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu.active {
    transform: translateY(0) !important;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .nav-item {
    border-bottom: none;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .nav-menu.active .nav-item {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
  .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
  .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
  
  /* Ensure navigation containers have proper padding and don't clip */
  .navbar {
    padding: 12px 0; /* Add vertical padding to navbar */
    min-height: auto; /* Let navbar size naturally */
    overflow: visible !important;
  }
  
  .nav-container {
    padding: 0 1.5rem; /* Add horizontal padding */
    overflow: visible !important;
  }
  
  .nav-actions {
    padding: 8px 0; /* Add padding around nav actions */
    overflow: visible !important;
    align-items: center;
    gap: 0.5rem;
  }
  
  .header {
    overflow: visible !important;
  }
  
  .nav-link {
    display: block;
    padding: 1.5rem 3rem;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
  }
  
  .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(99, 102, 241, 0.2), 
      transparent);
    transition: left 0.6s;
  }
  
  .nav-link:hover::before {
    left: 100%;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: white;
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  }
  
  .nav-toggle {
    display: flex;
    z-index: 10001; /* Higher than nav menu overlay */
    position: relative;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  
  /* When menu is active, position the toggle button so it stays visible and clickable */
  .nav-toggle.active {
    position: fixed !important;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    z-index: 10001;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 8px;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  
  /* Ensure nav-toggle has position relative for absolute children */
  .nav-toggle {
    position: relative !important;
  }
  
  /* Keep hamburger icon active for consistency with other pages */
  .nav-toggle.active #nav-line-1,
  .nav-toggle.active #nav-line-2,
  .nav-toggle.active #nav-line-3 {
    /* No transformation - keep as hamburger icon */
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .hero-container,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.5rem;
  }
  
  .cta-actions,
  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
/* Work Page Styles */

/* Clickable Project Rows */
.clickable-row {
  cursor: pointer;
  transition: all 0.3s ease;
}

.table-row.clickable-row:hover {
  background: rgba(99, 102, 241, 0.05);
  transform: translateX(10px);
  border-left: 3px solid var(--primary-color);
}

[data-theme="dark"] .table-row.clickable-row:hover {
  background: rgba(99, 102, 241, 0.1);
}

.grid-item.clickable-row:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}
  .featured-section {
    padding: calc(var(--navbar-height) + 100px) 0 80px !important; /* Dynamic nav height + spacing */
    margin-top: 0 !important; /* Prevent overlap under nav */
  }
  
  .featured-title {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Smaller title for mobile */
    margin-bottom: 1rem;
  }
  
  .featured-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 1.5rem;
    margin-top: 3rem;
  }
  
  .featured-project {
    border-radius: 16px;
  }
  
  /* Projects Table Mobile */
  .table-controls {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    width: 100%;
  }
  
  .filter-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .view-controls {
    justify-content: center;
  }
  
  /* Table View Mobile - Convert to Cards */
  .table-headers {
    display: none; /* Hide table headers on mobile */
  }
  
  .table-row {
    display: block;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: none;
  }
  
  .table-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-hover);
  }
  
  .row-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
  }
  
  .row-item:last-child {
    border-bottom: none;
  }
  
  .row-item::before {
    content: attr(data-label) ': ';
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-block;
    margin-right: 0.5rem;
  }
  
  .project-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .project-name::before {
    display: none;
  }
  
  .project-number {
    display: inline-block;
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-weight: 800;
  }
  
  /* Grid View Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid-item {
    border-radius: 16px;
  }
  
  /* Hover Preview - Disable on Mobile */
  .hover-preview {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  /* Extra safety for small laptop widths */
  .featured-section {
    padding-top: calc(var(--navbar-height) + 100px) !important;
    margin-top: 0 !important;
  }
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding-top: 90px !important; /* Reduced padding for smaller screens */
    min-height: calc(100vh - 90px) !important;
  }
  
  .hero-container {
    padding: 40px 1rem 0 !important; /* Reduced padding for content */
  }
  
  .hero-image-placeholder,
  .about-image-placeholder {
    height: 250px;
  }
  
  .hero-video,
  .about-video {
    height: 250px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Work Page Small Mobile Styles */
  .featured-section {
    padding: 140px 0 60px;
    margin-top: -60px;
  }
  
  .featured-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.2;
  }
  
  .featured-description {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .featured-grid {
    margin-top: 2rem;
    gap: 1rem;
  }
  
  .featured-project {
    border-radius: 12px;
  }
  
  .project-info h3 {
    font-size: 1rem;
  }
  
  .project-info p {
    font-size: 0.875rem;
  }
  
  .category-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Filter Controls for Small Mobile */
  .filter-controls {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
  }
  
  /* Project Cards Small Mobile */
  .table-row {
    padding: 1rem;
    border-radius: 8px;
  }
  
  .project-name {
    font-size: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .project-number {
    font-size: 0.875rem;
  }
  
  .row-item {
    padding: 0.375rem 0;
    font-size: 0.875rem;
  }
  
  .row-item::before {
    font-size: 0.75rem;
  }
  
  /* Navigation Mobile Adjustments */
  .nav-actions .btn {
    display: none; /* Hide 'Get Started' button on small mobile */
  }
  
  .theme-toggle {
    padding: 0.5rem;
  }
  
  /* Services Page Mobile */
  .service-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .service-text-content,
  .service-visual-content {
    text-align: center;
  }
  
  .service-showcase-title {
    font-size: 1.5rem !important;
  }
  
  .service-number {
    font-size: 3rem !important;
  }
}

/* ==========================================
   SERVICES PAGE STYLES
   Beautiful alternating layout with animations
   ========================================== */

/* Services Hero Section */
.services-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding-top: 0;
  margin-top: -80px;
}

/* Realistic Smoke Video Background */
.services-smoke-video-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* above overlay (-1) and behind text */
  overflow: hidden;
}

.services-smoke-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(0.9);
  object-fit: cover;
}

/* Video overlay for better text readability and integration */
.smoke-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(236, 72, 153, 0.05) 50%,
    rgba(6, 182, 212, 0.03) 100%
  );
  mix-blend-mode: overlay;
}

/* Fallback for browsers that don't support video */
.smoke-video-fallback {
  position: absolute;
  inset: 0;
  display: none; /* Hidden by default, shown via JS if video fails */
}

.fallback-smoke-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px, 90px 90px, 70px 70px, 80px 80px;
  animation: smokeParticlesDrift 25s linear infinite;
  opacity: 0.3;
  mix-blend-mode: screen;
}

@keyframes smokeParticlesDrift {
  0% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  25% {
    transform: translate(-10px, -15px) scale(1.05);
    opacity: 0.3;
  }
  50% {
    transform: translate(5px, -25px) scale(0.95);
    opacity: 0.25;
  }
  75% {
    transform: translate(-5px, -35px) scale(1.02);
    opacity: 0.3;
  }
  100% {
    transform: translate(0, -40px) scale(1);
    opacity: 0.2;
  }
}

/* Ensure hero content is always above smoke */
.services-hero .services-hero-content { 
  position: relative; 
  z-index: 1; 
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .services-smoke-video {
    opacity: 0.2 !important;
  }
  
  .fallback-smoke-particles {
    animation: none !important;
    opacity: 0.15 !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .services-smoke-video {
    opacity: 0.25; /* Reduce opacity on mobile for better readability */
  }
}

.services-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  z-index: -1;
}


.services-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--navbar-height, 180px) + 80px) 1.5rem 0; /* Dynamic navbar height + extra clearance */
}

.services-hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.services-hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Services Showcase Section */
.services-showcase {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.service-showcase-item {
  margin-bottom: 120px;
  position: relative;
}

.service-showcase-item:last-child {
  margin-bottom: 0;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  min-height: 70vh;
}

.service-content.content-right {
  direction: rtl;
}

.service-content.content-right > * {
  direction: ltr;
}

/* Service Text Content */
.service-text-content {
  position: relative;
  z-index: 2;
}

.service-number {
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.4;
  position: relative;
  display: block;
  z-index: 1;
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.service-icon-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.service-icon-wrapper i {
  font-size: 2rem;
  color: white;
  z-index: 1;
  position: relative;
}

.service-showcase-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.service-showcase-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.service-showcase-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.service-showcase-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: all var(--transition-fast);
}

.service-showcase-features li:hover {
  transform: translateX(10px);
  color: var(--text-primary);
}

.service-showcase-features li i {
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.service-showcase-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  padding: 0.75rem 0;
}

.service-learn-more:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.service-learn-more i {
  transition: transform var(--transition-fast);
}

.service-learn-more:hover i {
  transform: translateY(3px);
}

/* Service Visual Content */
.service-visual-content {
  position: relative;
  z-index: 1;
}

.service-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-color);
  transition: transform var(--transition-slow);
  width: 100%;
  height: 500px;
  display: block;
}

.service-image-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px var(--shadow-hover);
}

.service-image,
.service-media {
  width: 100%;
  height: 500px !important;
  object-fit: cover;
  object-position: center;
  background: var(--bg-secondary);
  transition: transform var(--transition-slow);
}

.service-image-container:hover .service-image,
.service-image-container:hover .service-media {
  transform: scale(1.05);
}

/* Ensure videos maintain aspect ratio */
.service-media[type="video"],
video.service-media {
  object-fit: cover;
  object-position: center;
  background: var(--bg-secondary);
  width: 100% !important;
  height: 500px !important;
  display: block;
}

/* Video autoplay enhancements */
video[autoplay] {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

video[autoplay].loaded {
  opacity: 1;
}

/* Video play overlay styles for fallback */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.video-play-button {
  background: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 70px !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  color: var(--primary-color, #6366f1) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.video-play-button:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile video optimizations */
@media (max-width: 768px) {
  .video-play-button {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.2rem !important;
  }
  
  /* Ensure videos are properly sized on mobile */
  .featured-bg-video,
  .project-video,
  .preview-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  /* Mobile-specific video play overlay */
  .mobile-video-play-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 15 !important;
    cursor: pointer !important;
    border-radius: inherit !important;
  }
  
  .mobile-video-play-button {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    color: var(--primary-color, #6366f1) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  }
}

.service-image-placeholder {
  width: 100%;
  height: 500px !important;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDEwIDAgTCAwIDAgMCAxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsIDAsIDAsIDAuMDIpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=') repeat;
  opacity: 0.3;
}

.service-placeholder-icon {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-placeholder-text span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* Floating Elements */
.service-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.service-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: serviceFloat 4s ease-in-out infinite;
}

[data-theme="dark"] .service-floating-card {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.service-floating-card i {
  color: var(--primary-color);
  font-size: 1rem;
}

.service-floating-card[data-float="1"] {
  top: 20%;
  left: -5%;
  animation-delay: 0s;
}

.service-floating-card[data-float="2"] {
  top: 60%;
  right: -5%;
  animation-delay: 1.5s;
}

.service-floating-card[data-float="3"] {
  bottom: 20%;
  left: 10%;
  animation-delay: 3s;
}

@keyframes serviceFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

/* Services CTA Section */
.services-cta {
  padding: 120px 0;
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  overflow: hidden;
}

.services-cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 25% 25%, white 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, white 1px, transparent 1px);
  background-size: 50px 50px, 25px 25px;
  animation: ctaPattern 20s linear infinite;
}

.services-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
}

.services-cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.services-cta-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}

.services-cta-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.services-cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Form Select Styling */
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--element-border-radius);
  font-family: var(--font-secondary);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==========================================
   CONTACT PAGE STYLES
   Beautiful client journey roadmap
   ========================================== */

/* Contact Hero Section */
.contact-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding-top: 0;
  margin-top: -80px;
}

.contact-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  z-index: -1;
}

.contact-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 60px 60px;
  animation: particlesFloat 20s linear infinite;
}

.contact-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--navbar-height, 180px) + 80px) 1.5rem 0; /* Dynamic navbar height + extra clearance */
}

.contact-hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.contact-hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Client Journey Section */
.client-journey {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.journey-header {
  text-align: center;
  margin-bottom: 6rem;
}

.journey-roadmap {
  position: relative;
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
}

.journey-step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.journey-step:nth-child(even) {
  direction: rtl;
}

.journey-step:nth-child(even) > * {
  direction: ltr;
}

.step-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.connector-line {
  display: none; /* Vertical connector lines removed */
}

/* First connector line styles removed */

/* Last connector line styles removed */

/* Old connector dot removed - now using dynamic timeline system */

.step-content {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px var(--shadow-color);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
  border-radius: 20px;
}

.journey-step:hover .step-content {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px var(--shadow-hover);
}

.step-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.step-timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 60px;
  margin: 1.5rem 0;
}

.timeline-track {
  position: relative;
  width: 80%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Light mode - darker track */
:root .timeline-track,
[data-theme="light"] .timeline-track {
  background: #cbd5e1;
  border: 1px solid #94a3b8;
}

/* Dark mode - lighter track */
[data-theme="dark"] .timeline-track {
  background: #475569;
  border: 1px solid #64748b;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.timeline-dot {
  display: none; /* Timeline dots removed */
}

/* Light mode timeline dot styles removed */

/* Dark mode timeline dot styles removed */

/* Dot pulse animation removed */

/* Light mode pulse animation removed */

/* Dark mode pulse animation removed */

/* ==========================================
   QUEST MAP SECTION - JOURNEY ROADMAP
   ========================================== */

.quest-map-section {
  padding: 120px 0;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .quest-map-section {
  background: #0f172a;
}

.quest-map-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 60px 60px;
}

.quest-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.quest-header .section-title {
  color: white;
}

.quest-header .section-description {
  color: #cbd5e1;
}

.quest-progress-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.progress-track {
  position: relative;
  width: 60%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="dark"] .progress-track {
  background: var(--bg-tertiary);
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 1s ease-out;
}

.progress-text {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Quest Map SVG Container */
.quest-map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 4rem;
  z-index: 1;
  background: #f8fafc;
  padding: 2rem;
  border-radius: var(--element-border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .quest-map-container {
  background: #1e293b;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.quest-map-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--element-border-radius);
}

/* SVG Background Rectangle */
.svg-bg-rect {
  fill: #f8fafc;
}

[data-theme="dark"] .svg-bg-rect {
  fill: #1e293b;
}

/* SVG Dark Mode Adjustments */
[data-theme="dark"] .quest-map-svg .quest-path {
  stroke: #475569 !important;
}

[data-theme="dark"] .quest-map-svg .terrain-layer line {
  stroke: #334155 !important;
}

/* Node Card Styling for Dark Mode */
.node-card-content {
  padding: 1rem;
  color: #1f2937;
  background: white;
  border-radius: 12px;
}

[data-theme="dark"] .node-info-card rect {
  fill: #0f172a !important;
}

[data-theme="dark"] .node-card-content {
  background: #0f172a;
  color: #f8fafc;
}

.node-card-header h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

[data-theme="dark"] .node-card-header h4 {
  color: #f8fafc;
}

.node-card-description {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

[data-theme="dark"] .node-card-description {
  color: #cbd5e1;
}

.unlock-badge {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .unlock-badge {
  background: rgba(99, 102, 241, 0.2);
}

/* Node Badge Dark Mode */
[data-theme="dark"] .node-badge {
  fill: #0f172a !important;
}

/* Quest Stats Cards */
.quest-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: var(--element-border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-medium);
}

[data-theme="dark"] .stat-card {
  background: #1e293b;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 1.5rem;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .stat-number {
  color: #f8fafc;
}

.stat-label {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

[data-theme="dark"] .stat-label {
  color: #94a3b8;
}

/* Journey Stats */
.journey-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 6rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow-color);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}

/* Contact Form Section */
.contact-form-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
}

.contact-form-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(236, 72, 153, 0.02));
}

.contact-form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDEwIDAgTCAwIDAgMCAxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsIDAsIDAsIDAuMDIpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=') repeat;
  opacity: 0.1;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.contact-form-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--element-border-radius);
  transition: transform var(--transition-fast);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: #6366f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: white;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.contact-details p {
  margin: 0 0 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-details small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-social {
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--element-border-radius);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.contact-social h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-social .social-links {
  display: flex;
  gap: 1rem;
}

.journey-step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.journey-step:nth-child(even) {
  direction: rtl;
}

.journey-step:nth-child(even) > * {
  direction: ltr;
}

.step-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* All connector line styles removed - duplicates cleaned up */

/* Connector line dots removed */

.step-content {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px var(--shadow-color);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
  border-radius: 20px;
}

.journey-step:hover .step-content {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px var(--shadow-hover);
}

.step-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.step-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.decoration-dots {
  display: none; /* Decoration dots removed */
}

/* All decoration dot styles removed */

/* Journey Stats */
.journey-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 6rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow-color);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}

/* Contact Form Section */
.contact-form-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
}

.contact-form-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(236, 72, 153, 0.02));
}

.contact-form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDEwIDAgTCAwIDAgMCAxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsIDAsIDAsIDAuMDIpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=') repeat;
  opacity: 0.1;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.contact-form-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--element-border-radius);
  transition: transform var(--transition-fast);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: #6366f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: white;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.contact-details p {
  margin: 0 0 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-details small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-social {
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--element-border-radius);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.contact-social h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-social .social-links {
  display: flex;
  gap: 1rem;
}

.contact-social .social-links a {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-social .social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Enhanced Contact Form */
.contact-form {
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--element-border-radius);
  font-family: var(--font-secondary);
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--bg-primary);
}

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

/* Custom Checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--element-border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.checkbox-item:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.checkbox-item input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--element-border-radius);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-note i {
  color: var(--accent-color);
}

.checkbox-item:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.checkbox-item input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--element-border-radius);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-note i {
  color: var(--accent-color);
}

/* Responsive Design for Contact Page */
/* Use dynamic navbar height for cross-browser compatibility */
:root {
  --navbar-height: 180px; /* Strong fallback for Windows - increased from 80px */
  --safe-top-padding: 220px; /* Strong fallback for Windows - increased from 120px */
}

@media (max-width: 1200px) {
  /* Ensure hero headings clear the fixed nav on small laptops (e.g., Windows) */
  .services-hero-content,
  .contact-hero-content {
    padding-top: calc(var(--navbar-height, 180px) + 100px) !important; /* dynamic nav height + extra spacing for Windows */
  }
}

@media (max-width: 968px) {
  .journey-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .journey-step:nth-child(even) {
    direction: ltr;
  }
  
  .step-connector {
    order: -1;
  }
  
  .connector-line {
    width: 120px;
    height: 4px;
  }
  
  .step-connector.first .connector-line {
    background: linear-gradient(90deg, transparent 50%, var(--primary-color));
    width: 60px;
    height: 4px;
    margin-top: 0;
    margin-left: 60px;
  }
  
  .step-connector.last .connector-line {
    background: linear-gradient(90deg, var(--primary-color), transparent 50%);
    width: 60px;
    height: 4px;
  }
  
  .step-timeline {
    display: none;
  }
  
  .journey-stats {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .contact-form-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-hero-content {
    padding: calc(var(--navbar-height, 180px) + 120px) 1rem 0 !important; /* dynamic nav height + extra spacing */
  }
  
  .journey-steps {
    gap: 2rem;
  }
  
  .step-content {
    padding: 1.5rem;
  }
  
  .step-icon-wrapper {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Responsive Design for Contact Page */
@media (max-width: 968px) {
  .journey-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .journey-step:nth-child(even) {
    direction: ltr;
  }
  
  .step-connector {
    order: -1;
  }
  
  .connector-line {
    width: 120px;
    height: 4px;
  }
  
  .step-connector.first .connector-line {
    background: linear-gradient(90deg, transparent 50%, var(--primary-color));
    width: 60px;
    height: 4px;
    margin-top: 0;
    margin-left: 60px;
  }
  
  .step-connector.last .connector-line {
    background: linear-gradient(90deg, var(--primary-color), transparent 50%);
    width: 60px;
    height: 4px;
  }
  
  .step-decoration {
    display: none;
  }
  
  .journey-stats {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .quest-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .quest-header {
    margin-bottom: 3rem;
  }
  
  .progress-track {
    width: 90%;
  }
  
  .contact-form-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-hero-content {
    padding: 140px 1rem 0;
  }
  
  .journey-steps {
    gap: 2rem;
  }
  
  .step-content {
    padding: 1.5rem;
  }
  
  .step-icon-wrapper {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Responsive Design for Services Page */
@media (max-width: 768px) {
  .services-hero-content {
    padding: calc(var(--navbar-height, 180px) + 120px) 1rem 0 !important; /* dynamic nav height + extra spacing */
  }
  
  .services-hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }
  
  .services-hero-description {
    font-size: 1.1rem;
  }
  
  .service-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
  }
  
  .service-content.content-right {
    direction: ltr;
  }
  
  .service-text-content,
  .service-visual-content {
    text-align: center;
  }
  
  .service-number {
    position: relative;
    top: auto;
    left: auto;
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
  }
  
  .service-showcase-title {
    font-size: clamp(1.75rem, 5vw, 2rem);
  }
  
  .service-showcase-actions {
    justify-content: center;
  }
  
  .service-image,
  .service-media,
  .service-image-placeholder {
    height: 300px !important;
  }
  
  .service-image-container {
    height: 300px;
  }
  
  .service-floating-card {
    position: relative;
    margin: 0.5rem;
    animation: none;
  }
  
  .service-floating-elements {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
}
