/* === GLOBAL STYLES === */
:root {
  --neon-blue: #00f5ff;
  --neon-blue-light: #0ff;
  --neon-blue-dark: #00d9ff;
  --bg-dark: #0a0a0a;
  --bg-dark-secondary: #1a1a2e;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-dark) 0%,
    #16213e 50%,
    var(--bg-dark) 100%
  );
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* === NEON GLOW EFFECT === */
.neon-text {
  text-shadow:
    var(--glow),
    0 0 60px var(--neon-blue);
  animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow: var(--glow);
  }
  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

/* === NAVBAR === */
.navbar {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98) !important;
  padding: 0.5rem 0;
  backdrop-filter: blur(30px);
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-blue-light));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--neon-blue) !important;
  text-shadow: 0 0 10px var(--neon-blue);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.4) 0%,
      transparent 50%
    );
  animation: heroBg 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroBg {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "Orbitron", monospace;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(
    45deg,
    var(--neon-blue),
    var(--neon-blue-light),
    #00d9ff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* === BUTTONS === */
.btn-neon {
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-blue-light));
  border: none;
  padding: 15px 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--glow);
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
  text-shadow: 0 0 10px var(--neon-blue);
}

.btn-neon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-neon:hover::before {
  left: 100%;
}

/* === GLASSMORPHISM === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-blue),
    transparent
  );
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow:
    var(--glow),
    0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--neon-blue);
}

/* === SERVICES CARDS === */
.service-card {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: all 0.4s ease;
}

.service-icon {
  font-size: 4rem;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px var(--neon-blue));
}

/* === PROJECTS === */
.project-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    var(--glow),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card img {
  transition: all 0.4s ease;
  height: 250px;
  object-fit: cover;
}

.project-card:hover img {
  transform: scale(1.1);
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--glass-bg);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--glass-border);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--neon-blue);
  box-shadow: var(--glow);
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-blue-light));
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--glow);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* === FOOTER === */
.footer {
  background: var(--bg-dark-secondary);
  border-top: 1px solid var(--glass-border);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--glow);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem !important;
  }
  .service-card {
    height: auto;
    margin-bottom: 2rem;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
