/* ==================== GLOBAL STYLES ==================== */
:root {
  --primary-color: #00d9ff;
  --secondary-color: #7b2ff7;
  --accent-color: #ff006e;
  --dark-bg: #0a0e27;
  --darker-bg: #050816;
  --space-bg: #000000;
  --light-bg: #1a1f3a;
  --card-bg: rgba(26, 31, 58, 0.8);
  --text-dark: #ffffff;
  --text-light: #e2e8f0;
  --text-muted: #a0aec0;
  --success-color: #00ff88;
  --warning-color: #ffd60a;
  --error-color: #ff006e;
  --shadow-sm: 0 2px 10px rgba(0, 217, 255, 0.2);
  --shadow-md: 0 10px 40px rgba(123, 47, 247, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 217, 255, 0.4);
  --glow-sm: 0 0 10px rgba(0, 217, 255, 0.5);
  --glow-md: 0 0 20px rgba(123, 47, 247, 0.6);
  --glow-lg: 0 0 30px rgba(0, 217, 255, 0.7);
  --transition-speed: 0.3s;
  --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #7b2ff7 100%);
  --gradient-secondary: linear-gradient(135deg, #ff006e 0%, #7b2ff7 100%);
  --gradient-tertiary: linear-gradient(135deg, #00ff88 0%, #00d9ff 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--space-bg);
  overflow-x: hidden;
  position: relative;
}

/* Space Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 55%, white, transparent);
  background-size: 200% 200%, 300% 300%, 250% 250%, 280% 280%, 220% 220%, 260% 260%, 290% 290%;
  background-position: 0% 0%, 40% 60%, 20% 80%, 60% 20%, 80% 80%, 10% 40%, 70% 50%;
  animation: stars 200s linear infinite;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

@keyframes stars {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-2000px);
  }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at top, rgba(123, 47, 247, 0.1), transparent),
    radial-gradient(ellipse at bottom, rgba(0, 217, 255, 0.1), transparent);
  z-index: -1;
  pointer-events: none;
}

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

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-speed) ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  transition: all var(--transition-speed) ease;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-sm);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all var(--transition-speed) ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--glow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: var(--glow-md);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.title-underline {
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto 1rem;
  border-radius: 2px;
  position: relative;
}

.title-underline::before,
.title-underline::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

.title-underline::before {
  left: -15px;
}

.title-underline::after {
  right: -15px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--darker-bg);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.footer-content {
  text-align: center;
}

.footer-content p {
  margin: 0.5rem 0;
}

.footer-content i {
  color: var(--error-color);
  animation: heartbeat 1.5s infinite;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left var(--transition-speed) ease;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

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

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fade-in {
  animation: fadeIn 1s ease;
}

.fade-in-up {
  animation: fadeInUp 1s ease;
}

.slide-in-left {
  animation: slideInLeft 1s ease;
}

.slide-in-right {
  animation: slideInRight 1s ease;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}