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

:root {
  --primary: #d32629;
  --primary-light: #e63946;
  --accent: #d32629;
  --accent-hover: #b01c1e;
  --dark: #000000;
  --gray: #5a5b5e;
  --glass: rgba(255,255,255,0.08);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { 
  font-family: 'Inter', sans-serif; 
  overflow-x: hidden; 
  width: 100%;
  position: relative;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(40px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity:0; transform:translateX(-40px); }
  to { opacity:1; transform:translateX(0); }
}
@keyframes fadeInRight {
  from { opacity:0; transform:translateX(40px); }
  to { opacity:1; transform:translateX(0); }
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-12px); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow:0 0 20px rgba(211,38,41,0.3); }
  50% { box-shadow:0 0 40px rgba(211,38,41,0.6); }
}
@keyframes slideDown {
  from { opacity:0; transform:translateY(-20px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes countUp {
  from { opacity:0; transform:scale(0.5); }
  to { opacity:1; transform:scale(1); }
}
@keyframes shimmer {
  0% { background-position:-200% center; }
  100% { background-position:200% center; }
}
@keyframes blob {
  0%,100% { border-radius:60% 40% 30% 70%/60% 30% 70% 40%; }
  50% { border-radius:30% 60% 70% 40%/50% 60% 30% 60%; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero-gradient {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 40%, #1a1a1a 60%, #000000 100%);
}
.hero-blob {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(211,38,41,0.15), transparent 70%);
  animation: blob 8s ease-in-out infinite;
  filter: blur(40px);
}

/* Glass card */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
}
.glass-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(211,38,41,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Specialization cards */
.spec-card {
  background: white;
  border: 1px solid #f4f4f5;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), #000000);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.spec-card:hover::before { transform: scaleX(1); }
.spec-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}

/* Feature cards */
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid #f4f4f5;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  border-color: rgba(211,38,41,0.2);
}
.feature-icon {
  width: 70px; height: 70px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  transition: all 0.4s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(211,38,41,0.3);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.2);
  color: white;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-outline:hover {
  background: white;
  color: var(--dark);
  border-color: white;
  transform: translateY(-3px);
}

/* Stats counter */
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ff4d4f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav-scrolled {
  background: rgba(0,0,0,0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Badge ribbon */
.badge-ribbon {
  background: linear-gradient(135deg, var(--dark), var(--gray));
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Form */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(211,38,41,0.1);
  background: white;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #18181b; }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* FAQ */
.faq-item { border-bottom: 1px solid #e4e4e7; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  gap: 3rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

/* Responsive Overrides */
@media (max-width: 768px) {
  .stat-number { font-size: 2.2rem; }
  .hero-blob { width: 300px; height: 300px; }
}
