/* ================================================================
   AnimaSystems — Main Stylesheet
   Theme: Dark (Black + Red + White)
   ================================================================ */

/* ========== CSS VARIABLES ========== */
:root {
  --bg: #080808;
  --bg-2: #0d0d0d;
  --bg-card: #111111;
  --bg-card-2: #161616;
  --red: #e63946;
  --red-dark: #b52a36;
  --red-light: #ff6b6b;
  --red-glow: rgba(230, 57, 70, 0.18);
  --red-subtle: rgba(230, 57, 70, 0.07);
  --white: #ffffff;
  --text: #ececec;
  --text-2: #9a9a9a;
  --text-3: #5a5a5a;
  --border: rgba(255,255,255,0.06);
  --border-red: rgba(230,57,70,0.22);
  --border-red-h: rgba(230,57,70,0.55);
  --nav-h: 68px;
  --max-w: 1240px;
  --r: 10px;
  --r-lg: 18px;
  --ease: cubic-bezier(0.4,0,0.2,1);
}

/* ========== RESET / BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; line-height: 1.2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }

/* ========== UTILITIES ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.section-title span { color: var(--red); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230,57,70,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230,57,70,0.45);
}

.btn-outline {
  border: 1px solid var(--border-red-h);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--red-subtle);
  border-color: var(--red);
  transform: translateY(-2px);
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--red-subtle);
  color: var(--red-light);
  border: 1px solid var(--border-red);
  letter-spacing: 0.04em;
}

/* ========== FADE-IN ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ================================================================
   NAVIGATION
   ================================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,8,8,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
#navbar.scrolled {
  background: rgba(8,8,8,0.96);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-brand .brand-accent { color: var(--red); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link i { font-size: 0.65rem; transition: transform 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-link.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  margin-left: 6px;
}
.nav-link.nav-cta:hover { background: var(--red-dark); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 8px 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-item:hover > .nav-link i { transform: rotate(180deg); }

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-2);
  border-radius: 6px;
  transition: all 0.15s;
}
.dropdown-menu a:hover { color: var(--white); background: var(--red-subtle); padding-left: 16px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================================
   HERO SECTION
   ================================================================ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(230,57,70,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(230,57,70,0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230,57,70,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,57,70,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 25s linear infinite;
}
@keyframes gridScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-light);
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 50px;
  padding: 7px 18px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s var(--ease) both;
}
.hero-badge i { font-size: 0.7rem; }

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s var(--ease) both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.2s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s var(--ease) both;
}

.hero-visual {
  position: relative;
  animation: fadeUp 0.9s 0.2s var(--ease) both;
}

.hero-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.hero-card-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red { background: #e74c3c; }
.dot-yellow { background: #f1c40f; }
.dot-green { background: #2ecc71; }

.code-block {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--text-2);
}
.code-block .c-red { color: #ff6b6b; }
.code-block .c-green { color: #6bcb77; }
.code-block .c-blue { color: #74b9ff; }
.code-block .c-purple { color: #a29bfe; }
.code-block .c-orange { color: #fdcb6e; }
.code-block .c-comment { color: #555; }

.hero-floats {
  position: absolute;
  top: -16px;
  right: -16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-float-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-red);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  animation: floatBounce 3s ease-in-out infinite;
}
.hero-float-chip:nth-child(2) { animation-delay: 0.5s; }
.hero-float-chip:nth-child(3) { animation-delay: 1s; }
.hero-float-chip i { color: var(--red); }

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 20px;
}
.hero-stat {
  background: var(--bg-card);
  padding: 14px 10px;
  text-align: center;
}
.hero-stat .stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}
.hero-stat .stat-num span { color: var(--red); }
.hero-stat .stat-label { font-size: 0.7rem; color: var(--text-3); margin-top: 2px; }

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

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg);
  filter: brightness(0.85) contrast(1.1);
}
.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-red);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.about-image-badge .badge-icon {
  width: 44px; height: 44px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--red);
  flex-shrink: 0;
}
.about-image-badge .badge-text strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--white); }
.about-image-badge .badge-text span { font-size: 0.75rem; color: var(--text-2); }

.about-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.about-tab {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.about-tab.active { color: var(--white); border-bottom-color: var(--red); }
.about-tab:hover:not(.active) { color: var(--text); }

.about-tab-content { display: none; }
.about-tab-content.active { display: block; }
.about-tab-content p { color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-icon {
  width: 32px; height: 32px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feature p { font-size: 0.88rem; color: var(--text-2); }
.about-feature strong { color: var(--text); display: block; font-size: 0.92rem; margin-bottom: 2px; }

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-subtle) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: var(--border-red-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border-red);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red);
  margin-bottom: 18px;
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 16px var(--red-glow);
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.service-desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.2s;
}
.service-card:hover .service-link { gap: 10px; }

/* ================================================================
   AI SOLUTIONS SECTION
   ================================================================ */
.ai-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}
.ai-hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--r-lg);
  filter: brightness(0.8) saturate(0.9);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}
.ai-hero-text .section-subtitle { max-width: 100%; }
.ai-hero-text .btn { margin-top: 28px; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: all 0.3s var(--ease);
}
.ai-card:hover {
  border-color: var(--border-red-h);
  transform: translateY(-3px);
  background: var(--bg-card-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px var(--red-glow);
}
.ai-card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: block;
}
.ai-card-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.ai-card-desc { font-size: 0.82rem; color: var(--text-2); line-height: 1.7; }

/* ================================================================
   INDUSTRIES SECTION
   ================================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  position: relative;
  height: 260px;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.industry-card:hover { transform: scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,0.6); }

.industry-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  filter: brightness(0.55) saturate(0.8);
}
.industry-card:hover img { transform: scale(1.06); filter: brightness(0.4) saturate(0.7); }

.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  transition: all 0.3s;
}
.industry-card:hover .industry-overlay {
  background: linear-gradient(0deg, rgba(8,8,8,0.98) 0%, rgba(230,57,70,0.12) 50%, transparent 100%);
}

.industry-icon {
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 8px;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s var(--ease);
}
.industry-card:hover .industry-icon { transform: translateY(0); opacity: 1; }

.industry-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.industry-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.industry-card:hover .industry-desc { max-height: 60px; }

/* ================================================================
   PORTFOLIO SECTION
   ================================================================ */
.portfolio-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.portfolio-card:hover {
  border-color: var(--border-red-h);
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}

.portfolio-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.portfolio-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  filter: brightness(0.75);
}
.portfolio-card:hover .portfolio-image img { transform: scale(1.05); filter: brightness(0.6); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(230,57,70,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .view-btn {
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transform: scale(0.7);
  transition: transform 0.3s var(--ease);
}
.portfolio-card:hover .portfolio-overlay .view-btn { transform: scale(1); }

.portfolio-body { padding: 24px; }
.portfolio-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.portfolio-title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.portfolio-desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.portfolio-metric { font-size: 0.8rem; color: var(--text-2); }
.portfolio-metric strong { color: var(--red); font-size: 1.1rem; font-weight: 800; }

/* ================================================================
   TECHNOLOGIES SECTION
   ================================================================ */
.tech-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tech-tab {
  padding: 9px 22px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.tech-tab.active, .tech-tab:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.tech-panel { display: none; }
.tech-panel.active { display: block; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.25s var(--ease);
  cursor: default;
}
.tech-item:hover {
  border-color: var(--border-red);
  background: var(--bg-card-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.tech-item img { width: 40px; height: 40px; object-fit: contain; margin: 0 auto 10px; }
.tech-item .tech-name { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.tech-item:hover .tech-name { color: var(--white); }

/* ================================================================
   PROCESS SECTION
   ================================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red), var(--red), var(--border-red), transparent);
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}

.step-number-wrap {
  position: relative;
  width: 72px; height: 72px;
  margin: 0 auto 24px;
}
.step-circle {
  width: 72px; height: 72px;
  background: var(--bg-card);
  border: 2px solid var(--border-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}
.process-step:hover .step-circle {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 6px var(--red-glow);
}
.step-icon {
  position: absolute;
  top: -8px; right: -8px;
  width: 28px; height: 28px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(230,57,70,0.5);
  z-index: 3;
}

.step-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step-desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; }

/* ================================================================
   BLOG SECTION
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.blog-card.featured .blog-image { height: 280px; }
.blog-image { height: 180px; overflow: hidden; flex-shrink: 0; }
.blog-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  filter: brightness(0.8);
}
.blog-card:hover .blog-image img { transform: scale(1.06); }

.blog-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.blog-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.2s;
}
.blog-card:hover .blog-title { color: var(--red-light); }
.blog-card.featured .blog-title { font-size: 1.25rem; }
.blog-excerpt { font-size: 0.83rem; color: var(--text-2); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-3);
}
.blog-author { display: flex; align-items: center; gap: 8px; }
.blog-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-red);
}
.blog-date { color: var(--text-3); }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 12px;
  transition: gap 0.2s;
}
.blog-card:hover .blog-read-more { gap: 10px; }

/* ================================================================
   CAREERS SECTION
   ================================================================ */
.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.careers-culture h3 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.careers-culture p { color: var(--text-2); line-height: 1.8; margin-bottom: 20px; }

.careers-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.benefit-item i { color: var(--red); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.benefit-item p { font-size: 0.84rem; color: var(--text-2); }
.benefit-item strong { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 2px; }

.careers-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--r);
  filter: brightness(0.7);
  margin-bottom: 24px;
}

.jobs-list { display: flex; flex-direction: column; gap: 12px; }

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.job-card:hover {
  border-color: var(--border-red-h);
  background: var(--bg-card-2);
  transform: translateX(4px);
}
.job-info {}
.job-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--red-subtle);
  color: var(--red-light);
  border: 1px solid var(--border-red);
}
.job-action {
  width: 36px; height: 36px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s;
}
.job-card:hover .job-action {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.contact-info > p { color: var(--text-2); line-height: 1.8; margin-bottom: 32px; }

.contact-items { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: var(--border-red); }
.contact-item .ci-icon {
  width: 42px; height: 42px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item .ci-label { font-size: 0.75rem; color: var(--text-3); font-weight: 500; margin-bottom: 2px; }
.contact-item .ci-value { font-size: 0.9rem; color: var(--text); font-weight: 600; }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social-link {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}
.contact-form h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-submit { width: 100%; margin-top: 4px; justify-content: center; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.8;
  margin: 16px 0 24px;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
}
.footer-newsletter input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.footer-newsletter input:focus { border-color: var(--red); }
.footer-newsletter input::placeholder { color: var(--text-3); }
.footer-newsletter button {
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s;
}
.footer-newsletter button:hover { background: var(--red-dark); }

.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.84rem;
  color: var(--text-2);
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col ul a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-3); }
.footer-bottom a { color: var(--red); }

/* ================================================================
   SCROLL TO TOP
   ================================================================ */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
}
#scrollTop.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scrollTop:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ================================================================
   STATS ROW (shared)
   ================================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin: 60px 0;
}
.stat-block {
  background: var(--bg-card);
  padding: 30px 24px;
  text-align: center;
}
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number .accent { color: var(--red); }
.stat-label { font-size: 0.82rem; color: var(--text-2); font-weight: 500; }

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
#toast {
  position: fixed;
  bottom: 80px;
  right: 28px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-red);
  border-radius: var(--r);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s var(--ease);
  z-index: 9999;
  max-width: 300px;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
#toast.show { opacity: 1; transform: translateX(0); pointer-events: auto; }
#toast i { color: var(--red); font-size: 1rem; flex-shrink: 0; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .ai-hero { grid-template-columns: 1fr; }
  .ai-hero-image { height: 240px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .careers-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(8,8,8,0.98); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .dropdown-menu { position: static; transform: none; opacity: 1; pointer-events: auto; background: transparent; border: none; box-shadow: none; padding: 0 0 0 16px; display: none; }
  .nav-item.open .dropdown-menu { display: block; }
}

@media (max-width: 600px) {
  :root { --section-padding: 70px 0; }
  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .careers-benefits { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .process-steps { grid-template-columns: 1fr; }
}

/* ================================================================
   MODAL OVERLAY
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border-red);
  border-radius: var(--r-lg);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 32px 80px rgba(0,0,0,0.85), 0 0 0 1px var(--border-red);
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}
.modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* Scrollbar inside modal */
.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 2px; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  z-index: 1;
}
.modal-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.modal-header { margin-bottom: 28px; }
.modal-position-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  padding-right: 40px;
}
#modal-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ================================================================
   FILE DROPZONE
   ================================================================ */
.file-dropzone {
  position: relative;
  border: 2px dashed var(--border-red);
  border-radius: var(--r);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  background: var(--bg);
  overflow: hidden;
}
.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--red);
  background: var(--red-subtle);
}
.file-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.dropzone-content { pointer-events: none; }
.dropzone-content i {
  font-size: 2.2rem;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}
.dropzone-content p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 4px;
}
.dropzone-content p span { color: var(--red); font-weight: 600; }
.dropzone-content small { font-size: 0.75rem; color: var(--text-3); }

.file-dropzone.has-file {
  border-style: solid;
  border-color: var(--red);
  background: var(--red-subtle);
}
.file-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.file-name i { color: var(--red); }

/* ================================================================
   FORM VALIDATION STATES
   ================================================================ */
.field-error {
  font-size: 0.75rem;
  color: #ff6b6b;
  display: block;
  min-height: 18px;
  margin-top: 5px;
  transition: opacity 0.2s;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: #e63946 !important;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.18) !important;
}
.form-group input.valid,
.form-group textarea.valid {
  border-color: #2ecc71 !important;
}
.form-group input.valid:focus,
.form-group textarea.valid:focus {
  box-shadow: 0 0 0 3px rgba(46,204,113,0.15) !important;
}

/* ================================================================
   FORM SUCCESS STATE
   ================================================================ */
.form-success {
  text-align: center;
  padding: 44px 20px;
  animation: fadeUp 0.4s var(--ease) both;
}
.success-icon {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(230,57,70,0.45);
  animation: popIn 0.45s var(--ease) both;
}
@keyframes popIn {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  70%  { transform: scale(1.1) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
.form-success h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.form-success p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 380px;
  margin: 0 auto 24px;
}

/* ================================================================
   FORM ERROR BANNER
   ================================================================ */
.form-error-banner {
  background: rgba(230,57,70,0.1);
  border: 1px solid var(--border-red-h);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #ff6b6b;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  animation: fadeUp 0.3s var(--ease) both;
}
.form-error-banner i { flex-shrink: 0; }

/* Job card cursor when clickable */
.job-card[data-position] { cursor: pointer; }
.job-card[data-position] .job-action::after {
  content: 'Apply';
  position: absolute;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red);
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.job-card[data-position] .job-action { position: relative; }
.job-card[data-position]:hover .job-action::after { opacity: 1; }

@media (max-width: 600px) {
  .modal-card { padding: 28px 20px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
