/* Reset some defaults and set global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  background-color: #030614;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #00aaff;
  text-decoration: none;
}

/* Navigation bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

header .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
}

header .logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: #ffffff;
  font-weight: 400;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00aaff;
}

/* General section styling */
section {
  padding: 120px 20px;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h3 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #ffffff;
}

.section-header p {
  font-size: 18px;
  color: #a6bffd;
}

/* Hero section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 20% 30%, #142850, #0b1025 60%, #02010a);
  background-attachment: fixed;
  overflow: hidden;
}

/* star field layers for parallax */
#hero::before,
#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 2px 2px;
  opacity: 0.25;
  animation: drift 60s linear infinite;
}

#hero::after {
  background-size: 3px 3px;
  opacity: 0.15;
  animation-duration: 90s;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-1000px);
  }
}

#hero .hero-content {
  max-width: 800px;
  z-index: 1;
}

#hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
}

#hero h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 400;
  color: #a6bffd;
}

#hero p {
  font-size: 18px;
  margin-bottom: 40px;
  color: #d0d8f7;
}

#hero .btn {
  padding: 12px 30px;
  margin: 0 10px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
  display: inline-block;
}

#hero .btn {
  background: #00aaff;
  color: #ffffff;
}

#hero .btn:hover {
  background: #0077cc;
}

#hero .btn-outline {
  background: transparent;
  border: 2px solid #00aaff;
  color: #00aaff;
}

#hero .btn-outline:hover {
  background: #00aaff;
  color: #ffffff;
}

/* About section */
#about .about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 40px;
}

#about .about-content p {
  font-size: 18px;
  color: #d0d8f7;
}

#about .skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

#about .skills .skill {
  flex: 1 1 200px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
}

#about .skills .skill span {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  color: #ffffff;
}

#about .skills .skill p {
  color: #a6bffd;
  font-size: 14px;
}

#about .stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

#about .stats .stat {
  text-align: center;
}

#about .stats .stat h4 {
  font-size: 36px;
  color: #00aaff;
  margin-bottom: 5px;
}

#about .stats .stat p {
  color: #a6bffd;
  font-size: 14px;
}

/* Services section */
#services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

#services .service {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

#services .service i {
  font-size: 32px;
  margin-bottom: 15px;
  color: #00aaff;
}

#services .service h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 20px;
}

#services .service p {
  color: #a6bffd;
  font-size: 14px;
}

#services .service:hover {
  transform: translateY(-5px);
}

/* Projects section */
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

#projects .project {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

#projects .project h4 {
  color: #00aaff;
  margin-bottom: 10px;
  font-size: 20px;
}

#projects .project p {
  color: #d0d8f7;
  font-size: 14px;
}

#projects .project:hover {
  transform: translateY(-5px);
}

/* Testimonials section */
#testimonials .testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

#testimonials .testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  flex: 1 1 300px;
}

#testimonials .testimonial p {
  color: #d0d8f7;
  font-style: italic;
  margin-bottom: 15px;
}

#testimonials .testimonial h5 {
  color: #00aaff;
  margin-bottom: 5px;
  font-size: 18px;
}

#testimonials .testimonial span {
  color: #a6bffd;
  font-size: 14px;
}

/* Contact section */
#contact .contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

#contact .contact-info div {
  display: flex;
  align-items: center;
  gap: 15px;
}

#contact .contact-info i {
  font-size: 24px;
  color: #00aaff;
}

#contact .contact-info p {
  margin: 0;
  color: #d0d8f7;
  font-size: 16px;
}

#contact .social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

#contact .social-links a {
  font-size: 24px;
  color: #00aaff;
  transition: color 0.3s ease;
}

#contact .social-links a:hover {
  color: #0077cc;
}

/* Footer */
footer {
  background: #01040a;
  padding: 20px 0;
  text-align: center;
  margin-top: 50px;
}

footer p {
  color: #545e87;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header .container {
    padding: 15px;
  }
  nav ul {
    gap: 15px;
  }
  #hero h1 {
    font-size: 36px;
  }
  #hero h2 {
    font-size: 24px;
  }
  #about .skills {
    flex-direction: column;
    align-items: center;
  }
  #about .stats {
    flex-direction: column;
    gap: 20px;
  }
}