/* ============================================
   SourceStack Group - Black & Red Theme
   ============================================ */

:root {
  --red:       #e31e24;
  --red-dark:  #b5181e;
  --red-glow:  rgba(227,30,36,0.15);
  --black:     #0a0a0a;
  --black-2:   #111111;
  --black-3:   #1a1a1a;
  --black-4:   #222222;
  --gray:      #555555;
  --gray-lt:   #888888;
  --white:     #ffffff;
  --white-dim: rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.08);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
  --transition:   0.3s ease;
  --radius:       6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ============ UTILS ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.red-text { color: var(--red); }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.white-tag { color: var(--white); border-color: var(--white); }
.red-tag   { color: var(--red);   border-color: var(--red); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-sub { color: var(--gray-lt); font-size: 17px; }

/* ============ BUTTONS ============ */
.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: var(--transition);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid var(--white);
  transition: var(--transition);
}
.btn-outline-white:hover { background: var(--white); color: var(--black); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
}
.logo-main  { color: var(--white); }
.logo-accent { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: var(--transition);
}
.nav-cta:hover { background: transparent; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.7) 60%, rgba(227,30,36,0.1) 100%);
}

/* Red left accent line */
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--red);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 0 36px;
  padding-top: 80px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-lt);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.2); }
}

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 60px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--red);
  letter-spacing: 1px;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-lt);
}
.stat-divider {
  width: 1px; height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============ SERVICES ============ */
.services-overview { background: var(--black); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: var(--transition);
}
.service-card:hover { border-color: rgba(227,30,36,0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.service-card:hover::before { width: 100%; }

.service-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}
.service-card p {
  font-size: 14px;
  color: var(--gray-lt);
  line-height: 1.7;
  margin-bottom: 20px;
}
.card-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  transition: var(--transition);
}
.card-link:hover { letter-spacing: 2px; }

/* ============ SPLIT SECTION ============ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-left, .split-right {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.split-img-wrap {
  position: absolute;
  inset: 0;
}
.split-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 100%);
}
.split-left .split-overlay { background: linear-gradient(to top, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.5) 60%, transparent 100%); }
.split-right .split-overlay { background: linear-gradient(to top, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.5) 60%, transparent 100%); }

.split-content {
  position: relative;
  z-index: 2;
  padding: 60px 48px;
}
.split-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.split-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  line-height: 1.7;
}

.check-list { margin-bottom: 32px; }
.check-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding: 8px 0;
  border-bottom: 1px solid var(--white-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-list li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============ INDUSTRIES ============ */
.industries { background: var(--black-2); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-item {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.industry-item:hover {
  border-color: rgba(227,30,36,0.4);
  background: var(--black-4);
  transform: translateY(-4px);
  box-shadow: 0 0 30px var(--red-glow);
}
.industry-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}
.industry-item span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.8);
}

/* ============ WHY US ============ */
.why-us { background: var(--black); }
.why-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why-left .section-title { text-align: left; }
.why-left .section-tag { text-align: left; }
.why-desc {
  color: var(--gray-lt);
  font-size: 16px;
  line-height: 1.8;
  margin: 20px 0 36px;
}

.why-right { display: flex; flex-direction: column; gap: 0; }
.why-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.why-item:last-child { border-bottom: none; }
.why-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: rgba(227,30,36,0.25);
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  transition: var(--transition);
}
.why-item:hover .why-num { color: var(--red); }
.why-text h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-text p {
  font-size: 14px;
  color: var(--gray-lt);
  line-height: 1.7;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--red);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: 'SOURCESTACK';
  position: absolute;
  font-family: var(--font-display);
  font-size: 200px;
  opacity: 0.05;
  color: var(--white);
  white-space: nowrap;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: 4px;
}
.cta-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--white);
}
.cta-content h2 .red-text { color: var(--black); }
.cta-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-red {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.cta-banner .btn-red:hover { background: var(--black-2); border-color: var(--black-2); }

/* ============ FOOTER ============ */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer-logo { font-size: 32px; margin-bottom: 16px; display: inline-block; }
.footer-brand p {
  font-size: 14px;
  color: var(--gray-lt);
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-address { margin-top: 8px !important; }
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-lt);
  transition: var(--transition);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--red); color: var(--red); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-size: 14px;
  color: var(--gray-lt);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--red); padding-left: 6px; }
.footer-col ul li:not(:has(a)) {
  font-size: 14px;
  color: var(--gray-lt);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--gray);
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--black-2);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 3px;
  background: var(--red);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: var(--gray-lt);
  max-width: 600px;
  margin: 0 auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .why-container { grid-template-columns: 1fr; gap: 48px; }
  .why-left .section-title { font-size: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--black-2);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    padding: 40px 32px;
  }
  .nav-links.open { right: 0; }
  .nav-link, .nav-cta { font-size: 15px; padding: 12px 0; }

  .hero-headline { font-size: 56px; }
  .hero-content { padding-left: 24px; }
  .stat-item { padding: 0 20px; }
  .stat-divider { display: none; }

  .split-section { grid-template-columns: 1fr; }
  .split-left, .split-right { min-height: 500px; }
  .split-content { padding: 40px 28px; }

  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }

  .footer-container { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 44px; }
  .hero-btns { flex-direction: column; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-btns { flex-direction: column; align-items: center; }
}
