/* === Global Reset & Fonts === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* === Top Navigation === */
#menu {
  background: #002b5c;
  padding: 1em 2em;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#menu ul {
  display: flex;
  list-style: none;
  gap: 2em;
}

#menu ul li a {
  color: #dbe9ff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
  font-size: 1rem;
}

#menu ul li a:hover,
#menu ul li a.active {
  color: #fff;
  font-weight: bold;
}

/* === Page Titles === */
.page-title {
  text-align: center;
  font-size: 2rem;
  color: #002b5c;
  margin: 2em 0 1em 0;
}

/* === Hero / Banner === */
#banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 3em 2em;
  background: #f4f8ff;
}

#banner .content {
  max-width: 600px;
  margin: 1em;
}

#banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.3em;
  color: #002b5c;
}

#banner .highlight {
  color: #0056b3;
}

#banner p {
  font-size: 1.1rem;
  color: #444;
  margin-top: 0.5em;
}

#banner img {
  width: 220px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  margin: 1em;
}

/* === Buttons === */
.button {
  display: inline-block;
  padding: 0.7em 1.5em;
  margin-top: 1em;
  background: #0056b3;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.button:hover {
  background: #003f7f;
}

.button.big {
  font-size: 1.1rem;
}

/* === Features Grid === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin: 2em 3%;
}

.features article {
  background: white;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.features article:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.features article h3 {
  margin-top: 0.5em;
  color: #2c3e50;
}

.features article p {
  color: #555;
  margin-top: 0.5em;
}

/* === Contact / Resume / Competitions Cards === */
.resume-card, .contact-card, #competitions .features article {
  background: white;
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.resume-card:hover, .contact-card:hover, #competitions .features article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.resume-card h3, #competitions .features article h3 {
  margin-top: 0;
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3em;
  margin-bottom: 0.8em;
  font-size: 1.3em;
}

/* === Contact Info === */
ul.contact {
  list-style: none;
  padding: 0;
}

ul.contact li {
  margin: 1em 0;
  font-size: 1.1em;
}

ul.contact li i {
  margin-right: 0.6em;
  color: #0077cc;
}

/* === Download Resume Button === */
.download-btn {
  display: inline-block;
  background: #0077cc;
  color: white;
  padding: 0.35em 0.8em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 0.5em;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
  background: #005fa3;
  transform: translateY(-1px);
}

/* === Work in Progress Banner === */
#work-in-progress {
  background: #ffecb3;
  color: #8a6d3b;
  text-align: center;
  padding: 0.7em;
  font-weight: bold;
  font-size: 1rem;
  border-bottom: 2px solid #f0c36d;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  #banner {
    flex-direction: column;
    text-align: center;
  }

  #banner img {
    margin: 1em 0 0 0;
  }

  .features {
    margin: 2em 5%;
    gap: 1.5em;
  }

  #menu ul {
    flex-direction: column;
    gap: 1em;
    text-align: center;
  }
}

/* Remove link color and underline for project links */
.project-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.project-link:hover {
  color: #0056b3;
  text-decoration: none;
}

/* Make competition cards match project cards style */
#competitions .features article {
  background: white;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 1em;
}

#competitions .features article:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#competitions .features article h3 {
  margin-top: 0.5em;
  color: #2c3e50;
}

/* === Resume/Skills Horizontal Layout === */
.resume-container {
  max-width: 950px;
  margin: 2em auto;
  padding: 1em 2em;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

/* Education full-width */
.resume-education {
  width: 100%;
}

/* Technical Skills + Leadership side-by-side */
.resume-grid {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}

.resume-grid .resume-card {
  flex: 1 1 45%;
  max-width: 460px;
}

/* Optional: slightly bigger headers in cards */
.resume-card h3 {
  font-size: 1.35em;
  margin-bottom: 0.7em;
}

/* Add padding inside resume cards */
.resume-card {
  padding: 1.5em 2em;
  width: 100%;
}

/* Center download button under title */
.page-title .download-btn {
  display: inline-block;
  padding: 0.35em 0.8em;
  font-size: 0.9rem;
  margin-top: 0.7em;
  text-align: center;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .resume-grid {
    flex-direction: column;
  }

  .resume-grid .resume-card {
    max-width: 100%;
  }
}

/* Contact Page */
#contact {
  text-align: center;
  padding: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;   /* removes underline */
  color: #000;             /* forces black text */
  font-weight: 500;
}

.contact-card i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #002b5c; /* dark blue for icons only */
}

.contact-card p {
  margin: 0;
  color: #000; /* ensures text always black */
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  background: #f0f0f0;
  text-decoration: none;  /* prevents underline on hover */
  color: #000;            /* keeps text black */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  object-fit: cover;
}

/* PDF link style */
article a {
  color: #0056b3;
  font-weight: bold;
  text-decoration: none;
}
article a:hover {
  text-decoration: underline;
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}
