/* ===== FEROCITY LABS - Light Futuristic Theme ===== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #fafbfc;
  --bg-secondary: #f1f3f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fc;
  --border: #e2e5ec;
  --border-hover: #f97316;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #8892a4;
  --gradient-primary: linear-gradient(135deg, #f97316, #f59e0b, #eab308);
  --gradient-warm: linear-gradient(135deg, #f97316, #ef4444);
  --gradient-mixed: linear-gradient(135deg, #f97316, #8b5cf6);
  --accent-orange: #f97316;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ea580c; }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-orange);
  margin-bottom: 12px;
  display: block;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.nav-logo img { width: 40px; height: 40px; }

.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--gradient-primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: opacity var(--transition), transform var(--transition);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); color: #fff !important; }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.35);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.06);
  color: var(--text-primary);
}

.btn-ghost {
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent-orange);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.btn-ghost:hover {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--bg-primary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 55%;
  height: 110%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 45%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 24px; max-width: 700px; }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat h3 {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* --- Grid Background --- */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* --- Featured Grid --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.featured-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.08);
}

.featured-card-img {
  height: 200px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card-img .placeholder-icon { font-size: 3rem; opacity: 0.3; }

.featured-card-body { padding: 28px; }

.featured-card-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-purple { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.tag-blue { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.tag-cyan { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.tag-orange { background: rgba(249, 115, 22, 0.1); color: #ea580c; }
.tag-green { background: rgba(34, 197, 94, 0.1); color: #16a34a; }

.featured-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.featured-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

.featured-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.featured-card-status {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-active { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.status-completed { background: #3b82f6; }
.status-planning { background: #f59e0b; }

/* --- Process / How it works --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 32px 20px;
}

.process-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--text-secondary); font-size: 0.9rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #fff7ed, #fffbeb, #fefce8);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 16px; position: relative; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-banner .btn { position: relative; }

/* --- Footer --- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 280px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-socials { display: flex; gap: 16px; }

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 0.85rem;
}

.footer-socials a:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* --- Forms --- */
.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition);
}

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

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

.form-group select option { background: #fff; color: var(--text-primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.form-card h3 { margin-bottom: 8px; }
.form-card > p { color: var(--text-secondary); margin-bottom: 32px; }

/* File upload */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.file-upload:hover { border-color: var(--accent-orange); background: rgba(249, 115, 22, 0.02); }
.file-upload p { color: var(--text-muted); font-size: 0.9rem; }
.file-upload .upload-icon { font-size: 2rem; margin-bottom: 8px; display: block; }

/* --- Page Header --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--bg-primary) 100%);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at top, rgba(249, 115, 22, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 { margin-bottom: 16px; position: relative; }
.page-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; position: relative; font-size: 1.1rem; }

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.06);
}

/* --- Job Listings --- */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.job-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.job-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.job-meta span { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 4px; }

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

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

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible { opacity: 1; transform: translateY(0); }

/* --- Tech ticker --- */
.tech-ticker {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.6;
  white-space: nowrap;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .cta-banner { padding: 40px 24px; }

  .job-card { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 640px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .process-grid { grid-template-columns: 1fr; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* --- Selection --- */
::selection { background: rgba(249, 115, 22, 0.2); color: var(--text-primary); }
