/* variables */
:root {
  --blue: #0066CC;
  --red: #D72B28;
  --dark: #0D1117;
  --gray: #333333;
  --white: #FFFFFF;
  --light: #F4F7FB;
  --blue-glow: rgba(0, 102, 204, 0.15);
  --red-glow: rgba(215, 43, 40, 0.12);
}

/* global resets and typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--gray);
  background-color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

@media (min-width: 1025px) {
  body {
    cursor: none;
  }
}

@media (max-width: 1024px) {
  body {
    cursor: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .strip-track, .strip-track-reverse, .animate-float, .badge-1, .badge-2 {
    animation: none !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  line-height: 1.1;
}

.title-display {
  font-weight: 800;
  line-height: 1;
}

.tag-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* custom cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--blue);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, background-color 0.2s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: difference;
  opacity: 0; /* hidden initially */
}

.custom-cursor.active {
  opacity: 1;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(3);
  background-color: var(--white);
  mix-blend-mode: difference;
}

@media (max-width: 1024px) {
  .custom-cursor {
    display: none !important;
  }
}

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

@keyframes float-badge-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-badge-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

.badge-1 {
  animation: float-badge-1 3.5s ease-in-out infinite;
}

.badge-2 {
  animation: float-badge-2 4s ease-in-out infinite 0.8s;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

@keyframes titleReveal {
  from { clip-path: inset(100% 0 0 0); transform: translateY(30px); opacity: 0; }
  to { clip-path: inset(0% 0 0 0); transform: translateY(0); opacity: 1; }
}

.reveal-text {
  animation: titleReveal 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Pulse dot */
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 102, 204, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

.dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s infinite;
  margin-right: 8px;
}

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

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--red));
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* Services card hover */
.service-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--blue-glow), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Utilities */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%);
}

.clip-diagonal-reverse {
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--blue), var(--red));
}

.bg-pattern-dots {
  background-image: radial-gradient(rgba(255,255,255,0.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.bg-pattern-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
}

/* Load reveal */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  animation: scaleUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.5); opacity: 0; filter: blur(10px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

/* Form inputs & Button states */
.input-premium {
  background: var(--light);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.input-premium:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
  outline: none;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.parallax-bg {
  will-change: transform;
}
