/* Modern Redesign - TMG Software */

:root {
  --primary-dark: #0a192f;
  --primary-light: #112240;
  --accent-blue: #64ffda;
  --accent-orange: #f57c00;
  --text-primary: #e6f1ff; /* Lighter for better contrast */
  --text-secondary: #a8b2d1; /* Lighter for better readability */
  --text-muted: #8892b0; /* For less important text */
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(10, 25, 47, 0.95) 0%, rgba(17, 34, 64, 0.98) 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Account for fixed navbar */
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Modern Interactive Background System */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--primary-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth scrolling performance */
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  position: relative;
}

/* Unified Background System */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background: 
    radial-gradient(circle at 20% 30%, rgba(100, 255, 218, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(100, 255, 218, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(17, 34, 64, 0.4) 0%, transparent 70%),
    linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(17, 34, 64, 0.98) 100%);
  /* Animation removed - static background */
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(100, 255, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  /* Animation removed - static grid */
  opacity: 0.5;
  pointer-events: none;
}

/* backgroundShift animation removed - using static background */

/* Interactive Floating Particles */
body {
  background-attachment: fixed;
}

/* Section Background Overlay System */
section {
  position: relative;
  background: transparent;
  overflow: visible; /* Changed from hidden to visible to allow hover effects */
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: 
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(100, 255, 218, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

section:hover::before {
  opacity: 1;
}

/* Enhanced Grid Pattern for Sections */
section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(100, 255, 218, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  pointer-events: none;
  /* Animation removed - static grid */
}

/* gridPulse animation removed - using static grid */

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Hide scrollbar for all scrollable elements */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Ensure Font Awesome icons use their own font-family */
i[class*="fa-"],
i[class^="fa-"],
.fa,
.fas,
.far,
.fal,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Modern Splash Loader */
.splash-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.logo-container {
  margin-bottom: 2rem;
  position: relative;
}

.logo-text {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease;
  position: relative;
  display: inline-block;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent-blue);
  animation: expandLine 0.8s ease 0.3s forwards;
  transform-origin: center;
  width: 0;
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: bounce 1.4s infinite ease-in-out;
}

.loader-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0s;
}

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

@keyframes expandLine {
  to {
    width: 60px;
  }
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Modern Navbar */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-modern.scrolled {
  background: rgba(10, 25, 47, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand .brand-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-brand .brand-link:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--accent-blue);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(20px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active {
    max-height: 400px;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
}

@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-blue);
}

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

/* AIStudio nav link - magenta highlight */
.nav-link[href="/aistudio"]:hover,
.nav-link[href*="aistudio"]:hover,
.aistudio-page .nav-link[href="/aistudio"],
body:has([href="/aistudio"].active) .nav-link[href="/aistudio"] {
  color: #d946ef !important;
}

.nav-link[href="/aistudio"]::after,
.nav-link[href*="aistudio"]::after {
  background: #d946ef !important;
}

.nav-link[href="/aistudio"]:hover::after,
.nav-link[href*="aistudio"]:hover::after {
  width: 100%;
  background: #d946ef !important;
}

.nav-link.nav-cta {
  background: transparent;
  border: 1px solid var(--accent-blue);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  color: var(--accent-blue);
  transition: all 0.3s ease;
}

.nav-link.nav-cta::after {
  display: none;
}

.nav-link.nav-cta:hover {
  background: rgba(100, 255, 218, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Particle Network Canvas */
.hero-background canvas#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  /* Hardware acceleration for smooth rendering */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: contents;
  /* Prevent flickering on mobile scroll */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Optimize for mobile */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Prevent touch actions that could interfere */
  touch-action: none;
  pointer-events: none;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-subtle);
  z-index: 1;
  opacity: 0.7;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  /* Animation removed - static grid */
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 50px;
  color: var(--accent-blue);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-title .title-main {
  color: var(--white);
  letter-spacing: 0.05em;
}

.hero-title .title-sub {
  color: var(--accent-blue);
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-description {
    font-size: 1.1rem;
  }
}

.hero-link {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.hero-link:hover {
  border-bottom-color: var(--accent-blue);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary-modern {
  background: var(--accent-blue);
  color: var(--primary-dark);
}

.btn-primary-modern:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-secondary-modern {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-secondary-modern:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

.hero-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.hero-footer-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Section Styling Updates */
section {
  position: relative;
  padding: 6rem 2rem;
}

section:nth-child(even) {
  background: rgba(17, 34, 64, 0.5);
}

#homepage {
  opacity: 1 !important;
  background: transparent !important;
}

#homepage h1,
#homepage p {
  color: var(--text-primary) !important;
}

/* Hide old splash screen */
.splash,
.mw-625 .splash {
  display: none !important;
}

/* Section Styling - Modern 2026 Design */
section {
  position: relative;
  padding: 8rem 2rem;
  background: transparent;
  overflow: hidden;
  scroll-margin-top: 100px; /* Account for fixed navbar when scrolling to sections */
}

/* Modern section backgrounds - now using unified background system */
section#services,
section#our-work,
section#lab,
section#pricing,
section#contact,
section#interview-prep,
section#tutoring,
section#career-development,
section#rates,
section#schedule,
section#data-engineering,
section#use-cases,
section#why-aistudio,
section#aistudio-highlight {
  background: transparent;
  position: relative;
}

/* Subtle animated grid pattern */
section#services::before,
section#our-work::before,
section#lab::before,
section#pricing::before,
section#contact::before,
section#interview-prep::before,
section#tutoring::before,
section#career-development::before,
section#rates::before,
section#schedule::before,
section#data-engineering::before,
section#use-cases::before,
section#why-aistudio::before,
section#aistudio-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  /* Animation removed - static grid */
}

/* gridMove animation removed - using static grid */

/* Modern section separator */
section#services::after,
section#our-work::after,
section#lab::after,
section#pricing::after,
section#interview-prep::after,
section#tutoring::after,
section#career-development::after,
section#rates::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(100, 255, 218, 0.2) 50%,
    transparent 100%
  );
  z-index: 1;
}

section > .container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  overflow: visible; /* Ensure hover effects aren't clipped */
}

/* Typography - Improved Readability with Better Contrast */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--white) !important; /* Even brighter for main headings */
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  color: var(--text-primary) !important;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text-primary) !important;
}

/* Ensure h3 doesn't hide icons inside it */
h3 i {
  color: var(--accent-blue);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.875rem;
  color: var(--text-primary) !important;
}

h5 {
  color: var(--text-primary) !important;
}

p, li, .small-text, .body-text {
  color: var(--text-secondary) !important;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Ensure paragraphs on dark backgrounds are readable */
p {
  color: #b8c5e0 !important; /* Lighter than text-secondary for paragraphs */
}

strong {
  color: var(--text-primary) !important;
  font-weight: 600;
}

#body-text {
  color: #b8c5e0 !important; /* Lighter for body text */
  text-align: left;
}

.small-text {
  color: #b8c5e0 !important; /* Lighter for small text */
  font-size: 1rem;
}

.body-text {
  color: #b8c5e0 !important;
}

/* Card Styles - Ultra Modern 2026 Design */
.card-wrapper {
  margin-bottom: 2.5rem;
  text-align: center;
  padding: 1rem; /* Add padding to prevent cutoff on hover */
  overflow: visible; /* Ensure hover effects aren't clipped */
}

.card {
  background: rgba(17, 34, 64, 0.3);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(100, 255, 218, 0.2) !important;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(100, 255, 218, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(100, 255, 218, 0.05) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(100, 255, 218, 0.5) !important;
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(17, 34, 64, 0.5);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card h2 {
  color: var(--accent-blue) !important;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-shadow: 0 2px 8px rgba(100, 255, 218, 0.3); /* Glow effect for accent */
}

.card h2 i {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(100, 255, 218, 0.4));
}

.card h4 {
  color: var(--white) !important; /* Brighter for card headings */
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.price.card p {
  color: #b8c5e0 !important; /* Lighter for better readability */
  margin-bottom: 1rem;
  line-height: 1.7;
}

.price.card p strong {
  color: var(--accent-blue) !important;
  font-weight: 600;
}

/* Override inline styles for better contrast */
.card h2[style*="color: #F4A261"] {
  color: var(--accent-blue) !important; /* Replace orange with cyan for consistency */
}

/* Button Styles - Restored Borders with Modern Look */
.btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.05em;
}

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

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

.btn-primary {
  color: var(--primary-dark) !important;
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.4);
}

.btn-secondary {
  color: var(--accent-blue) !important;
  background: transparent;
  border-color: var(--accent-blue);
}

.btn-secondary:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: var(--accent-blue);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

.btn-three {
  color: var(--accent-blue) !important;
  background: transparent;
  border-color: var(--accent-blue);
}

.btn-three:hover {
  background: rgba(100, 255, 218, 0.15);
  border-color: var(--accent-blue);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

.btn-four {
  color: var(--accent-blue) !important;
  background: transparent;
  border: 2px solid var(--accent-blue);
}

.btn-four:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: var(--accent-blue);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

.more-btn {
  margin-top: 1rem;
}

/* List Group Items - Carousel Headers */
.list-group-item {
  color: #b8c5e0 !important; /* Lighter for better readability */
  background-color: transparent !important;
  border: none !important;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  border-left: 3px solid transparent !important;
}

.list-group-item:hover {
  background: rgba(100, 255, 218, 0.1) !important;
  color: var(--white) !important; /* Brighter on hover */
  border-left-color: var(--accent-blue) !important;
  transform: translateX(5px);
}

.list-group-item.active {
  color: var(--white) !important; /* Bright white for active */
  background: rgba(100, 255, 218, 0.15) !important;
  border-left-color: var(--accent-blue) !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

/* Links */
.mid-link,
.mid-link-alt {
  color: var(--accent-blue) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

.mid-link:hover,
.mid-link-alt:hover {
  border-bottom-color: var(--accent-blue);
  color: var(--white) !important;
}

/* Carousel Styling */
.carousel {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(100, 255, 218, 0.2) !important;
  background: rgba(17, 34, 64, 0.4);
}

.carousel-inner {
  border: none !important;
}

.carousel-caption {
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.carousel-caption h5 {
  color: var(--accent-blue) !important;
}

.carousel-caption p {
  color: var(--text-secondary) !important;
}

.carousel-indicators [data-bs-target] {
  background-color: rgba(100, 255, 218, 0.4);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(100, 255, 218, 0.2);
}

.carousel-indicators .active {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(100, 255, 218, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(100, 255, 218, 0.4);
  transform: scale(1.1);
}

/* Steps/Process Section */
.steps {
  list-style: none;
  padding: 0;
}

.step {
  color: #b8c5e0 !important; /* Lighter for readability */
  text-align: left;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(17, 34, 64, 0.6); /* Brighter background for better contrast */
  border-left: 3px solid var(--accent-blue);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.step:hover {
  background: rgba(17, 34, 64, 0.7);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.step h2 {
  color: var(--accent-blue) !important;
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}

.step p,
.step ul {
  color: #b8c5e0 !important; /* Lighter for readability */
  text-align: left;
}

.step ul li {
  margin-bottom: 0.5rem;
  color: #b8c5e0 !important; /* Lighter for readability */
  line-height: 1.7;
}

/* Form Styling */
.form-control {
  background: rgba(17, 34, 64, 0.6) !important;
  border: 2px solid rgba(100, 255, 218, 0.2) !important;
  color: var(--text-primary) !important;
  border-radius: 6px;
  padding: 0.875rem 1.25rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(17, 34, 64, 0.8) !important;
  border-color: var(--accent-blue) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(100, 255, 218, 0.25);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.6;
}

/* Contact Section */
.contact-list {
  background: transparent !important;
}

.contact-list .list-group-item {
  color: #b8c5e0 !important; /* Lighter for readability */
  background: transparent !important;
  border: none !important;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

.contact-list a {
  color: var(--accent-blue) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--white) !important;
  border-bottom: 1px solid var(--accent-blue);
  text-shadow: 0 0 8px rgba(100, 255, 218, 0.5);
}

/* Footer */
footer {
  background: rgba(10, 25, 47, 0.8) !important;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  padding: 3rem 0;
}

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

footer .nav-link:hover {
  color: var(--accent-blue) !important;
}

footer .text-muted {
  color: #b8c5e0 !important; /* Lighter for better readability */
}

/* Additional text contrast improvements */
.alternate-text {
  color: var(--text-primary) !important;
}

.mw-500 p,
.mw-625 p {
  color: #b8c5e0 !important; /* Lighter for paragraphs in constrained widths */
}

/* Ensure all text in cards is readable */
.card p,
.card li,
.card .small-text {
  color: #b8c5e0 !important; /* Lighter text in cards */
}

.card ul li {
  color: #b8c5e0 !important;
  line-height: 1.7;
}

/* Carousel text */
.carousel-caption h5 {
  color: var(--accent-blue) !important;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  color: #e6f1ff !important; /* Very light for captions */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Form labels */
.form-labels,
label {
  color: var(--text-primary) !important;
  font-weight: 500;
}

/* Disclaimer and important text */
strong,
b {
  color: var(--text-primary) !important;
  font-weight: 600;
}

/* Remove old navbar */
#navbar.navbar {
  display: none;
}

/* Random Background Overrides */
.random_bg,
.random_bg2 {
  background: rgba(17, 34, 64, 0.4) !important;
  background-image: none !important;
  position: relative;
}

.random_bg::before,
.random_bg2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(100, 255, 218, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

/* Image Styling */
.img {
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.img:hover {
  transform: scale(1.05);
}

/* Hidden Text Animation */
.hidden-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0;
}

.hidden-text.show-text {
  max-height: 1000px;
  padding: 1.5rem 0;
}

/* Fade-in Animations - Optimized for mobile performance */
.fade-in,
.fade-in-auto,
.fade-in-buttons {
  opacity: 0;
  transform: translateY(20px) translateZ(0); /* GPU acceleration */
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  /* Reduce motion on mobile for better performance */
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-auto,
  .fade-in-buttons {
    transition: none;
  }
}

.fade-in.visible,
.fade-in-auto.visible,
.fade-in-buttons.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Additional Section-Specific Styling */
#services h1,
#our-work h1,
#lab h1,
#pricing h1,
#contact h1 {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
}

#services h1::after,
#our-work h1::after,
#lab h1::after,
#pricing h1::after,
#contact h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 2px;
}

/* DesignLab Section - Simple icon styling */
#lab .icon-large {
  color: var(--accent-blue);
}

#lab h3 i.icon-large {
  color: var(--accent-blue);
  display: block;
  margin: 0 auto 1rem;
}

/* Container spacing - Modern 2026 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Row spacing - Better breathing room */
.row {
  margin-bottom: 4rem;
}

.row:last-child {
  margin-bottom: 0;
}

/* Icon styling in cards */
.card h2 i.fa-brands,
.card h2 i.fas,
.card h2 i.fa-solid {
  color: var(--accent-blue);
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(100, 255, 218, 0.4));
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* Icon Large - DesignLab Section Icons */
.icon-large {
  color: var(--accent-blue);
  font-size: 1.5rem; /* Base size before scale */
  margin-bottom: 1rem;
  display: inline-block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(100, 255, 218, 0.3));
  transform: scale(2);
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
}

.icon-large:hover {
  color: var(--white) !important;
  transform: scale(2.2);
  filter: drop-shadow(0 6px 12px rgba(100, 255, 218, 0.5));
}

/* Ensure all Font Awesome icons are visible - minimal styling */
i.fa-brands,
i.fas,
i.far,
i.fal,
i.fad,
i.fa-solid,
i.fa-regular {
  color: var(--accent-blue);
}

/* Icons in h3 tags (DesignLab section) */
h3 i.icon-large,
h3 .icon-large {
  color: var(--accent-blue);
  display: block;
  margin: 0 auto 1rem;
}

/* DesignLab section icons - Very specific */
#lab h3 i,
#lab .col.text-center h3 i,
#lab .col h3 i.icon-large {
  color: var(--accent-blue) !important;
  display: block !important;
  margin: 0 auto 1rem !important;
  font-size: 3rem !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(2) !important;
  width: auto !important;
  height: auto !important;
}

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

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

/* Section content z-index - ensure content is above background */
section > .container,
section > div:not(.hero-background):not(.gradient-overlay):not(.grid-pattern) {
  position: relative;
  z-index: 1;
  overflow: visible; /* Ensure hover effects aren't clipped */
}

/* Modal updates for dark theme */
.modal-content {
  background: rgba(17, 34, 64, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(100, 255, 218, 0.2) !important;
  border-radius: 12px;
  color: var(--text-primary) !important;
}

.modal-header {
  border-bottom: 1px solid rgba(100, 255, 218, 0.2) !important;
}

.modal-title {
  color: var(--accent-blue) !important;
}

.modal-body {
  color: var(--text-secondary) !important;
}

.modal-footer {
  border-top: 1px solid rgba(100, 255, 218, 0.2) !important;
}

/* Select dropdown styling */
select.form-control {
  background: rgba(17, 34, 64, 0.6) !important;
  border: 2px solid rgba(100, 255, 218, 0.2) !important;
  color: var(--text-primary) !important;
  border-radius: 6px;
  padding: 0.875rem 1.25rem;
}

select.form-control:focus {
  background: rgba(17, 34, 64, 0.8) !important;
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 0.2rem rgba(100, 255, 218, 0.25);
}

/* Textarea styling */
textarea.form-control {
  background: rgba(17, 34, 64, 0.6) !important;
  border: 2px solid rgba(100, 255, 218, 0.2) !important;
  color: var(--text-primary) !important;
  border-radius: 6px;
  padding: 0.875rem 1.25rem;
  min-height: 120px;
  resize: vertical;
}

textarea.form-control:focus {
  background: rgba(17, 34, 64, 0.8) !important;
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 0.2rem rgba(100, 255, 218, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .hero-section {
    padding: 6rem 1rem 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  section {
    padding: 4rem 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .list-group-item {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

/* Section Titles - Modern 2026 Typography */
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 2px;
  z-index: 1;
}

/* AIStudio page - magenta section title underlines */
.aistudio-page .section-title::after,
.aistudio-page section .section-title::after,
.aistudio-page section h1.section-title::after,
.aistudio-page section h2.section-title::after,
.aistudio-page #services .section-title::after,
.aistudio-page #data-engineering .section-title::after,
.aistudio-page #use-cases .section-title::after,
.aistudio-page #why-aistudio .section-title::after,
.aistudio-page #contact .section-title::after {
  background: #d946ef !important;
}

/* AIStudio page - magenta card hover effects - unified for all cards */
.aistudio-page .card:hover,
.aistudio-page .card-wrapper .card:hover {
  border-color: rgba(217, 70, 239, 0.5) !important;
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(217, 70, 239, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.aistudio-page .card::before {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.08) 0%, transparent 50%);
}

.aistudio-page .service-feature:hover {
  border-color: rgba(217, 70, 239, 0.4) !important;
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(217, 70, 239, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.aistudio-page .service-feature::before {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.08) 0%, transparent 50%);
}

/* Data engineering visual containers - magenta hover effect matching service-feature */
.aistudio-page .data-visual-container:hover {
  border-color: rgba(217, 70, 239, 0.5) !important;
  transform: scale(1.02);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(217, 70, 239, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Service Features - Modern Glassmorphism */
.service-feature {
  padding: 3rem 2.5rem;
  background: rgba(17, 34, 64, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(100, 255, 218, 0.15);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.service-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-feature:hover {
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.service-icon {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.service-icon i {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-feature:hover .service-icon i {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white) !important;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.05rem;
  flex-grow: 1;
}

.service-feature .mt-4 {
  margin-top: auto !important;
  padding-top: 2rem;
  text-align: center;
  width: 100%;
}

.service-benefits {
  list-style: none;
  padding: 0;
}

.service-benefits li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

/* Tech Stack Section - Modern Typography */
.tech-stack-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.tech-stack-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
}

.tech-card-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  letter-spacing: -0.01em;
}

.tech-card-title i {
  font-size: 2.5rem;
  color: var(--accent-blue);
  filter: drop-shadow(0 4px 8px rgba(100, 255, 218, 0.3));
  transition: transform 0.3s ease;
}

.card:hover .tech-card-title i {
  transform: scale(1.1);
}

.tech-card-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* Approach Cards - Modern Design */
.approach-card {
  background: rgba(17, 34, 64, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.approach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.approach-card:hover {
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.15);
}

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

.approach-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.05em;
  transition: opacity 0.4s ease;
}

.approach-card:hover .approach-number {
  opacity: 0.25;
}

.approach-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.approach-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Project Types - Modern Grid */
.project-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-type-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(17, 34, 64, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(100, 255, 218, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  height: 100%;
}

.project-type-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-type-item:hover {
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.15);
}

.project-type-item:hover::before {
  opacity: 1;
}

.project-type-item h4 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  color: var(--white);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.project-type-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.875rem;
}

.project-type-item i {
  transition: transform 0.4s ease;
}

.project-type-item:hover i {
  transform: scale(1.15) rotate(5deg);
}

/* Process Flow - Visual Design */
.process-flow-wrapper {
  padding: 0;
  margin-bottom: 6rem;
}

.process-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white) !important;
  margin-bottom: 4rem;
  letter-spacing: -0.01em;
}

.process-flow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  padding: 2rem 0;
}

.process-step-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 220px;
}

.step-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(17, 34, 64, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 3px solid rgba(100, 255, 218, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(100, 255, 218, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.process-step-flow:hover .step-circle {
  border-color: var(--accent-blue);
  transform: scale(1.1);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(17, 34, 64, 0.6);
}

.step-number-flow {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(100, 255, 218, 0.4);
}

.step-content-flow {
  margin-top: 1.5rem;
  text-align: center;
  padding: 0 0.5rem;
}

.step-content-flow h3 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step-content-flow p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.875rem;
  margin: 0;
}

.flow-arrow {
  position: absolute;
  right: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.flow-arrow i {
  font-size: 1.5rem;
  color: var(--accent-blue);
  opacity: 0.6;
  filter: drop-shadow(0 2px 4px rgba(100, 255, 218, 0.3));
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

.process-step-flow:last-child .flow-arrow {
  display: none;
}

/* Responsive Process Flow */
@media (max-width: 1200px) {
  .process-flow {
    gap: 1.5rem;
  }
  
  .process-step-flow {
    min-width: 180px;
    max-width: 200px;
  }
  
  .step-circle {
    width: 90px;
    height: 90px;
  }
  
  .flow-arrow {
    right: -2rem;
    width: 40px;
    height: 40px;
  }
  
  .flow-arrow i {
    font-size: 1.25rem;
  }
}

@media (max-width: 992px) {
  .process-flow {
    flex-direction: column;
    gap: 3rem;
  }
  
  .flow-arrow {
    right: auto;
    top: auto;
    bottom: -2.5rem;
    transform: rotate(90deg);
  }
  
  .flow-arrow i {
    animation: arrowPulseVertical 2s ease-in-out infinite;
  }
  
  @keyframes arrowPulseVertical {
    0%, 100% {
      opacity: 0.6;
      transform: translateY(0);
    }
    50% {
      opacity: 1;
      transform: translateY(5px);
    }
  }
  
  .process-step-flow:last-child .flow-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .process-step-flow {
    min-width: 160px;
    max-width: 180px;
  }
  
  .step-circle {
    width: 80px;
    height: 80px;
  }
  
  .step-number-flow {
    font-size: 1.5rem;
  }
}

/* DesignLab Features - Clean Layout */
.designlab-features {
  padding: 0;
  margin-top: 4rem;
}

.features-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white) !important;
  margin-bottom: 4rem;
  letter-spacing: -0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(17, 34, 64, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-item:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-4px);
  background: rgba(17, 34, 64, 0.25);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(100, 255, 218, 0.1);
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-item i {
  transition: transform 0.3s ease;
  display: block;
  margin-bottom: 1rem;
}

.feature-item:hover i {
  transform: scale(1.1) rotate(3deg);
}

.feature-item h4 {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.feature-item p {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Pricing Cards - Ultra Modern */
.pricing-card {
  position: relative;
  text-align: center;
  padding: 3rem 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(17, 34, 64, 0.3);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(100, 255, 218, 0.5);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.2);
}

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

.pricing-card.featured {
  border: 2px solid var(--accent-blue);
  transform: scale(1.03);
  background: rgba(17, 34, 64, 0.5);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(100, 255, 218, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-card.featured::before {
  opacity: 0.3;
}

.pricing-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(100, 255, 218, 0.1);
  color: var(--accent-blue);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.pricing-badge.popular {
  background: var(--accent-blue);
  color: var(--primary-dark);
}

.pricing-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-features li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li i {
  color: var(--accent-blue);
  font-size: 0.875rem;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
#footer {
  background: rgba(10, 25, 47, 0.8);
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  padding: 3rem 0 1.5rem;
}

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

.footer-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

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

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

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

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

.footer-divider {
  border-color: rgba(100, 255, 218, 0.1);
  margin: 2rem 0 1.5rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Additional Modern Spacing */
section#services,
section#our-work,
section#lab,
section#pricing,
section#contact,
section#interview-prep,
section#tutoring,
section#career-development,
section#rates,
section#schedule {
  padding: 10rem 2rem;
}

@media (max-width: 992px) {
  section#services,
  section#our-work,
  section#lab,
  section#pricing,
  section#contact,
  section#interview-prep,
  section#tutoring,
  section#career-development,
  section#rates,
  section#schedule {
    padding: 6rem 1.5rem;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .project-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section#services,
  section#our-work,
  section#lab,
  section#pricing,
  section#contact,
  section#interview-prep,
  section#tutoring,
  section#career-development,
  section#rates,
  section#schedule {
    padding: 5rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-feature,
  .approach-card {
    padding: 2rem 1.5rem;
  }
  
  .process-step {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .project-types {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
    padding: 2.5rem 2rem;
  }
  
  .feature-grid {
    gap: 1.5rem;
  }
  
  .feature-item {
    padding: 2rem 1.5rem;
  }
}

/* Data Engineering Visual Sections */
.data-engineering-visual-section {
  position: relative;
}

.data-visual-container {
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(100, 255, 218, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.data-visual-container:hover {
  transform: scale(1.02);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(100, 255, 218, 0.5) !important;
}

.data-content {
  padding: 2rem 0;
}

/* Enhanced animations for large data flow elements */
.pulse-node-large {
  filter: drop-shadow(0 0 12px rgba(100, 255, 218, 0.8));
}

.flowing-data-large {
  filter: drop-shadow(0 0 8px rgba(100, 255, 218, 1));
}

.processing-node-large {
  filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.7));
}

.storage-layer-large {
  filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.6));
}

.data-block-large {
  filter: drop-shadow(0 0 6px rgba(100, 255, 218, 0.8));
}

.chart-bar-large {
  filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.7));
}

.trend-line-large {
  filter: drop-shadow(0 0 6px rgba(100, 255, 218, 0.6));
}

.data-point-large {
  filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.9));
}

.cluster-line-large {
  filter: drop-shadow(0 0 4px rgba(100, 255, 218, 0.5));
}

.query-arrow-large {
  filter: drop-shadow(0 0 6px rgba(100, 255, 218, 0.7));
}

/* Responsive adjustments for data engineering visuals */
@media (max-width: 992px) {
  .data-visual-container {
    height: 300px !important;
    margin-bottom: 2rem;
  }
  
  .data-content {
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  .data-visual-container {
    height: 250px !important;
  }
  
  .data-engineering-visual-section {
    margin: 2rem 0 !important;
    padding: 2rem 0 !important;
  }
  
  /* Reduce background animations on mobile for performance */
  body::after {
    background-size: 40px 40px;
    opacity: 0.3;
  }
  
  section::after {
    background-size: 50px 50px;
    opacity: 0.2;
  }
}

/* Interactive mouse tracking for background (optional enhancement) */
@media (hover: hover) and (pointer: fine) {
  section {
    --mouse-x: 50%;
    --mouse-y: 50%;
  }
}

/* Our Work / Portfolio Section */
.project-card {
  background: rgba(17, 34, 64, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(100, 255, 218, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.15);
}

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

.project-preview {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--primary-dark);
  border-radius: 20px 20px 0 0;
}

/* Mobile click indicator for project cards */
.project-preview::after {
  content: '↗';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(100, 255, 218, 0.95);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.5);
  pointer-events: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-dark);
  line-height: 36px;
  text-align: center;
}

.project-preview-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.project-card:hover .project-preview-inner {
  transform: scale(1.05);
}

/* Project Preview Gradients - Visual representation of each project */
.project-proximity {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

.project-proximity::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.project-lamb {
  background: linear-gradient(135deg, #0a192f 0%, #112240 50%, #f57c00 100%);
  position: relative;
}

.project-lamb::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 30%;
  background: rgba(245, 124, 0, 0.2);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(245, 124, 0, 0.3);
}

.project-revvy {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #6366f1 100%);
  position: relative;
}

.project-revvy::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 15%;
  width: 70%;
  height: 50%;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Mobile: Show overlay on tap and make card more obviously clickable */
@media (max-width: 768px) {
  .project-preview::after {
    display: flex;
  }
  
  .project-card {
    cursor: pointer;
    position: relative;
  }
  
  /* Hide overlay and buttons on mobile - corner icon indicates clickability */
  .project-overlay {
    display: none !important;
  }
  
  .project-link {
    display: none !important;
  }
}

.project-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(17, 34, 64, 0.8);
  border: 2px solid var(--accent-blue);
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-link:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.project-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
  font-size: 0.9375rem;
}

.project-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-tag {
  padding: 0.375rem 1rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 50px;
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments for project cards */
@media (max-width: 992px) {
  .project-preview {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .project-preview {
    height: 200px;
  }
  
  .project-info {
    padding: 1.5rem;
  }
  
  .project-name {
    font-size: 1.25rem;
  }
}

/* Template Showcase Section */
.template-card-wrapper {
  padding: 0.5rem;
  overflow: visible;
}

.template-card {
  background: rgba(17, 34, 64, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(100, 255, 218, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.template-card:hover {
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 255, 218, 0.15);
}

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

.template-preview {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--primary-dark);
  border-radius: 20px 20px 0 0;
}

/* Mobile click indicator for template cards */
.template-preview::after {
  content: '↗';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(100, 255, 218, 0.95);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.5);
  pointer-events: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-dark);
  line-height: 36px;
  text-align: center;
}

.template-preview-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.template-card:hover .template-preview-inner {
  transform: scale(1.05);
}

/* Template Preview Gradients - Visual representation of each template */
.template-1 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #a78bfa 100%);
  position: relative;
}

.template-1::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 60%;
  height: 30%;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.template-2 {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #e8e8e8 100%);
  position: relative;
}

.template-2::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 8px;
  background: #2c3e50;
  border-radius: 4px;
}

.template-3 {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
  position: relative;
}

.template-3::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 10%;
  width: 80%;
  height: 40%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.template-4 {
  background: linear-gradient(135deg, #1a365d 0%, #0f2540 50%, #d4af37 100%);
  position: relative;
}

.template-4::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 25%;
  height: 80%;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 8px;
}

.template-5 {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #ff6b6b 100%);
  position: relative;
}

.template-5::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: rgba(255, 107, 107, 0.15);
  border-radius: 20px;
  transform: rotate(-5deg);
}

.template-6 {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #f59e0b 100%);
  position: relative;
}

.template-6::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 10%;
  width: 80%;
  height: 20%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.template-7 {
  background: linear-gradient(135deg, #1a1612 0%, #0a0a0a 50%, #c9a961 100%);
  position: relative;
}

.template-7::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 80%;
  height: 30%;
  background: rgba(201, 169, 97, 0.2);
  border-radius: 15px;
}

.template-8 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #6366f1 100%);
  position: relative;
}

.template-8::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.template-9 {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #d4af37 100%);
  position: relative;
}

.template-9::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 70%;
  height: 60%;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 10px;
}

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

/* Mobile: Show overlay on tap and make card more obviously clickable */
@media (max-width: 768px) {
  .template-preview::after {
    display: flex;
  }
  
  .template-card {
    cursor: pointer;
    position: relative;
  }
  
  /* Hide overlay and buttons on mobile - corner icon indicates clickability */
  .template-overlay {
    display: none !important;
  }
  
  .template-link {
    display: none !important;
  }
}

.template-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(17, 34, 64, 0.8);
  border: 2px solid var(--accent-blue);
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.template-link:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.template-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.template-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.template-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
  font-size: 0.9375rem;
}

.template-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.template-tag {
  padding: 0.375rem 1rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 50px;
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments for template showcase */
@media (max-width: 992px) {
  .template-preview {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .template-preview {
    height: 200px;
  }
  
  .template-info {
    padding: 1.5rem;
  }
  
  .template-name {
    font-size: 1.25rem;
  }
}

