* {
  max-width: 100%;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f4f4f4;
  line-height: 1.6;
  min-height: 150vh;
}

h1, h2 {
  font-family: 'Raleway', sans-serif;
  color: #333;
  margin-bottom: 10px;
}

.welcome-message {
  color:white;
}
/* Navigation Bar */
#navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #0a3d62; 
  padding: 1em;
  z-index:1;
}

.navmenu {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 13px 30px;
}

.navmenu li {
  margin-left: 20px; 
}

.navmenu li a {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.navmenu li a:hover {
  color: #6699CC;
}

/* Welcome Section */
#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000;
  background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
  color: #6699CC;
  text-align: center;
}

#welcome-section h1 {
  font-size: 3.5rem;
}

#welcome-section p {
  font-size: 1.5rem;
  margin-top: 20px;
}

/* About Me Section */
.about-me{
  padding: 60px 20px;
  margin-bottom:20px;
  background-color: #fff;
  text-align: center;
  min-height:60vh;
}

.about-me h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align:center;
}

.about-me p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
  padding-left: 70px;
  padding-right: 70px;
}

.tabs {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.tabs ul {
  display: flex;
  justify-content: space-around;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
}

.tabs ul li {
  margin: 0;
}

.tabs ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-bottom 0.3s;
}

.tabs ul li a.active, .tabs ul li a:hover {
  color: #0a3d62;
  border-bottom: 2px solid #0a3d62; /* The active underline */
}

.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  margin-bottom: 40px;
}

.tab-content ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.tab-content li {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.tab-content li span {
  font-weight: bold;
  color: #0a3d62;
}

#skills {
  display: block;
}

/* Projects Section */
#projects {
  padding: 60px 20px;
  background-color: #f4f4f4;
}

.underline {
  
}

.section-header {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project {
  background-color: white;
  padding: 15px;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  width: 250px;
  height: 150px;
  object-fit: cover;
}

.project-title {
  font-size: 1.3rem;
  color: #333;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
#contact {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contact-details {
  text-decoration: none;
  color: #333;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.contact-details i {
  margin-right: 10px;
  font-size: 2rem;
}

.contact-details:hover {
  color: #0a3d62;
}

/* Footer */
.footer {
  padding: 20px 0;
  background-color: #0a3d62;
  color: white;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

/*For small screens*/
.some-flex-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

@media (max-width: 768px) {
  #navbar {
    padding: 0.5em 0;
  }

  .navmenu {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 10px;
  }

  .navmenu li {
    margin: 0;
  }

  .navmenu li a {
    font-size: 1rem;
    padding: 5px 10px;
  }

  .about-me p {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tabs ul {
    flex-direction: column;
    gap: 10px;
  }

  #welcome-section h1 {
    font-size: 2.2rem;
  }

  #welcome-section p {
    font-size: 1rem;
  }

  .contact-links {
    flex-direction: column;
    gap: 15px;
  }

  .contact-details {
    justify-content: center;
    font-size: 1.2rem;
  }

  .contact-details i {
    font-size: 1.5rem;
  }
}
