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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 0;
  background-color: #0f172a;
  color: rgb(0, 0, 0);
}

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

img {
  width: 100%;
  display: block;
}

.section-title {
  color: #f8fafc;
  margin-top: 15vh;
  margin-bottom: 1vh;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-description {
  color: #94a3b8;
  font-size: 3.3rem;
  padding: 1vh;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  max-width: 50vw;
  text-align: center;
}

.hero-tags {
  display: flex;
  align-items: center;
  padding-top: 20px;
  gap: 20px;
}

.tags {
  font-size: 0.92rem;
  padding: 12px 16px;
  color: #dbeafe;
  border: 1px solid #3b82f6;
  border-radius: 999px;
  background-color: #1e3a8a;
}

.card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  padding-bottom: 10px;
  color: #f8fafc;
}

.card-description {
  line-height: 30px;
  color: #cbd5e1;
}

.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  gap: 10px;
}

/*NAVBAR*/
.navbar {
  display: grid;
  height: 11vh;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: #111827bf;
  color: #f8fafc;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #3b82f626;
}

.nav-container {
  display: grid;
  width: 100%;
  justify-content: center;
  align-items: center;
  justify-items: center;
  grid-template-columns: 25% 50% 25%;
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  font-family: "Cormorant Garamond", serif;
}

.nav-links {
  display: flex;
  font-size: 0.95rem;
  gap: 30px;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #3b82f6;
  transition: 0.3s ease;
}

.resume-btn {
  padding: 16px 26px;
  border: 1px solid #2563eb;
  border-radius: 999px;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  transition: 0.4s ease;
}

.resume-btn:hover {
  background-color: #12338e;
  box-shadow: 0px 0px 20px #2563eb;
}

/*HOME*/
.home {
  display: flex;
  align-items: center;
  height: 100vh;
  background-color: #0f172a;
  width: 100%;
  gap: 50px;
  scroll-margin-top: 80px;
  padding-top: 10vh;
  padding-bottom: 5vh;
  padding: 120px 8%;
}

.hero-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0;
  margin-top: 50px;
}

.hero-title {
  color: #60a5fa;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-left: 6px;
}

.hero-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 6rem;
  padding-bottom: 10px;
  color: #ffffff;
}

.sub-title {
  color: #cbd5e1;
  font-size: 1.55rem;
  font-weight: 500;
  max-width: 650px;
  padding-bottom: 10px;
  line-height: 35px;
}

.hero-para {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 620px;
  padding-top: 10px;
  padding-bottom: 19px;
  line-height: 25px;
}

.hero-btn {
  height: 10vh;
  display: flex;
  align-items: center;
  gap: 25px;
}

.hero-btn a {
  width: fit-content;
  padding: 18px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.3s ease;
}

.hero-btn-project {
  color: #ffffff;
  border: 1px solid #2563eb;
  background-color: #2563eb;
}

.hero-btn-project:hover {
  background-color: #12338e;
  border: 1px solid #2563eb;
  box-shadow: 0px 0px 25px #2563eb;
  transform: translateY(-2px);
}

.hero-btn-contact {
  border: 1px solid #60a5fa;
  background-color: transparent;
  color: #60a5fa;
}

.hero-btn-contact:hover {
  box-shadow: 0px 0px 25px #2563eb;
  transform: translateY(-2px);
}

.hero-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 10vh;
}

.hero-img img {
  margin-top: 40px;
  margin-left: 40px;
  width: 100%;
  max-width: 450px;
  height: auto;
  aspect-ratio: 450/530;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(37, 99, 2335, 0.25);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.hero-img img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0px 400px #2563eb33;
}

/*ABOUT*/
.about {
  padding-bottom: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 7vh;
  gap: 25px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding: 30px;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 25px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px #2563eb33;
}

/*SKILLS*/
.skills {
  padding-bottom: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1e293b;
}

.skills-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 7vh;
  gap: 25px;
}

.skills .card {
  background-color: #273549;
  border-color: #334155;
}

.skills .tags {
  background-color: #0f172a;
  color: #93c5fd;
  border: 1px solid #3b82f6;
}
/*PROJECTS*/
.projects {
  padding-bottom: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects h2 {
  max-width: 55vw;
}

.projects-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 7vh;
  gap: 25px;
  width: 80%;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: fit-content;
  padding: 30px;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 25px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.project-tag {
  font-size: 0.92rem;
  padding: 8px 14px;
  margin-bottom: 10px;
  width: fit-content;
  font-weight: 600;
  color: #dbeafe;
  border-radius: 999px;
  background-color: #1e3a8a;
}

.projects .tags {
  background-color: #0f172a;
  color: #93c5fd;
  border: 1px solid #3b82f6;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px #2563eb33;
}

.project-btn {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.project-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.live-link {
  background-color: #22c55e;
  color: #ffffff;
  border: 1px solid #22c55e;
}

.live-link:hover {
  background-color: #16a34a;
  border-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.github-link {
  background-color: transparent;
  color: #f8fafc;
  border: 1px solid #475569;
}

.github-link:hover {
  background-color: #334155;
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.2);
}

/*EXPERIENCE*/
.experience {
  padding-bottom: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1e293b;
}

.experience h2 {
  max-width: 55vw;
}

.experience-cards {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: 7vh;
  gap: 25px;
}

.experience-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 80%;
  padding: 30px;
  background-color: #273549;
  border: 1px solid #334155;
  border-radius: 25px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px #2563eb33;
}

.company-name {
  color: #60a5fa;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1rem;
}

/*CONTACT*/
.contact {
  padding-bottom: 13vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card {
  display: flex;
  text-align: center;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 760px;
  margin-top: 7vh;
  padding: 30px;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 25px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
  flex-wrap: wrap;
  min-width: fit-content;
  padding-top: 25px;
  padding-bottom: 5px;
  gap: 20px;
}

.contact-tags {
  width: fit-content;
  padding: 18px;
  border: 1px solid #2563eb;
  border-radius: 999px;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  transition: 0.4s ease;
}

.contact-tags:hover {
  background-color: #12338e;
  box-shadow: 0px 0px 20px #2563eb;
  transform: translateY(-3px);
}

/*FOOTER*/
.footer {
  height: 11vh;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border-top: 1px solid #334155;
}
/*ANIMATIONS AND IMPROVEMENTS*/
.nav-links a.active {
  color: #60a5fa;
}

.navbar.scrolled {
  background: #0f172aef;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.card,
.project-card,
.experience-card,
.contact-card {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.7s;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.showTop {
  opacity: 1;
  pointer-events: auto;
}

.hero-img img {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.resume-btn,
.hero-btn a,
.project-link,
.contact-tags {
  transition: 0.35s;
}

.resume-btn:hover,
.hero-btn a:hover,
.project-link:hover,
.contact-tags:hover {
  transform: translateY(-4px);
}

.card,
.project-card,
.experience-card,
.contact-card {
  position: relative;
  overflow: hidden;
}

.card:hover,
.project-card:hover,
.experience-card:hover,
.contact-card:hover {
  transform: translateY(-8px);
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

/*RESPONSIVE DESIGN*/

/* Large Laptop */
@media (max-width: 1400px) {
  .home {
    padding: 120px 6%;
  }

  .hero-details {
    margin-left: 0;
  }

  .hero-img {
    margin-right: 0;
  }

  .card {
    width: 100%;
  }

  .contact-card {
    width: 90%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .navbar {
    height: auto;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .resume-btn {
    display: none;
  }

  .home {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    height: auto;
    padding: 150px 30px 80px;
  }

  .hero-details {
    margin: 0;
    align-items: center;
  }

  .hero-name {
    font-size: 4rem;
  }

  .sub-title {
    max-width: 100%;
  }

  .hero-para {
    max-width: 100%;
  }

  .hero-img img {
    width: 350px;
    height: 420px;
    margin: 0;
  }

  .hero-tags {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-cards,
  .skills-cards,
  .projects-cards {
    grid-template-columns: 1fr;
    width: 90%;
  }

  .card,
  .project-card {
    width: 100%;
  }

  .section-description {
    font-size: 2.5rem;
    max-width: 90%;
  }

  .experience-card {
    width: 90%;
  }

  .contact-card {
    width: 90%;
  }
}

@media (max-width: 768px) {
  section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo {
    font-size: 1.7rem;
  }

  .nav-links {
    gap: 15px;
    font-size: 0.9rem;
  }

  .hero-name {
    font-size: 3rem;
  }

  .hero-title {
    font-size: 0.8rem;
  }

  .sub-title {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .hero-img img {
    width: 280px;
    height: 350px;
  }

  .hero-btn {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .hero-btn a {
    width: 100%;
  }

  .hero-tags {
    gap: 10px;
  }

  .tags {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 0.8rem;
  }

  .section-description {
    font-size: 2rem;
    max-width: 100%;
  }

  .card-title {
    font-size: 1.6rem;
  }

  .project-btn {
    flex-direction: column;
  }

  .contact-links {
    flex-direction: column;
    width: 100%;
  }

  .contact-tags {
    width: 100%;
  }

  .footer {
    text-align: center;
    padding: 20px;
    height: auto;
  }

  .hero-btn {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .hero-btn a {
    width: 100%;
    text-align: center;
  }

  .hero-btn-resume {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .resume-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.4rem;
  }

  .section-description {
    font-size: 1.7rem;
  }

  .hero-img img {
    width: 220px;
    height: 280px;
  }

  .card,
  .project-card,
  .experience-card,
  .contact-card {
    padding: 20px;
  }

  .scrollTop {
    width: 45px;
    height: 45px;
    font-size: 16px;
    right: 20px;
    bottom: 20px;
  }
}

.hero-btn-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  font-weight: 600;
  transition: 0.3s;
}

.hero-btn-resume:hover {
  background-color: #12338e;
  border: 1px solid #2563eb;
  box-shadow: 0px 0px 25px #2563eb;
  transform: translateY(-2px);
}

.hero-btn-resume {
  display: none;
}

@media (max-width: 1024px) {
  .hero-btn-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
}
