/* Reset and base font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
  overflow-x: hidden;
}

/* Header Section */
.header {
  background: #FFD000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.header img {
  max-width: 100%;
  height: auto;
  transform: translateY(-90px);
}

/* About Section */
.about {
  background: #a0001c;
  padding: 3rem 2rem;
  text-align: center;
  width: 100vw;
  margin: 0;
}

.about h2 {
  color: #FFD000;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

.about .highlight {
  font-weight: 700;
}

/* Brand Experience Section */
.brands {
  padding: 2rem 1rem;
  background: #f8f8f8;
  text-align: center;
  width: 100vw;
  margin: 0;
}

.brands h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  color: black !important;
}

/* Logo Grid */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand-logos img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logos img:hover {
  transform: scale(1.05);
}

.nc-logo, .google-logo, .lockheed-logo {
  max-height: 50px;
}

/* Work Section */
.work-section {
  background-color: black;
  color: white;
  padding-bottom: 100px;
  margin-top: 0;
}

.work-section h3 {
  color: #931c23;
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  transform: translateY(2px);
  font-size: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-container {
  position: relative;
  width: 100%;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid white;
  display: block;
  max-width: 100%;
}

.video-title {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: white;
  user-select: none;
  white-space: nowrap;
  max-width: 100%;
}

/* Biography Section */
.bio-section {
  background: #FFD000;
  padding: 3rem 2rem;
  text-align: center;
  color: #000;
  width: 100vw;
  margin: 0;
}

.bio-section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: black !important;
}

.bios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
}

.bio {
  text-align: center;
  max-width: 300px;
  width: 100%;
  color: #000;
  box-sizing: border-box;
}

.bio h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #a0001c !important;
}

.bio p {
  font-size: 1rem;
  line-height: 1.4;
  color: #000;
}

.read-more {
  display: inline-block;
  margin-top: 6px;
  color: #a0001c;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.read-more:focus,
.popup-close:focus {
  outline: 2px dashed #a0001c;
  outline-offset: 2px;
}

/* Popup Modal */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 1000;
}

.popup-content {
  background-color: #fff;
  color: #000 !important;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
  overflow-y: auto;
  max-height: 80vh;
  font-family: sans-serif;
  margin: 0 auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popup-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.popup-content p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #000;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about h2,
  .brands h3,
  .work-section h3,
  .bio-section h3 {
    font-size: 1.5rem;
  }

  .about p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .brand-logos {
    gap: 0.75rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logos img {
    max-height: 25px;
    width: auto;
    height: auto;
  }

  .bios {
    flex-direction: column;
    align-items: center;
  }

  .bio {
    max-width: 100%;
    padding: 0 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .video-container iframe {
    height: auto;
    aspect-ratio: 16/9;
  }

  .video-title {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .popup-content {
    max-width: 95%;
    max-height: 90vh;
    padding: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .popup-close {
    top: 10px;
    right: 10px;
    font-size: 20px;
  }
}

/* Responsive logo styles */
.responsive-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Mobile adjustments for logos */
@media (max-width: 768px) {
  .brand-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
  }

  .responsive-logo {
    max-width: 100%;
    height: auto;
  }
}

/* Top Navigation Buttons */
.top-buttons {
  position: fixed;
  top: 30px;
  right: 25px;
  display: flex;
  gap: 20px;
  z-index: 1000;
}

.top-buttons a {
  color: black;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
}

.top-buttons a:hover {
  color: #555; 
}

/* Utility full-width class (if needed) */
.full-width {
  width: 100vw;      
  margin: 0;
  padding: 0;
  background-color: #FFD000;
}
