/* Custom Styles for CENTURY SERVICE Landing Page */

:root {
  --brand-accent: #6366f1;
  --brand-secondary: #a855f7;
  --bg-dark: #050505;
}

body {
  background-color: var(--bg-dark);
  color: white;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Grain Effect Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Custom Selection Color */
::selection {
  background-color: var(--brand-accent);
  color: white;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glowing text */
.text-glow {
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

/* Animation for glowing background */
@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.15);
  }
}

.animate-glow {
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

/* Reveal animation on scroll */
.reveal {
  position: relative;
  transform: translateY(40px);
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* Mask for hero image */
.hero-mask {
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-accent);
}

/* Button Hover Glow */
.btn-glow {
  transition: all 0.4s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

/* Card Hover Lift */
.card-lift {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
  transform: translateY(-15px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-accent);
}