* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #F7F7F7;
  overflow-x: hidden;
}

/* Video Hero Section */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.hero-mobile-image {
  display: none;
  width: 100%;
  height: auto;
}

.hero-mobile-video {
  display: none !important;
  width: 100%;
  height: auto;
}

.overlay-text {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  padding: 20px;
}

.overlay-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  white-space: nowrap;
}

.overlay-text p {
  font-size: 1.8rem;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 1s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background-color: #1a1a1a;
  padding: 15px 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-overlay {
  display: none;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  transition: background-color 0.3s;
  border-radius: 4px;
}

nav a:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 5%;
}

/* Section Styles */
section {
  padding: 40px 5%;
  scroll-margin-top: 60px;
}

section:nth-child(even) {
  background-color: white;
}

#overview {
  background-color: #F7F7F7;
}

#capabilities {
  background-color: white;
}

h2 {
  color: #1a1a1a;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: left;
  font-weight: 300;
}

h2.mb-15 {
  margin-bottom: 15px;
}

h2.subtitle {
  font-weight: 400;
}

.section-subtitle {
  font-size: 1.8rem;
  color: #6398C4;
  font-weight: 300;
  margin-bottom: 20px;
}

.overview-description {
  font-size: 1.2rem;
  max-width: 900px;
  color: #555;
  margin-top: 10px;
}

.capability-label {
  display: block;
  font-size: 1.6rem;
  font-weight: 300;
  color: #6398C4;
  margin-top: 4px;
}

h3 {
  color: #6398C4;
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Overview Section */
.overview-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.overview-content.left-wide {
  text-align: left;
  max-width: 1200px;
}

/* Challenge Section */
.challenge-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.challenge-option {
  background: white;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #D9D9D9;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.challenge-option h3 {
  color: #1a1a1a;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.challenge-option p {
  margin-bottom: 0;
  color: #555;
}

/* Strategic List */
.strategic-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.strategic-list li {
  font-size: 1.1rem;
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.strategic-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #6398C4;
  font-weight: bold;
}

/* Capabilities Grid */
.capabilities-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.capability-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 30px 0;
  margin: 0 -100vw;
  padding-left: 100vw;
  padding-right: 100vw;
  border-bottom: 1px solid rgba(217, 217, 217, 0.3);
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.capability-row:hover {
  background-color: #EFEFEF;
  text-decoration: none;
}

.capability-row:last-child {
  border-bottom: none;
}

.capability-text {
  text-align: left;
}

.capability-text p {
  font-size: 1.5rem;
}

.capability-video {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow: hidden;
  margin: 0 auto;
}

.capability-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.capability-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.capability-row:hover .capability-video img.placeholder {
  opacity: 0;
  z-index: 1;
}

.capability-row:hover .capability-video video {
  opacity: 1;
  z-index: 2;
}

.capability-title {
  text-align: left;
}

.capability-title h3 {
  margin: 0;
  font-size: 3.0rem;
  color: #1a1a1a;
}

.click-hint {
  display: block;
  font-size: 1.2rem;
  font-weight: 300;
  color: darkgrey;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 8px;
}

.capability-row:hover .click-hint {
  opacity: 1;
}

/* Page Navigation (Subpages) */
.page-nav {
  background-color: white;
  padding: 40px 5%;
  border-top: 1px solid #D9D9D9;
}

/* Hero text block placed below the video hero */
.hero-text {
  padding: 60px 5% 0;
  text-align: center;
  background-color: transparent;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.hero-text .subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-align: center;
}

.hero-text .overview-description {
  margin: 0 auto;
  max-width: 900px;
  color: #555;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero-text {
    padding: 40px 4% 0;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text .subtitle {
    font-size: 1rem;
  }
}

.page-nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-nav-link {
  font-size: 2rem;
  font-weight: 300;
  color: #6398C4;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.page-nav-link:hover {
  opacity: 0.7;
}

.page-nav-link.prev {
  text-align: left;
}

.page-nav-link.next {
  text-align: right;
}

/* Strengths Rotator */
.strengths-rotator {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 220px;
  margin: 0 auto;
  overflow: hidden;
}

.strength-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #6398C4;
  color: white;
  padding: 25px 25px 35px 35px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  font-size: 2.2rem;
}

.strength-item.active {
  opacity: 1;
  transform: translateX(0);
}

.strength-item.exit {
  opacity: 0;
  transform: translateX(-100%);
}

#strengths {
  background-color: white;
  padding-top: 0px;
}

/* Comparison Table */
.comparison-section {
  background-color: #F7F7F7;
}

.comparison-table {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #D9D9D9;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-label {
  background-color: #6398C4;
  color: white;
  padding: 20px;
  font-weight: 600;
}

.comparison-value {
  padding: 20px;
  background-color: white;
}

/* Pros/Cons Section */
.pros-cons-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.pros-section, .cons-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pros-section h3 {
  color: #4CAF50;
}

.cons-section h3 {
  color: #FF6B6B;
}

.pros-section ul, .cons-section ul {
  list-style: none;
  padding-left: 0;
}

.pros-section li, .cons-section li {
  padding: 10px 0 10px 30px;
  position: relative;
}

.pros-section li::before {
  content: "✓";
  color: #4CAF50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.cons-section li::before {
  content: "•";
  color: #FF6B6B;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #6398C4 0%, #5080a8 100%);
  color: white;
  text-align: left;
  padding: 80px 20px;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section .cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.cta-section p {
  font-size: 1.2rem;
  margin: 0;
  max-width: 60%;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: white;
  color: #6398C4;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 2s;
}

/* Logo */
.logo-link {
  text-decoration: none;
}

.logo {
  position: fixed;
  top: 35px;
  left: 30px;
  z-index: 150;
  font-family: 'Avenir Next LT Pro Light', 'Avenir Next', 'Avenir', sans-serif;
  font-size: 4rem;
  color: #6398C4;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 1em;
  width: auto;
  object-fit: contain;
}

/* Sticky Logo Bar */
.sticky-logo-bar {
  position: sticky;
  top: 52px; /* Height of nav bar */
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 80px;
  z-index: 99;
}

.scroll-indicator p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  margin: 0 auto;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  40% {
    transform: translateY(-10px) rotate(-45deg);
  }
  60% {
    transform: translateY(-5px) rotate(-45deg);
  }
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #BFBFBF;
  text-align: center;
  padding: 30px 20px;
}

/* Page Hero Section (Subpages) */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: white;
  padding: 120px 5% 80px;
  text-align: left;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: white;
}

.page-hero .hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 800px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Detail Section (Subpages) */
.detail-section {
  background-color: #F7F7F7;
  padding: 80px 5%;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-content h2 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.detail-content h3 {
  font-size: 1.4rem;
  color: #6398C4;
  margin-top: 35px;
  margin-bottom: 15px;
}

.detail-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6398C4;
  font-weight: bold;
}

.detail-media {
  position: sticky;
  top: 160px;
}

.detail-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.detail-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: block;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #D9D9D9;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  color: #6398C4;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Temp size indicator */
#size {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #000;
  color: #fff;
  padding: 5px;
  font-size: 12px;
  z-index: 9999;
}

/* Responsive Design - Medium screens */
@media (min-width: 769px) and (max-width: 1300px) {
  .strengths-rotator {
    height: 234px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  * {
    max-width: 100%;
  }

  .sticky-logo-bar {
    display: none;
  }

  .video-container video#hero-video {
    display: none;
  }

  .video-container video.hero-mobile-video {
    display: block !important;
    width: 100%;
    height: auto;
  }

  .hero-mobile-image {
    display: none;
  }

  .overlay-text h1 {
    font-size: 2rem;
  }

  .overlay-text p {
    font-size: 1.1rem;
  }

  .scroll-indicator {
    display: none;
  }

  h2 {
    font-size: 2rem;
  }

  .hamburger {
    display: none;
  }

  nav ul {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  nav {
    position: sticky;
    background-color: white;
    box-shadow: none;
  }

  .logo {
    position: static;
    display: block;
    font-size: 2.5rem;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
  }

  .capability-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
  }

  .capability-row:hover {
    background-color: transparent;
  }

  .capability-row.in-view {
    border-color: #6398C4;
  }

  .click-hint {
    display: none;
  }

  .capability-video video {
    display: none;
  }

  .capability-row:hover .capability-video img.placeholder {
    opacity: 1;
  }

  .capability-text {
    text-align: center;
    padding: 0 20px;
  }

  .capability-title {
    text-align: center;
  }

  .capability-title h3 {
    font-size: 2rem;
  }

  .capability-label {
    font-size: 1rem;
  }

  .challenge-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .strengths-rotator {
    height: 200px;
  }

  .strength-item {
    font-size: 1.1rem;
  }

  #strengths {
    padding-bottom: 20px;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .pros-cons-container {
    grid-template-columns: 1fr;
  }

  .cta-section .cta-row {
    flex-direction: column;
    text-align: center;
  }

  .cta-section p {
    max-width: 100%;
  }

  /* Subpage responsive styles */
  .page-hero {
    padding: 100px 5% 60px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .page-hero .hero-subtitle {
    font-size: 1.1rem;
  }

  .detail-section {
    padding: 50px 5%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-media {
    position: static;
    order: -1;
  }

  .detail-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Page Navigation - stacked on mobile */
  .page-nav-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .page-nav-link {
    font-size: 1.5rem;
    text-align: center;
  }

  .page-nav-link.prev,
  .page-nav-link.next {
    text-align: center;
  }
}
