/* =======================
   BASE & RESET STYLES
========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =======================
   HEADER & NAVIGATION
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 10px 0;
}

#menu {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu li a {
  font-weight: 700;
  color: #3498db;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#menu li a:hover,
#menu li a:focus {
  background-color: #eee;
  outline: none;
}

/* Mobile Menu Close Button */
#mobile-menu-close {
  display: none; /* Hide by default */
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #333;
  font-size: 1rem;
  padding: 10px;
  user-select: none;
}

/* Hide "Close" text to avoid clutter */
#mobile-menu-close span {
  display: none;
}

/* Show mobile menu close button only on mobile */
@media (max-width: 768px) {
  #mobile-menu-close {
    display: flex;
  }
}

/* =======================
   LEAD / HERO SECTION
========================== */
#lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 150px 100px;
  min-height: 500px;
  max-height: 1080px;
  background: url('../images/lead-bg.jpg') no-repeat center center/cover;
  position: relative;
  gap: 30px;
  color: white;
}

#lead-content {
  max-width: 45%;
  z-index: 10;
}

#lead-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 900;
}

#lead-content h2 {
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

#Bio {
  max-width: 50%;
  text-align: center;
  position: relative;
  z-index: 10;
}

#Bio img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Download Resume Button */
.btn-rounded-white {
  display: inline-block;
  background-color: #3498db;
  color: white !important;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn-rounded-white:hover,
.btn-rounded-white:focus {
  background-color: #217dbb;
  box-shadow: 0 6px 14px rgba(33, 125, 187, 0.8);
  outline: none;
}

/* =======================
   ABOUT SECTION
========================== */
#about {
  padding: 80px 15px 80px;
  background-color: white;
}

#about .container {
  max-width: 1140px;
  margin: 0 auto;
}

#about .heading {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 900;
  color: #222;
}

#about p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #444;
}

/* =======================
   EDUCATION / EXPERIENCE SECTION
========================== */
#experience {
  padding: 80px 15px 80px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #f0f0f0;
  border-radius: 10px;
}

#experience h2.heading {
  text-align: center;
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 40px;
  margin-bottom: 20px;
  color: #222;
}

#experience-timeline > div {
  margin-bottom: 40px;
  padding-left: 0; /* Remove default padding */
  border-left: none; /* Remove vertical line */
  position: relative;
}

#experience-timeline h3 {
  margin-top: 0;
  color: #3498db;
  font-weight: 700;
}

#experience-timeline h4 {
  margin-bottom: 5px;
  font-weight: 600;
  color: #666;
}

#experience-timeline p {
  margin: 5px 0;
  color: #444;
  font-size: 0.95rem;
}

/* =======================
   PROJECTS SECTION
========================== */

#projects {
  padding: 80px 15px 80px;
  background-color: white;
  max-width: 1200px;
  margin: 0 auto;
}

#projects .heading {
  font-size: 2.8rem;
  margin-bottom: 60px;
  font-weight: 900;
  color: #222;
  text-align: center;
}

.container .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.project {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  max-width: 350px;
  flex: 1 1 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 4px solid #3498db;
}

.project-image img {
  width: 300px;
  height: 300px;
  object-fit:cover;
  transition: transform 0.4s ease;
}

.project-image img:hover {
  transform: scale(1.08);
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 25px;
}

.project-info h3 {
  margin-top: 0;
  color: #3498db;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.project-info p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 10px;
  margin-top: 0px;
  line-height: 1.2;
  text-align: center;

}

.project-info a {
  color: #217dbb;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color 0.3s ease;
  font-size: 1rem;
  padding-bottom: 5px;
}



.project-info a:hover,
.project-info a:focus {
  border-color: #217dbb;
  outline: none;
}




/* View More Button */
.view-more-container {
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

.view-more-container button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.view-more-container button:hover,
.view-more-container button:focus {
  background-color: #217dbb;
  box-shadow: 0 7px 20px rgba(33, 125, 187, 0.8);
  outline: none;
}

.project-link {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 0px;
}



/* Responsive tweaks */
@media (min-width: 768px) {
  .project {
    flex-direction: row;
    max-width: 700px;
    height: 300px;
  }

  .project-image {
    flex: 0 0 45%;
    height: 100%;
    border-bottom: none;
    border-right: 4px solid #3498db;
  }

  .project-info {
    flex: 1 1 55%;
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .project-info h3 {
    font-size: 1.3rem;
  }
}


/* =======================
   SKILLS SECTION
========================== */
#skills {
  padding: 80px 15px 80px;
  background-color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
}

#skills h2.heading {
  text-align: center;
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #222;
}

#skills ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 15px 30px;
}

#skills ul li {
  background-color: white;
  color: #3498db;
  font-weight: 700;
  padding: 12px 12px;
  border-radius: 25px;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
  font-size: 1rem;
}

/* Style category headings distinctly */
#skills ul li.category {
  background-color: transparent;
  color: #2c3e50;
  font-weight: 900;
  padding: 5px 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.3rem;
  width: 100%;      /* full width to appear as a section header */
  text-align: center;
  margin-top: 10px; /* spacing above category */
  pointer-events: none; /* prevent hover/click */
  user-select: none;    /* prevent text selection */
}



/* =======================
   CONTACT SECTION
========================== */
#contact {
  padding: 80px 15px 80px;
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
}

#contact h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 30px;
  text-align: center;
  color: #222;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: #444;
}

#contact-form input[type="email"],
#contact-form textarea {
  margin-top: 8px;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
  border-color: #3498db;
  outline: none;
}

#contact-form button {
  background-color: #3498db;
  color: white;
  padding: 12px 0;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover,
#contact-form button:focus {
  background-color: #217dbb;
  box-shadow: 0 6px 14px rgba(33, 125, 187, 0.8);
  outline: none;
}

/* =======================
   FOOTER
========================== */
footer {
  background-color:#3498db;
  color: white;
  padding: 20px 15px;
  font-size: 0.9rem;
  text-align: center;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* changed from space-between */
  align-items: center;
  gap: 30px; /* add spacing between items */
  text-align: center;
}


footer .copyright {
  flex: 1 1 40%;
}

footer .top {
  flex: 1 1 20%;
  text-align: center;
  cursor: pointer;
}

footer .social {
  flex: 1 1 40%;
  text-align: right;
}

footer .social ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

footer .social ul li a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

footer .social ul li a:hover img {
  filter: brightness(0.7) invert(1);
}

/* =======================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 992px) {
  #lead {
    flex-direction: column;
    padding: 80px 20px;
    text-align: center;
  }

  #lead-content,
  #Bio {
    max-width: 100%;
  }

  #Bio {
    margin-top: 30px;
  }


  footer .container {
    flex-direction: column;
    gap: 15px;
  }

  footer .copyright,
  footer .top,
  footer .social {
    flex: 1 1 100%;
    text-align: center;
  }

  #skills ul {
    gap: 15px 20px;
  }
}

@media (max-width: 576px) {
  #lead {
    padding: 60px 15px;
  }

  #lead-content h1 {
    font-size: 2.2rem;
  }

  #lead-content h2 {
    font-size: 1.1rem;
  }
}


.hidden {
  display: none !important;
}
#mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 769px) {
  #mobile-nav {
    display: flex !important;
  }

  #mobile-menu-close {
    display: none;
  }
}

/* Hamburger Button */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10000;
}

#hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  #hamburger {
    display: flex;
    position: absolute;
    top: 10px;
    right: 20px;
  }

  #menu {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none; /* hidden by default */
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  #menu.active {
    display: flex;
  }
}


