@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --brand-red: #e03d27;
  --brand-red-dark: #b82a17;
  --bg-dark-panel: #0d0d0e;
  --bg-card-panel: #161618;
  --border-dark: rgba(255, 255, 255, 0.12);
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  font-family: var(--font-sans);
  box-sizing: border-box;
}

code, .font-mono {
  font-family: var(--font-mono);
}

body {
  background-color: var(--brand-red);
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Squircle Logo Icon Badge Styling (ChatGPT / Apple Squircle Shape) */
.squircle-logo {
  border-radius: 24%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.squircle-logo:hover {
  transform: scale(1.05);
}

/* Horizontal scanlines grid background simulation from RIG hero */
.rig-scanlines-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  overflow: hidden;
}

/* Signature RIG Clipped Chamfered Button Style */
.btn-chamfer {
  clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-chamfer:hover {
  transform: translateY(-2px);
}

.btn-chamfer:active {
  transform: translateY(0);
}

/* Custom Switch Toggle in RIG Cyberpunk Theme */
.rig-switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.rig-switch input { opacity: 0; width: 0; height: 0; }

.rig-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: 0.2s ease;
}

.rig-switch-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.2s ease;
}

.rig-switch input:checked + .rig-switch-slider {
  background: #e03d27;
  border-color: #ffffff;
}

.rig-switch input:checked + .rig-switch-slider::before {
  transform: translateX(22px);
}

/* Infinite Marquee Bar */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 25s linear infinite;
}

/* Subtle Analog Paper/Grain Noise Overlay for Dark Sections */
.paper-dark-texture {
  position: relative;
  background-color: #0d0d0e;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 8px 8px, 4px 4px;
  background-position: 0 0, 2px 2px;
}

/* Tab Page Fade & Slide Transition */
.tab-page-transition {
  animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Card State Dynamic Reveal Transition */
.state-reveal-transition {
  animation: stateReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stateReveal {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Navigation Link Hover Animated Underline */
.nav-link-item {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-item:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link-item.active-nav::after {
  transform: scaleX(1);
  height: 2px;
}

.card-hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-hover-lift:hover {
  border-color: rgba(224, 61, 39, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Spinner */
.rig-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
