/* ============================================= */
/* Jarvis Marketing & Management Consultancy     */
/* Custom Styles                                  */
/* ============================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #004a59;
  color: #f5f0eb;
}


/* --- Navigation --- */
#navbar {
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(16, 21, 23, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-logo span {
  color: #f5f0eb;
}

/* Hamburger */
.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.8);
  position: absolute;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-line { transform: translateY(-6px); }
.mid-line { transform: translateY(0); }
.bot-line { transform: translateY(6px); }

.menu-open .top-line {
  transform: rotate(45deg) translateY(0);
}
.menu-open .mid-line {
  opacity: 0;
  transform: scaleX(0);
}
.menu-open .bot-line {
  transform: rotate(-45deg) translateY(0);
}

/* Mobile Menu */
.mobile-menu-closed {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}

.mobile-menu-open {
  max-height: 320px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}


/* --- Hero Section --- */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #f5f0eb, transparent);
  z-index: 1;
}


/* --- Fade-in Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children within service cards */
.service-card {
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}


/* --- Partner Cards --- */
.partner-card {
  transition: opacity 0.3s ease;
}


/* --- Client Logos --- */
.client-logo {
  opacity: 0.7;
  filter: grayscale(50%);
  transition: all 0.4s ease;
  min-height: 60px;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}


/* --- Team Cards --- */
.team-card {
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}


/* --- Scroll-linked visual bar (optional top progress) --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #004a59, #c9a96e);
  z-index: 100;
  width: 0%;
  transition: width 0.1s linear;
}


/* --- Decorative separator lines --- */
.section-divider {
  width: 48px;
  height: 1px;
  background-color: #c9a96e;
  margin: 0 auto;
}


/* --- Smooth image loading --- */
img {
  opacity: 1;
}


/* --- Blockquote styling enhancements --- */
blockquote {
  position: relative;
}


/* --- Custom scrollbar (webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #101517;
}

::-webkit-scrollbar-thumb {
  background: #004a59;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0d6272;
}


/* --- Media Queries --- */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .partner-card .grid {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 1.875rem;
  }
}


/* --- Print styles --- */
@media print {
  #navbar,
  #scroll-progress {
    display: none !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
