/* Reset & Variables */
:root {
  --primary-blue: #4A77B6;
  --dark-bg: #0A1118;
  --light-bg: #F8FAFC;
  --text-light: #FFFFFF;
  --text-dark: #0F172A;
  --chart-highlight: #4A77B6;
  --chart-base: #E2E8F0;
  --accent-gold: #C5A880;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography elements */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 2rem; }
.mt-8 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 2rem; }

.text-white { color: var(--text-light) !important; }
.text-center { text-align: center; }

/* Typography Rules based on Subagent specs */
.hero-title {
  font-size: 80px;
  font-weight: 300;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text-light);
  max-width: 700px;
  background: linear-gradient(to right, #FFFFFF, #E2E8F0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 50px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.body-text, .feature-list li {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  opacity: 0.85;
}

.text-white .body-text {
  color: var(--text-light);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 5%;
  z-index: 1000;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.navbar.scrolled {
  background: var(--text-light);
  padding: 20px 5%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  color: var(--text-dark);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

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

.logo-graphic svg {
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-subtext {
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-text {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--accent-gold);
  opacity: 1;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 36px;
  height: 1px;
  background-color: currentColor;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #385E95;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 119, 182, 0.4), 0 0 0 2px rgba(74, 119, 182, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(13,19,29,0.85) 0%, rgba(13,19,29,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.marquee-wrapper {
  width: 100%;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--accent-gold) !important;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Sections Structure */
.section {
  padding: 120px 5%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.max-w-800 {
  max-width: 800px;
}

.light-bg {
  background-color: var(--light-bg);
}

.dark-bg {
  background-color: var(--dark-bg);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.align-center {
  align-items: center;
}

.vertical-line {
  width: 4px;
  height: 60px;
  background-color: var(--primary-blue);
  margin: 24px 0;
}

/* Split Column Tweaks */
.left-col {
  padding-left: 0;
}

/* 3-Column Grid for Fit */
.grid-3-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.grid-col.border-left {
  border-left: 1px solid rgba(74, 119, 182, 0.2);
  padding-left: 40px;
}

.list-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(32, 40, 59, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list li:last-child {
  border-bottom: none;
}

.icon {
  font-weight: bold;
}
.icon.check { color: var(--primary-blue); }
.icon.cross { color: #D32F2F; }

/* Chart Visualization */
.chart-container {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-top: 80px;
}

.minimal-chart {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  height: 380px;
  width: 100%;
  border-bottom: 1px solid rgba(32, 40, 59, 0.2);
}

.chart-bar {
  flex: 1;
  background-color: var(--chart-base);
  border-radius: 5px 5px 0 0;
  position: relative;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.chart-bar:hover {
  transform: scaleY(1.02);
  transform-origin: bottom;
}

.chart-bar.highlight {
  background-color: var(--chart-highlight);
}

.bar-label {
  position: absolute;
  bottom: -40px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
  text-align: center;
}

/* Shared Background Wrapper */
.shared-bg-section {
  background-image: url('askari.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.shared-bg-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 19, 29, 0.86); /* Dark overlay */
  z-index: 1;
}

.transparent-bg {
  background-color: transparent !important;
}

/* Philosophy Section tweaks */
.philosophy-section {
  position: relative;
}

.philosophy-section .container {
  position: relative;
  z-index: 2;
}

.approach-item {
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 2px solid rgba(74, 119, 182, 0.4);
  transition: border-color 0.3s ease;
}

.approach-item:hover {
  border-color: var(--primary-blue);
}

.approach-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Testimonial Section tweaks */
.testimonial-section {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Slight separation if needed */
}

/* Services Card Stack Layout */
.max-w-1000 {
  max-width: 1000px;
}

.mb-8 {
  margin-bottom: 4rem;
}

.card-stack-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 60px;
}

.service-card {
  position: sticky;
  top: 15vh;
  background: var(--text-light);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(32, 40, 59, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

/* Stagger top properties for the stack effect */
#card-1 { top: calc(15vh + 0px); z-index: 10; }
#card-2 { top: calc(15vh + 30px); z-index: 11; }
#card-3 { top: calc(15vh + 60px); z-index: 12; }

.card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-blue);
}

.card-content {
  padding: 40px;
}

.card-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.card-text {
  font-size: 16px;
  color: var(--text-dark);
  opacity: 0.8;
  line-height: 1.6;
}

.testimonial-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.testimonial-header {
  display: flex;
  gap: 30px;
}

.testimonial-vertical-line {
  width: 4px;
  background-color: var(--primary-blue);
}

.testimonial-titles .section-title {
  font-size: 46px;
  line-height: 1.2;
}

.testimonial-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5%;
}

.quote-icon {
  flex-shrink: 0;
  margin-top: 10px;
}

.testimonial-text-wrapper {
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.testimonial-nav {
  display: flex;
  gap: 16px;
}

.nav-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  border-color: var(--primary-blue);
  background-color: rgba(74, 119, 182, 0.1);
}

/* Footer Element */
.footer {
  padding: 80px 5% 40px;
  color: var(--text-light);
}

.footer-logo-img {
  height: 36px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h4 {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-col a {
  display: inline-block;
  margin-bottom: 12px;
  opacity: 0.7;
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.footer-col a:hover::after {
  width: 100%;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--text-light);
}

/* Full Screen Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--text-light);
  background-image: url('hero_bg.png'); /* To get the faint whale watermark */
  background-size: cover;
  background-position: center;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.96);
  z-index: 1;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-close-btn {
  position: absolute;
  top: 40px;
  right: 5%;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
}

.menu-close-btn:hover {
  transform: scale(1.1);
}

.menu-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 120px;
  overflow-y: auto;
  max-height: 80vh;
  padding: 20px 0;
}

/* Hide scrollbar for menu-container */
.menu-container::-webkit-scrollbar {
  display: none;
}
.menu-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.menu-left {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.menu-main-link {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.menu-overlay.active .menu-main-link {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.active .menu-main-link:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.active .menu-main-link:nth-child(2) { transition-delay: 0.2s; }
.menu-overlay.active .menu-main-link:nth-child(3) { transition-delay: 0.3s; }
.menu-overlay.active .menu-main-link:nth-child(4) { transition-delay: 0.4s; }
.menu-overlay.active .menu-main-link:nth-child(5) { transition-delay: 0.5s; }
.menu-overlay.active .menu-main-link:nth-child(6) { transition-delay: 0.6s; }

.menu-main-link:hover {
  color: var(--text-dark); 
}

.menu-arrow {
  transition: transform 0.3s ease;
}

.menu-main-link:hover .menu-arrow {
  transform: translateX(10px);
}

.menu-right {
  display: flex;
  flex-direction: column;
}

.menu-services-header {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.menu-vertical-line {
  width: 2px;
  height: 28px;
  background-color: var(--accent-gold);
}

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

.menu-services-list a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-color: rgba(32, 40, 59, 0.2);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.menu-services-list a:hover {
  color: var(--accent-gold);
  text-decoration-color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 1024px) {
  .split-layout, .grid-3-col, .footer-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hero-title {
    font-size: 60px;
  }
  
  .section-title {
    font-size: 40px;
  }

  .menu-container {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  /* Smaller logo on mobile */
  .logo-img {
    height: 28px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-subtext {
    font-size: 9px;
  }

  .logo {
    gap: 8px;
  }

  /* Footer responsive */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo-img {
    height: 28px;
  }

  .hero-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
  }
  
  .section-title {
    font-size: 28px;
  }

  .body-text, .feature-list li {
    font-size: 16px;
  }

  .card-title {
    font-size: 22px;
  }

  .approach-title {
    font-size: 20px;
  }

  .nav-links {
    display: none;
  }

  .navbar {
    padding: 20px 5%;
  }

  .grid-col.border-left {
    border-left: none;
    padding-left: 0;
  }
  
  .menu-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 20px;
  }
  
  .menu-main-link {
    font-size: 24px;
  }

  .menu-services-header {
    font-size: 20px;
  }
  
  .menu-left {
    gap: 40px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .section {
    padding: 80px 5%;
  }

  .minimal-chart {
    height: 250px;
    gap: 15px;
  }
  
  .bar-label {
    font-size: 11px;
    bottom: -50px;
    transform: rotate(-45deg);
    transform-origin: left top;
    left: 0px;
    white-space: nowrap;
  }

  /* Testimonial Responsive */
  .testimonial-content {
    flex-direction: column;
    gap: 20px;
    padding-left: 0;
  }

  .testimonial-header {
    flex-direction: column;
    gap: 20px;
  }

  .testimonial-vertical-line {
    width: 60px;
    height: 4px;
  }
  
  .testimonial-titles .section-title {
    font-size: 32px;
  }

  .testimonial-quote {
    font-size: 20px;
  }

  .marquee-wrapper {
    overflow: hidden;
  }

  .hero-subtitle {
    font-size: 14px !important;
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
  }
}

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

/* Horizontal Card Layout for Tablet/Desktop */
@media (min-width: 768px) {
  .service-card {
    flex-direction: row;
    height: 480px;
  }
  
  .card-image {
    width: 45%;
    height: 100%;
  }
  
  .card-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
  }
}
