/* =========================================================
   RANK YOU HIGHER — WEB DESIGN LANDING PAGE
   CORE DESIGN SYSTEM & BRAND TOKENS
   Theme: Black / Dark Slate Texture
   Primary: Pure White (#FFF) + Logo Orange (#FF7A00)
   Accents: Electric Blue (#0088EA), Fresh Green (#78BE20)
   ZERO RED.
   ========================================================= */

:root {
  /* Surfaces & Backgrounds */
  --color-bg-dark: #0c0d10;
  --color-surface-dark: #12141a;
  --color-surface-glass: rgba(18, 21, 28, 0.75);
  --color-surface-glass-hover: rgba(26, 30, 42, 0.9);
  --color-border-glass: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 122, 0, 0.4);

  /* Primary: Crisp White & Brand Orange */
  --color-white: #ffffff;
  --color-orange: #FF7A00;
  --color-orange-light: #FF9432;
  --color-orange-glow: rgba(255, 122, 0, 0.35);

  /* Secondary logo accents */
  --color-blue: #0088EA;
  --color-blue-glow: rgba(0, 136, 234, 0.35);
  --color-green: #78BE20;
  --color-green-glow: rgba(120, 190, 32, 0.35);

  /* Typography */
  --color-text-main: #ffffff;
  --color-text-body: #cbd5e1;
  --color-text-muted: #94a3b8;

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --nav-offset: 118px;
}

/* Base body with dark slate texture.
   The texture lives on a fixed pseudo-element layer rather than on
   `background-attachment: fixed`, which repaints the whole page on every
   scroll frame (and is ignored outright by iOS Safari). This way the
   backdrop is composited once and scrolling stays smooth. */
body {
  font-family: var(--font-main);
  background-color: var(--color-bg-dark);
  color: var(--color-text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--color-bg-dark);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(35, 39, 52, 0.5) 0%, rgba(10, 11, 14, 0.88) 75%),
    url('./assets/dark-bg-tile.jpg');
  background-repeat: no-repeat, repeat;
  background-size: cover, 750px;
  pointer-events: none;
}

/* Anchor scrolling clears the sticky navbar */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: var(--nav-offset);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Global headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-main);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--color-text-body);
  line-height: 1.8;
}

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

a:hover { color: var(--color-orange); }

img { max-width: 100%; }

::selection {
  background: var(--color-orange);
  color: #0c0d10;
}

/* Font size helpers */
.f-10 { font-size: 10px !important; }
.f-12 { font-size: 12px !important; }
.f-13 { font-size: 13px !important; }
.f-14 { font-size: 14px !important; }
.f-15 { font-size: 15px !important; }
.f-16 { font-size: 16px !important; line-height: 28px; }
.f-18 { font-size: 18px !important; }
.f-20 { font-size: 20px !important; }
.fs-13 { font-size: 13px !important; }

/* Font weights */
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* Brand text colors */
.text-orange { color: var(--color-orange) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-green { color: var(--color-green) !important; }
.text-white { color: #ffffff !important; }
.text-muted-dark { color: var(--color-text-muted) !important; }

/* Brand backgrounds */
.bg-orange { background-color: var(--color-orange) !important; }
.bg-blue { background-color: var(--color-blue) !important; }
.bg-green { background-color: var(--color-green) !important; }

/* Editorial section tag with trailing line */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-orange);
  margin-bottom: 14px;
}

.section-tag::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
}

.section-tag.centered { justify-content: center; }

.section-tag.centered::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-tag.blue { color: var(--color-blue); }
.section-tag.blue::after { background: var(--color-blue); }

.section-tag.green { color: var(--color-green); }
.section-tag.green::after { background: var(--color-green); }

/* Glassmorphism containers */
.glass-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border-glass);
  border-radius: 20px;
  transition: all 0.35s ease;
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 122, 0, 0.1);
  transform: translateY(-4px);
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn-work {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  background: rgba(255, 122, 0, 0.05);
  border: 1px solid rgba(255, 122, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 2px;
}

.btn-work::before,
.btn-work::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #FF7A00;
  border-style: solid;
  transition: all 0.3s ease;
}

.btn-work::before {
  top: -3px;
  left: -3px;
  border-width: 2px 0 0 2px;
}

.btn-work::after {
  bottom: -3px;
  right: -3px;
  border-width: 0 2px 2px 0;
}

.btn-work:hover {
  background: var(--color-orange);
  color: #0c0d10 !important;
  border-color: var(--color-orange);
  box-shadow: 0 0 25px var(--color-orange-glow);
  transform: translateY(-2px);
}

.btn-work:hover::before,
.btn-work:hover::after { border-color: #ffffff; }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-orange, .git {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px var(--color-orange-glow);
  transition: all 0.3s ease;
}

.btn-orange:hover, .git:hover {
  background: linear-gradient(135deg, #ff8c1f 0%, #ffa753 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 122, 0, 0.55);
  color: #ffffff !important;
}

/* Badges */
.badge-orange,
.badge-blue,
.badge-green {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-orange {
  background: rgba(255, 122, 0, 0.12);
  color: var(--color-orange) !important;
  border: 1px solid rgba(255, 122, 0, 0.3);
}

.badge-blue {
  background: rgba(0, 136, 234, 0.12);
  color: var(--color-blue) !important;
  border: 1px solid rgba(0, 136, 234, 0.3);
}

.badge-green {
  background: rgba(120, 190, 32, 0.12);
  color: var(--color-green) !important;
  border: 1px solid rgba(120, 190, 32, 0.3);
}

/* Bootstrap surface overrides for the dark theme */
.bg-white, .bg-light { background-color: transparent !important; }

.card {
  background-color: var(--color-surface-glass);
  border: 1px solid var(--color-border-glass);
  color: var(--color-text-body);
}
