/* ================================
   CSS VARIABLES & ROOT STYLES
   ================================ */
:root {
  --primary: #002244;
  --accent: #ffcc33;
  --bg: #e8ebef;
  --text: #1a1a1a;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --border-radius-small: 6px;
  --border-radius-medium: 8px;
  --transition: all 0.3s ease;
}

/* ================================
   BASE STYLES & RESET
   ================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  background: var(--bg) url('media/bg.png') fixed center center / cover no-repeat;
  color: var(--text);
  padding: 3rem 0 0;
  line-height: 1.6;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
}

h1 {
  font-weight: 600;
  font-size: 1.6rem;
}

h2 {
  font-size: 2.6rem;
  color: var(--primary);
  text-shadow: 2px 2px #ffcc33aa;
  margin-bottom: 1rem;
}

h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  border-left: 5px solid var(--accent);
  padding-left: 0.7rem;
}

p {
  margin: 0 0 1rem 0;
}

/* ================================
   LAYOUT COMPONENTS
   ================================ */
.page {
  background: var(--white);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 40px var(--shadow-medium);
}

/* ================================
   HEADER STYLES
   ================================ */
header {
  background: linear-gradient(90deg, var(--primary) 0%, #003366 80%);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 10px var(--shadow-dark);
  transition: var(--transition);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

header.sticky {
  position: fixed;
  top: 0;
  z-index: 1000;
  border-radius: 0;
  box-sizing: border-box;
}

.header-placeholder {
  height: 0;
  transition: height 0.3s ease;
}

.header-placeholder.active {
  height: 76px;
}

/* ================================
   NAVIGATION STYLES
   ================================ */
nav a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 2rem;
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

nav a.active {
  font-weight: 600;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  background: radial-gradient(circle at 20% 30%, var(--white) 0%, #e0ecff 80%);
  text-align: center;
  padding: 7rem 2rem 5rem;
  border-bottom: 4px solid var(--accent);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ================================
   SECTION STYLES
   ================================ */
section {
  max-width: 900px;
  margin: 3rem auto;
  background: var(--white);
  border-radius: var(--border-radius-medium);
  padding: 3rem;
  border: 2px solid #00336622;
  box-shadow: 0 10px 25px var(--shadow-light);
  scroll-margin-top: 200px;
}

/* ================================
   GRID COMPONENTS
   ================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.video-placeholder {
  background: var(--bg);
  border: 2px dashed #00336655;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00336699;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  border-radius: var(--border-radius-small);
  transition: var(--transition);
}

.video-placeholder:hover {
  background: #dde4ea;
  border-color: #003366aa;
}

/* ================================
   UTILITY COMPONENTS
   ================================ */
.retro-line {
  height: 3px;
  background: linear-gradient(90deg, #ffcc33, #00ccff, #ff3399);
  border: none;
  width: 80%;
  margin: 2rem auto;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--border-radius-small);
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--accent);
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding-left: calc(.2rem);
  padding-right: calc(.2rem);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--accent);
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

/* ================================
   EXPERTISE GRID
   ================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.expertise-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-medium);
  border: 2px solid #00336622;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-medium);
}

.expertise-card h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.expertise-card p {
  line-height: 1.6;
  color: #666;
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials {
  background: var(--bg);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-medium);
  margin: 3rem 0;
}

.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-small);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
}

/* ================================
   CONTACT SECTION
   ================================ */
/* Profile Snapshot grid: align columns across rows, keep natural spacing */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, max-content); /* columns sized by content */
  column-gap: 4rem;      /* tweak as you like */
  row-gap: 2rem;
  justify-content: space-between; /* keeps the wide, airy spacing */
  margin: 2rem 0;
  justify-items: center; /* center each block */
  text-align: center;
}

.contact-item {
  /* no width forcing; let content define column width */
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent);
}

/* ================================
   CONTENT LINK STYLING
   ================================ */
section p a, .expertise-card a, .testimonial a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
  transition: var(--transition);
}

section p a:hover, .expertise-card a:hover, .testimonial a:hover {
  color: #003366;
  text-decoration-color: var(--primary);
}

section p a:visited, .expertise-card a:visited, .testimonial a:visited {
  color: #2c5282;
}

/* ================================
   FOOTER STYLES
   ================================ */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--primary);
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav a {
    margin: 0 1rem;
  }
  
  .hero {
    padding: 4rem 1rem 3rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  section {
    margin: 2rem 1rem;
    padding: 2rem;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive: Impact Stats */
  .impact-stats {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .impact-stat-number {
    font-size: 1.8rem;
  }

  /* Responsive: Career Timeline */
  .career-timeline::before {
    left: 1rem;
    right: auto;
    width: 3px;
    height: 100%;
    top: 0;
  }
  
  .timeline-item {
    margin-left: 2rem;
  }
  
  .timeline-title::before {
    left: -2.75rem;
  }
  
  .timeline-content {
    margin-left: 0;
  }

  /* Responsive: Executive Summary */
  .executive-summary {
    padding: 1.5rem;
  }

  /* Responsive: Contact Info */
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 1.5rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 1.5rem;
  }

  /* Mobile: Impact Stats */
  .impact-stats {
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  
  .impact-stat-number {
    font-size: 1.6rem;
  }
  
  .impact-stat-label {
    font-size: 0.8rem;
  }

  /* Mobile: Timeline */
  .timeline-year {
    font-size: 1rem;
  }
  
  .timeline-title {
    font-size: 1.1rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }

  /* Mobile: Executive Summary */
  .executive-summary {
    padding: 1rem;
  }
  
  .executive-summary h4 {
    font-size: 1.1rem;
  }

  /* Mobile: Contact Info */
  .contact-info {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.5rem;
    justify-content: center;
  }

  .contact-item {
    max-width: 100%;
    word-wrap: break-word;
  }
}

/* ================================
   PICTOGRAM GALLERY & LIGHTBOX
   ================================ */
.pictogram-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.pictogram-thumbnail {
  cursor: pointer;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid transparent;
}

.pictogram-thumbnail:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.pictogram-thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--border-radius-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--accent);
}

/* ================================
   IMPACT STATS BAR COMPONENT
   ================================ */
.impact-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  border-radius: var(--border-radius-medium);
  box-shadow: 0 10px 25px var(--shadow-medium);
}

.impact-stat {
  text-align: center;
  flex: 1;
}

.impact-stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.impact-stat-label {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ================================
   CAREER TIMELINE COMPONENT
   ================================ */
.career-timeline {
  position: relative;
  padding: 2rem 0;
  margin: 3rem 0;
}

.career-timeline::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 3rem;
}

.timeline-year {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

.timeline-title::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-small);
  border-left: 4px solid var(--accent);
  box-shadow: 0 5px 15px var(--shadow-light);
  margin-left: 1rem;
}

/* ================================
   EXECUTIVE SUMMARY COMPONENT
   ================================ */
.executive-summary {
  background: linear-gradient(135deg, #f8fafc 0%, var(--bg) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-medium);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.executive-summary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
  border-radius: var(--border-radius-medium);
  z-index: -1;
}

.executive-summary h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.executive-summary p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.executive-summary .value-proposition {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.15rem;
}

.executive-summary .availability-statement {
  background: var(--accent);
  color: var(--primary);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-small);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* ================================
   IMPACT STATS BAR COMPONENT
   ================================ */
.impact-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
  color: var(--white);
  padding: 1.7rem 1.7rem;
  margin: 2rem 0;
  border-radius: var(--border-radius-medium);
  box-shadow: 0 10px 25px var(--shadow-medium);
}

.impact-stat {
  text-align: center;
  flex: 1;
}

.impact-stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.impact-stat-label {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ================================
   COLLAPSIBLE SECTIONS
   ================================ */
.collapsible-section .section-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.collapsible-section .section-header:hover {
  color: #003366;
}

.collapse-icon {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
  min-width: 20px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.collapsible-section.collapsed .collapse-icon {
  background: var(--accent);
  color: var(--primary);
}

.section-content {
  transition: all 0.3s ease;
  max-height: 10000px;
  overflow: hidden;
}

.collapsible-section.collapsed .section-content {
  max-height: 0;
  opacity: 0;
}

/* Default state: all sections start collapsed */
.collapsible-section .section-content {
  max-height: 0;
  opacity: 0;
}

.collapsible-section .collapse-icon {
  background: var(--accent);
  color: var(--primary);
}

/* Expanded state */
.collapsible-section.expanded .section-content {
  max-height: 10000px;
  opacity: 1;
}

.collapsible-section.expanded .collapse-icon {
  background: transparent;
  color: var(--accent);
}

.section-header:hover .collapse-icon {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 204, 51, 0.3);
}

/* ================================
   MICRO-HINT STYLING
   ================================ */
.micro-hint {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.75rem;
  color: #555;
  font-weight: 400;
  margin: -1.7rem 0 1rem 0.5rem;
  opacity: 0.8;
  transition: var(--transition);
  font-style: italic;
  position: relative;
  left: 29px;
}

.collapsible-section:hover .micro-hint {
  opacity: 1;
  color: var(--primary);
}

/* Hide micro-hint when section is expanded */
.collapsible-section.expanded .micro-hint {
  display: none;
}

/* Responsive micro-hint adjustments */
@media (max-width: 768px) {
  .micro-hint {
    left: 20px;
    margin: -1.5rem 0 1rem 0.3rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .micro-hint {
    left: 15px;
    margin: -1.3rem 0 0.8rem 0.2rem;
    font-size: 0.65rem;
  }
}

/* Hide micro-hint on very small screens where it would be too cramped */
@media (max-width: 360px) {
  .micro-hint {
    display: none;
  }
}
