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

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

html {
  scroll-behavior: smooth;
}

/* Links & Transitions */
a, .btn {
  transition: all 300ms ease;
  text-decoration: none;
  color: inherit;
}

a:hover {
   color: var(--clr-fg-alt);
  text-decoration: underline;
  text-underline-offset: 0.8rem;
  text-decoration-color: #aaa;
}

/* Navigation */
nav,
.nav-links {
  display: flex;
  align-items: center;
}

nav {
  justify-content: space-between;
  padding: 0 5%;
  height: 10vh;
   font-size: 1.5rem;
   background-color: var(--clr-bg-alt);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.3rem;
  list-style: none;
}
 /* nav bar hover */
.nav-links a {
  position: relative;
  color: var(--clr-fg);
  transition: color 0.3s ease;
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--clr-primary); /* theme color */
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--clr-primary); /* color change when you hover */
}

.nav-links a:hover::after {
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--clr-fg-alt);
  gap: 0.1rem;
}

.logo img {
 width: 110px;
  height:110px;
  object-fit: contain;
 margin-left: 0;
}

/* Hamburger Nav */
#hamburger-nav {
  display: none;
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: relative;
  }

  .hamburger-toggle {
    font-size: 2rem;
    color: var(--clr-fg);
    cursor: pointer;
    z-index: 1001;
  }

  .menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--clr-bg-alt);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 100%;
    flex-direction: column;
    display: flex;
  }

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

  .menu-links a {
    position: relative;
    color: var(--clr-fg);
    text-decoration: none;
    padding: 1rem;
    font-size: 1.3rem;
    display: block;
    transition: color 0.3s ease;
  }

  .menu-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width 0.3s ease;
  }

  .menu-links a:hover {
    color: var(--clr-primary);
  }

  .menu-links a:hover::after {
    width: 100%;
  }
}

theme-icon {
  font-size: 10rem;
  cursor: pointer;
  color: var(--clr-fg);
  z-index: 22;
  position: relative;
  transition: color 0.3s ease;
}

.theme-icon:hover {
  color: var(--clr-primary);
}
/* Sections */
section {
  padding: 5vh 10%;
}

.section__text {
  text-align: center;
  max-width: 650px;
  margin: auto;
}

.section__text__p1,
.section__text__p2,
.section__text__p3 {
  margin: 0.5rem 0;
}

.section__text__p1{
  font-size: 2rem;
  font-weight: bold;
}
.section__text__p2 {
  font-size: 2.4rem;
  font-weight: bold;
}
/* animation of role */
.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.7s steps(1) infinite;
  color: var(--clr-primary);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.title {
  font-size: 2.5rem;
   margin-bottom: 1rem;
   gap: 3rem;
}

.section__pic-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.section__pic-container img {
  width: 400px;
  height: 400px;
  border-radius: 100%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
   font-size: 8rem;
}

.icon {
  height: 30px;
  margin: 0 0.5rem;
  cursor: pointer;
}

/* Buttons */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top:2rem;
}

.btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  background-color: #333;
  color: white;
  font-size: 1rem;  
  cursor: pointer;
}

.btn-color-2 {
  background-color: transparent;
  border: 1px solid #333;
   color: var(--clr-fg-alt);
}

.btn-color-2:hover {
  background-color: #333;
  color: white;
}

#socials-container  {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem; /* space between the buttons */
}

/* About Section */
.about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
  margin-bottom: 1rem;
}

.about-pic {
  max-width: 300px;
  border-radius: 20px;
}


.details-container {
  background: var(--clr-bg-alt);
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 1rem;
  flex: 1 1 300px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 1.4rem;
}

/* Skills */
#skills .details-container ul {
  list-style: none;
  padding: 0;
  line-height: 1.8;
  text-align: left;
}

.skill-bar {
  margin-bottom: 1rem;
}

.bar-container {
  background-color: #e0e0e0;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 19px;
  transition: width 0.4s ease;
}

/* Projects */
.color-container {
   background: var(--clr-bg-alt);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  width: 250px;
  margin: auto;
}

.project-img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--clr-fg-alt)
}

.project-description {
  font-size: 1rem;
   color: var(--clr-fg-alt);
  margin-bottom: 0.8rem;
}

/* Contact */
#contact {
  text-align: center;
  background: var(--clr-bg);
  padding: 4rem 2rem;
}

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

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

.contact-icon {
  height: 2rem;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: var(--clr-bg-alt);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  border: none;
  background: none;
  box-shadow: none;
}

.footer-links a {
  text-decoration: none;
  border: none;
  outline: none;
  background: none;
  box-shadow: none;
  color: var(--clr-fg);
    font-size: 1.4rem;
}

footer p {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
  border-top: 2px solid #ccc; 
  padding-top: 1rem; 
}
/* footer hover */
.footer-links a {
  position: relative;
  color: var(--clr-fg);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background-color: var(--clr-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--clr-primary);
}

.footer-links a:hover::after {
  width: 100%;
}

/* Media Queries */
@media screen and (max-width: 1400px) {
  #profile {
    height: auto;
    margin-bottom: 4rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
     position: relative;
  }

  section,
  .section-container {
    height: fit-content;
    margin: 0 5%;
  }
  .section__pic-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
  }
  .about-containers {
    margin-top: 0;
  }
  .arrow {
    display: none;
  }
}

/* Light mode theme */
.light {
  --clr-bg: #fcfcfc;
  --clr-bg-alt: #fff;
  --clr-fg: #555;
  --clr-fg-alt: #444;
  --clr-primary: #2978b5;
  --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

/* Dark mode theme */
.dark {
  --clr-bg: #23283e;
  --clr-bg-alt: #2a2f4c;
  --clr-fg: #bdbddd;
  --clr-fg-alt: #cdcdff;
  --clr-primary: #90a0d9;
  --shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

@media screen and (max-width: 600px) {
  nav {
    flex-direction: column;
  }
  #contact,
  footer {
    height: auto;
    padding: 2rem 1rem;
  }
  #profile {
    flex-direction: column;
    height: auto;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 3rem;
  }
  .section__pic-container {
    height: auto;
    width: 90vw;
  }
  .text-container,
  .section__text {
    text-align: left;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .contact-info-upper-container,
  .about-containers,
  .btn-container {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  article {
    font-size: 1rem;
  }
  .skills-sub-title {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
/* scroll up css */
#scroll-up {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: none;
  font-size: 2rem;           
  color:  #0d0d0d; 
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}
#scroll-up:hover {
  transform: translateY(-4px);
  color: var(--clr-fg-alt, #444); /* on hover */
}