/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== NAVIGATION ========== */
.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
  box-shadow: 0 1px 20px rgba(88, 28, 135, 0.06);
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9333ea, #f59e0b);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #7e22ce, #9333ea);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(126, 34, 206, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 34, 206, 0.4);
  background: linear-gradient(135deg, #6b21a8, #7e22ce);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #7e22ce;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 12px;
  border: 2px solid rgba(147, 51, 234, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #9333ea;
  background: rgba(147, 51, 234, 0.05);
  transform: translateY(-2px);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-cta-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ========== INPUTS ========== */
.input-field {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e9d5ff;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: #581c87;
  background: #faf5ff;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.input-field::placeholder {
  color: #c084fc;
}

.input-field:hover {
  border-color: #c084fc;
}

.input-field:focus {
  border-color: #9333ea;
  background: white;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233, 213, 255, 0.8), transparent);
  top: -100px;
  right: 10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.6), transparent);
  bottom: 10%;
  left: 5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.4), transparent);
  top: 40%;
  right: 30%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating Cards */
.floating-card {
  position: absolute;
  animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  right: -5%;
  animation-delay: -2s;
}

.card-3 {
  bottom: 8%;
  left: 0%;
  animation-delay: -4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ========== SERVICE CARDS ========== */
.card-service {
  perspective: 1000px;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MOBILE MENU ========== */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #7e22ce;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s ease;
  text-decoration: none;
}

.mobile-nav-link:hover {
  background: #f3e8ff;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 2.25rem !important;
  }

  h1 br {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  h1 {
    font-size: 3rem !important;
  }
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(147, 51, 234, 0.15);
  color: #581c87;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf5ff;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e9d5ff, #d8b4fe);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d8b4fe, #c084fc);
}
