/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --deep-navy: #0F2233;
  --pale-frost: #EEF3FF;
  --periwinkle: #E6EEFF;
  --lavender-tint: #C7D5FF;
  --accent: #F3F86A;
  --body: #5A6B7A;
  --glass-border: rgba(255,255,255,0.12);
  --glass-bg: rgba(255,255,255,0.06);
  
  /* Typography */
  --font-inter: 'Inter', system-ui, -apple-system, sans-serif;
  --font-space: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.6;
  color: var(--deep-navy);
  background: linear-gradient(135deg, var(--pale-frost) 0%, var(--periwinkle) 50%, var(--lavender-tint) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Orbs for Glassmorphism Effect */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--lavender-tint) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: float 20s ease-in-out infinite;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: float 15s ease-in-out infinite reverse;
}

/* Glass Card Component */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(15, 34, 51, 0.12),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(15, 34, 51, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Glass Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #0c1b2b 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid rgba(243, 248, 106, 0.2);
  box-shadow: 
    0 4px 20px rgba(15, 34, 51, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(243, 248, 106, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 30px rgba(15, 34, 51, 0.3),
    0 0 20px rgba(243, 248, 106, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(243, 248, 106, 0.4);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px rgba(15, 34, 51, 0.2),
    inset 0 1px 0 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--deep-navy);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(15, 34, 51, 0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-space);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

p {
  color: var(--body);
  line-height: 1.7;
  font-size: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation Styles */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(15, 34, 51, 0.08);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Analysis Cards */
.analysis-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.analysis-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.analysis-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(243, 248, 106, 0.2);
  box-shadow: 0 8px 30px rgba(15, 34, 51, 0.1);
}

.analysis-card:hover::before {
  opacity: 0.05;
}

/* Icon Containers */
.icon-container {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.icon-container svg {
  width: 28px;
  height: 28px;
  transition: all var(--transition-base);
}

.analysis-card:hover .icon-container {
  background: rgba(243, 248, 106, 0.1);
  border-color: rgba(243, 248, 106, 0.3);
  transform: rotate(-5deg) scale(1.1);
}

/* Animated Background Shapes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--lavender-tint) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 60%;
  right: 5%;
  animation-delay: 5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--periwinkle) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-delay: 10s;
}

/* Hero video hover overlay */
#hero-video-wrapper:hover #hero-video-overlay {
  opacity: 1;
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(5deg); }
  50% { transform: translate(-20px, 20px) rotate(-5deg); }
  75% { transform: translate(-30px, -20px) rotate(3deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
  .grid-cols-3 { grid-template-columns: 1fr; }
  .grid-cols-4 { grid-template-columns: 1fr; }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
