/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #000000;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background: #000;
  color: #fff;
  position: relative;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  margin-left: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #0088ff;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  background: #000;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("images/unnamed.jpg") no-repeat center/cover;
  opacity: 0.10;
  z-index: 0;
}

.hero-text,
.hero-image {
  position: relative;
  z-index: 1;
}

.hero-text h2 {
  font-size: 2rem;
  color: white;
}

.hero-text p {
  font-size: 20px;
  color: white;
}

.hero-text span {
  color: #0088ff;
}

.hero-image img {
  border-radius: 50%;
  width: 200px;
}

/* Sections */
section {
  padding: 4rem 2rem;
}

.about, .projects, .contact {
  text-align: center;
  background-color: #000;
  color: white;
}

.projects .project-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #000;
}

.project-card img {
  width: 100%;
  border-radius: 8px;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .projects .project-grid {
    flex-direction: column;
    align-items: stretch; /* makes cards full width */
  }

  .project-card {
    width: 100%; /* take up available width */
    max-width: 400px; /* optional limit so they don’t get too wide */
    margin: 0 auto;   /* center them */
  }

  .project-card img {
    width: 100%;
    height: auto;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: #fff;
}

.contactLink {
  color: #0088ff;
  text-decoration: none;
}

/* Resume + Transcript containers */
#resumeContainer, #transcriptContainer, #certificationContainer {
  margin: 20px auto;
  background: #1b1b1b;
  max-width: 860px;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  border-radius: 8px;
  flex-direction: column; /* FIX: stack items */
  gap: 20px; /* spacing between certificates */
}

#resumeContainer img, #transcriptContainer img {
  max-width: 800px;
  width: 75%;
  height: auto;
  display: block;
}

#resumeContainer a, #transcriptContainer a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

#resumeHeader {
  padding: 0 0 0 5%;
  color: white;
}

#resumeHeader p {
  color: #0088ff;
}

#educationBody {
  flex: 1;
}

/* Certificates */
.certificate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px;
  border-radius: 12px;
  background: #222;
  width: 100%;
}

.certificate-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.certificate h1 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: #fff;
}

.certificate p {
  margin: 0;
  color: #ccc;
}

.certificate img {
  max-width: 120px;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .certificate {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .certificate img {
    margin-top: 10px;
    max-width: 200px;
  }
}

/* Projects */
#projectContainer {
  margin: 20px auto;
  background: #1b1b1b;
  max-width: 1000px;
  width: 95%;
  padding: 40px 20px;
  border-radius: 8px;
}

.project {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.project-text {
  flex: 1;
  color: #fff;
}

.project img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.image-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.image-buttons button {
  padding: 6px 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.image-buttons button:hover {
  background: #555;
}

.link-project {
  margin-top: 15px;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  color: #fff;
  font-size: 14px;
  float: right;
  margin-left: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.video-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding-top: 56.25%;
  background: #000;
  border: 2px solid #444;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.video-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Inputs */
.links input[type="text"] {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1b1b1b;
  color: #eee;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.links input[type="text"]:focus {
  outline: none;
  color: #0088ff;
  background: #222;
}

.projectButton {
  text-decoration: none;
  color: white;
  padding: 10px 15px;
  background-color: #0088ff;
  border-radius: 8px;
  display: inline-block;   /* ensures margin works properly */
  margin-top: 15px; 
}

/* Buttons */
.buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.buttons input[type="button"] {
  flex: 1;
  padding: 6px 0;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.buttons input[type="button"]:hover {
  background-color: #12c2f3;
  color: #000;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin-top: 2rem;
  }

  .project {
    flex-direction: column;
  }

  .project-media {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
  }

  .project-media img {
    max-width: 100%;
    height: auto;
  }

  .link-project {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 15px;
  }

  /* Mobile menu */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    padding: 1rem;
    border-radius: 6px;
    width: 200px;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }
}
.EducationButtons {
  display: flex;
  justify-content: center; /* centers horizontally */
  gap: 20px; /* spacing between buttons */
  margin-top: 20px; /* optional space above */
}

#TranscriptShow, #CertificationShow {
  color: white;
  background-color: #0088ff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 20px;
}

#TranscriptShow:hover, #CertificationShow:hover {
  color: white;
  background-color: #0088ff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 20px;
}