* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  /* background-color: #030712; */
  /* font-family: ; */
  color: white;
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
}
img {
  max-width: 100%;
}
.tech-image {
  max-width: 100%;
  display: block;
}
header {
  background-color: #030712;
  padding: 2rem 0;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  align-items: center;
}

.hamburger {
  display: block;
  cursor: pointer;
}
.bar {
  display: block;
  width: 25px;
  height: 4px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: white;
}
.nav-menu {
  display: none;
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}
.nav-brand {
  text-decoration: none;
  color: white;
  font-size: 2rem;
}
/* Header animations */
.nav-brand {
  animation: fadeInDown 1s ease-out;
}

.nav-menu .nav-list {
  opacity: 0;
  animation: slideInRight 0.5s ease-out forwards;
}

.nav-menu .nav-list:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-menu .nav-list:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-menu .nav-list:nth-child(3) {
  animation-delay: 0.3s;
}
.nav-menu .nav-list:nth-child(4) {
  animation-delay: 0.4s;
}

/* Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* mobile menu animate */
.mobile-drop.active {
  display: flex;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-drop {
  display: none;
}
.mobile-drop-2 {
  text-align: center;
  background-color: rebeccapurple;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem 0;
  width: 100%;
  transition: 7s ease-in-out;
}
.mobile-drop.active {
  display: flex;
}
.nav-list {
  list-style: none;
}
.nav-link {
  color: white;
  text-decoration: none;
}
.nav-link {
  transition: 0.7s ease;
}
.nav-link:hover {
  color: orange;
}

/* first container styling */
#first-container {
  background-color: #030712;
}
.row2 {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* first container animations */
.hero-col-1 img {
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.5s forwards; /* Delay for effect */
}

.hero-col-2 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards; /* Slightly later than image */
}

/* Keyframes */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.hire-btn {
  background-color: transparent;
  padding: 0.8rem 1.5rem;
  border: 1px solid white;
  color: white;
  margin: 1rem 0;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 8px;
  font-weight: 700;
}
.hire-btn {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hire-btn:hover {
  transform: scale(1.05); /* Slight scale-up */
  background-color: #e6eeff;
  color: orange;
  font-weight: 600;
}
.socials {
  padding: 1rem 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.icn {
  font-size: 1rem;
  color: white;
  border: 1px solid white;
  padding: 0.5rem;
  border-radius: 2.5rem;
}
.icn:hover {
  background-color: #191970;
  transition: 0.5s;
}
.the-mail-link {
  color: white;
  transition: color 0.6s;
}
.the-mail-link:hover {
  color: orange;
}

/* About container styling */
#About-container {
  background-color: #111827;
  padding: 2rem 0;
}
.container {
  width: 85%;
  margin: 0 auto;
}
.col1 {
  background-color: #374151;
  padding: 3rem 1rem;
}
.col2 {
  background-color: #1f2937;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.about-text {
  line-height: 1.4;
  font-size: 0.95rem;
  font-weight: 400;
}

/* projects done section styling */
#projects {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  background: #111827;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#projects h2 {
  text-align: center;
  margin-bottom: 20px;
}

.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #34495e;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.project:hover {
  transform: translateY(10px);
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-link {
  display: block;
  width: 100%;
}

.project-image {
  height: 200px;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
}

.content {
  width: 100%;
}
.tech-label {
  background-color: #ecf0f1;
  color: #34495e;
  padding: 5px 10px;
  /* margin: 2rem 0; */
  border-radius: 5px;
  font-size: 0.9em;
  text-transform: uppercase;
}

.tech-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  font-size: 0.9em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-desc {
  margin-top: 10px;
  font-size: 0.9em;
}
.project h3 {
  margin: 1rem 0;
}

/* technologies section styling */
#footer-container {
  background-color: #030712;
  padding: 2rem 0;
}
#tech-stack {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: #030712;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#tech-stack h2 {
  margin-bottom: 20px;
  color: #fff;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: #eaeaea;
  margin-bottom: 20px;
  padding: 1.5rem 0;
  transition: transform 0.4s;
}
.tech-item:hover {
  transform: rotate(-5deg);
}
.tech-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.tech-item p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

@media (min-width: 768px) {
  .projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .tech-item {
    width: calc(50% - 20px); /* Two items per row */
  }
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    justify-content: space-between;
    gap: 3.75rem;
  }
  #first-container {
    padding: 6rem 0;
  }
  .hamburger {
    display: none;
    cursor: pointer;
  }
  .nav-list {
    list-style: none;
  }
  .nav-link {
    color: white;
    text-decoration: none;
  }
  .nav-link {
    transition: 0.7s ease;
  }
  .nav-link:hover {
    color: orange;
    /* text-decoration: underline; */
    border-bottom: 3px solid orange;
    padding-bottom: 0.5rem;
  }
  /* hero section styling */
  .intro-h2 {
    font-size: 3rem;
  }
  .row2 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }
  .hero-col-1 {
    flex-basis: 30%;
  }
  .hero-col-2 {
    flex-basis: 65%;
    max-width: 600px;
  }
  .hero-col-1 img {
    width: 100%;
    border-radius: 2rem;
  }
  /* About section styling */
  .row {
    display: flex;
    justify-content: space-between;
  }
  .about-col-1 {
    flex-basis: 30%;
  }
  .about-col-2 {
    flex-basis: 65%;
  }
  .about-col-1 img {
    width: 100%;
    border-radius: 3rem;
  }
  .work-cont {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  .projects-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .tech-item {
    width: calc(33.33% - 20px);
  }
  .socials {
    justify-content: left;
  }
}
