* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: serif;
}

body {
  background: rgb(3, 3, 63);
  color: aliceblue;
}

header {
  background-color: rgb(3, 3, 63);
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 10%;
  align-items: center;
}

.navbar img {
  height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  background: transparent;
  border: 2px solid #0ef;
  border-radius: 50px;
  font-size: 20px;
  color: #0ef;
  text-decoration: none;
  margin: -3px 0;
}

.navbar ul {
  display: flex;
  justify-content: center;
  flex: 1;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  list-style: none;
  display: inline-block;
  margin: 10px 20px;
}

.navbar ul li a {
  font-family: "Josefin Sans", serif;
  color: #0ef;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s ease;
}

.navbar ul li a:hover {
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 28px #0ef;
}

/* Home Section */
.home {
  position: relative;
  width: 100%;
  justify-content: space-between;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 70px 10% 0;
}

.home h3 {
  font-family: "Josefin Sans", serif;
  font-size: 32px;
  font-weight: 700;
  color: #0ef;
}

.home h1 {
  font-family: "Josefin Sans", serif;
  text-align: left;
  font-size: 40px;
  font-weight: 700;
  color: #0ef;
  margin: -3px 0;
}

.home p {
  font-family: "Josefin Sans", serif;
  margin: 30px 0;
  font-size: 20px;
  color: rgb(200, 247, 250);
}

.home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #0ef;
  border-radius: 50px;
  font-size: 20px;
  color: #0ef;
  text-decoration: none;
  margin: 30px 15px 30px 0;
}

.home-sci a:hover {
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 28px #0ef;
}

.btn-box {
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
}

.btn-box:hover {
  box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px cyan, 0 0 100px cyan, 0 0 200px cyan;
}

.footer {
  background: rgb(3, 3, 63);
  color: #0ef;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 0 1rem;
  text-align: left;
}

.footer-column h3 {
  margin-bottom: 0;
  border-bottom: 2px solid #007BFF;
  padding-bottom: 0.5rem;
  font-size: 16px;
  color: #007BFF;
}

.contacts {
  flex: 1;
  min-width: 200px;
  margin: 0 1rem;
  font-size: 16px;
  text-align: left;
}

.contacts h2 {
  margin-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
  font-size: 16px;
  color: #007BFF;
}

.contacts a {
  font-size: 16px;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #0ef;
  border-radius: 50px;
  font-size: 20px;
  color: #0ef;
  text-decoration: none;
  margin: 30px 15px 30px 0;
}

.social-links a:hover {
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 28px #0ef;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
}

/* Define the animation */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Apply the animation to the home section */
.home.animate-home {
  animation: slideInFromLeft 1s ease-out forwards;
}

.home.animate-home h3,
.home.animate-home h1,
.home.animate-home p,
.home.animate-home .home-sci,
.home.animate-home .btn-box {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.home.animate-home h3 {
  animation-delay: 0.5s;
}

.home.animate-home h1 {
  animation-delay: 1s;
}

.home.animate-home p {
  animation-delay: 1.5s;
}

.home.animate-home .home-sci {
  animation-delay: 2s;
}

.home.animate-home .btn-box {
  animation-delay: 2.5s;
}

/* Projects Section */
#projects {
  padding: 4rem 0;
  background: rgb(3, 3, 63);
  color: aliceblue;
}

#projects h2 {
  font-family: "Josefin Sans", serif;
  font-size: 22;
  text-align: center;
  margin-bottom: 2rem;
  color: #0ef;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 10%;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-family: "Josefin Sans", serif;
  font-size: 1.5rem;
  color: #0ef;
  margin-bottom: 1rem;
}

.project-card a {
  font-family: "Josefin Sans", serif;
  color: #0ef;
  text-decoration: none;
  border: 2px solid #0ef;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease;
}

.project-card a:hover {
  background: #0ef;
  color: #081b29;
}

/* Animation for Project Cards */
.project-card.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}

.project-card:nth-child(1).animate {
  transition-delay: 0.2s;
}

.project-card:nth-child(2).animate {
  transition-delay: 0.4s;
}

.project-card:nth-child(3).animate {
  transition-delay: 0.6s;
}

.project-card:nth-child(4).animate {
  transition-delay: 0.8s;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.skill {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  opacity: 0; /* Start hidden */
  transform: scale(0); /* Start small */
  animation: mergeIn 5s ease-out forwards;
}

@keyframes mergeIn {
  0% {
    opacity: 0;
    transform: scale(0) translateX(-100%) translateY(-100%);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) translateX(0) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
  }
}

.skill h3 {
  font-size: 1.5rem;
  color: #0ef;
  margin-bottom: 15px;
}

.skill ul {
  list-style: none;
  padding: 0;
}

.skill ul li {
  font-size: 1.1rem;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill ul li i {
  font-size: 1.5rem;
  color: #0ef;
}

/* Neural Network Animation */
.skill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 239, 255, 0.2), transparent);
  transition: 0.5s;
}

.skill:hover::before {
  left: 100%;
}

/* Contact Form */
/* Contact Form Section */
#contact {
  padding: 60px 0;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  opacity: 0; /* Start hidden */
  transform: translateY(50px); /* Start slightly below */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.contact-form.animate {
  opacity: 1; /* Fade in */
  transform: translateY(0); /* Move to final position */
}

/* Form Styling */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px; /* Add spacing between form groups */
  text-align: left; /* Align labels and inputs to the left */
}

form label {
  display: block;
  font-size: 1.1rem;
  color: #0ef;
  margin-bottom: 5px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1); /* Transparent background */
  color: #fff; /* White text for inputs */
  font-size: 1rem;
  transition: border-color 0.3s ease; /* Smooth border transition */
}

form input:focus,
form textarea:focus {
  border-color: #0ef; /* Highlight border on focus */
  outline: none; /* Remove default outline */
}

form textarea {
  resize: vertical; /* Allow vertical resizing */
  min-height: 150px; /* Set a minimum height */
}

form button {
  padding: 12px 28px;
  background: #0ef; /* Neon color for the button */
  color: #081b29; /* Dark text for contrast */
  border: none; /* Remove default border */
  border-radius: 40px; /* Rounded corners */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

form button:hover {
  background: #00bcd4; /* Change color on hover */
  box-shadow: 0 0 5px cyan, 0 0 25px cyan; /* Add a glowing effect */
}

/* About Me Section */
.container {
  background: rgb(3, 3, 63);
  font-family: "Josefin Sans", serif;
  margin: 30px auto;
  padding: 30px;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

h1 {
  font-family: "Josefin Sans", serif;
  font-size: 32px;
  font-weight: 700;
  color: #0ef;
  margin-bottom: 20px;
}

h2 {
  font-family: "Josefin Sans", serif;
  font-size: 24px;
  font-weight: 700;
  color: #0ef;
  margin-bottom: 30px;
}

.intro,
.journey,
.specialization,
.connect {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.intro {
  border-left: 5px solid #3498db;
}

.journey {
  border-left: 5px solid #e74c3c;
}

.specialization {
  border-left: 5px solid #2ecc71;
}

.connect {
  border-left: 5px solid #f1c40f;
}

h3 {
  font-family: "Josefin Sans", serif;
  font-size: 20px;
  font-weight: 700;
  color: #0ef;
  margin-bottom: 15px;
}

p {
  font-family: "Josefin Sans", serif;
  font-size: 18px;
  color: rgb(200, 247, 250);
  line-height: 1.6;
  margin-bottom: 15px;
}

ul {
  padding-left: 20px;
  list-style-type: none;
}

ul li {
  font-family: "Josefin Sans", serif;
  font-size: 18px;
  color: rgb(200, 247, 250);
  margin-bottom: 10px;
  line-height: 1.6;
}

ul li strong {
  font-weight: 700;
  color: #0ef;
}

a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  p, ul li {
    font-size: 16px;
  }

  .container {
    padding: 20px;
  }
}

/* Animation Keyframes */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px); /* Start off-screen to the left */
  }
  100% {
    opacity: 1;
    transform: translateX(0); /* Move to the final position */
  }
}

/* Apply animations to sections */
.intro,
.journey,
.specialization,
.connect {
  opacity: 0; /* Start hidden */
  transform: translateX(-100px); /* Start off-screen to the left */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.intro.animate,
.journey.animate,
.specialization.animate,
.connect.animate {
  opacity: 1;
  transform: translateX(0); /* Slide in to the final position */
}