* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  scrollbar-width: none; /* Firefox */
}
::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

section {
  padding: 10rem 9% 2rem;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.drawer {
  position: fixed;
  top: 0;
  right: -300px;
  height: 100%;
  width: 250px;
  background-color: #323946;
  color: white;
  transition: right 0.3s ease;
  padding: 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.drawer a {
  display: block;
  margin: 10px 0;
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.drawer.open {
  right: 0;
}

.close-icon {
  font-size: 24px;
  cursor: pointer;
  text-align: right;
  margin-bottom: 20px;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger i {
  font-size: 24px;
  color: white;
}


.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 10px;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger i {
  font-size: 24px;
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
}

nav a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: .3s;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav a:hover,
nav a.active {
  color: var(--main-color);
}

.drawer a:hover,
.drawer a.active {
  color: var(--main-color);
}



#home {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(31, 36, 45, 0.9), rgba(31, 36, 45, 0.9)),
              url('https://images.unsplash.com/photo-1551650975-87deedd944c3?w=1200&auto=format&fit=crop&q=80') center/cover;
  position: relative;
  min-height: 100dvh;
}
.mouse-icon {
  height: 5rem;
  width: 5rem;
  position: absolute;
  right: 0;
  bottom: 0;
}

.home-content {
  max-width: 60rem;
  z-index: 1;
  text-align: center;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
  animation: slideTop 1s ease forwards;
  animation-delay: .7s;
}

span {
  color: var(--main-color);
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: .3s;
}

.home-content p {
  font-size: 1.6rem;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1s;
}

.home-img {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(var(--main-color), transparent 60%);
  opacity: 0.1;
  pointer-events: none;
}

.tech-stack {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 1.3s;
}

.tech-stack i {
  font-size: 3rem;
  color: var(--main-color);
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: .2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: .5s ease;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: calc(.2s * var(--i));
}

.social-media a:hover {
  background: var(--main-color);
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--second-bg-color);
  letter-spacing: .1rem;
  font-weight: 600;
  transition: .5s ease;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
}

.btn:hover {
  box-shadow: none;
}

.heading {
  text-align: center;
  font-size: 4.5rem;
}

.about {
  background: var(--second-bg-color);
  padding: 6rem 9% 2rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-top: 5rem;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: 2rem;
  border: .2rem solid var(--main-color);
}

.about-text h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--main-color);
}

.about-text p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.experience-box {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  border-left: .4rem solid var(--main-color);
}

.experience-box h4 {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.experience-box p {
  font-size: 1.4rem;
  margin-bottom: 0;
}


.skills h2 {
  margin-bottom: 5rem;
}

.skills-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.skills-container .skills-box {
  flex: 1 1 30rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: .2rem solid var(--bg-color);
  transition: .5s ease;
}

.skills-container .skills-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.skills-box i {
  font-size: 7rem;
  color: var(--main-color);
}

.skills-box h3 {
  font-size: 2.6rem;
}

.projects-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  /* flex-wrap: wrap; */
  margin-top: 3rem;
}

.projects-box {
  width: clamp(250px, 30vw, 330px); /* Responsive width */
  height: clamp(180px, 22vw, 250px); /* Responsive height */
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--second-bg-color);
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  overflow: hidden;
}

.projects-box:hover {
  transform: scale(1.1);
}

.app-icon {
  width: 100%; /* Ensures image takes full width of the container */
  height: 100%; /* Ensures image takes full height */
  object-fit: cover; /* Prevents distortion while filling the box */
  border-radius: 1rem;
  transition: transform 0.3s ease-in-out;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 10;
}
.modal.show {
  display: flex;
  opacity: 1;
}
.modal-content {
  background: rgba(0, 48, 52, 0.3); 
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  color: white;
  animation: fadeIn 0.5s ease-in-out;
  position: relative;
  width: 60%;
  backdrop-filter: blur(10px); /* Frosted glass effect */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border for depth */
}
.modal-description {
  margin-top: 1rem;
  font-size: 1.6rem;
  letter-spacing: 0.1rem;
  line-height: 1.8;
}

.close {
  position: absolute;
  top: 4px;
  right: 14px;
  font-size: 2rem;
  cursor: pointer;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.modal-buttons a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-buttons a:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.modal-buttons a i {
  font-size: 1.2rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#contact {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-color);
  backdrop-filter: blur(10px);
  /* border-radius: 20px; */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-height: auto;
}

.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 50px;
    font-size: 1.6rem;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 114, 255, 0.4);
    position: relative;
    overflow: hidden;
  }

  .contact-btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: 0;
    left: 0;
    transform: scale(0);
    transition: 0.3s ease-in-out;
    border-radius: 50px;
  }

.contact-btn:hover::before {
  transform: scale(1);
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255, 118, 136, 0.6);
}

.contact-btn i {
  font-size: 2rem;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--second-bg-color);
}

.footer-text p {
  font-size: 1.6rem;
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

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

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

/* Media query for tablets */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-img {
    margin-bottom: 2rem;
  }
  .modal-content{
    width: 75%;
  }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .about-text h3 {
    font-size: 2.5rem;
  }

  .about-text p {
    font-size: 1.4rem;
  }

  .experience-box h4 {
    font-size: 1.8rem;
  }

  .experience-box p {
    font-size: 1.2rem;
  }
  .projects-container {
    flex-direction: column;
    align-items: center;
  }
  .modal-content{
    width: 90%;
  }
  .modal-description {
    line-height: 1.3;
    letter-spacing: normal;
  }
}