/* ==============================================
   EPIC AI - Premium UI Upgrade
   Apple/Tesla inspired design system
   ============================================== */

/* ---------- Updated Color System ---------- */
:root {
  /* Core colors */
  --bg: #030712;
  --bg2: #0a0f1a;
  --card: #111827;
  --card-hover: #1f2937;
  --card-soft: #0d1424;

  /* Text */
  --text: #f9fafb;
  --text-secondary: #9ca3af;
  --muted: #6b7280;

  /* Orange accent (primary) */
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.4);

  /* Supporting accents */
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(249,115,22,0.1) 0%, rgba(249,115,22,0.02) 100%);
  --gradient-dark: linear-gradient(180deg, #030712 0%, #111827 100%);
  --gradient-radial: radial-gradient(ellipse at top, rgba(249,115,22,0.15) 0%, transparent 50%);

  /* Effects */
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(32px);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(249,115,22,0.3);
}

/* ---------- Base Enhancements ---------- */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Force no horizontal overflow on all containers */
html {
  overflow-x: hidden;
}

*, *::before, *::after {
  max-width: 100%;
}

/* Animated gradient background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249,115,22,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(251,146,60,0.08) 0%, transparent 40%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(16,185,129,0.06) 0%, transparent 40%),
    var(--bg);
  z-index: -1;
  animation: gradientShift 20s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Noise texture overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Typography Upgrades ---------- */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Giant hero text */
.hero-title {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fff 0%, #f97316 50%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
  margin: 16px auto 32px;
}

/* ---------- Premium Card System ---------- */

.premium-card {
  position: relative;
  background: linear-gradient(135deg, rgba(17,24,39,0.8) 0%, rgba(17,24,39,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: var(--blur-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249,115,22,0.3) 0%, transparent 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249,115,22,0.2);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

/* Glowing accent line at top */
.premium-card.accent-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: all 0.4s ease;
}

.premium-card.accent-top:hover::after {
  opacity: 1;
  width: 80%;
}

/* ---------- Premium Buttons ---------- */

.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md), 0 0 20px rgba(249,115,22,0.3);
  text-decoration: none !important;
}

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

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(249,115,22,0.4);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid rgba(249,115,22,0.5);
  color: var(--accent);
  box-shadow: none;
  text-decoration: none !important;
}

.btn-outline:hover {
  background: rgba(249,115,22,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(249,115,22,0.2);
  text-decoration: none !important;
}

/* Remove underlines from all buttons and links in hero */
a.btn-premium,
a.btn-outline,
.service-card,
.case-study-card,
.nav a,
.footer a {
  text-decoration: none !important;
}

a.btn-premium:hover,
a.btn-outline:hover {
  text-decoration: none !important;
}

/* ---------- Scroll Reveal Animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Slide in from sides */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Premium Service Cards ---------- */

.service-card {
  position: relative;
  background: rgba(17,24,39,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(249,115,22,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 60px rgba(249,115,22,0.15);
}

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

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 32px;
  transition: all 0.4s ease;
  color: var(--accent);
}

.service-icon svg {
  stroke: var(--accent);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(249,115,22,0.08));
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(249,115,22,0.2);
}

.service-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Case Study Cards ---------- */

.case-study-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,7,18,0.95) 0%, rgba(3,7,18,0.4) 50%, transparent 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}

.case-study-card:hover img {
  transform: scale(1.08);
}

.case-study-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.case-study-card:hover .case-study-content {
  transform: translateY(0);
}

.case-study-tag {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-card h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: #fff;
}

.case-study-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
}

.case-study-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Stats Section ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 32px 0;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(17,24,39,0.4);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.2);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Section Dividers ---------- */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.3), transparent);
  margin: 48px 0;
}

@media (max-width: 768px) {
  .section-divider {
    margin: 32px 0;
  }
}

/* ---------- Floating Elements ---------- */

.float-element {
  animation: float 6s ease-in-out infinite;
}

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

.float-slow {
  animation-duration: 8s;
}

.float-delayed {
  animation-delay: 2s;
}

/* ---------- Glowing Orbs (Background decoration) ---------- */

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite alternate;
}

.glow-orb.orange {
  background: var(--accent);
}

.glow-orb.green {
  background: var(--accent-green);
}

@keyframes pulse {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.1); }
}

/* ---------- Premium Navigation ---------- */

.nav-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(3,7,18,0.8);
  backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.nav-premium.scrolled {
  padding: 12px 0;
  background: rgba(3,7,18,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ---------- Footer Premium ---------- */

.footer-premium {
  background: linear-gradient(180deg, var(--bg) 0%, #000 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 80px 0 40px;
  margin-top: 120px;
}

/* ---------- Loading States ---------- */

.skeleton {
  background: linear-gradient(90deg, var(--card) 0%, var(--card-hover) 50%, var(--card) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Interactive Elements ---------- */

.interactive-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-hover:hover {
  transform: translateY(-2px);
}

.interactive-hover:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Testimonial Cards ---------- */

.testimonial-card {
  background: rgba(17,24,39,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.testimonial-info h4 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.testimonial-info p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Feature Grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(17,24,39,0.4);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(17,24,39,0.6);
  border-color: rgba(249,115,22,0.15);
  transform: translateX(4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 12px;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-text h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}

.feature-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Responsive Adjustments ---------- */

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

  .premium-card {
    padding: 20px;
    border-radius: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-item {
    padding: 16px 12px;
  }

  /* Reduce section padding on mobile */
  .section {
    padding: 24px 0 !important;
  }

  /* Fix container padding */
  .container {
    padding: 0 12px;
  }

  /* Reduce hero padding */
  section[style*="padding: 100px"] {
    padding-top: 60px !important;
    padding-bottom: 24px !important;
  }

  /* Fix form padding */
  .form-premium {
    padding: 24px;
  }

  /* Fix feature grid for mobile */
  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .feature-item {
    padding: 16px;
  }

  /* Fix glow orbs from causing overflow */
  .glow-orb {
    display: none;
  }
}

/* ---------- Custom Scrollbar ---------- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(249,115,22,0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- Selection Color ---------- */

::selection {
  background: rgba(249,115,22,0.3);
  color: #fff;
}

/* ---------- Pricing Cards ---------- */

.pricing-card {
  background: rgba(17,24,39,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249,115,22,0.2);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

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

.pricing-card.featured {
  border-color: rgba(249,115,22,0.3);
  background: linear-gradient(135deg, rgba(249,115,22,0.08) 0%, rgba(17,24,39,0.8) 100%);
}

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

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pricing-header h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--accent);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.pricing-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Service Card Large ---------- */

.service-card-large {
  padding: 48px 40px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.service-card-large h2 {
  font-size: 28px;
  margin: 16px 0 12px;
  color: var(--text);
}

.service-card-large p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-tag {
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.service-card-large:hover .feature-tag {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ---------- Team Cards ---------- */

.team-card {
  background: rgba(17,24,39,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249,115,22,0.2);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
}

.team-card h3 {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--text);
}

.team-role {
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 16px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Contact Form Premium ---------- */

.form-premium {
  background: rgba(17,24,39,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 48px;
}

.form-premium input,
.form-premium textarea,
.form-premium select {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
}

.form-premium input:focus,
.form-premium textarea:focus,
.form-premium select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.form-premium label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-field {
  margin-bottom: 24px;
}

/* Interest tags */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-tag {
  padding: 10px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 25px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.interest-tag:hover,
.interest-tag.selected {
  background: rgba(249,115,22,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.interest-tag input {
  display: none;
}

/* ---------- Menu Page Premium ---------- */

.menu-card-premium {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}

.nav-list-premium .nav-list-item {
  background: rgba(17,24,39,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.nav-list-premium .nav-list-item:hover {
  background: rgba(17,24,39,0.6);
  border-color: rgba(249,115,22,0.2);
  transform: translateX(4px);
}

.nav-list-premium .nav-list-item.primary {
  background: var(--gradient-primary);
  border: none;
}

.nav-list-premium .nav-list-item.primary:hover {
  transform: translateX(4px) scale(1.02);
}

/* ---------- Modern Menu Page ---------- */

.menu-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient-primary);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 32px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.3);
}

.menu-cta-content h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #020512;
  font-weight: 700;
}

.menu-cta-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(2, 5, 18, 0.7);
}

.menu-cta-arrow {
  font-size: 24px;
  color: #020512;
  font-weight: 600;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  text-align: center;
}

.menu-item:hover {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

.menu-item svg {
  color: var(--accent);
}

.menu-item span {
  font-size: 14px;
  font-weight: 500;
}

.menu-section {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.menu-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 600;
}

.menu-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.menu-service {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu-service:hover {
  background: rgba(3, 7, 18, 0.8);
  border-color: rgba(249, 115, 22, 0.2);
  transform: translateX(4px);
}

.menu-service-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-service-icon svg {
  color: var(--accent);
}

.menu-service h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.menu-service p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.menu-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.menu-login:hover {
  border-color: var(--accent);
  color: var(--text);
}

.menu-login span {
  margin-left: auto;
}

@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-services-grid {
    grid-template-columns: 1fr;
  }

  .menu-cta-card {
    padding: 24px;
  }
}

/* ---------- Case Studies Grid ---------- */

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-study-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.case-study-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--card);
}

.case-study-content {
  padding: 24px;
}

.case-study-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.case-study-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.case-study-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-study-card img {
    height: 160px;
  }

  .case-study-content {
    padding: 20px;
  }
}

/* Force single column on smaller screens */
@media (max-width: 500px) {
  .case-studies-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

/* Two-column responsive grid */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Services Showcase ---------- */

.services-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-showcase-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 32px;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-showcase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-showcase-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

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

.service-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.service-showcase-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-showcase-icon svg {
  stroke: var(--accent);
}

.service-showcase-arrow {
  font-size: 24px;
  color: var(--muted);
  transition: all 0.3s ease;
}

.service-showcase-card:hover .service-showcase-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.service-showcase-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.service-showcase-card > p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.service-showcase-list li {
  padding: 8px 0;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.service-showcase-list li:last-child {
  border-bottom: none;
}

.service-showcase-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* How We Work Grid */
.how-we-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.how-item {
  text-align: center;
  padding: 24px;
}

.how-number {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.how-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.how-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .services-showcase {
    grid-template-columns: 1fr;
  }

  .how-we-work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .how-we-work-grid {
    grid-template-columns: 1fr;
  }

  .service-showcase-card {
    padding: 24px;
  }
}
