* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #6c63ff;
  --dark: #121212;
  --light: #f5f5f5;
  --accent: #ff6584;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

.galaxy-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, #0a0a2a 0%, #1a1a4a 50%, #0a0a2a 100%);
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 42, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--light);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 4px;
}

.nav-links a:hover {
  color: var(--primary);
  background-color: rgba(108, 99, 255, 0.1);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--light);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.hero-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #b8b8b8;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.hero-img {
  flex: 1;
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  transition: all 1s ease 0.3s;
}

.hero-img.visible {
  opacity: 1;
  transform: translateX(0);
}

.team-members {
  position: relative;
  height: 400px;
}

.team-member {
  position: absolute;
  width: 250px;
  height: 350px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  overflow: hidden;
}

.team-member:first-child {
  left: 0;
  top: 50px;
  z-index: 2;
  transform: rotate(-5deg);
}

.team-member:last-child {
  right: 0;
  top: 0;
  z-index: 1;
  transform: rotate(5deg);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--primary);
}

.team-member h3 {
  margin-bottom: 5px;
}

.team-member p {
  color: #b8b8b8;
  text-align: center;
  font-size: 0.9rem;
}

section {
  padding: 100px 0;
  position: relative;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  color: #b8b8b8;
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 250px;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.project-card.visible {
  opacity: 1;
  transform: scale(1);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 42, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 20px;
  text-align: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay h3 {
  margin-bottom: 10px;
}

.project-overlay p {
  color: #b8b8b8;
  margin-bottom: 20px;
}

.testimonials {
  max-width: 800px;
  margin: 50px auto 0;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.testimonial.visible {
  opacity: 1;
  transform: translateX(0);
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial::before {
  content: '"';
  font-size: 80px;
  position: absolute;
  top: -20px;
  left: 20px;
  color: rgba(108, 99, 255, 0.2);
  font-family: serif;
}

.testimonial p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.client-info {
  display: flex;
  align-items: center;
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.client-info h4 {
  margin-bottom: 5px;
}

.client-info span {
  color: #b8b8b8;
  font-size: 0.9rem;
}

.contact-form {
  max-width: 600px;
  margin: 50px auto 0;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.contact-form.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--light);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.15);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

footer {
  background-color: rgba(10, 10, 42, 0.8);
  padding: 50px 0 20px;
  position: relative;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col {
  max-width: 500px;
}

.footer-col h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col p,
.footer-col a {
  color: #b8b8b8;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8b8b8;
  font-size: 0.9rem;
}

#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: none;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

#scrollToTop:hover {
  background: white;
  color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}

#scrollToTop i {
  font-size: 22px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: rgba(10, 10, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 80px 20px 30px;
  transition: all 0.4s ease-in-out;
  overflow-y: auto;
  box-shadow: -4px 0px 10px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  padding: 15px 10px;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: #ffcc00;
  padding-left: 20px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 199;
  display: none;
  transition: all 0.3s ease;
}

.overlay.active {
  display: block;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 201;
  position: absolute;
  top: 20px;
  right: 20px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-text,
  .hero-img {
    transform: translateY(0);
  }

  .team-members {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .team-member {
    position: relative;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }

  section {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .service-card,
  .project-card {
    opacity: 1;
    transform: none;
  }

  .testimonial {
    opacity: 1;
    transform: none;
  }

  .contact-form {
    padding: 30px 20px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .team-member {
    width: 100%;
    max-width: 280px;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background-color: var(--primary-dark, #0056b3);
}