html {
    scroll-behavior: smooth;
    background-color: rgba(249,250,251,var(--tw-bg-opacity));
  }
  body {
margin: 0;
font-family: Arial, sans-serif; /* restore your chosen font */
}

  /* Small green bar at top */
  #top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px; /* increased thickness */
    background-color: #2ee4a8;
    z-index: 999;
    transition: opacity 0.3s ease;
  }

  /* Common logo style */
  .nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2.5px solid black;
    background-color: white;
    color: black;
    font-weight: 900;
    font-size: 1.3rem;
    font-family: 'Arial Black', Arial, sans-serif;
    border-radius: 5px;
    user-select: none;
    margin-right: 30px;
    flex-shrink: 0;
    box-sizing: border-box;
    cursor: default;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    transition: none;
  }

  /* Sticky navbar - hidden initially */
  nav#sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2ee4a8;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  nav#sticky-nav.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Nav links except Contact Me */
  nav#sticky-nav a:not(.contact-box),
  nav#hero-nav a:not(.contact-box) {
    position: relative;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
  }
  nav#sticky-nav a:not(.contact-box):hover {
    color: white;
  }

  /* Hero nav links except Contact Me hover green */
  nav#hero-nav a:not(.contact-box) {
    color: black;
    transition: color 0.3s ease;
  }
  nav#hero-nav a:not(.contact-box):hover {
    color: #2ee4a8;
  }

  nav#sticky-nav a:not(.contact-box)::after,
  nav#hero-nav a:not(.contact-box)::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
  }
  nav#sticky-nav a:not(.contact-box):hover::after,
  nav#hero-nav a:not(.contact-box):hover::after {
    width: 100%;
  }

  /* Contact Me button in sticky nav */
  nav#sticky-nav a.contact-box {
    background-color: #2ee4a8;  /* same as sticky nav background */
    color: black;
    border: 2px solid black;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
  }
  nav#sticky-nav a.contact-box:hover {
    background-color: black;
    color: white;
    border: 2px solid black;
  }

  /* Contact Me button in hero nav */
  nav#hero-nav a.contact-box {
    border: 2px solid black;
    background-color: white;
    color: black;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
  }
  nav#hero-nav a.contact-box:hover {
    background-color: black;
    color: white;
  }
  nav#sticky-nav a.contact-box::after,
  nav#hero-nav a.contact-box::after {
    content: none !important;
  }

  /* Hero section */
  section.hero {
    position: relative;
    background: rgba(249,250,251,var(--tw-bg-opacity));
    padding: 140px 20px 60px;
    padding-bottom: 5px;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    overflow: visible;
    color: black;
    margin-bottom: 0; 
  }

  .hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-content img {
    border-radius: 50%;
    border: 7px solid black;
    width: 384px;
    height: 384px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    margin: 40px 0 0 0;
    cursor: pointer;
  }
  .hero-content img:hover {
    border-color: #2ee4a8;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(46, 228, 168, 0.6);
  }
  .hero-content p.main-intro {
    font-size: 1.3rem;
    margin-top: 1rem;
    line-height: 1.6;
    color: black;
  }
  .hero-content p.main-intro span {
    color: #2ee4a8;
    font-weight: bold;
    font-size: 1.4rem;
  }

  /* Nav links inside hero */
  nav#hero-nav {
    position: absolute;
    top: 40px; /* moved down from 20px */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 10;
    width: auto;
    white-space: nowrap;
  }

  /* Content */
  .content {
padding: 0;
max-width: 1000px;
margin: 0 auto;
background-color: transparent; /* no white background */
border-radius: 0;
color: inherit; /* don't override body text color */
font-family: inherit; /* keep same font as body */
}
  #about {
    padding: 1.5rem 0 0 0;
    margin-top: 0;
    text-align: center;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: white;
  }

  #about .resume-btn {
    margin: 0 auto 0 auto;
    display: inline-block;
    padding: 12px 24px;
    background-color: #2ee4a8;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }

  #about .resume-btn:hover {
    background-color: #25c891;
  }

  /* Projects */
  #projects {
background-color: rgb(17, 24, 39);
font-size: 1.3rem;
line-height: 1.7;
margin-top: 2rem;
text-align: center;
padding: 1.5rem 20px; /* keep side padding if needed */
color: white;
border-radius: 0 !important;
box-shadow: none !important;
width: 100vw;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
}

  #projects h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
  }
  .projects-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    max-width: 100vw;
    margin: 0 auto;
  }
  .project-box {
    width: 397px;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
  }
  .project-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .project-picture {
    height: 240px;
    width: 100%;
    object-fit: cover;
  }
  .project-description {
flex-grow: 1; /* fills remaining vertical space */
display: flex;
flex-direction: column;
justify-content: center;
padding: 20px;
font-size: 1.6rem;
font-weight: 800;
color: #111;
background: linear-gradient(90deg, #2ee4a8, #1bbf86);
border-radius: 0 0 16px 16px;
text-align: center;
}

  .project-description .subtitle {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 8px;
    color: #444;
  }

  /* Skills */
  #skills {
    background: rgba(249,250,251,var(--tw-bg-opacity));
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: black;
  }
  #skills h2 { .certificate-box {
    width: 260px; /* slightly smaller than projects */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
  }

  .certificate-box img {
width: 298px;
height: 230px;
object-fit:initial;
margin: 0 auto; /* centers image inside box */
display: block;
}
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
  }
  #skills .skills-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
margin-top: 30px;
}
  #skills .skill-card {
background-color: #2ef2a0; /* bright green */
padding: 15px 25px;
border-radius: 15px;
font-weight: bold;
color: black;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
  #skills .skill-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

  /* Contact Me Section */
  #contact-me {
background: rgb(17, 24, 39);
border-radius: 0 !important;
box-shadow: none;
padding: 1.5rem 20px;
margin-top: 2rem;
text-align: center;
color: white;
width: 100vw;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
margin-bottom: 0;
clear: both; /* ensures it starts below Skills */
position: relative;
z-index: 1; /* keeps it above other content if needed */
}
.contact-icons {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 20px;
}

.contact-icons a {
color: #2ee4a8; /* matches navbar green */
font-size: 2rem;
transition: color 0.3s ease, transform 0.3s ease;
}

.contact-icons a:hover {
color: white;
transform: scale(1.2);
}
.button-group {
display: flex;
gap: 15px;
flex-wrap: wrap;
justify-content: center; /* Center align, change to flex-start for left */
}

.portfolio-btn {
display: inline-block;
padding: 12px 25px;
background-color: #2ef2a0; /* same as your Resume button */
color: black;
font-weight: bold;
border-radius: 8px;
text-decoration: none;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.portfolio-btn:hover {
background-color: #25c885; /* darker green on hover */
transform: translateY(-2px);
}
/* Certificates page-specific styles */
    body {
      background-color: rgba(249, 250, 251, var(--tw-bg-opacity)); /* match main light bg */
    }

    #certificates {
      background-color: rgb(17, 24, 39);
      min-height: 100vh;
      padding: 60px 20px;
      color: white;
    }
    
    #certificates h2 {
      font-size: 2rem;
      margin-bottom: 2rem;
      font-weight: bold;
      text-align: center;
      color: #2ee4a8;
    }
    
    .certificates-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      padding: 0;
      animation: fadeInUp 1s ease-out;
    }
    
    .certificate-box {
      display: flex;
      flex-direction: column;
      border-radius: 16px;
      overflow: hidden;
      background: white;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }
    
    .certificate-box img {
      width: 100%;
      height: 200px;
      object-fit: contain;
      background-color: white;
      padding: 10px;
    }
    
    .certificate-description {
      background: linear-gradient(90deg, #2ee4a8, #1bbf86);
      padding: 12px 15px;
      text-align: left;
      box-sizing: border-box;
    }
    
    .cert-title {
      font-family: "Segoe UI", sans-serif;
      font-size: 19.2px;
      font-weight: 700;
      display: block;
      color: black;
    }
    
    
    .cert-issuer {
      font-family: "Segoe UI", sans-serif;
      font-size: 15.2px;
      font-weight: normal;
      color: black;
    }
    
    
    .certificate-box:hover {
      transform: translateY(-10px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    
    /* Optional animation for fade-in */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    /* Lightbox styles */
.lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  background: white; /* simulates a frame */
  padding: 10px;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.8), /* outer glow */
    0 8px 30px rgba(0, 0, 0, 0.5);     /* soft shadow for depth */
  animation: fadeIn 0.3s ease-in-out;
}

/* Smooth fade-in for the preview */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
/* ---------- Responsive Design ---------- */

/* Large tablets / small laptops (max width: 1024px) */
@media (max-width: 1024px) {
  .hero-content img {
    width: 280px;
    height: 280px;
  }

  .projects-container {
    flex-wrap: wrap;
    gap: 20px;
  }

  .project-box {
    width: 100%;
    max-width: 350px;
  }
}

/* Tablets (max width: 768px) */
@media (max-width: 768px) {
  nav#hero-nav, nav#sticky-nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-content img {
    width: 220px;
    height: 220px;
  }

  .projects-container {
    flex-direction: column;
    align-items: center;
  }

  .project-box {
    width: 90%;
  }

  .skills-container {
    gap: 10px;
  }

  .skill-card {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
}

/* Mobile phones (max width: 480px) */
@media (max-width: 480px) {
  .nav-logo {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-right: 10px;
  }

  nav#hero-nav, nav#sticky-nav {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .hero-content img {
    width: 180px;
    height: 180px;
  }

  .hero-content p.main-intro {
    font-size: 1rem;
  }

  .projects-container {
    gap: 15px;
  }

  .project-box {
    width: 100%;
  }

  .certificates-grid {
    grid-template-columns: 1fr; /* 1 card per row */
    gap: 1rem;
  }

  .certificate-box img {
    height: auto;
    padding: 5px;
  }
}
/* Hamburger button - hidden by default */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
}

/* Default nav-links layout */
.nav-links {
  display: flex;
  gap: 30px;
}

/* Small screens: show hamburger, hide links by default */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: #2ee4a8;
    position: absolute;
    top: 60px; /* below nav */
    right: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }
}



