﻿/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

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

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
  font-weight: 600;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

/* SECTIONS */

section {
  padding: 4vh 0;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: 96vh;
}

section:not(:first-child) {
  border-top: 1px solid rgb(240, 240, 240);
  padding-top: 6vh;
}

.section-container {
  display: flex;
  gap: 4rem;
  height: 80%;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 1.2rem;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: scale(1.1);
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
  display: flex;
  width: 100%;
}

.details-container {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  margin: 0.5rem;
  padding: 1.5rem;
  border-radius: 2rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.details-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(53, 53, 53, 0.2);
}

.details-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.details-container:hover::before {
  left: 100%;
}

.details-container:last-child {
  flex-basis: 100%;
  max-width: 600px;
}

.about-pic {
  border-radius: 2rem;
}

/* HACKATHON SECTION */

#hackathon {
  margin-top: 6rem;
  position: relative;
}

.hackathon-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.feature-image {
  flex: 1;
  text-align: center;
}

.feature-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 2rem;
  object-fit: cover;
  border: 2px solid rgb(163, 163, 163);
  cursor: pointer; /* Add cursor to indicate it's clickable */
}

.caption {
  font-style: italic;
  font-size: 0.9rem;
  color: #555;
  margin-top: 1rem;
}

.hackathon-details {
  flex: 2;
}

.hackathon-details h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: rgb(85, 85, 85);
}

.highlight {
  background-color: #fafafa;
  border-left: 4px solid #007bff;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

/* STYLES FOR IMAGE MODAL */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
}

/* ACADEMIC PERFORMANCE */

#academic {
  margin-top: 6rem;
  position: relative;
}

.academic-section {
  margin-bottom: 1.5rem;
}

.academic-section:last-child {
  margin-bottom: 0;
}

.academic-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: rgb(53, 53, 53);
  text-align: center;
}

.table-responsive-wrapper {
  overflow-x: auto;
  margin: 0.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgb(163, 163, 163);
}

table th {
  background: linear-gradient(135deg, rgb(53, 53, 53), rgb(70, 70, 70));
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

table tr:nth-child(even) {
  background-color: rgb(248, 248, 248);
}

table tr:hover {
  background-color: rgb(240, 240, 240);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.total-row {
  background-color: rgb(240, 240, 240);
  font-weight: 600;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-around;
  max-width: 250px;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 1rem;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.project-title {
  margin: 0.5rem 0;
  color: black;
  font-size: 1.2rem;
  text-align: center;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* SMALLER PROJECT AND CERTIFICATE BOXES */
.details-container.color-container {
  max-width: 280px;
  width: 100%;
  margin: 0.5rem;
  padding: 1rem;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-info-container a {
  color: rgb(53, 53, 53);
  text-decoration: none;
}

.contact-info-container a:hover {
  color: rgb(0, 0, 0);
  text-decoration: underline;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
  background: rgb(250, 250, 250);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer p {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
}

.nav-links-container {
  margin-bottom: 1rem;
}

/* UTILITY CLASSES */

.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* GRADUATION COMPLETION BOX */
.graduation-completion-box {
  border: 3px solid #28a745;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fff9, #e8f5e8);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.2);
  position: relative;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.graduation-completion-box:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
}

.graduation-completion-box::before {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -10px;
  background: #28a745;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.graduation-completion-box h3 {
  color: #28a745;
  font-weight: 700;
}

/* EDUCATION BOX STYLING - SAME SIZE */
.education-box {
  border: 2px solid #000;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 0.5rem;
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.education-box h3 {
  margin: 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.education-box p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.education-box .icon {
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
  section {
    margin: 0 2rem;
    padding: 2vh 0;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .academic-section h2 {
    font-size: 1.5rem;
  }
  
  table {
    font-size: 0.8rem;
  }

  /* About section mobile responsive */
  .section-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .section__pic-container {
    height: 300px;
    width: 300px;
    margin: 0 auto;
  }

  .about-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
  }

  .about-details-container {
    width: 100%;
  }

  /* Mobile responsive for projects and certificates */
  .about-containers {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .details-container.color-container {
    max-width: 100%;
    width: 100%;
    margin: 0.5rem 0;
  }

  .article-container {
    max-width: 100%;
    justify-content: center;
  }

  .project-img {
    height: 120px;
    width: 100%;
    max-width: 200px;
  }

  .project-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }

  .btn-container {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 180px;
    padding: 0.8rem;
    font-size: 0.9rem;
    margin: 0.2rem 0;
  }

  .project-btn {
    width: 100%;
    max-width: 180px;
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  section {
    margin: 0 1rem;
  }

  .section__pic-container {
    height: 250px;
    width: 250px;
  }

  .about-pic {
    border-radius: 1rem;
  }

  .about-containers {
    gap: 0.5rem;
  }

  .details-container.color-container {
    padding: 0.8rem;
  }

  .project-img {
    height: 100px;
  }

  .project-title {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 160px;
    padding: 0.7rem;
    font-size: 0.8rem;
  }

  .project-btn {
    width: 100%;
    max-width: 160px;
    padding: 0.7rem;
    font-size: 0.8rem;
  }

  .btn-container {
    gap: 0.3rem;
  }
}
