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

* {
    margin: 0;
    padding: 0;
}

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

html {
    scroll-behavior: smooth;
}

p {
    color: rgd(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: gray;
    text-decoration: underline;
    text-decoration-color: rgb(181, 181, 181);
    text-underline-offset: 1rem;
}

.logo {
    font-size: 2rem;
}

.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.3 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.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    color: black;
    text-decoration: none;
    transition: all 0.3 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);
}

.hamburger-icon span:first-child {
    transform: none;
}
.hamburger-icon span:first-child {
    opacity: 1;
}
.hamburger-icon span:first-child {
    transform: none;
}

/*sections*/

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

.section-container {
    display: flex;
}

/*Profile sections*/

#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;
    color:rgb(112, 112, 112) ;
} 

.section__text__p2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: rgb(121, 121, 121);
    border-right: 2px solid black; 
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}


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

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

.profile-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  /* margin-bottom: 10px; */
  /* padding: 10px; */
}


/* Icon */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* Buttons */

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

}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.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;
}

.btn-container {
    gap: 1rem;
}

/* About Section */

#about {
    position: relative;
}

.about-container {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

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

.about-container,
.about-details-container {
    display: flex;
}

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

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    text-align: left;
    font-size: 1.2rem;
}

.details-container p {
  font-size: 1.5rem;
}

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

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

/* skill-section */

.skills-section {
  padding: 60px 20px;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: bold;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.skills-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 2px gray solid;
}

.skill-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.skill-item img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.skill-card:hover {
  transform: translateY(-10px);
}


/* Responsive */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
#skills {
    position: relative;
}

/* project section */
#projects {
  position: relative;
  text-align: center;
  padding: 2rem 0;
}

.projects-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.project-card {
  background: #fff;
  border: 2px solid rgb(163, 163, 163);
  border-radius: 1.5rem;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-img-container {
  display: flex;
  justify-content: center;
}

.project-img {
  width: 100%;
  height: 300px;
  border-radius: 2rem;
  object-fit: contain; /* no cropping */
  display: block;
  background: #000;    /* optional: fill empty space */
}


.project-title {
  margin: 1rem ;
  color: black;
}

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

.project-btn {
    font-size: 1rem;
  color: black;
  border: 2px solid rgb(163, 163, 163);
  padding: 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* certificate section */
/* certificate section */
#certificates {
  position: relative;
  text-align: center;
  padding: 2rem 0;
}

.certificates-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.certificate-card {
  background: #fff;
  border: 2px solid rgb(163, 163, 163);
  border-radius: 1.5rem;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.certificate-img-container {
  display: flex;
  justify-content: center;
}

.certificate-img {
  width: 90%;
  height: auto;
  border-radius: 1rem;
  border: 0.1rem black solid;
}

.certificate-title {
  margin: 1rem 0;
  color: black;
  font-weight: bold;
}

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

.certificate-btn {
  font-size: 1rem;
  color: black;
  border: 2px solid rgb(163, 163, 163);
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease-in-out;
}

.certificate-btn:hover {
  background: rgb(53, 53, 53);
  color: white;
  /* border-color: black; */
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}



#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: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

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

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

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}