/* c:\xampp\htdocs\vdm\assets\css\main.css */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #080808;
  --bg-card: #111111;
  --bg-card-hover: #141414;
  --border: #1a1a1a;
  --border-strong: #242424;
  --color-primary: #ffffff;
  --color-secondary: #A1A1AA;
  --color-muted: #71717A;
  --color-accent: #8B8B8B;
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base: 300ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 600ms cubic-bezier(0.4,0,0.2,1);
  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
  --section-gap: clamp(80px,12vw,160px);
  --container-max: 1280px;
  --container-pad: clamp(20px,5vw,80px);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--color-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 3px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #242424;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-gap);
}

/* Typography */
.text-display {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.text-h1 {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.text-h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.text-h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-body {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
}

.text-small {
  font-size: 13px;
  line-height: 1.6;
}

.text-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Color Utilities */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-muted); }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-dot.hover {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 60px;
  height: 60px;
  animation: loading-pulse 1s ease-in-out infinite alternate;
}

.loading-bar {
  width: 200px;
  height: 1px;
  background: var(--border);
  margin-top: 24px;
  overflow: hidden;
}

.loading-bar-inner {
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: scaleX(0);
  transform-origin: left;
  animation: loading-bar-anim 1.5s var(--ease-out-expo) forwards;
}

@keyframes loading-bar-anim {
  from { transform: scaleX(0); }
  to { transform: scaleX(0.9); }
}

@keyframes loading-pulse {
  from { opacity: 0.5; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.25;
}

/* Grid background */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
}


/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot {
    display: none;
  }
}
