/* Intelligence Builders - Main Stylesheet */

:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #2c5282;
  --color-accent: #3b82f6;
  --color-accent-light: #60a5fa;
  --color-text: #1a202c;
  --color-text-light: #4a5568;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-border: #e2e8f0;
  --max-width: 1100px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: rgba(255, 255, 255, 0.9);
  background: var(--color-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header / Navigation */
header {
  background: var(--color-primary);
  color: white;
  padding: 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-logo-img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: white;
  text-decoration: none;
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Main Content */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  text-align: center;
  padding: 2rem 2rem 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  background: var(--color-primary-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
}

.page-header h1 {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 2rem;
  color: white;
}

/* Content Section */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.content-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
}

.card h2 {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Clickable Card Links */
a.card-link {
  display: block;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.card-link:hover {
  text-decoration: none;
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

a.card-link:hover h2 {
  color: var(--color-accent-light);
}

/* Section Headings */
.section-heading {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

/* Profile Card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 480px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info h3 {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.125rem;
}

.profile-info .profile-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.profile-info p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
}

.contact-card h2 {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.125rem;
}

.contact-card .contact-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-card .contact-details p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.contact-card address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Waffle Card */
.waffle-card {
  grid-column: 1 / -1;
}

.waffle-card-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.waffle-card-text {
  flex: 1;
}

.waffle-card-text p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.waffle-card-text p:last-child {
  margin-bottom: 0;
}

.waffle-card-media {
  flex: 0 0 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.waffle-img {
  width: 100%;
  border-radius: 8px;
}

.waffle-card audio {
  width: 100%;
  height: 32px;
}

.waffle-jokes {
  margin-top: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
}

.waffle-jokes h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.waffle-jokes-intro {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.waffle-joke {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.waffle-joke p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-map {
  margin-top: 1.5rem;
}

/* Showcase Section */
.showcase {
  background: var(--color-primary);
  padding: 1.5rem 2rem;
}

.showcase-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.showcase-item {
  border-radius: 6px;
  overflow: hidden;
}

.showcase-item[data-modal-img] {
  cursor: pointer;
}

.showcase-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/* About Page Layout */
.about-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-leader .section-heading,
.about-why .section-heading {
  margin-bottom: 1rem;
}

.about-why .card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.about-why .card p:last-child {
  margin-bottom: 0;
}

.about-leader {
  max-width: 480px;
}

.about-media-img {
  margin-top: 1rem;
  width: 100%;
  border-radius: 8px;
  display: block;
}

.about-video {
  margin-top: 1rem;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.about-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Horizontal Scroll Strip */
.img-scroll-section {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 2rem;
}

.img-scroll {
  max-width: var(--max-width);
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.img-scroll-track {
  display: flex;
  gap: 0.75rem;
}

.img-scroll-item {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.img-scroll-item:hover {
  opacity: 1;
}

.img-scroll-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/* Image Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-built-with {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-built-with a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-built-with a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.75rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 1.5rem 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .card-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
  }

  .waffle-card-inner {
    flex-direction: column;
  }
}
