/* ===== CSS Custom Properties ===== */
:root {
  --plum-500: #6B2F5B;
  --plum-400: #B872B8;
  --amber-400: #F5A623;
  --dark-900: #0F0F1A;
  --dark-800: #1A1A2E;
}

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

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

body {
  background-color: var(--dark-900);
  color: white;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Navigation ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu button */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Hero Shapes ===== */
.hero-shape {
  position: absolute;
  border-radius: 24px;
  animation: float 8s ease-in-out infinite;
}

.shape-plum-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(107, 47, 91, 0.35), rgba(107, 47, 91, 0.05));
  top: 10%;
  right: 5%;
  transform: rotate(15deg);
  animation-delay: 0s;
}

.shape-amber-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(245, 166, 35, 0.05));
  bottom: 20%;
  left: 45%;
  border-radius: 50%;
  animation-delay: -2s;
}

.shape-plum-2 {
  width: 120px;
  height: 300px;
  background: linear-gradient(180deg, rgba(107, 47, 91, 0.2), transparent);
  top: 30%;
  left: 5%;
  transform: rotate(-20deg);
  border-radius: 60px;
  animation-delay: -4s;
}

.shape-circle {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(245, 166, 35, 0.3);
  top: 25%;
  left: 15%;
  border-radius: 50%;
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(var(--rot, 15deg)); }
  50% { transform: translateY(-20px) rotate(var(--rot, 15deg)); }
}

.shape-plum-2 { --rot: -20deg; }
.shape-circle { --rot: 0deg; animation-name: floatCircle; }

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

/* ===== Service Cards ===== */
.service-card {
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

::-webkit-scrollbar-thumb {
  background: var(--plum-500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--plum-400);
}

/* ===== Selection ===== */
::selection {
  background: rgba(245, 166, 35, 0.3);
  color: white;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .shape-plum-1 {
    width: 200px;
    height: 200px;
  }
  .shape-plum-2 {
    display: none;
  }
  .shape-amber-1 {
    width: 100px;
    height: 100px;
  }
}
