/**
 * base.css
 * Base document styling, typography, scrollbars, selection colors.
 *
 * @package Srushti_Theme
 */

html,
body {
  overflow-x: clip;
  width: 100%;
}

body {
  background-color: var(--color-midnight);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 16px);
}

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

::-webkit-scrollbar-track {
  background: var(--color-void);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-3);
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-void);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-gold);
}

/* Selection Color Overlay */
::selection {
  background: var(--neon-gold-glow);
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY RULES
   ───────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.015em;
}

p {
  margin-bottom: var(--space-5);
  line-height: 1.65;
  font-weight: 500;
}

li {
  font-weight: 500;
}

/* Font Scales */
.display-xl {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.display-lg {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
}

.h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
}

.h4 {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 600;
}

.body-lg {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
}

.body {
  font-size: 16px;
  line-height: 1.65;
}

.body-sm {
  font-size: 14px;
  line-height: 1.6;
}

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.caption {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

.mono {
  font-family: var(--font-body);
  font-size: 13px;
}

/* ─────────────────────────────────────────────
   SPECIAL TYPE TREATMENTS
   ───────────────────────────────────────────── */

/* Neon Gradient Headline */
.headline-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-brand-red) 50%, var(--color-brand-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Neon Outline Text */
.headline-outline {
  -webkit-text-stroke: 1px rgba(204, 0, 0, 0.60);
  color: transparent;
}

/* Animated Gradient Headline */
.headline-animated {
  background: linear-gradient(270deg, var(--color-brand-red), var(--color-brand-red-bright), var(--text-primary), var(--color-brand-red));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

/* Eyebrow Label */
.label-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-brand-red) !important;
  background: rgba(204, 0, 0, 0.05);
  border: 1px solid rgba(204, 0, 0, 0.12);
  border-left: 3px solid var(--color-brand-red);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.label-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-brand-red);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

/* Color Utilities */
.text-gold {
  color: var(--text-red);
}

.text-red {
  color: var(--text-red);
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.font-gold {
  color: var(--color-brand-red);
}

/* ─────────────────────────────────────────────
   GLOBAL FORM FIELDS (LIGHT MODE DEFAULTS)
   ───────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 12px var(--space-4);
  background: var(--color-surface-2) !important;
  border: 1px solid var(--color-border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
  border-color: rgba(11, 11, 14, 0.2) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-brand-red) !important;
  box-shadow: none !important;
  outline: none !important;
  background: var(--color-surface-1) !important;
}

textarea {
  resize: vertical;
}

/* ─────────────────────────────────────────────
   ARROW ICONS HOVER TRANSITIONS
   ───────────────────────────────────────────── */
.arrow-icon {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s var(--ease-out);
}

.service-link:hover .arrow-icon,
.portfolio-read-btn:hover .arrow-icon,
.nav-link-box:hover .arrow-icon,
.nav-links a:hover .arrow-icon {
  transform: translateX(4px);
}

.nav-link-box:hover .arrow-icon-left,
.nav-links a:hover .arrow-icon-left {
  transform: translateX(-4px);
}