body {
  box-sizing: border-box;
}

:root {
  --bg-primary: #FAF9F6; /* soft warm off-white */
  --bg-secondary: #F5F5F0; /* very light stone-grey */
  --accent-blue: #3B82F6; /* modern blue */
  --accent-charcoal: #2D2D2D; /* deep charcoal for accents */
  --text-primary: #1A1A1A; /* deep charcoal for headlines */
  --text-muted: #4A4A4A; /* neutral dark grey for body text */
  --gradient-light-grey: #E8E8E8; /* light grey for gradients */
  --gradient-soft-grey: #A0A0A0; /* soft grey for depth */
}

/* Global Enhancements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(173, 181, 189, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(108, 117, 125, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(206, 212, 218, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: ambientGlow 20s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* Animated Background Grain */
/* body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, -10%); }
  90% { transform: translate(-10%, 25%); }
} */

/* Glassmorphism Utility */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100%;
}

.app-wrapper {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gradient-light-grey), var(--gradient-soft-grey));
  border-radius: 4px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.cta-btn {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-charcoal));
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(206, 212, 218, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(173, 181, 189, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(108, 117, 125, 0.1) 0%, transparent 60%);
  z-index: 0;
  animation: heroBgShift 15s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(10px) translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-blue);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(237, 237, 237, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  position: relative;
  cursor: default;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.hero-title:hover::before {
  transform: translateX(100%);
}

.hero-cta {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-cta .cta-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.hero-cta .cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-cta .cta-btn:active::before {
  width: 300px;
  height: 300px;
}

.hero-subtext {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

/* Floating Particles */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(206, 212, 218, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(173, 181, 189, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(108, 117, 125, 0.08) 0%, transparent 50%);
  animation: floatParticles 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatParticles {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats Ticker */
.ticker {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(45, 45, 45, 0.1), rgba(59, 130, 246, 0.1));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ticker-item::before {
  content: '◆';
  color: var(--accent-blue);
  margin-right: 1rem;
  font-size: 0.6rem;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Expertise Section */
.expertise {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.expertise-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.4s ease;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: transform 0.4s ease;
}

.expertise-card:hover .card-bg {
  transform: scale(1.1);
}

.card-bg-1 {
  background:
    linear-gradient(135deg, rgba(206, 212, 218, 0.3), rgba(173, 181, 189, 0.2)),
    repeating-conic-gradient(from 0deg, #f8f9fa 0deg 90deg, #e9ecef 90deg 180deg);
  background-size: 100% 100%, 50px 50px;
}

.card-bg-2 {
  background:
    linear-gradient(135deg, rgba(108, 117, 125, 0.2), rgba(206, 212, 218, 0.3)),
    repeating-linear-gradient(45deg, #f8f9fa 0px, #f8f9fa 10px, #e9ecef 10px, #e9ecef 20px);
}

.card-bg-3 {
  background:
    linear-gradient(135deg, rgba(173, 181, 189, 0.3), rgba(108, 117, 125, 0.2)),
    repeating-radial-gradient(circle at 50% 50%, #f8f9fa 0px, #e9ecef 20px);
}

.card-bg-4 {
  background:
    linear-gradient(135deg, rgba(206, 212, 218, 0.2), rgba(173, 181, 189, 0.3)),
    repeating-linear-gradient(-45deg, #f8f9fa 0px, #f8f9fa 10px, #e9ecef 10px, #e9ecef 20px);
}

.card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
  color: var(--text-primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.expertise-card:hover .card-icon {
  background: rgba(184, 134, 11, 0.2);
  transform: scale(1.1);
}

.card-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent-blue);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-hover-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  pointer-events: none;
}

.expertise-card:hover .card-hover-border {
  border-color: var(--accent-blue);
  box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.1);
}

/* Community Section */
.community {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(206, 212, 218, 0.1), rgba(173, 181, 189, 0.08), rgba(108, 117, 125, 0.05));
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.community-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.community-text {
  flex: 1;
  min-width: 300px;
}

.community-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.community-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.community-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-input {
  flex: 1;
  min-width: 150px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.form-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-charcoal));
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-center {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.location-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Text Reveal */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(2px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Card Reveal */
.reveal-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered Animation Classes */
.reveal-stagger-1 { transition-delay: 0ms; }
.reveal-stagger-2 { transition-delay: 120ms; }
.reveal-stagger-3 { transition-delay: 240ms; }
.reveal-stagger-4 { transition-delay: 360ms; }

/* Mobile optimizations for scroll animations */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(30px);
    transition-duration: 0.6s;
  }

  .reveal-text {
    transform: translateY(15px);
    filter: blur(1px);
    transition-duration: 0.5s;
  }

  .reveal-card {
    transform: translateY(30px) scale(0.97);
    transition-duration: 0.6s;
  }

  .reveal-stagger-1 { transition-delay: 0ms; }
  .reveal-stagger-2 { transition-delay: 100ms; }
  .reveal-stagger-3 { transition-delay: 200ms; }
  .reveal-stagger-4 { transition-delay: 300ms; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-text,
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .reveal-stagger-1,
  .reveal-stagger-2,
  .reveal-stagger-3,
  .reveal-stagger-4 {
    transition-delay: 0ms !important;
  }
}

/* Micro-interactions */
.nav-link:hover {
  text-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

.cta-btn:hover {
  text-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.social-icon:hover {
  box-shadow: 0 5px 15px rgba(184, 134, 11, 0.2);
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile performance */
@media (max-width: 768px) {
  body::before,
  body::after {
    display: none;
  }

  .hero-bg {
    animation: none;
  }

  .hero::after {
    display: none;
  }
}

/* Mobile Navbar */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
  }

  .mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
  }

  .mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
  }

  .mobile-menu .nav-link {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin: 1rem 0;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
  }

  .mobile-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
  .mobile-menu.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
  .mobile-menu.active .nav-link:nth-child(4) { transition-delay: 0.4s; }

  .mobile-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-charcoal));
    transition: width 0.3s ease;
  }

  .mobile-menu .nav-link:hover::after,
  .mobile-menu .nav-link:focus::after {
    width: 100%;
  }

  .mobile-menu .cta-btn {
    margin-top: 2rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    min-height: 50px;
    min-width: 200px;
  }

  .close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Mobile UI Enhancements */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 3rem;
    min-height: 100vh;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .hero-cta .cta-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    min-height: 50px;
    width: 100%;
    max-width: 300px;
  }

  .expertise {
    padding: 4rem 1.5rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .expertise-card {
    aspect-ratio: 4/3;
  }

  .card-icon {
    width: 70px;
    height: 70px;
  }

  .card-icon svg {
    width: 35px;
    height: 35px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .community-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .community-form {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  .form-input {
    min-height: 50px;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .form-btn {
    min-height: 50px;
    font-size: 1.1rem;
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .cta-btn:active {
    transform: scale(0.98);
  }

  .expertise-card:active {
    transform: translateY(-4px);
  }

  .social-icon:active {
    transform: scale(0.95);
  }

  .nav-link:active {
    color: var(--accent-gold);
  }
}

/* Navigation active state indicator */
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-gold);
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: 7rem 2rem 4rem;
  }

  .expertise {
    padding: 5rem 2rem;
  }

  .expertise-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Technology Foundations Marquee */
.tech-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.marquee-content {
  display: flex;
  animation: scroll-left 40s linear infinite;
  width: calc(200px * 20); /* Adjust based on logo count */
}

.marquee-content:hover {
  animation-play-state: paused;
}

.tech-logo {
  width: 80px;
  height: 80px;
  margin: 0 2rem;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tech-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.tech-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tech-logo {
    width: 60px;
    height: 60px;
    margin: 0 1rem;
  }

  .marquee-content {
    width: calc(60px * 20);
  }
}

@view-transition { navigation: auto; }
