/* **********************************************************
 * Futuristic Black Theme - Inspired by CPJ Template
 * ********************************************************** */

:root {
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-s: 1rem;
  --spacing-m: 2rem;
  --spacing-l: 3rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 12rem;

  /* Black Theme Colors */
  --color-bg: #000000;
  --color-fg: #ffffff;
  --color-text-primary: rgba(255, 255, 255, 0.95);
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.5);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Accent Colors - White Theme */
  --color-blue: rgba(255, 255, 255, 0.95);
  --color-green: rgba(255, 255, 255, 0.95);
  --color-red: rgba(255, 255, 255, 0.95);

  --header-height: 80px;
}

*,
body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  overflow-x: hidden;
  position: relative;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--header-height);
  position: relative;
  z-index: 2;
}

/* **********************************************************
 * Custom Scrollbar - Glassmorphism Style
 * ********************************************************** */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
      rgba(100, 180, 255, 0.3),
      rgba(80, 150, 255, 0.2));
  border: 1px solid rgba(100, 180, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
      rgba(100, 180, 255, 0.5),
      rgba(80, 150, 255, 0.3));
  box-shadow: 0 0 20px rgba(100, 180, 255, 0.4);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 180, 255, 0.3) rgba(0, 0, 0, 0.3);
}

/* **********************************************************
 * Text Selection
 * ********************************************************** */

::selection {
  background: rgba(100, 180, 255, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(100, 180, 255, 0.3);
  color: #ffffff;
}

/* **********************************************************
 * Typography
 * ********************************************************** */

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 var(--spacing-m) 0;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 0 0 var(--spacing-s) 0;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

h3 {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 var(--spacing-s) 0;
  color: var(--color-text-secondary);
}

p {
  color: var(--color-text-secondary);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: var(--spacing-s);
}

/* **********************************************************
 * Links
 * ********************************************************** */

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: rgba(100, 180, 255, 1);
  text-shadow: 0 0 15px rgba(100, 180, 255, 0.5);
}

/* **********************************************************
 * Footer
 * ********************************************************** */

footer {
  background: var(--color-bg);
  padding: var(--spacing-xl) var(--spacing-m);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
}

/* **********************************************************
 * Responsive
 * ********************************************************** */

@media (orientation: portrait) {
  *,
  body {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
}
