/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  color: white;
}

body {
  background-image: url("./Images/background.jpg");
  color: white;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px;
}

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

.logo span {
  color: blue;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu li {
  list-style: none;
}

.menu li a {
  text-decoration: none;
  font-weight: 400;
  background-color: grey;
  color: white;
  padding: 8px 15px;
  border-radius: 7px;
  transition: transform 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.menu li a:hover {
  background-color: rgba(128, 128, 128, 0.829);
  transform: scale(1.1) translateY(5px);
}

.contact-icons {
  font-size: 20px;
  color: white;
  display: flex;
  gap: 25px;
}

.Contact {
  transition: transform 0.3s ease;
}

.Contact:hover {
  transform: scale(1.3);
}

.hero-content {
  display: flex;
  align-content: center;
  justify-content: center;
  padding: 100px;
}

.hero-content img {
  inline-size: 300px;
  block-size: 300px;
  border-radius: 30%;
  object-fit: cover;
  transition: 0.3s ease;
  animation: float 4s ease-in-out infinite;
}

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

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

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

.hero-content img:hover {
  border-radius: 15%;
}

.hero-text {
  line-height: 2;
}

#first-p {
  font-size: 40px;
  font-weight: bold;
}

#second-p {
  font-size: 20px;
}

.hero-content button {
  background-color: black;
  color: white;
  padding: 15px;
  border: 1px solid white;
  border-radius: 5px;
  margin-block-start: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hero-content button a {
  text-decoration: none;
  color: inherit;
}

.hero-content button:hover {
  background-color: white;
  color: black;
  transform: translateY(-5px);
}

/* Skills Section */
#skills {
  padding: 40px;
  font-family: sans-serif;
  text-align: center;
  color: #000;
}

#skills h2 {
  font-size: 2rem;
  color: aliceblue;
  margin-block-end: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.skills-category {
  margin-block-end: 40px;
}

.skills-category h3 {
  font-size: 1.5rem;
  margin-block-end: 20px;
  color: white;
}

/* Horizontal Skill Grid */
.skills-grid {
  display: inline-flex;
  gap: 15px;
  padding-inline-end: 15px;
  margin-inline-end: auto;
}

/* Skill Card */
.skill {
  background-color: rgba(49, 49, 49, 0.945);
  color: white;
  padding: 15px 10px;
  border-radius: 10px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-inline-size: 150px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.scroll-wrapper {
  overflow: hidden;
  position: relative;
  inline-size: 100%;
}

.scroll-track {
  display: flex;
  gap: 20px;
  animation: scroll-left 10s linear infinite;
  will-change: transform;
}

@keyframes scroll-left {
  0%{
    transform: translateX(80%);
  }
  100%{
    transform: translateX(-80%);
  }
}
.skill:hover {
  transform: scale(1.05);
}

/* Icons */
.icon {
  font-size: 24px;
}

/* Branded Colors */
.html {
  color: #e44d26;
}

.css {
  color: #264de4;
}

.js {
  color: #f0db4f;
}

.git {
  color: #f1502f;
}

.github {
  color: #a1a0a0;
}

/* Vercel Image */
.vercel-icon {
  inline-size: 24px;
  block-size: 24px;
  object-fit: contain;
}

#toggleToolsBtn {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 7px;
  cursor: pointer;
  margin: 0 auto 30px auto;
  display: block;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#toggleToolsBtn:hover {
  background-color: #333;
}

/* Slide toggle transition */
.slide-toggle {
  max-block-size: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.slide-toggle.open {
  max-block-size: 500px;
}

/* Hidden state for scroll-triggered animation */
.skill.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

/* Slide-in when visible */
.skill.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.5s ease;
}

/* About section */
.about {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 60px;
  justify-content: space-between;
  padding: 70px;
}

.about-section h1 {
  text-align: center;
}

.about-text {
  line-height: 2;
  font-size: 18px;
  font-weight: bold;
  max-inline-size: 600px;
  /* optional to control text width */
}

/* Container for image + caption */
.about-img {
  position: relative;
  /* important for caption positioning */
  display: inline-block;
  /* shrink wrap */
  overflow: hidden;
  cursor: pointer;
  max-inline-size: 500px;
  border-radius: 15px;
  /* rounded corners */
}

.about-img img {
  inline-size: 100%;
  display: block;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.about-img:hover img {
  transform: scale(1.1);
}

.image-caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* semi-transparent black */
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  pointer-events: none;
  border-radius: 0 0 15px 15px;
  /* round bottom corners to match image */
}

.about-img:hover .image-caption {
  transform: translateY(0);
  pointer-events: auto;
}

.projects-section {
  padding: 40px 20px;
  max-inline-size: 900px;
  margin: 0 auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.projects-section h1 {
  text-align: center;
  margin-block-end: 40px;
  font-weight: 700;
  font-size: 2.5rem;
  color: #979696;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 55px;
  border-block-end: 1px solid #ddd;
  padding-block-end: 25px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.project-item img {
  inline-size: 500px;
  /* uniform size */
  block-size: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.project-text {
  flex: 1;
}

.project-text h2 {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  color: whitesmoke;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: whitesmoke;
  margin-block-end: 12px;
}

.project-text a.view-project {
  text-decoration: none;
  color: white;
  background-color: #333;
  padding: 12px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  transition: tranform 0.3s ease;
  line-height: 5;
  cursor: pointer;
}

.project-text a.view-project:hover {
  color: #878788;
  transform: scale(1.1) translateY(5);
}

/* Responsive tweak for smaller screens */
@media (max-width: 992px) {
  .menu li a {
    padding: 15px 22px;
    border-radius: 12px;
  }

  .project-item {
    flex-direction: column;
    align-items: center;
  }

  .project-item img {
    inline-size: 100%;
    block-size: auto;
    max-inline-size: 320px;
  }

  .project-text {
    text-align: center;
    margin-block-start: 15px;
  }

  .project-text p {
    padding: 20px;
    font-size: 23px;
  }
  .project-text a.view-project {
    font-size: 20px;
    padding: 20px;
  }

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

  .contact-icons {
    font-size: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-content button {
    padding: 20px;
  }

  .hero-content button a {
    font-size: 18px;
  }

  .logo {
    font-size: 25px;
  }

  #first-p {
    font-size: 45px;
  }

  #second-p {
    font-style: italic;
    font-size: 25px;
  }

  #skills {
    padding: 20px;
  }
  .about {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* text-align: center; */
  }

  .about-text {
    font-size: 20px;
  }

  .footer-text {
    font-size: 18px;
    line-height: 2;
  }
}

.footer {
  padding: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-icons {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center;
  font-size: 35px;
  line-height: 3;
}
.footerh1 {
  line-height: 3;
}
