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

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

html {
  font-size: 62.5%;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: black;
  color: white;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

header {
  margin-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  filter: drop-shadow(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  color: #b74b4b;
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

@media(max-width: 995px) {
  nav {
    position: absolute;
    display: none;
    top: 0;
    right: 0;
    width: 40%;
    border-left: 3px solid #b74b4b;
    border-bottom: 3px solid #b74b4b;
    border-bottom-left-radius: 2rem;
    padding: 1rem solid;
    background-color: #161616;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 768px) {
  .about-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  nav a:hover,
  nav a.active {
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #b74b4b;
  }
}

section {
  min-height: 100vh;
  padding: 5rem 9% 5rem;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: black;
}

.home .home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}

span {
  color: #b74b4b;
}

.about h2,
.projects h2,
.contact h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
}

/* Paragraph text inside About Me and Contact */
.about p,
.contact p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: #ddd;
}

.home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.project h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #b74b4b;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}


.home-content p {
  font-size: 1.6rem;
}

.home-img img {
  width: 32vw;
  border-radius: 1rem; /* Optional: slight rounding for style */
  box-shadow: 0 0 25px #b74b4b;
  cursor: pointer;
  transition: 0.2s linear;
  object-fit: cover;
}

.home-img img:hover {
  transform: scale(1.03);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.about-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

.contact-links {
  list-style: none;
  padding-left: 0;
  font-size: 1.6rem;
}

.contact-links li {
  margin: 1rem 0;
}

.contact-links a {
  color: #b74b4b;
  text-decoration: underline;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin-top: 2rem;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  background-color: #1c1c1c;
  color: #fff;
  border: 1px solid #444;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b74b4b;
  box-shadow: 0 0 5px #b74b4b;
}

.contact-form .btn {
  align-self: flex-start;
}

/* Social Icons */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #b74b4b;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #b74b4b;
  box-shadow: 0 0 25px #b74b4b;
}

/* Button */
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #b74b4b;
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 2px solid #b74b4b;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.03);
  background-color: #b74b4b;
  color: black;
  box-shadow: 0 0 25px #b74b4b;
}

/* Typing Effect */
.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes fadeIn
{
    0% {
      transform: translateY(20px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.4s;
}

.fade-in.delay-2 {
  animation-delay: 0.8s;
}

.fade-in.delay-3 {
  animation-delay: 1.2s;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
  0%, 20% {
    content: "Game Developer";
  }
  21%, 40% {
    content: "UI/UX Designer";
  }
  41%, 60% {
    content: "Mobile App Creator";
  }
  61%, 80% {
    content: "Figma Prototyper";
  }
  81%, 100% {
    content: "Video Editor";
  }
}

/* Project Grid */
.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-images img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(183, 75, 75, 0.6);
}

.project video {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 10px;
  margin-top: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(183, 75, 75, 0.4);
}

.scrolling-thumbnails {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-track {
  display: flex;
  gap: 2rem;
  animation: scrollImages 25s linear infinite;
}

.thumbnail-track img {
  height: 200px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.thumbnail-track img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.5);
}

.project-card {
  background-color: #111;
  border: 1px solid #2b2b2b;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.2);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}


.project-card .card-content h2 {
  font-size: 2.8rem;
  color: #b74b4b;
  margin-bottom: 1rem;
}

.project-card .card-content p {
  font-size: 1.6rem;
  color: #ccc;
}

.project-card .card-image {
  position: relative;
}

.project-card .scrolling-thumbnails {
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.project-card .thumbnail-track {
  display: flex;
  gap: 2rem;
  animation: scrollImages 25s linear infinite;
}

.project-card .thumbnail-track img {
  height: 200px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.project-card .card-content {
  flex: 0 0 300px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; 
  color: #fafafa;
  text-align: left; 
}

.project-card .card-content h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.project-card .btn.view-btn.overlay {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background-color: rgba(30, 30, 31, 0.9);
  border: 1px solid rgb(60, 60, 60);
  color: white;
  padding: 2.4rem 3.6rem;
  border-radius: 11.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: max-content;
}

.project-card .btn.view-btn.overlay:hover {
  background-color: #b74b4b;
  color: black;
  border-color: #b74b4b;
}

@keyframes scrollImages {
  0% {
    transform: translateX(0%);
    opacity: 0.5;
  }
  100% {
    transform: translateX(-20%);
    opacity: 0.5;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 30px #b74b4b;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 4rem;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.close-btn:hover {
  color: #b74b4b;
}
