@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  margin: 0;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f3f0ff 40%,
    #e8e4ff 60%,
    #ffffff 100%
  );
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: #222;
}

/* NAVBAR */

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  background-color: #111;
  position: sticky;
  top: 0;
  flex-wrap: nowrap;
}

.logo {
  color: white;
  margin: 0;
}

.nav-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-li a {
  text-decoration: none;
  color: white;
  padding: 20px;
  display: block;
  font-size: 16px;
  position: relative;
}

.nav-li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  height: 2px;
  transition: width 0.3s ease;
  background-color: #6c63ff;
}

.nav-li a:hover::after {
  width: 100%;
}
/* HERO SECTION */

.hero {
  text-align: center;
  margin-top: 80px;
  padding-top: 80px;
}

.profile-img {
  margin-top: -80px;
  width: 250px;
  height: 250px;
  max-width: 90%;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  font-size: 40px;
  margin-top: 20px;
  font-family: "Montserrat", sans-serif;
}

.intro {
  width: 40%;
  margin: auto;
  margin-top: 10px;
  font-size: 16px;
  color: #666;
  max-width: 650px;
  line-height: 1.6;
  padding: 0 20px;
}

.socials {
  margin-top: 20px;
}

.socials a {
  margin: 10px;
  text-decoration: none;
  color: #6c63ff;
  font-weight: bold;
}

/* FOOTER */

footer {
  background-color: #111;
  color: white;
  margin-top: 100px;
  padding: 20px;
  margin-top: auto;
}

.foot-ul {
  list-style: none;
  padding: 0;
}

.foot-li {
  display: inline;
  margin-right: 20px;
}

footer p {
  text-align: center;
  font-size: 14px;
}

.role {
  margin-top: 8px;
  font-size: 18px;
  color: #444;
}

.hero-buttons {
  margin-top: 20px;
}

.btn {
  background: #111;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-right: 10px;
}

.btn-outline {
  border: 2px solid #111;
  padding: 10px 20px;
  text-decoration: none;
  color: #111;
  border-radius: 5px;
}
.tech-stack {
  margin-top: 25px;
  text-align: center;
}

.stack-icons span {
  background: black;
  color: white;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 15px;
  display: inline-block;
  font-size: 14px;
}

/*  */
.about-container,
.contact-container {
  max-width: 900px;
  margin: auto;
  padding: 40px;
}

.about-container h2 {
  margin-top: 50px;
  font-size: 24px;
  border-bottom: 2px solid #6c63ff;
  display: inline-block;
  padding-bottom: 4px;
}

.about-container {
  max-width: 900px;
  margin: auto;
  padding: 60px 40px;
  line-height: 1.6;
}

.bio {
  margin-bottom: 30px;
  line-height: 1.6;
  margin: auto;
  max-width: 650px;
}

.about-box {
  background: #f7f4ff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.skills span {
  display: inline-block;
  background: black;
  color: white;
  padding: 6px 14px;
  margin: 6px;
  border-radius: 20px;
  font-size: 14px;
}

.interests {
  margin-top: 10px;
}

.contact-links p {
  margin: 10px 0;
  background: #f7f4ff;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact-form button {
  padding: 10px;
  background: black;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-links p {
  background: #f5f2ff;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
}

/* footer */
.footer {
  padding: 40px 80px;
  background: black;
  font-family: sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
}

.footer-tagline {
  max-width: 350px;
  color: white;
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h4 {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-column a {
  text-decoration: none;
  color: white;
  font-size: 14px;
}

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

.back-top a {
  border: 1px solid white;
  padding: 10px 14px;
  display: inline-block;
  text-decoration: none;
  font-size: 18px;
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: white;
}

.footer-links a {
  margin-left: 10px;
  text-decoration: none;
  color: white;
}

/* skills in about me  */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-card {
  background: #f7f4ff;
  padding: 20px;
  border-radius: 10px;
}

.skill-card h3 {
  margin-top: 0;
  font-size: 18px;
}

.skill-card ul {
  padding-left: 18px;
  margin: 0;
}

.skill-card li {
  margin-bottom: 6px;
}

.skill-tags {
  margin-top: 10px;
}

.skill-tags span {
  display: inline-block;
  background: #f0edff;
  color: #333;
  padding: 6px 12px;
  margin: 6px;
  border-radius: 20px;
  font-size: 14px;
}

.contact-links a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.contact-links a:hover {
  text-decoration: underline;
  color: #4a3fd4;
}

/* Projects */

.projects-container {
  max-width: 1000px;
  margin: auto;
  padding: 60px 40px;
}

.projects-intro {
  margin-top: 10px;
  margin-bottom: 40px;
  color: #555;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background: #f7f4ff;
  padding: 22px;
  border-radius: 10px;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  margin-top: 0;
}

.project-tech {
  margin-top: 15px;
}

.project-tech span {
  display: inline-block;
  background: #ece9ff;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 20px;
  font-size: 13px;
}

.project-links {
  margin-top: 15px;
}

.project-links a {
  margin-right: 15px;
  text-decoration: none;
  color: #6c63ff;
  font-weight: 500;
}

.project-links a:hover {
  text-decoration: underline;
}

/* papers */

.papers-container {
  max-width: 900px;
  margin: auto;
  padding: 60px 40px;
}

.papers-intro {
  margin-bottom: 40px;
  color: #555;
}

.paper-card {
  background: #f7f4ff;
  padding: 25px;
  border-radius: 10px;
  transition: 0.3s;
}

.paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.paper-desc {
  margin: 15px 0;
  line-height: 1.6;
}

.paper-meta {
  margin: 5px 0;
  font-size: 14px;
}

.paper-links {
  margin-top: 15px;
}

.paper-links a {
  margin-right: 20px;
  text-decoration: none;
  color: #6c63ff;
  font-weight: 500;
}

.paper-links a:hover {
  text-decoration: underline;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .hero {
    margin-top: 40px;
    padding-top: 40px;
  }

  .name {
    font-size: 28px;
  }

  .role {
    font-size: 16px;
  }

  .profile-img {
    margin-top: 10px;
    width: 180px;
    height: 180px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .btn,
  .btn-outline {
    width: 180px;
    text-align: center;
  }

  .footer-middle {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .projects-container {
    padding: 40px 20px;
  }

  .about-container,
  .contact-container {
    padding: 40px 20px;
  }

  .papers-container {
    padding: 40px 20px;
  }
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {
  .nav-bar {
    padding: 0 30px;
  }

  .intro {
    padding: 0 30px;
  }

  .projects-container {
    padding: 50px 30px;
  }

  .about-container {
    padding: 50px 30px;
  }

  .footer {
    padding: 40px;
  }
}

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

/* hide checkbox */
#menu-toggle {
  display: none;
}

/* hamburger icon */
.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* MOBILE NAVBAR */

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-bar {
    flex-wrap: wrap;
    padding: 15px 20px;
  }

  .nav-ul {
    width: 100%;
    flex-direction: column;
    background: #111;
    display: none;
    text-align: center;
  }

  .nav-li {
    text-align: center;
    padding: 3px 0;
  }

  .nav-li a {
    padding: 15px;
  }

  /* show menu when checkbox checked */

  #menu-toggle:checked + .menu-icon + .nav-ul {
    display: flex;
  }
}

.about-container,
.projects-container,
.papers-container,
.contact-container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.paper-card {
  padding: 25px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-top: 25px;
}

@media (max-width: 768px) {
  .paper-card {
    padding: 20px;
  }
}

.footer-middle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .footer-middle {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

  .back-top {
    grid-column: span 2;
    margin-top: 10px;
  }
}

p {
  line-height: 1.6;
}

h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 26px;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .contact-container {
    padding: 30px 18px;
  }

  .contact-container h1 {
    font-size: 26px;
  }

  .contact-text {
    font-size: 15px;
  }

  .contact-links p {
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
  }

  .contact-links a {
    word-break: break-word;
  }
}

.contact-links p:hover {
  transform: translateY(-2px);
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-text {
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #555;
}
