@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #030005;
  --bg-card: rgba(15, 12, 25, 0.6);
  --primary: #9d4edd;
  --primary-glow: rgba(157, 78, 221, 0.5);
  --accent: #e0aaff;
  --text-main: #f8f9fa;
  --text-muted: #adb5bd;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Hard prevent any child from overflowing horizontally */
*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #3c096c;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Animated Gradient Background */
.bg-mesh {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  overflow: hidden;
  z-index: -1;
  background: var(--bg-dark);
  contain: strict;
}
.bg-mesh::before, .bg-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: pulseMesh 15s ease-in-out infinite alternate;
}
.bg-mesh::before {
  top: -10%; left: -10%;
  width: min(50vw, 600px); height: min(50vw, 600px);
  background: radial-gradient(circle, #5a189a 0%, transparent 70%);
}
.bg-mesh::after {
  bottom: -20%; right: -10%;
  width: min(60vw, 700px); height: min(60vw, 700px);
  background: radial-gradient(circle, #240046 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes pulseMesh {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(5%, 5%); }
  100% { transform: scale(0.9) translate(-5%, -2%); }
}

/* Glassmorphism utilities */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Magnetic Premium Buttons */
.btn-premium {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem 2.5rem !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-size: 0.85rem !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), #5a189a) !important;
  border: 1px solid transparent !important;
  border-radius: 100px !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 1 !important;
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.25) !important;
}

.btn-premium::before {
  content: '' !important;
  position: absolute !important;
  top: -1px !important; left: -1px !important; right: -1px !important; bottom: -1px !important;
  background: linear-gradient(145deg, #151515, #000) !important;
  border-radius: 100px !important;
  z-index: -1 !important;
  transition: opacity 0.4s ease !important;
  opacity: 0 !important;
}

.btn-premium:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-2px) !important;
}

.btn-premium:hover::before {
  opacity: 1 !important;
}

.btn-premium-solid {
  background: linear-gradient(135deg, var(--primary), #5a189a) !important;
  border: none !important;
}
.btn-premium-solid::before {
  background: linear-gradient(145deg, #151515, #000) !important;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: linear-gradient(135deg, #e0aaff 0%, #7e22ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee / Carousel */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.marquee-content {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  min-width: 100%;
  gap: 2rem;
  animation: scroll 20s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 2rem)); }
}

/* Bento grid hover effects */
.bento-card {
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}
.bento-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(157, 78, 221, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(157, 78, 221, 0.1) inset;
}

/* Images aesthetics */
.image-luxury {
  filter: contrast(1.1) brightness(0.9);
  transition: all 0.7s ease;
}
.bento-card:hover .image-luxury {
  transform: scale(1.05);
  filter: contrast(1.15) brightness(1.1);
}

/* Form Styles */
.premium-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}
.premium-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.15);
}

/* Blog Typography Dark Mode */
.prose, .blog-content {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}
.prose h2, .blog-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}
.prose h3, .blog-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}
.prose p, .blog-content p {
  margin-bottom: 1.5rem;
}
.prose a, .blog-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}
.prose a:hover, .blog-content a:hover {
  color: var(--accent);
}
.prose strong, .blog-content strong {
  color: #fff;
  font-weight: 600;
}
.prose ul, .blog-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.prose li, .blog-content li {
  margin-bottom: 0.5rem;
}
.prose li::marker, .blog-content li::marker {
  color: var(--primary);
}
.prose ol, .blog-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.prose blockquote, .blog-content blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin: 2rem 0;
  color: #fff;
  background: rgba(157, 78, 221, 0.05);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}
.prose img, .blog-content img {
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
