/* Fractional CTO Services Page - Premium Executive Design */

/* Font Awesome Icon Fix - Ensure icons render properly */
.fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Hero Section with Network Animation */
.cto-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030D1A;
  padding: 140px 20px 80px;
  overflow: hidden;
}

.network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px;
}

.cta-btn {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

/* Main Container with Sticky Nav */
.cto-main-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  background: #030D1A;
}

/* Sticky Side Navigation */
.sticky-nav {
  position: sticky;
  top: 100px;
  height: fit-content;
}

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

.sticky-nav .nav-item {
  display: block;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.sticky-nav .nav-item:hover {
  color: #00D4FF;
  border-left-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.05);
}

.sticky-nav .nav-item.active {
  color: #00D4FF;
  border-left-color: #00D4FF;
  background: rgba(0, 212, 255, 0.1);
}

/* Content Area */
.cto-content {
  max-width: 1000px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 60px;
}

/* Core Mandates Section */
.mandates-section {
  margin-bottom: 100px;
}

.mandates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Mandate Cards - Accordion Style with Hover */
.mandate-card {
  background: rgba(10, 30, 60, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.mandate-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

/* Individual card hover - only affects the hovered card */
.mandate-card:hover .card-content {
  max-height: 500px;
  padding-top: 0;
}

.mandate-card:hover .expand-btn i {
  transform: rotate(45deg);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon i {
  font-size: 24px;
  color: #ffffff !important;
  font-style: normal !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.card-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex: 1;
  line-height: 1.3;
}

.expand-btn {
  width: 32px;
  height: 32px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.expand-btn i {
  color: #00D4FF;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.expand-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
}

.card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.card-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
}

.value-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00D4FF;
  font-weight: bold;
}

/* Methodology Section - Timeline */
.methodology-section {
  margin-bottom: 100px;
}

.timeline {
  position: relative;
  padding-left: 80px;
}

.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #0A4AFF 0%, #00D4FF 100%);
  transition: height 0.5s ease;
}

.timeline-line.active {
  height: 100%;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-marker {
  position: absolute;
  left: -80px;
  top: 0;
  width: 60px;
  height: 60px;
  background: rgba(10, 30, 60, 0.8);
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #00D4FF;
  transition: all 0.3s ease;
}

.timeline-item.visible .timeline-marker {
  border-color: #00D4FF;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  color: white;
}

.timeline-content {
  background: rgba(10, 30, 60, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  padding: 32px;
}

.timeline-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.timeline-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0;
}

/* Conversion Section */
.conversion-section {
  background: linear-gradient(135deg, rgba(10, 74, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 80px 60px;
  text-align: center;
  margin-bottom: 60px;
}

.conversion-content h2 {
  font-size: 42px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.conversion-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Light Theme Overrides */
body.light-theme .cto-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

body.light-theme .hero-title,
body.light-theme .section-title,
body.light-theme .card-header h3,
body.light-theme .timeline-content h3,
body.light-theme .conversion-content h2 {
  color: #1a1f3a !important;
}

body.light-theme .hero-subtitle,
body.light-theme .section-subtitle,
body.light-theme .card-content p,
body.light-theme .value-list li,
body.light-theme .timeline-content p,
body.light-theme .conversion-content p {
  color: rgba(26, 31, 58, 0.8) !important;
}

body.light-theme .cto-main-container {
  background: #ffffff;
}

body.light-theme .sticky-nav .nav-item {
  color: rgba(26, 31, 58, 0.6);
}

body.light-theme .sticky-nav .nav-item:hover,
body.light-theme .sticky-nav .nav-item.active {
  color: var(--original-orange);
  border-left-color: var(--original-orange);
  background: rgba(255, 123, 0, 0.05);
}

body.light-theme .mandate-card,
body.light-theme .timeline-content {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .mandate-card:hover {
  border-color: var(--original-orange);
  box-shadow: 0 15px 40px rgba(255, 123, 0, 0.15);
}

body.light-theme .card-icon {
  background: var(--original-orange);
}

body.light-theme .card-icon i {
  color: #ffffff !important;
  font-style: normal !important;
}

body.light-theme .expand-btn {
  background: rgba(255, 123, 0, 0.1);
  border-color: rgba(255, 123, 0, 0.3);
}

body.light-theme .expand-btn i {
  color: var(--original-orange);
}

body.light-theme .value-list li::before {
  color: var(--original-orange);
}

body.light-theme .timeline-marker {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 123, 0, 0.3);
  color: var(--original-orange);
}

body.light-theme .timeline-item.visible .timeline-marker {
  background: var(--original-orange);
  border-color: var(--original-orange);
  color: white;
}

body.light-theme .timeline-line {
  background: var(--original-orange);
}

body.light-theme .conversion-section {
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.05) 0%, rgba(255, 123, 0, 0.1) 100%);
  border-color: rgba(255, 123, 0, 0.2);
}

body.light-theme .cta-btn {
  background: var(--original-orange) !important;
  border: 2px solid var(--original-orange) !important;
  box-shadow: none !important;
}

body.light-theme .cta-btn:hover {
  background: var(--original-orange-hover) !important;
  box-shadow: 0 8px 20px rgba(255, 123, 0, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cto-main-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sticky-nav {
    position: relative;
    top: 0;
  }

  .sticky-nav ul {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .sticky-nav .nav-item {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .mandates-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 60px;
  }

  .timeline-marker {
    left: -60px;
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .conversion-section {
    padding: 40px 30px;
  }

  .conversion-content h2 {
    font-size: 28px;
  }
}
