
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    text-align: center;
    padding: 40px 20px;
    background-color: #650000;
    color: white;
}

.profile-pic {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid white;
}

nav {
    background-color: #ddd;
    text-align: center;
    padding: 10px;
}

nav a {
    margin: 0 15px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

section {
    padding: 20px;
    margin: 10px auto;
    max-width: 800px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.badges {
    text-align: center;
    padding-top: 10px;
}

.badges img.badge {
    width: 140px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.badges img.badge:hover {
    transform: scale(1.05);
}


footer {
    text-align: center;
    padding: 20px;
    background-color: #eee;
}
.badges figure {
    display: inline-block;
    margin: 10px;
    text-align: center;
}

.badges figcaption {
    font-size: 0.9em;
    color: #444;
    margin-top: 6px;
}
.cert-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.cert-card {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  width: 260px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card h4 {
  margin: 0 0 5px;
}

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

.cert-card a {
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
}

/* Recognition section card layout */
.recognition-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.recognition-card {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  width: 260px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.recognition-card:hover {
  transform: translateY(-5px);
}

.recognition-card h4 {
  margin: 0 0 5px;
  color: #333;
}

.recognition-card p {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Recognition link styling - black text, no underline by default, underline on hover */
.recognition-link {
  color: #000;
  text-decoration: none;
  font-weight: normal;
}

.recognition-link:hover {
  text-decoration: underline;
}

nav {
  background-color: #3c0d0d; /* matches your deep red theme */
  padding: 10px 0;
  text-align: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: #ffd700; /* soft gold for hover effect */
}
html {
  scroll-behavior: smooth;
}

nav {
  background-color: #3c0d0d;
  padding: 12px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
section {
  scroll-margin-top: 80px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}


.project-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-top: 0;
  color: #3c0d0d;
  font-size: 1.2em;
}


.badges {
  margin-top: 40px;
}

.contact-card {
  background-color: #fff;
  padding: 25px;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-card h2 {
  text-align: center;
  color: #3c0d0d;
}
#recognition h2 {
  text-align: center;
  color: #3c0d0d; /* deep red */
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 15px;
  font-size: 1.05em;
}



.contact-list a {
  color: #3c0d0d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: #7e2d2d; /* a warmer maroon on hover */
  text-decoration: underline;
}

/* (1) Responsive grid for project cards */
.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  margin-top: 20px;
}

/* (2) Project card refinements */
.project-card {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 16px 18px;
  width: 320px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.project-card h3 {
  margin: 0 0 6px;
  color: #3c0d0d;
  font-size: 1.15rem;
  line-height: 1.25;
}

.project-card .meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.project-card .stats {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.project-card .stats li {
  margin: 4px 0;
  font-size: 0.95rem;
}

/* (3) Slightly wider main container */
section {
  padding: 24px;
  margin: 12px auto;
  max-width: 1000px;  /* was 800px */
}

/* (4) Final nav rule — keep this LAST so it overrides earlier nav styles */
nav {
  background-color: #3c0d0d;
  padding: 12px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* (5) Optional: reduce motion + crisper header text */
@media (prefers-reduced-motion: reduce) {
  * { 
    transition: none !important;
    animation: none !important;
  }
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none !important;
  }
}
header {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Portfolio Section Styles */
.portfolio-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.portfolio-card {
  background: linear-gradient(135deg, #650000 0%, #3c0d0d 100%);
  color: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.portfolio-card h3 {
  margin: 0 0 15px;
  font-size: 1.8em;
  color: white;
}

.portfolio-card p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.95);
}

.portfolio-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: white;
  color: #650000;
  border-color: white;
}

.btn-primary:hover {
  background-color: #ffd700;
  color: #3c0d0d;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: #650000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

#mission-control {
  background:
    radial-gradient(circle at top right, rgba(255, 148, 190, 0.28), transparent 35%),
    linear-gradient(135deg, #17121c 0%, #241520 55%, #120f17 100%);
  color: #fff7fb;
  border: 1px solid rgba(255, 199, 222, 0.22);
}

#mission-control h2 {
  color: #ffd6e8;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

#mission-control > p {
  color: #f5dce8;
  max-width: 720px;
  line-height: 1.7;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.mission-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 199, 222, 0.25);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.mission-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 151, 197, 0.75);
}

.mission-card span {
  color: #ff9fc7;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mission-card h3 {
  color: #ffffff;
  margin: 12px 0 8px;
}

.mission-card p {
  color: #efd6e1;
  line-height: 1.6;
}
