@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  --color-black: #09090b; /* Zinc-950 instead of pure black */
  --color-forged: #18181b;
  --color-red: #c8102e; /* Premium crimson, less saturated */
  --color-silver: #a1a1aa; /* Zinc-400 */
  --color-white: #fafafa; /* Zinc-50 */
  --color-gray: #71717a; /* Zinc-500 */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Inputs Auto-fill Fix for Dark Mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #09090b inset !important;
  -webkit-text-fill-color: var(--color-white) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Scroll Progress Line */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-red);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* Carbon Weave Animated Pattern - Adjusted to off-blacks */
.carbon-weave {
    background: 
      linear-gradient(27deg, #0f0f12 5px, transparent 5px) 0 5px,
      linear-gradient(207deg, #0f0f12 5px, transparent 5px) 10px 0px,
      linear-gradient(27deg, #141418 5px, transparent 5px) 0px 10px,
      linear-gradient(207deg, #141418 5px, transparent 5px) 10px 5px,
      linear-gradient(90deg, #0a0a0c 10px, transparent 10px),
      linear-gradient(#111115 25%, #0e0e11 25%, #0e0e11 50%, transparent 50%, transparent 75%, #131318 75%, #131318 100%);
    background-color: #09090b;
    background-size: 20px 20px;
}

.hero-bg {
    background-image: 
        linear-gradient(to right, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.8) 30%, rgba(9, 9, 11, 0.2) 100%),
        url('hero-carbon-background.jpg');
    background-size: cover;
    background-position: center;
}

/* Animations & Effects */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-red);
  box-shadow: 0 0 15px 2px var(--color-red);
  animation: scan 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  display: none;
  z-index: 10;
}
@keyframes scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.pulse-focus {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #27272a; /* zinc-800 */
}
.pulse-focus:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: inset 0 0 0 1px var(--color-red);
}

.tilt-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Glassmorphism Refraction */
.liquid-glass {
    background: rgba(24, 24, 27, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -15px rgba(0,0,0,0.5);
}

/* Tactile push */
.btn-tactile:active {
    transform: scale(0.98);
}

/* Ripple Button */
.btn-ripple {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ripple-span {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background-color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
@keyframes ripple-anim {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-black);
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-red);
}

/* Form Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23a1a1aa" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 96%;
    background-position-y: 50%;
}

select:focus {
    outline: none;
    border-color: var(--color-red);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tab buttons active state */
.tab-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 2px solid transparent;
}
.tab-btn.active {
    color: var(--color-white);
    border-bottom-color: var(--color-red);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.tab-content.active {
    display: block;
}

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

/* Header blur effect */
.header-glass {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
