/* ====================
   GLOBAL RESET
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====================
   CSS VARIABLES
   ==================== */
:root {
  --page-padding: 5rem;

  --primary-color: #00ff00;
  --background-color: #232323;
  --surface-color: #0a0a0a;
  --text-primary: #00ff00;
  --text-muted: #f9f9f9;
  --border-width: 2px;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-size-body: clamp(0.98rem, 0.22vw + 0.9rem, 1.05rem);
  --line-height-body: 1.7;
  --measure: 65ch; /* ideal line length ~60–75 chars */

  /* Rails & layout math */
  --rail-offset: 1rem; /* distance from viewport edge to rail */
  --content-rail-gap: 6rem; /* min gap between rail and content */
}

/* ====================
   BODY
   ==================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  background-color: var(--background-color);
  color: var(--text-muted);
  min-height: 100vh;
}

/* ====================
   GENERIC HEADER / NAV (non-landing pages)
   ==================== */
header {
  background-color: #0b0b0b;
  padding: 1rem;
  border-bottom: var(--border-width) solid var(--primary-color);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  justify-content: flex-end;
}

nav a {
  color: var(--primary-color);
  text-decoration: none;
  margin-left: 2rem;
}

/* ====================
   GENERIC MAIN
   ==================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* ====================
   TYPOGRAPHY
   ==================== */
h1,
h2,
h3,
h4,
a {
  color: var(--primary-color);
  transition: color 0.2s ease;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: #00ff99;
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 3vw + 1.2rem, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 2vw + 0.8rem, 2.4rem);
  margin-bottom: 1rem;
}

h3-generic,
h3 {
  font-size: clamp(1.4rem, 1.3vw + 0.9rem, 1.6rem);
  margin-bottom: 0.8rem;
  color: #ff9500;
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* nice optional underline for big headings */
.h1-underline {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--primary-color);
  margin-bottom: 1rem;
}

/* Generic paragraph */
p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: var(--measure); /* 60–75 chars per line */
}

/* custom element (unused but kept) */
p-alternate {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #757575;
}

/* Divider line */
.divider {
  border: none;
  border-top: 1px solid var(--primary-color);
  margin: 1rem 0;
}

/* ====================
   BOX / GRID HELPERS
   ==================== */
.box {
  border: var(--border-width) solid var(--primary-color);
  padding: 2rem;
  margin: 1rem 0;
  background-color: var(--background-color);
  border-radius: 8px;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
}

.grid-full {
  grid-column: 1 / -1;
  margin: 0;
}

/* ====================
   GLOBAL RESPONSIVE
   ==================== */
@media (max-width: 768px) {
  :root {
    --page-padding: 1.5rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2rem, 4vw + 1.2rem, 2.4rem);
  }

  h2 {
    font-size: clamp(1.6rem, 3vw + 0.9rem, 2rem);
  }

  p,
  p-alternate {
    font-size: 1rem;
  }

  nav a {
    margin-left: 1rem;
  }
}

/* ====================
   BUTTONS
   ==================== */
.button-link {
  display: inline-block;
  padding: 1rem 4rem;
  background: var(--primary-color);
  color: var(--background-color);
  border: 2px solid #000000;
  border-radius: 10px;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 1rem 1rem;
  box-shadow: 4px 4px 0px #757575;
  position: relative;
}

.button-link:hover {
  box-shadow: 2px 2px 0px #757575;
  transform: translate(2px, 2px);
}

.button-link:active {
  box-shadow: 0px 0px 0px #757575;
  transform: translate(2px, 2px);
}

/* ====================
   PACKAGE CARD
   ==================== */
.package {
  width: auto;
  height: auto;
  background-color: #00ff00;
  border-radius: 11.5px;
  text-align: left;
  transition: all 0.5s cubic-bezier(0, 0, 0, 1);
  padding: 0;
}

.package:hover {
  padding: 6px;
}

.package2 {
  width: auto;
  height: auto;
  background-color: #1d1724;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0, 0, 0, 1);
  padding: 15px;
  cursor: pointer;
  overflow: hidden;
}

.package2:hover {
  border-radius: 10px;
}

.text {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.text-content {
  color: var(--primary-color);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* ====================
   LANDING PAGE
   ==================== */
.landing {
  position: relative;
  min-height: 100vh;
  padding: 0 4rem 4rem;
  background: var(--background-color);
}

/* constrain content inside landing */
.landing main {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header overrides */
.landing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0 0;
  background: transparent;
  border: none;
  position: relative;
  z-index: 20;
}

/* Landing nav */
.landing__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  max-width: none;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 15;
}

.nav-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.logo-hex {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing__nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  z-index: 21;
}

.landing__nav a,
.landing__nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.landing__nav a:hover,
.landing__nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.nav-index {
  color: var(--primary-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.resume-btn {
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--primary-color);
  border-radius: 6px;
  color: var(--primary-color);
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.resume-btn:hover {
  background: rgba(0, 255, 102, 0.08);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 60%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Hero */
.hero {
  max-width: var(--measure);
  margin: 0;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  color: var(--primary-color);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.hero__headline {
  color: var(--text-primary);
  font-weight: 700;
}

.hero__subtitle {
  color: var(--text-primary);
  font-weight: 700;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
}

.hero__description {
  margin: 1.8rem 0 2.6rem;
  max-width: var(--measure);
  line-height: var(--line-height-body);
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* CTA button */
.outline-btn {
  display: inline-flex;
  width: auto;
  margin: 1rem;
  padding: 1rem 1.5rem;
  border: 1.5px solid var(--primary-color);
  border-radius: 4px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.outline-btn:hover {
  background: rgba(0, 255, 102, 0.08);
  transform: translateY(-1px);
}

.hero .outline-btn {
  width: auto;
  padding: 1rem 1.5rem;
  align-self: flex-start;
  margin: 0;
}

/* Sections */

.section-block {
  max-width: var(--measure);
  margin: 0; /* left-align inside main, like hero */
  padding: 4rem 0;
}
.section-block--contact {
  padding-bottom: 6rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.section-text {
  color: var(--text-muted);
  line-height: var(--line-height-body);
  font-size: 1.02rem;
  max-width: var(--measure);
}

body.nav-open {
  overflow: hidden;
}

/* ====================
   SIDE RAILS
   ==================== */
.social-rail {
  position: fixed;
  left: var(--rail-offset);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-rail ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-rail img {
  width: 22px;
  height: 22px;
}

.social-rail a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-rail a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.rail-line {
  width: 1px;
  height: 110px;
  background: var(--text-muted);
  opacity: 0.5;
  margin-top: 1rem;
}

.email-rail {
  position: fixed;
  right: var(--rail-offset);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.email-rail a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transition: color 0.2s ease, transform 0.2s ease;
}

.email-rail a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ====================
   LANDING RESPONSIVE
   ==================== */
@media (max-width: 1024px) {
  .landing {
    padding: 0 2.5rem 3rem;
  }

  .section-block {
    padding: 3rem 0;
  }
}

@media (max-width: 770px) {
  .landing {
    padding: 0 1.5rem 3rem;
  }

  .section-block {
    margin: auto 0;
  }

  .landing__header {
    padding-top: 1.5rem;
  }

  .landing__nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(360px, 80vw);
    background: var(--surface-color);
    padding: 5rem 2rem 2rem;
    border-left: 1px solid rgba(0, 255, 102, 0.25);
    border-radius: 0;
    flex-direction: column;
    gap: 1.2rem;
    min-width: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .landing__nav-links.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .landing__nav-links a {
    width: 100%;
    justify-content: flex-start;
    font-size: 1.05rem;
  }

  .social-rail,
  .email-rail {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .hero {
    padding-top: 6rem;
  }
}

/* keep content safely clear of rails on wider viewports */
@media (min-width: 770px) {
  .landing main {
    padding-left: calc(var(--rail-offset) + var(--content-rail-gap));
    padding-right: calc(var(--rail-offset) + var(--content-rail-gap));
  }
}

/* ====================
   FOOTER + MOBILE SOCIAL
   ==================== */
.icon {
  color: #ffffff;
}

.footer {
  text-align: center;
  margin: 0;
  padding: 2rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* hidden on desktop */
.footer-social {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social img {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 770px) {
  .footer-social {
    display: flex;
  }

  .social-rail,
  .email-rail {
    display: none;
  }
}

.hash-divider {
  color: var(--primary-color);
}

.footer-contact {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
