:root {
  --font-size-basis: 1rem;
  --type-scale: 1.2;
  --h6: var(--font-size-basis);
  --h5: calc(var(--h6) * var(--type-scale));
  --h4: calc(var(--h5) * var(--type-scale));
  --h3: calc(var(--h4) * var(--type-scale));
  --h2: calc(var(--h3) * var(--type-scale));
  --h1: calc(var(--h2) * var(--type-scale));
  --font-small: 0.667rem;
  --font-family: 'Rubik', sans-serif;

  --white: #fff;
  --seasalt: #f8f9fa;
  --antiflash-white: #f3efef;
  --platinum: #dee2e6;
  --french-gray: #ced4da;
  --french-gray-2: #adb5bd;
  --slate-gray: #6c757d;
  --outer-space: #495057;
  --onyx: #343a40;
  --eerie-black: #212529;
  --black: #000;
  --orange: #e54b4b;
  --orange-light: rgba(229, 75, 75, 0.1);
}

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

html {
  font-size: 100%;
  font-family: var(--font-family);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }
p { font-size: var(--font-size-basis); color: var(--eerie-black); }

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 4rem 6rem;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
header {
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header .logo img {
  width: 4rem;
}

header .logo h3 {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.3rem;
  align-items: flex-end;
}

header .logo h3 span {
  font-size: 14px;
  font-weight: 400;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--eerie-black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

header .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

header .nav-links li {
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.2s;
}

header .nav-links li:hover {
  color: var(--orange);
}

header .nav-links .contact-btn {
  background-color: var(--eerie-black);
  color: var(--seasalt);
  border: none;
  padding: 0.5rem 1.3rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

header .nav-links .contact-btn:hover {
  background-color: var(--orange);
  color: var(--white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  display: flex;
  justify-content: space-between;
  padding-top: 7rem;
  padding-bottom: 4rem;
  align-items: center;
  gap: 2rem;
  min-height: 90vh;
}

.hero-section .hero-text,
.hero-section .hero-img {
  flex-basis: 50%;
}

.hero-section .hero-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-section .hero-text h1 {
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.hero-section .hero-text h1 #business {
  color: var(--orange);
}

.hero-subtitle {
  color: var(--slate-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

.btn-primary {
  background-color: var(--eerie-black);
  color: var(--seasalt);
}

.btn-primary:hover {
  background-color: var(--orange);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--eerie-black);
  border: 2px solid var(--eerie-black);
}

.btn-secondary:hover {
  background-color: var(--eerie-black);
  color: var(--white);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--slate-gray);
  font-size: 1.1rem;
}

/* ============================================
   CAPABILITIES SECTION
   ============================================ */
.capabilities-section {
  background-color: var(--seasalt);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.capability-card {
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.capability-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.capability-card i {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 1rem;
  display: block;
}

.capability-card h4 {
  margin: 0 0 0.75rem;
}

.capability-card p {
  color: var(--slate-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   USE CASES SECTION
   ============================================ */
.use-cases-section {
  background-color: var(--white);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--platinum);
  border-radius: 50px;
  background: var(--white);
  color: var(--outer-space);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.category-tab i {
  font-size: 0.85rem;
}

.category-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.category-tab.active {
  background-color: var(--eerie-black);
  border-color: var(--eerie-black);
  color: var(--white);
}

.category-tab.active:hover {
  background-color: var(--orange);
  border-color: var(--orange);
}

.tab-count {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.category-tab.active .tab-count {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Use Cases Grid */
.use-cases-grid {
  display: flex;
  flex-direction: column;
}

.use-case {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--seasalt);
}

.use-case:last-child {
  margin-bottom: 0;
}

.use-case-reverse {
  flex-direction: row-reverse;
}

.use-case-content {
  flex: 1;
}

.use-case-media {
  flex: 1;
}

.use-case-badge {
  display: inline-block;
  background-color: var(--orange-light);
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.use-case-content h3 {
  margin: 0 0 0.75rem;
}

.use-case-content p {
  line-height: 1.7;
  color: var(--outer-space);
}

.use-case-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.use-case-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--outer-space);
}

.use-case-list li i {
  color: var(--orange);
  font-size: 0.8rem;
}

.use-case-media video,
.use-case-media img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.use-case-media video {
  background-color: var(--eerie-black);
}

.use-case-media-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Filter animations */
.use-case.uc-hidden {
  display: none;
}

.use-case.uc-showing {
  animation: ucFadeIn 0.4s ease forwards;
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background-color: var(--seasalt);
}

.service-block {
  margin-bottom: 4rem;
  scroll-margin-top: 5rem;
}

.service-block:last-of-type {
  margin-bottom: 0;
}

.service-block-header {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.service-block-header-reverse {
  flex-direction: row-reverse;
}

.service-block-img {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.service-block-img img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.service-block-img:hover img {
  transform: scale(1.03);
}

.service-block-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(229, 75, 75, 0.85));
  padding: 2rem 1.5rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.service-block-overlay i {
  color: var(--white);
  font-size: 1.6rem;
}

.service-block-intro {
  flex: 1;
}

.service-block-intro h3 {
  margin: 0 0 0.75rem;
}

.service-block-intro p {
  color: var(--outer-space);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--eerie-black);
  color: var(--eerie-black);
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-outline i {
  font-size: 0.85rem;
  transition: transform 0.3s;
}

.btn-outline:hover i {
  transform: translateX(4px);
}

.service-block-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-left-color: var(--orange);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  background-color: var(--orange-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card-icon i {
  color: var(--orange);
  font-size: 1.2rem;
}

.service-card h4 {
  margin: 0 0 0.5rem;
}

.service-card p {
  color: var(--slate-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: auto;
  max-height: 85vh;
  max-width: 900px;
  width: 90%;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--slate-gray);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--orange);
  background-color: var(--seasalt);
}

.modal h3 {
  color: var(--orange);
  margin-top: 0;
}

.modal .modal-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal .modal-cards .card {
  background-color: var(--seasalt);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  flex: 1;
}

.modal .modal-cards .card h4 {
  margin: 0 0 0.75rem;
  color: var(--eerie-black);
}

.modal .modal-cards .card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--outer-space);
  margin: 0;
}

.backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1999;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--eerie-black);
  color: var(--seasalt);
  display: flex;
  justify-content: space-between;
  padding: 3rem 6rem 2rem;
  gap: 3rem;
  flex-wrap: wrap;
}

footer .footer-brand {
  flex: 1;
  min-width: 220px;
}

footer .footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

footer .footer-brand .logo img {
  width: 3rem;
  filter: brightness(0) invert(1);
}

footer .footer-brand .logo h3 {
  margin: 0;
  color: var(--white);
  display: flex;
  gap: 0.3rem;
  align-items: flex-end;
}

footer .footer-brand .logo h3 span {
  font-size: 14px;
  font-weight: 400;
}

footer .footer-brand p {
  color: var(--french-gray-2);
  font-size: 0.9rem;
}

footer .footer-links {
  min-width: 150px;
}

footer .footer-links h4 {
  color: var(--white);
  margin: 0 0 1rem;
}

footer .footer-links ul li {
  margin-bottom: 0.6rem;
}

footer .footer-links ul li a {
  color: var(--french-gray-2);
  transition: color 0.2s;
  font-size: 0.9rem;
}

footer .footer-links ul li a:hover {
  color: var(--orange);
}

footer .footer-contact {
  min-width: 220px;
}

footer .footer-contact h4 {
  color: var(--white);
  margin: 0 0 1rem;
}

footer .footer-contact .contact-category {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

footer .footer-contact .contact-category i {
  color: var(--orange);
  font-size: 1.2rem;
}

footer .footer-contact .contact-category p {
  margin: 0;
  color: var(--french-gray-2);
  font-size: 0.9rem;
}

.footer-bottom {
  background-color: var(--black);
  text-align: center;
  padding: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--slate-gray);
  font-size: 0.85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   RESPONSIVE — TABLET (max-width: 992px)
   ============================================ */
@media screen and (max-width: 992px) {
  section {
    padding: 3rem 2rem;
  }

  .hero-section {
    padding-top: 6rem;
    min-height: auto;
  }

  .hero-section .hero-text h1 {
    font-size: calc(var(--h2));
  }

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

  .use-case {
    flex-direction: column;
    gap: 1.5rem;
  }

  .use-case-reverse {
    flex-direction: column;
  }

  .use-case-list {
    grid-template-columns: 1fr;
  }

  .service-block-header,
  .service-block-header-reverse {
    flex-direction: column;
    gap: 1.5rem;
  }

  .modal .modal-cards {
    flex-direction: column;
  }

  footer {
    padding: 3rem 2rem 2rem;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {
  section {
    padding: 2.5rem 1.25rem;
  }

  .hamburger {
    display: flex;
  }

  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    padding-top: 5rem;
    z-index: 1000;
  }

  header nav.nav-open {
    right: 0;
  }

  header .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem;
  }

  header .nav-links li {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--platinum);
    font-size: 1rem;
  }

  header .nav-links li:last-child {
    border-bottom: none;
    padding-top: 1.2rem;
  }

  header .nav-links .contact-btn {
    width: 100%;
    text-align: center;
  }

  .hero-section {
    flex-direction: column;
    padding-top: 5rem;
    padding-bottom: 2rem;
    text-align: center;
  }

  .hero-section .hero-text,
  .hero-section .hero-img {
    flex-basis: 100%;
  }

  .hero-section .hero-text h1 {
    font-size: calc(var(--h3));
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .capability-card {
    padding: 1.5rem 1.25rem;
  }

  .use-case {
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .use-case-content h3 {
    font-size: var(--h4);
  }

  footer {
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 2rem;
    text-align: center;
  }

  footer .footer-brand .logo {
    justify-content: center;
  }

  footer .footer-contact .contact-category {
    justify-content: center;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  .hero-section .hero-text h1 {
    font-size: calc(var(--h4));
  }

  .section-header h2 {
    font-size: var(--h3);
  }

  .use-case-list {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
