/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  padding-top: 75px;
}

/* Header Styles */
header {
  position: fixed;
  top: -20px;
  left: 0;
  width: 100%;
  padding: 25px 50px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  flex-wrap: wrap;
}

header img {
  width: 150px;
}

header h1 {
  font-size: 1.5em;
  margin-left: 20px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #66ccff;
}

/* Hero Section with Automatic Slideshow (for index.html) */
.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .hero-slider {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero .hero-slider .slide {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero .hero-slider .slide.active {
  opacity: 1;
}

.hero .hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content .hero-line {
  display: block;
  line-height: 1.2;
}

.hero-content h1 .adam-letter {
  color: #2168d3;
  font-weight: 1000;
  animation: pulse 2s infinite;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
}

/* Animation for .adam-letter */
@keyframes pulse {
  0% {
    text-shadow: 0 0 5px #b30000;
  }
  50% {
    text-shadow: 0 0 20px #b30000, 0 0 30px #b30000;
  }
  100% {
    text-shadow: 0 0 5px #b30000;
  }
}

/* Project Page Hero Section (for project pages like cubesat.html) */
.project-hero {
  position: relative;
  background: #111;
  color: #fff;
  text-align: center;
  margin-top: 120px;
  padding: 60px 20px;
}

.project-hero .hero-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 8px;
}

.project-hero .slide {
  display: none;
  width: 100%;
}

.project-hero .slide.active {
  display: block;
}

.project-hero .slide img,
.project-hero .slide video {
  width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.project-hero .prev,
.project-hero .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 16px;
  font-size: 18px;
  border-radius: 4px;
  user-select: none;
}

.project-hero .prev {
  left: 10px;
}

.project-hero .next {
  right: 10px;
}

.project-hero .hero-title {
  margin: 0 auto;
  max-width: 800px;
  padding-top: 20px;
}

.project-hero .hero-title h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.project-hero .hero-title p {
  font-size: 1.1em;
}

.project-details {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.project-details h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.project-details p,
.project-details ul {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.project-details ul {
  list-style: disc;
  margin-left: 20px;
}

/* About Hero Section (for about.html) */
    /* About Section */
    .about-section {
      padding: 40px 20px;
      background: #111;
      text-align: center;
    }
    .about-section h2 {
      font-size: 36px;
      margin-bottom: 20px;
    }
    .about-section p {
      max-width: 800px;
      margin: 0 auto 40px;
      font-size: 18px;
      line-height: 1.6;
    }  
.about-hero {
  position: relative;
  margin-top: 180px !important; /* Larger than your header’s height */
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  background: #616060;
}

.about-hero h1 {
  font-size: 3em;
  color: #fff;
  margin-bottom: 20px;
}

/* About Content Section (for about.html) */
.about-content {
  max-width: 1000px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 20px;
  align-items: center;
}

.about-content .profile-pic {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.about-content .about-slider {
  position: relative;
  width: 100%;
}

.about-content .about-slider .slide {
  display: none;
  width: 100%;
}

.about-content .about-slider .slide.active {
  display: block;
}

.about-content .about-slider .slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.about-content .about-slider .prev,
.about-content .about-slider .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 16px;
  font-size: 18px;
  border-radius: 4px;
  user-select: none;
}

.about-content .about-slider .prev {
  left: 10px;
}

.about-content .about-slider .next {
  right: 10px;
}

.about-content .bio {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: left;
  color: #fff;
}

.about-content .bio h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.about-content .bio p {
  margin-bottom: 15px;
}

/* Certifications Section (for index.html) */
.certifications-section {
  padding: 80px 20px;
  background: #111;
  text-align: center;
}

.certifications-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.certification-item {
  max-width: 800px;
  margin: 0 auto 40px;
}

.certification-item h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.certification-item p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.certification-badge {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.certification-badge div {
  max-width: 150px;
  max-height: 270px;
}

/* PDF Container (for resume.html) */
.pdf-container {
  max-width: 1000px;
  margin: 120px auto 40px;
  padding: 20px;
  text-align: center;
}

.pdf-container h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.pdf-actions {
  margin-bottom: 20px;
}

.pdf-actions a {
  color: #66ccff;
  text-decoration: underline;
  font-size: 16px;
  margin: 0 10px;
}

.pdf-embed {
  width: 100%;
  height: 1000px;
  margin: 0 auto;
  position: relative;
}

.pdf-embed object {
  width: 100%;
  height: 100%;
  border: none;
}

a.project-link:link {
  color: #66ccff; /* Light blue for unvisited links */
  text-decoration: none;
}

a.project-link:visited {
  color: #a767fc; /* Light purple for visited links */
  text-decoration: none;
}

a.project-link:hover {
  color: #fff;     /* White on hover */
  text-decoration: underline;
}

a.project-link:active {
  color: #ccc;
}


/* Projects Container (for projects.html) */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 120px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Link (remove default link styling) */
.card-link {
  text-decoration: none;
  color: inherit;
}

/* Card Styles (for projects.html) */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  background: #2c3e50;
}

.card .card-bg {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover .card-bg {
  transform: scale(1.05);
  opacity: 0.8;
}

.card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.card:hover .card-overlay {
  transform: translateY(0);
}

.card h2 {
  font-size: 1.25em;
  margin-bottom: 5px;
}

.card p {
  font-size: 0.9em;
  margin-bottom: 10px;
}

.skills {
  font-size: 0.8em;
}

.skills strong {
  font-weight: bold;
}

/* Timeline Section */
.timeline-section {
  position: relative;          /* allows absolute positioning within */
  padding: 50px 20px;          /* space around the heading/timeline */
  background: #222;
}

.timeline-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

/* Timeline Container */
.timeline-container {
  position: relative;          /* reference for the ::after line */
  max-width: 1000px;
  margin: 0 auto;              /* center the container */
  padding-bottom: 40px;        /* ensure line extends below last item */
}

/* Vertical Line */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #444;
  top: 30px;                      /* start line at top of .timeline-container */
  bottom: 20px;                   /* end line at bottom of .timeline-container */
  left: 50%;
  margin-left: -2px;           /* center the line at 50% */
}

/* Timeline Items */
.timeline-item {
  padding: 20px 30px;
  position: relative;
  background: inherit;
  width: 50%;
  margin-bottom: 40px;         /* extra spacing so items don’t overlap */
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item .content {
  background: #333;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
}

.timeline-item.left::before {
  content: " ";
  position: absolute;
  top: 22px;
  right: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

.timeline-item.right::before {
  content: " ";
  position: absolute;
  top: 22px;
  left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}


.timeline-date {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 5px;
}

.timeline-item h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.timeline-item h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #ccc;
}

.timeline-item p {
  font-size: 16px;
  margin-bottom: 15px;
}

.timeline-item img {
  width: 100%;
  max-width: 400px;
  margin: 10px auto;
  border-radius: 6px;
  display: block;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  font-size: 14px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero .hero-slider .slide img {
    object-fit: contain;
  }

  header {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
  }

  nav ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .projects-container {
    padding-top: 100px;
  }

  .card .card-bg {
    height: 180px;
  }

  .hero-content {
    transform: rotate(0deg);
    max-width: 90%;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content .hero-line {
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 18px;
    max-width: 100%;
  }

  .project-hero .hero-slider {
    max-width: 100%;
    padding: 0 10px;
  }

  .timeline-container::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    margin-bottom: 20px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 60px;
    border: none;
    border-left: 8px solid #333;
  }
}

/* Sponsor Logo Sizing */
.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px; /* or any desired spacing */
}

.sponsor-logos img {
  max-height: 100px; /* Adjust to your preference */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px; /* optional, for slightly rounded corners */
}
