/* ==========================================================================
   Parthmax.tech — Theme & Base Styles (theme.css)
   Contains design tokens, typography, layout wraps, header/footer,
   buttons, navigation, scroll progress bar, and core animation utilities.
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --ink: #090909;
  --paper: #fbfbfa;
  --white: #ffffff;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --blue: #1557ff;
  --blue-dark: #0b35a8;
  --green: #10b981;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif;
  --hand: "Caveat", cursive, sans-serif;
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Layout Wrapper */
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--blue);
  z-index: 60;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Header & Navigation (Pixel-Perfect Match)
   -------------------------------------------------------------------------- */
.mini-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.mini-header .logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}

.mini-header .logo span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-btn {
  min-height: 40px;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-arrow-icon {
  margin-left: 2px;
  transition: transform 0.18s ease;
}

.nav-btn:hover .btn-arrow-icon {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Footer Component
   -------------------------------------------------------------------------- */
.mini-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--paper);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-sep {
  color: #d1d5db;
}

.footer-role {
  color: var(--ink);
  font-weight: 600;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-right a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-right a:hover {
  color: var(--ink);
}

.back-to-top {
  color: var(--blue) !important;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Button Base Classes
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #d1d5db;
}

.button.secondary:hover {
  background: var(--white);
  border-color: var(--ink);
}

.copy-email-btn {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.copy-email-btn:hover {
  box-shadow: 0 6px 20px rgba(21, 87, 255, 0.3);
}

.copy-email-btn.copied {
  background: var(--green);
  border-color: var(--green);
}

/* --------------------------------------------------------------------------
   Animations & Reveals
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Error Page Layout
   -------------------------------------------------------------------------- */
.error-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 60px;
}

.error-box {
  max-width: 600px;
  padding: 44px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--blue);
  border-radius: 8px;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
