/* Solobuilt Modern CSS - 2025 Refresh */

/* ================================
   CSS Custom Properties
   ================================ */
:root {
  --color-bg: #050505;
  --color-bg-elevated: #0a0a0a;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.2);
  --color-accent: #ffffff;
  --color-glow: rgba(255, 255, 255, 0.1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Inter', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
}

/* ================================
   Base & Typography
   ================================ */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01' on, 'ss02' on, 'cv01' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* Modern heading styles */
h1, .h1 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2, .h2 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ================================
   Background Effects
   ================================ */
.bg-black {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient orbs */
.bg-black::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.bg-black::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
  pointer-events: none;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ================================
   Header
   ================================ */
header {
  position: relative;
  z-index: 100;
}

.logo a {
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  transition: opacity var(--duration-normal) var(--ease-out-quart);
}

.logo a:hover {
  opacity: 0.7;
}

/* ================================
   Banner Section
   ================================ */
.havoc-banner-wrap {
  position: relative;
  z-index: 10;
}

/* Modern subtle borders */
.havoc-banner-wrap [class*="col-"] {
  border-color: var(--color-border) !important;
  transition: border-color var(--duration-normal) var(--ease-out-quart);
}

.havoc-banner-wrap [class*="col-"]:hover {
  border-color: var(--color-border-hover) !important;
}

/* Headline with gradient text effect */
.havoc-banner-wrap h1 {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  padding-bottom: 0.1em;
}

/* Full-width headline row */
.havoc-banner-wrap .col-12 {
  padding-bottom: 40px;
}

/* ================================
   Links & Interactive Elements
   ================================ */
.havoc-banner-wrap a {
  text-decoration: none !important;
  transition: all var(--duration-normal) var(--ease-out-quart);
  position: relative;
}

/* Email link with glow effect */
.email-us a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.email-us a:hover {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.email-us img {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.email-us a:hover img {
  transform: translateX(4px) rotate(-10deg);
}

/* Product link with arrow animation */
.havoc-banner-wrap ul li a {
  display: inline-block;
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.havoc-banner-wrap ul li a:hover {
  transform: translateX(4px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Underline animation for links */
.havoc-banner-wrap ul li a span {
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size var(--duration-normal) var(--ease-out-quart);
}

.havoc-banner-wrap ul li a:hover span {
  background-size: 0% 1px;
  background-position: 100% 100%;
}

/* Product description */
.havoc-banner-wrap ul li p {
  color: var(--color-text-muted) !important;
  opacity: 1 !important;
  transition: color var(--duration-normal) var(--ease-out-quart);
}

.havoc-banner-wrap ul li:hover p {
  color: var(--color-text) !important;
}

/* ================================
   Modern Preloader
   ================================ */
.havoc-preloader {
  background: var(--color-bg) !important;
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              visibility var(--duration-slower);
}

.havoc-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Replace ball-pulse with modern loader */
.loader-inner.ball-pulse-sync {
  display: none !important;
}

.loader-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  position: relative;
}

.loader::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================
   Copyright
   ================================ */
.havoc-copyright {
  color: var(--color-text-muted) !important;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.6;
}

/* ================================
   Page Load Animations
   ================================ */
.havoc-main {
  opacity: 0;
  animation: fadeInPage var(--duration-slower) var(--ease-out-expo) forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Staggered reveal animations - replacing WOW.js */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp var(--duration-slow) var(--ease-out-expo) forwards;
}

.animate-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: revealLeft var(--duration-slow) var(--ease-out-expo) forwards;
}

.animate-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: revealRight var(--duration-slow) var(--ease-out-expo) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation delays for stagger effect */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ================================
   Focus States (Accessibility)
   ================================ */
a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

/* ================================
   Selection
   ================================ */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 768px) {
  .bg-black::before,
  .bg-black::after {
    display: none;
  }

  .havoc-banner-wrap h1 {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
