@import "tailwindcss";

:root {
  --color-bg-primary: #0B1120;
  --color-bg-secondary: #111827;
  --color-accent: #C59C6D;
  --color-accent-2: #E8C47C;
  --color-accent-3: #A07D50;
  --color-gold: #C59C6D;
  --color-gold-light: #E8C47C;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --font-heading: "Google Sans", sans-serif;
  --font-body: "Inter", sans-serif;
}

@theme inline {
  --color-background: #0B1120;
  --color-foreground: #e2e8f0;
  --color-accent: #C59C6D;
  --color-accent-2: #E8C47C;
  --color-accent-3: #A07D50;
  --color-gold: #C59C6D;
  --font-sans: "Inter", sans-serif;
  --font-mono: "Inter", monospace;
}

@layer base {
  *, *::before, *::after {
    margin: 0;
    box-sizing: border-box;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  background: var(--color-bg-primary);
  color: var(--color-text);
  overflow-x: hidden;
}

/* Headings use Google Sans */
h1, h2, h3, h4, h5, h6 {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0B1120; }
::-webkit-scrollbar-thumb { background: #C59C6D; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #E8C47C; }

/* Glowing text */
.glow-text {
  text-shadow: 0 0 20px rgba(197, 156, 109, 0.5), 0 0 40px rgba(197, 156, 109, 0.3);
}

.glow-text-gold {
  text-shadow: 0 0 20px rgba(232, 196, 124, 0.5), 0 0 40px rgba(232, 196, 124, 0.3);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(197, 156, 109, 0.15);
}

/* Gradient borders */
.gradient-border {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, #C59C6D, #E8C47C, 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;
}

/* Animated gradient */
.animated-gradient {
  background: linear-gradient(270deg, #C59C6D, #A07D50, #E8C47C, #C59C6D);
  background-size: 600% 600%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float-animation { animation: float 6s ease-in-out infinite; }

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(197, 156, 109, 0.2); }
  50% { box-shadow: 0 0 40px rgba(197, 156, 109, 0.4), 0 0 60px rgba(232, 196, 124, 0.2); }
}

.pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }

/* Grid pattern overlay */
.grid-pattern {
  background-image:
    linear-gradient(rgba(197, 156, 109, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 156, 109, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Scan line */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Typing cursor */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  color: #C59C6D;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #C59C6D, #E8C47C, transparent);
  opacity: 0.3;
}

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

/* Hero video overlay */
.hero-video-overlay {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.7) 0%, rgba(11, 17, 32, 0.85) 50%, rgba(11, 17, 32, 1) 100%);
}

/* Orbital animation */
@keyframes orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

.orbit-1 { animation: orbit 20s linear infinite; }
.orbit-2 { animation: orbit 15s linear infinite reverse; }
.orbit-3 { animation: orbit 25s linear infinite; }

/* Matrix rain effect */
@keyframes matrixRain {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(calc(100vh + 100%)); opacity: 0; }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #C59C6D 0%, #E8C47C 50%, #C59C6D 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #C59C6D 0%, #E8C47C 50%, #C59C6D 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover card 3D */
.card-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.card-3d:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 20px 60px rgba(197, 156, 109, 0.15), 0 0 40px rgba(232, 196, 124, 0.1);
}

/* Magnetic button */
.magnetic-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.magnetic-btn:hover {
  box-shadow: 0 0 30px rgba(197, 156, 109, 0.4), inset 0 0 30px rgba(197, 156, 109, 0.1);
}

/* Ripple effect */
@keyframes ripple {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}
