/* ========== Main Styles ========== */

/* Define theme variables for consistent styling */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #4fc3f7;
  --accent-color: #ffd54f;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-dark: #0a0a0a;
  --border-color: #333333;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --border-radius: 0.5rem;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Disable animations for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-background .shape,
  .about-background .shape {
    animation: none !important;
  }
}
/* Base Typography */
body {
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* Content Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section layout and spacing */
section {
  padding: 6rem 0;
  position: relative;
}

/* Section titles with decorative elements */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  /* Bottom gradient line under title */
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-title::before {
  /* Decorative background circle */
  content: "";
  position: absolute;
  top: -1rem;
  left: -1.5rem;
  width: 3rem;
  height: 3rem;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  z-index: -1;
}

/* Reusable button component */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
}

/* Primary button with gradient and hover effect */
.btn-primary {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

/* Secondary button with border styling */
.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--primary-color);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  /* Floating effect for decorative shapes */
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10px, -10px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
/* SVG icon sizing and color inheritance */
.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}
/* Navigation menu container positioning */
.nav-menu-container {
  position: relative;
}

/* Enable smooth scrolling for navigation links */
.nav-link {
  scroll-behavior: smooth;
  display: block;
  width: 100%;
}

/* Safari scroll optimization */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }
}
