/* Base layout */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
}

img {
  max-width: 100%;
  border-radius: 1rem;
}

/* Header and Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;

  background-color: #106cc8;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, .14), 0 0 2px 2px rgba(0, 0, 0, .098), 0 0 5px 1px rgba(0, 0, 0, .084);

  background: linear-gradient(90deg, #e3ecf4 0%, #0a84ff 100%);

  /* background-color: #ffffff; */
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: #111827;
}

.logo-text {
  /* font-size: 1.4rem; */
  font-weight: 600;
  color: #333;
}

.logo-text .edu-info {
  font-size: 0.75rem;
  font-weight: 400;
  color: #777;
  margin-left: 6px;
}

.logo i.fa-solid.fa-u {
  background-color: #fff;    /* White background */
  color: #1565c0;            /* Icon color */
  border-radius: 50%;        /* Make it round */
  width: 40px;               /* Width and height to make a circle */
  height: 40px;
  display: flex;             /* Use flex to center icon */
  align-items: center;
  justify-content: center;
  font-size: 24px;           /* Adjust icon size */
  /* margin-right: 10px; */
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3); /* subtle shadow */
}

.hero-pic img {
  width: 100%;
  /* max-width: 280px; */
  border-radius: 50%;
  border: 6px solid #f0f0f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.hero-pic img:hover {
  transform: scale(1.05);
}



.navlinks {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.navlinks li a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.navlinks li a:hover {
  color: #007acc;
}

.togglebtn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.togglebtn span {
  width: 25px;
  height: 2px;
  background: #111827;
  margin-bottom: 5px;
  border-radius: 2px;
}

/* Container */
.container {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-pic {
  flex: 1 1 300px;
}

.hero-text h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero-top-heading {
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem 0;
  color: #007acc;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-card i {
  font-size: 1.5rem;
  color: #007acc;
  margin-bottom: 0.5rem;
}

.fevIcon {
  margin: 1rem 0;
  color: #4b5563;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background-color: #007acc;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn.active,
.btn:hover {
  background-color: #005fa3;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #ffffff;
  margin: 15% auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 0.75rem;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .navlinks {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    right: 1rem;
    top: 70px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .navlinks.open {
    display: flex;
  }

  .togglebtn {
    display: flex;
  }
}

.has-double-underline {
  position: relative;
  display: inline-block;
}

.has-double-underline::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: #007acc;
  bottom: -2px;
  left: 0;
  border-radius: 2px;
  opacity: 0.6;
}

/* Animations */
[data-aos] {
  transition-property: transform, opacity;
}
