/* General Styles */
html {
  scroll-behavior: smooth; /* Enables smooth scrolling */
  scroll-padding-top: 80px;
}
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0a192f;
  color: #ccd6f6;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
}

/* Header */
header {
  background-color: #0a192f;
  color: #64ffda;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
}

header .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

header .nav-links li a {
  color: #ccd6f6;
  font-weight: 500;
  transition: color 0.3s ease;
}

header .nav-links li a:hover {
  color: #64ffda;
}

/* Navigation Bar */
.nav-links {
  display: flex;
  gap: 20px; /* Adds spacing between links */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 1rem; /* Adjust font size */
  font-weight: 500; /* Slightly bold for better visibility */
  color: #ccd6f6; /* Light color for better contrast */
  text-transform: uppercase; /* Makes text uppercase for a modern look */
  letter-spacing: 1px; /* Adds spacing between letters */
  transition: color 0.3s ease, transform 0.3s ease; /* Smooth hover effects */
}

.nav-links a:hover {
  color: #64ffda; /* Highlight color on hover */
  transform: scale(1.1); /* Slightly enlarges the text on hover */
}

/* Hero Section */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures proper spacing between text and image */
  padding: 100px 20px;
  background-color: #112240;
  color: #ccd6f6;
  flex-wrap: wrap; /* Ensures responsiveness for smaller screens */
  gap: 20px; /* Adds consistent spacing between elements */
}

.hero-content {
  max-width: 600px;
  text-align: left; /* Align text to the left */
  flex: 1; /* Ensures the content takes equal space */
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: #64ffda;
}

.hero-content .highlight {
  color: #64ffda;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-content .btn {
  background-color: #64ffda;
  color: #0a192f;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
  text-align: center;
  display: inline-block;
}

.hero-content .btn:hover {
  background-color: #0a192f;
  color: #64ffda;
  border: 2px solid #64ffda;
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.5);
  transform: scale(1.05);
}

#hero {
  display: flex;
  align-items: center;
  justify-content: space-around; /* Reduces the gap between text and image */
  padding: 100px 20px;
  background-color: #112240;
  color: #ccd6f6;
  flex-wrap: wrap; /* Ensures responsiveness for smaller screens */
  gap: 20px; /* Adds consistent spacing between elements */
}

.hero-content {
  max-width: 600px;
  text-align: left; /* Align text to the left */
  flex: 1; /* Ensures the content takes equal space */
}

.hero-image {
  max-width: 300px;
  text-align: center; /* Center the image */
  flex: 1; /* Ensures the image takes equal space */
}

.hero-image img {
  max-width: 115%;
  border-radius: 50%;
  border: 5px solid #64ffda;
}

.social-icons {
  display: flex;
  justify-content: flex-start; /* Align icons to the left */
  gap: 15px; /* Add spacing between icons */
  margin: 20px 0; /* Add spacing above the button */
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.social-icons img:hover {
  transform: scale(1.2); /* Slightly enlarges the icon on hover */
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.8); /* Glowing effect on hover */
}

.btn {
  display: inline-block;
  margin-top: 20px; /* Add spacing between the icons and the button */
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a192f;
  background-color: #64ffda;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.btn:hover {
  background-color: #0a192f;
  color: #64ffda;
  border: 2px solid #64ffda;
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.5);
  transform: scale(1.05);
}

/* Pulsing Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.8),
      0 0 30px rgba(100, 255, 218, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(100, 255, 218, 1),
      0 0 35px rgba(100, 255, 218, 0.7);
  }
  100% {
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.8),
      0 0 30px rgba(100, 255, 218, 0.5);
  }
}

/* About Section */
#about {
  background-color: #0a192f;
  padding: 50px 20px;
  text-align: center;
}

#about h2 {
  font-size: 2.5rem;
  color: #64ffda;
  margin-bottom: 20px;
}

#about p {
  font-size: 1.1rem;
  color: #ccd6f6;
  max-width: 800px;
  margin: auto;
}

/* Skills Section */
#skills {
  background-color: #112240;
  padding: 50px 20px;
  text-align: center;
}

#skills h2 {
  font-size: 2.5rem;
  color: #64ffda;
  margin-bottom: 20px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skill {
  background-color: #64ffda;
  color: #0a192f;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.skill:hover {
  transform: scale(1.1);
}

/* Projects Section */
#projects {
  padding: 50px 20px;
  background-color: #112240;
  color: #ccd6f6;
  text-align: center;
}

#projects h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #64ffda;
}

#projects h2 span {
  color: #ccd6f6;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Responsive grid */
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #0a192f;
  aspect-ratio: 1 / 1; /* Makes the card square */
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fits within the square */
  border-radius: 10px;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}
.project-card:hover .project-info {
  opacity: 1;
}

.project-buttons {
  display: flex;
  align-items: center; /* Aligns buttons vertically */
  justify-content: center; /* Center-align the buttons horizontally */
  gap: 15px; /* Add spacing between the buttons */
  margin-top: 10px;
}

.deploy-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #0a192f;
  background-color: #64ffda;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.deploy-btn:hover {
  background-color: #0a192f;
  color: #64ffda;
  transform: scale(1.05);
}

.github-btn {
  display: inline-flex; /* Ensures the GitHub button aligns properly */
  align-items: center; /* Centers the GitHub logo vertically */
  justify-content: center;
}

.github-btn img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: invert(1); /* Makes the GitHub logo white */
}

.github-btn img:hover {
  transform: scale(1.2); /* Slightly enlarges the icon on hover */
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.8); /* Glowing effect on hover */
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
}

.project-link img {
  width: 30px;
  height: 30px;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.project-link:hover img {
  transform: scale(1.2);
}

/* Contact Section */
#contact {
  padding: 50px 20px;
  background-color: #112240;
  color: #ccd6f6;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #64ffda;
}

#contact h2 span {
  color: #ccd6f6;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  gap: 20px;
}

.form-group input {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #64ffda;
  border-radius: 5px;
  background-color: #112240;
  color: #ccd6f6;
}

textarea {
  width: 100%; /* Ensures it spans the same width as other inputs */
  max-width: 600px; /* Matches the max-width of the form and button */
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #64ffda;
  border-radius: 5px;
  background-color: #112240;
  color: #ccd6f6;
  resize: none;
  height: 120px;
  margin: 0 auto; /* Centers the textarea */
  box-sizing: border-box; /* Ensures padding is included in width calculation */
}

.contact-form .btn {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #0a192f;
  background-color: #64ffda;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #0a192f;
  color: #64ffda;
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #0a192f;
  color: #64ffda;
  text-align: center;
  padding: 20px 0;
}

footer .social-links {
  margin-top: 10px;
}

footer .social-links a {
  color: #64ffda;
  margin: 0 10px;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: #fff;
}
