:root {
  --primary: #8b5cf6;
  --secondary: #3b82f6;
  --accent: #ec4899;
  --bg: #030305;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  animation: float1 18s ease-in-out infinite alternate;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
  animation: float2 22s ease-in-out infinite alternate;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.2;
  animation: float3 25s ease-in-out infinite alternate;
}

@keyframes float1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-40px, 60px) scale(1.15) rotate(5deg);
  }

  100% {
    transform: translate(30px, -30px) scale(0.95) rotate(-3deg);
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(50px, -40px) scale(0.9) rotate(-8deg);
  }

  100% {
    transform: translate(-20px, 40px) scale(1.2) rotate(4deg);
  }
}

@keyframes float3 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  33% {
    transform: translate(-60px, -50px) scale(1.1) rotate(6deg);
  }

  66% {
    transform: translate(40px, 30px) scale(0.85) rotate(-5deg);
  }

  100% {
    transform: translate(20px, -20px) scale(1.05) rotate(3deg);
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  background: rgba(226, 232, 240, 0.4);
  /* Lighter slate-blue glass */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(226, 232, 240, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1100;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

/* Navigation */
.nav {
  display: flex;
  gap: 2.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(226, 232, 240, 0.8);
    /* Lighter slate-blue glass */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
  }

  .nav.active {
    right: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    color: #0f172a !important;
    /* Dark slate text for light background */
    font-size: 1.8rem !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered animation for nav links */
  .nav.active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav.active a:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav.active a:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav.active a:nth-child(4) {
    transition-delay: 0.4s;
  }
}

.nav a {
  color: #0f172a;
  /* Dark slate for high contrast against light header */
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a.active {
  color: #0affff !important;
  /* Vibrant purple for selected state */
  font-weight: 700;
  -webkit-text-fill-color: initial;
  background: none;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #0affff, #3b82f6);
  /* Matching vibrant gradient */
  transition: width 0.3s ease;
}

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

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: #0f172a;
  /* Dark slate to match logo and nav links */
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* No Scroll Body */
body.no-scroll {
  overflow: hidden;
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.content {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  /* Desktop size */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

/* Highlighted text within H1 */
.highlight {
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.4rem;
  }
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.3s forwards;
}

@media (max-width: 768px) {
  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
}

/* Services Grid */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  perspective: 1000px;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.5s;
}

.service-card:nth-child(2) {
  animation-delay: 0.7s;
}

.service-card:nth-child(3) {
  animation-delay: 0.9s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #525252;
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

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

  to {
    opacity: 1;
  }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Contact Section */
.contact-container {
  margin-top: 4rem;
  text-align: center;
  opacity: 0;
  animation: slideUp 0.8s ease-out 1s forwards;
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 0 auto 4rem;
  width: 100%;
  max-width: 800px;
}

.contact-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 250px;
}

.contact-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-info span {
  font-size: 1.1rem;
  font-weight: 500;
}

/* CTA Section (Global) */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.6s forwards;
}

.cta-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.5);
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(139, 92, 246, 0.7);
  background: linear-gradient(135deg, #9d6fff, #4a94ff);
}

.cta-button:active {
  transform: translateY(-1px);
}