* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

body {
    background-color: #080808;
    color: white;
    min-height: 100vh;
    position: relative;
}
html {
  scroll-behavior: smooth;
}


/* ========== TOP NAVBAR ========== */
nav {
    position: absolute;
    top: 20px;
    right: 20px;
}

nav ul {
    display: flex;
    list-style-type: none;
    gap: 80px;
    padding-right: 70px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #6acfd1;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 50px 10%;
    position: relative;
}

/* Profile image: right side, not absolute */
.image-container img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Welcome text: left side */
.welcome {
    max-width: 500px;
}

.welcome h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.welcome h3 {
    font-size: 22px;
    font-weight: normal;
}


.welcome span {
    color: #6acfd1;
    font-weight: bold;
}

.about {
    color: white;
    padding: 100px 5%;
    font-family: 'Poppins', sans-serif;
}

.row {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.about-col-1 {
    flex: 1;
    min-width: 300px;
}

.about-col-1 img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.about-col-2 {
    flex: 1.2;
    min-width: 300px;
}

.sub-title {
    font-size: 48px;
    font-weight: 700;
    color: #6acfd1;
    font-family: 'Georgia', serif;
    margin-bottom: 20px;
}

.about-col-2 p {
    font-size: 18px;
    line-height: 1.8;
    color: #eeeeee;
    font-family: 'Georgia', serif;
    text-align: left;
    max-width: 400px;
}
.fun-facts {
  color: white;
  padding: 100px 5%;
  font-family: 'Poppins', sans-serif;
}

.fun-facts-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 50px 10%;
    position: relative;
}

.fun-facts-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: auto;
}

.fun-col-1 {
  flex: 1;
  max-width: 300px;
}

.fun-col-1 img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.fun-col-2 {
  flex: 1.2;
  min-width: 300px;
}

.fun-col-2 .sub-title {
  font-size: 48px;
  color: #6acfd1;
  margin-bottom: 20px;
  font-weight: 700;
  font-family: 'Georgia', serif;
}

.fun-list {
  list-style: none;
  padding-left: 0;
}

.fun-list li {
  font-size: 18px;
  line-height: 1.3;
  color: #eeeeee;
  font-family: 'Georgia', serif;
  text-align: left;
  max-width: 400px;
  margin-bottom: 20px;
  border-left: 3px solid #6acfd1;
  padding-left: 10px;
}


.education {
  padding: 100px 5%;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.education-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  max-width: 800px;
  margin: auto;
  text-align: left;
}


.edu-left {
  flex: 1;
  min-width: 300px;
}

.edu-left .section-title {
  font-size: 48px;
  font-weight: bold;
  color: #6acfd1;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
}

.edu-left p {
  font-size: 18px;
  line-height: 1.8;
  color: #dddddd;
  font-family: 'Georgia', serif;
}

.edu-right {
  flex: 1;
  min-width: 300px;
}

.edu-list {
  list-style: none;
  padding: 0;
}

.edu-list li {
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 3px solid #6acfd1;
}

.edu-list li h3 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 5px;
}

.edu-list li span {
  color: #bbbbbb;
  font-size: 16px;
}

.skills {
  color: white;
  padding: 100px 5%;
  font-family: 'Poppins', sans-serif;
}

.skills-container {
  max-width: 800px;
  margin: auto;
}

.skills .section-title {
  font-size: 48px;
  font-weight: bold;
  color: #6acfd1;
  margin-bottom: 40px;
  font-family: 'Georgia', serif;
}

.skill {
  margin-bottom: 30px;
}

.skill-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.skill-bar {
  background-color: #2c2c2c;
  border-radius: 20px;
  overflow: hidden;
  height: 10px;
}

.skill-fill {
  height: 100%;
  background-color: #6acfd1;
  border-radius: 20px;
  width: 0;
  transition: width 1s ease-in-out;
}

/* Specific skill widths */
.htmlcss { width: 80%; }
.react { width: 70%; }
.cpp { width: 90%; }
.verilog { width: 80%; }

.achievements {
  color: white;
  padding: 100px 5%;
  font-family: 'Poppins', sans-serif;
}

.achievements-container {
  max-width: 800px;
  margin: auto;
}

.achievement-list {
  display: flex;
  flex-wrap: wrap;                  /* Force single row */
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  overflow-x: auto;                   /* Scroll if overflow */
}

.achievement-item {
  flex: 1 1 30%;                      /* Equal width for 3 items */
  background: #0f0f0f;
  padding: 20px 25px;
  border-left: 5px solid #6acfd1;
  border-radius: 16px;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.achievement-item:hover {
  transform: translateY(-5px);
}


.achievement-item h3 {
  color: #6acfd1;
  font-size: 22px;
  margin-bottom: 10px;
}

.achievement-item p {
  color: #dddddd;
  font-size: 16px;
  line-height: 1.6;
}

/* Portfolio section layout */
#portfolio {
  padding: 80px 5%;
}

.container-portfolio {
  max-width: 1200px;
  margin: auto;
}

.sub-title {
  font-size: 48px;
  font-weight: bold;
  color: #6acfd1;
  margin-bottom: 40px;
  font-family: 'Georgia', serif;
  text-align: left;
}

/* Responsive grid */
.work-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.work {
  flex: 1 1 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  aspect-ratio: 4/3;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: block;
}

/* Images */
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Overlay */
.layer {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s ease;
  padding: 20px;
  text-align: center;
}

.work:hover .layer {
  opacity: 10;
}

/* Text + Icon Styling */
.layer h3 {
  font-size: 20px;
  color: #6acfd1;
  margin-bottom: 10px;
}

.layer p {
  font-size: 14px;
  color: #ddd;
  line-height: 1.6;
}

.layer a {
  color: #6acfd1;
  font-size: 24px;
  text-decoration: none;
  margin-top: 15px;
}
.contact-bar {
  color: white;
  padding: 60px 5%;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.contact-bar h2 {
  color: #6acfd1;
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-icons a {
  color: #ababab;
  font-size: 28px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-icons a:hover {
  color: #6acfd1;
  transform: scale(1.2);
}

/* ========================= Responsive Design ========================= */
@media (max-width: 992px) {
    .container,
    .container-portfolio,
    .education-container,
    .achievements-container,
    .skills-container {
        padding: 0 20px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 40px;
        padding-right: 20px;
        justify-content: center;
    }

    .container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 100px;
    }

    .image-container img {
        width: 250px;
        height: 250px;
        margin-top: 30px;
    }

    .welcome h1 {
        font-size: 36px;
    }

    .sub-title {
        font-size: 36px;
    }

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

    .about-col-2 p {
        max-width: 100%;
    }

    .work-list {
        flex-direction: column;
        align-items: center;
    }

    .work {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .achievement-item {
      flex: 1 1 100%;
      max-width: 100%;
  }
  }
  
@media (max-width: 576px) {
  /* Navigation styles */
  nav {
    width: 100%;
    padding: 10px 10px 0;
    text-align: center;
  }

  nav ul {
    display: flex;
    flex-wrap: wrap;         /* Allow wrapping to 2 lines */
    justify-content: center;
    gap: 10px 20px;          /* row-gap and column-gap */
    padding: 0;
    margin: 0 auto 10px;
    list-style: none;
  }

  nav ul li a {
    font-size: 14px;
    padding: 6px 10px;
    text-decoration: none;
    color: white;
    display: inline-block;
  }

  /* Profile image container */
  .image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .image-container img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;       /* Circle shape */
    border: 2px solid white;
  }

  .contact-icons {
    flex-direction:row;
    gap: 20px;
  }
  
  .skill-fill::after {
    top: -35px;
    font-size: 12px;
  }
  
  .welcome h1 {
    font-size: 28px;
  }
  
  .sub-title {
    font-size: 28px;
  }
  .sub-title {
  text-align: center;
  }
    
  .about-col-2 p {
    font-size: 16px;
    text-align: center;
  }
}

  @media (max-width: 992px) {
  .fun-facts-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .fun-col-1 img {
    max-width: 280px;
  }

  .fun-col-2 {
    text-align: left;
  }

  .fun-col-2 .sub-title {
    font-size: 32px;
  }

  .fun-list li {
    text-align: left;
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .fun-facts {
    padding: 60px 5%;
  }

  .fun-col-2 {
    text-align: left; /* Override center alignment */
  }

  .fun-list li {
    text-align: left;
    padding-left: 10px;
    border-left: 3px solid #6acfd1;
    font-size: 16px;
    margin-bottom: 16px;
  }

  .fun-col-2 .sub-title {
    font-size: 28px;
    text-align: center;
  }

  .fun-col-1 img {
    max-width: 220px;
  }
}








