/*
Theme Name: Jash Theme
Description: Custom conversion from Next.js to WordPress
Author: JashMarketing
Version: 1.0
*/

/* --- 1. CORE VARIABLES --- */
:root {
  --background: #0A1628;
  --foreground: #F0F4FF;
  --primary: #1E6FFF;
  --primary-foreground: #FFFFFF;
  --secondary: #1E2D4A;
  --secondary-foreground: #C8D8F0;
  --accent: #4D9FFF;
  --accent-foreground: #FFFFFF;
  --muted: #1E2D4A;
  --muted-foreground: #8BA3CC;
  --card: #0F1E35;
  --card-foreground: #F0F4FF;
  --border: #1E3050;
  --input: #1E2D4A;
  --ring: #1E6FFF;
  --radius: 0.75rem;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-manrope: 'Manrope', sans-serif;
}

/* --- 2. BASE STYLES --- */
* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

::selection {
  background-color: rgba(30, 111, 255, 0.3);
  color: #F0F4FF;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 3px; }

/* --- 3. CUSTOM TYPOGRAPHY & COMPONENTS --- */
.text-hero-xl { font-size: clamp(3rem, 8vw, 7rem); line-height: 0.9; }
.text-display { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; }
.text-section { font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.1; }

.blob-primary {
  background: radial-gradient(ellipse at center, rgba(30, 111, 255, 0.35), transparent 70%);
  filter: blur(60px);
  border-radius: 9999px;
}

.blob-accent {
  background: radial-gradient(ellipse at center, rgba(77, 159, 255, 0.2), transparent 70%);
  filter: blur(80px);
  border-radius: 9999px;
}

.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.glass-card {
  background: rgba(15, 30, 53, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(30, 48, 80, 0.8);
}

.glass-card-light {
  background: rgba(30, 45, 74, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 111, 255, 0.15);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #C8D8F0 40%, #4D9FFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #4D9FFF 0%, #1E6FFF 50%, #0A4FCC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #1E6FFF 0%, #0A4FCC 100%);
  color: #FFFFFF;
  border: 1px solid rgba(77, 159, 255, 0.3);
  box-shadow: 0 0 30px -8px rgba(30, 111, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  box-shadow: 0 0 50px -8px rgba(30, 111, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(30, 48, 80, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
  border-color: rgba(30, 111, 255, 0.5);
  background: rgba(30, 111, 255, 0.08);
  color: var(--foreground);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  background: rgba(30, 45, 74, 0.5);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
}

.card-hover { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 111, 255, 0.3);
  box-shadow: 0 20px 60px -15px rgba(30, 111, 255, 0.2);
}

/* --- 4. ANIMATIONS & KEYFRAMES --- */
@keyframes slideInBlur {
  0% { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes scaleInBlur {
  0% { opacity: 0; transform: scale(0.85); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes revealUp {
  0% { transform: translateY(110%); }
  100% { transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-orbit-slow { animation: orbit 18s linear infinite; }
.animate-orbit-medium { animation: orbit 12s linear infinite reverse; }
.animate-gradient-shift { background-size: 200% 200%; animation: gradientShift 8s ease infinite; }

/* Text Reveal Setup */
.reveal-text { overflow: hidden; display: block; }
.reveal-inner {
  display: block;
  transform: translateY(110%);
  animation: revealUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll Reveal Triggers */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(3px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); filter: blur(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }