* {
  padding: 0;
  margin: 0;
  border: none;
  outline: 0;
  text-decoration: none;
  color: white;
  box-sizing: border-box;
}

body {
  background-color: rgb(6, 7, 12);
  font-family: 'Poppins', sans-serif;
  background-image: url(background-img.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 0 10%;
  animation: backgroundZoom 3s ease-in forwards;
}

/* Header */
#header, nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  z-index: 1;
  flex-wrap: wrap;
}

.nav-item {
  font-size: 1.2rem;
  font-weight: 500;
  margin-left: 60px;
  transition: color 0.12s, transform 0.12s;
}

nav .active {
  color: #3FA2F6;
}

.nav-item:hover {
  color: #3FA2F6;
}

.nav-item:active {
  transform: scale(1.1);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
}

/* Hero Section */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 100px;
}

.hero-left {
  padding-top: 50px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  transition: background-color 3s, box-shadow 3s;
  cursor: pointer;
}

.hero-right:hover {
  background-color: rgba(6, 7, 12, 0.705);
  box-shadow:
    0 0 20px rgb(6, 7, 12),
    0 0 50px rgb(6, 7, 12),
    0 0 100px rgb(6, 7, 12),
    0 0 200px rgb(6, 7, 12);
}

.profile-img {
  width: 250px;
  max-width: 80%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(63, 162, 246, 0.4);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

/* Headings */
h1 {
  font-size: 4rem;
  font-weight: 800;
  padding: 25px 0;
  animation: fadeIn 1.2s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

h3 {
  font-size: 2.3rem;
  font-weight: 800;
  color: white;
  padding-bottom: 40px;
  animation: fadeIn 1.4s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

p {
  font-size: 1.2rem;
  color: lightgray;
  line-height: 1.5;
  padding-bottom: 50px;
  animation: fadeIn 1.6s ease-out forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: #3FA2F6;
}
.cta a {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 0;
  width: 200px;
  border-radius: 8px;
  background-color: #3FA2F6;
  transition: background-color 0.12s, border 0.12s, color 0.21s, padding 0.12s;
  animation: fadeIn 1.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.8s;
  margin-bottom: 60px; /* Updated from 180px */
}


.cta .cta-1:hover {
  background-color: transparent;
  color: #3FA2F6;
  border: 2px solid #3FA2F6;
  padding: 13px 0;
}

.cta .cta-2 {
  background-color: transparent;
  color: #3FA2F6;
  border: 2px solid #3FA2F6;
  padding: 13px 0;
}

.cta .cta-2:hover {
  background-color: #3fa1f6;
  color: #000;
}


.cta .cta-3 {
  background-color: #ffffff;
  color: #3FA2F6;
  border: 2px solid #3FA2F6;
  font-weight: 600;
  padding: 13px 0;
  width: 200px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.cta .cta-3:hover {
  background-color: #3FA2F6;
  color: white;
}

/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-bottom: 50px;
  animation: fadeIn 2s ease-out forwards;
  opacity: 0;
  animation-delay: 1s;
  flex-wrap: wrap;
}

.social-icon a {
  text-decoration: none;
}

.social-icon a i {
  font-size: 1.3rem;
  color: #3FA2F6;
  border: 1px solid #3FA2F6;
  border-radius: 50%;
  padding: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon a i:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #3FA2F6;
}

/* Project Section */
#projects .project {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#projects .project h3 {
  color: white;
}

#projects .project:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.project-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: space-between;
}

.project-gallery img {
  width: 30%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(63, 162, 246, 0.2);
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
}

.project-info {
  margin-top: 20px;
}

/* Experience Section */
.job {
  margin-bottom: 40px;
}

.job h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
}

.job span {
  color: #3FA2F6;
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.job ul {
  list-style-type: disc;
  margin-left: 20px;
  color: lightgray;
  line-height: 1.6;
}

/* Skills */
#skills p {
  font-size: 1.2rem;
  color: lightgray;
}

/* Contact */
#contact {
  padding: 30px 0;
  padding-left: 10%;
  padding-right: 10%;
  text-align: left;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #3FA2F6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.1rem;
  color: lightgray;
}

.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-details i {
  color: #3FA2F6;
  font-size: 1.2rem;
  min-width: 20px;
}

.contact-details a {
  color: #3FA2F6;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInTop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes backgroundZoom {
  from {
    background-size: 80%;
  }
  to {
    background-size: 100%;
  }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    padding-top: 50px;
  }

  .cta {
    flex-direction: column;
    align-items: center;
  }

  .cta button {
    width: 100%;
    margin-right: 0;
  }

  .social-icon {
    justify-content: center;
  }

  .project-gallery img {
    width: 100%;
  }

  .project-info {
    text-align: center;
  }

  .job h3 {
    font-size: 1.2rem;
  }

  #skills p {
    font-size: 1rem;
  }
/* Contact Section Enhancements */
#contact {
  padding: 60px 10%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  margin-top: 60px;
  text-align: center;
  box-shadow: 0 0 20px rgba(63, 162, 246, 0.1);
}

.contact-subtext {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(63, 162, 246, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  font-size: 1.1rem;
  color: lightgray;
}

.contact-row i {
  color: #3FA2F6;
  font-size: 1.3rem;
}

.contact-row a {
  color: #3FA2F6;
  text-decoration: none;
}

.contact-row a:hover {
  text-decoration: underline;
}

