/* ----------------------------------------
   1. FONT DECLARATIONS
---------------------------------------- */
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/fira-sans@5.1.0/latin-400-normal.woff2")
    format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/fira-sans@5.1.0/latin-500-normal.woff2")
    format("woff2");
}

@font-face {
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/fira-code@5.1.0/latin-400-normal.woff2")
    format("woff2");
}

@font-face {
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/fira-code@5.1.0/latin-500-normal.woff2")
    format("woff2");
}

/* ----------------------------------------
   2. DESIGN TOKENS & VARIABLES
---------------------------------------- */
:root {
  --bg-color: #0a0a0a;
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-subtle: #737373;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-sans: "Fira Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Fira Code", monospace;
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------
   3. BASE RESET
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: #262626;
  color: var(--text-main);
}

/* ----------------------------------------
   4. VIDEO BACKGROUND & OVERLAY
---------------------------------------- */
.video-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: var(--bg-color);
  overflow: hidden;
  pointer-events: none;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(0.85);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* ----------------------------------------
   5. LAYOUT & CONTAINER
---------------------------------------- */
.page-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .page-container {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ----------------------------------------
   6. HEADER COMPONENT
---------------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 1.25rem;
  width: auto;
  color: var(--text-main);
}

/* ----------------------------------------
   7. HERO COMPONENT
---------------------------------------- */
.hero {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.title-mask {
  overflow: hidden;
}

.title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
}

.description-grid {
  display: grid;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .description-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .subtitle {
    grid-column: span 8 / span 8;
  }
}

.subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
  padding-top: 1.5rem;
}

.separator {
  color: rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------
   8. FOOTER & NAVIGATION
---------------------------------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items on mobile */
  text-align: center; /* Centers text on mobile */
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left; /* Resets text alignment for desktop */
  }
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Ensures links wrap evenly on mobile */
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--text-main);
}

.arrow {
  font-size: 0.75rem;
  color: var(--text-subtle);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.social-link:hover .arrow {
  color: var(--text-muted);
  transform: translate(2px, -2px);
}

.email-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.125rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.email-link:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* ----------------------------------------
   9. ENTRANCE ANIMATIONS
---------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes maskRise {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-header,
.animate-title,
.animate-subtitle,
.animate-tags,
.animate-footer {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: var(--ease-editorial);
}

.animate-header {
  animation-name: fadeUp;
  animation-duration: 0.8s;
  animation-delay: 0.1s;
}
.animate-title {
  animation-name: maskRise;
  animation-duration: 1s;
  animation-delay: 0.2s;
}
.animate-subtitle {
  animation-name: fadeUp;
  animation-duration: 0.8s;
  animation-delay: 0.35s;
}
.animate-tags {
  animation-name: fadeUp;
  animation-duration: 0.8s;
  animation-delay: 0.45s;
}
.animate-footer {
  animation-name: fadeUp;
  animation-duration: 0.8s;
  animation-delay: 0.55s;
}
