/* Importing Fonts */

body {
  font-family: "Orbitron", sans-serif;
  background-color: #0d0d0d;
  color: #00ff90;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  text-align: center; /* Align content to the center */
}

a {
  color: #00ff90;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(13, 13, 13, 0.9);
  z-index: 1000;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
  text-align: center; /* Center align header content */
}

.logo h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8em;
  color: #00ff90;
  margin: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  color: #00ff90;
}

nav ul li a.active,
nav ul li a:hover {
  color: #ffffff;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #00ff90;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }

  nav ul.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    width: 100%;
    padding: 10px;
  }
}

/* Background Animation */
.background-animation {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url("images/animated-bg.gif") no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
  opacity: 0.2;
  animation: flicker 3s infinite;
}

/* Main Content */
.content {
  padding-top: 100px;
  padding-left: 10%;
  padding-right: 10%;
  text-align: center;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* Center align hero content */
  padding: 60px 0;
}

.hero-text {
  flex: 1 1 500px;
  text-align: center; /* Center align hero text */
}

.hero-text h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #00ff90;
  text-shadow: 0 0 5px #00e07a; /* Text highlighting effect */
}

.hero-text p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.btn {
  background-color: #00ff90;
  color: #0d0d0d;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #00e07a;
  transform: scale(1.05); /* Zooming effect on hover */
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

.hero-image img {
  width: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 144, 0.5);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05); /* Zooming effect on hover */
}

/* About Preview */
.about-preview {
  text-align: center;
  padding: 60px 0;
}

.about-preview h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #00ff90;
}

.about-preview p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Skills Section */
.skills {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.skills h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #00ff90;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skill {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

.skill:hover {
  transform: scale(1.05); /* Zooming effect on hover */
}

.skill h3 {
  margin-bottom: 10px;
  color: #00ff90;
}

footer {
  text-align: center;
  padding: 20px 0;
  background-color: rgba(13, 13, 13, 0.9);
  color: #00ff90;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.social-links a {
  color: #00ff90; /* Ensure color is visible on dark background */
  font-size: 1.5em; /* Adjust size as needed */
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #ffffff;
  transform: scale(1.1); /* Zooming effect on hover */
}

/* Certificates Page */
.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center; /* Center align grid items */
}

.certificate-gallery a img {
  width: 100%;
  border: 2px solid #00ff90;
  border-radius: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.certificate-gallery a img:hover {
  transform: scale(1.05);
  border-color: #ffffff;
}

/* Projects Page */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center; /* Center align grid items */
}

.project-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid #00ff90;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #ffffff;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card img:hover {
  transform: scale(1.05); /* Zooming effect on hover */
}

.project-info {
  padding: 20px;
  text-align: center; /* Center align project info */
}

.project-info h3 {
  margin-top: 0;
  color: #00ff90;
}

.project-info p {
  font-size: 1em;
  margin-bottom: 15px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: center; /* Center align contact form */
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #00ff90;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #00ff90;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ffffff;
  outline: none;
}

.contact-form .btn {
  width: 100%;
  padding: 15px;
  background-color: #00ff90;
  color: #0d0d0d;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
}

.contact-form .btn:hover {
  background-color: #00e07a;
  transform: scale(1.05); /* Zooming effect on hover */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
  }

  header {
    padding: 20px 5%;
  }

  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: rgba(13, 13, 13, 0.95);
    flex-direction: column;
    width: 100%;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .container {
    padding: 10px;
  }

  .hero-text h2 {
    font-size: 2em;
  }

  .hero-text p {
    font-size: 1.1em;
  }
}

/* Additional Styles for Animations and Transitions */
@keyframes flicker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center; /* Center align container content */
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
}

/* Technical Skills Section */
.technical-skills {
  text-align: center;
  padding: 60px 0;
}

.technical-skills h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #00ff90;
}

.technical-skills p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.technical-skills .skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.technical-skills .skill-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

.technical-skills .skill-item:hover {
  transform: scale(1.05); /* Zooming effect on hover */
}

.technical-skills .skill-item h3 {
  margin-bottom: 10px;
  color: #00ff90;
}

div ul {
    list-style: none;
  }