/* ------------------- */
/* CSS Variables       */
/* ------------------- */
:root {
    --color-primary: #ffffff;
    --color-text: #cccccc;
    --color-text-muted: #a0a0a0;
    --color-background: #0a0a0aee;
    --color-surface-1: #111111;
    --color-surface-2: #1a1a1a;
    --color-border: #333333;

    --font-family-base: "Asta Sans", sans-serif;
    
    --header-height: 4.5rem; 
}

/* ------------------- */
/* Global Styles       */
/* ------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-base);
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
    overflow-x: hidden;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ------------------- */
/* Header              */
/* ------------------- */
header {
    position: fixed;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 60rem;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(0.625rem);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1.8rem;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1.8rem;
  padding: 2px;
  background: linear-gradient(155deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    transparent 30%, 
    transparent 70%, 
    rgba(255, 255, 255, 0.3) 100%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.navbar {
    padding: 1rem 0;
    height: var(--header-height);
}

.nav-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 a {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
}

.logo img {
    height: 40px;
    display: block;
    pointer-events: none;
    user-select: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1rem;
    border-radius: 0.8rem;
    position: relative;
    border: 1px solid transparent;
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 0.8rem;
  padding: 2px;
  background: linear-gradient(150deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    transparent 30%, 
    transparent 70%, 
    rgba(255, 255, 255, 0.3) 100%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 0.375rem;
}

.hamburger span {
    display: block;
    width: 1.5625rem;
    height: 0.125rem;
    background: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
}


/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-content {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}


.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.7);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ------------------- */
/* Generic Section     */
/* ------------------- */
section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--color-surface-1);
}

section h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 4rem;
    position: relative;
    font-weight: 700;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -0.9375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.1875rem;
    background: var(--color-primary);
}

/* ------------------- */
/* Footer              */
/* ------------------- */
footer {
    /* background: linear-gradient(to top, rgb(0, 0, 0), rgb(15, 15, 15)); */
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0 2rem;
    color: var(--color-text-muted);
    filter: drop-shadow(0px 0px 60px rgb(0, 0, 0));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.8rem 0;
}

.footer-section a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* ------------------- */
/* Scroll Animations   */
/* ------------------- */
.feature, .rule-card, .job-card, .community-link {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature.visible, .rule-card.visible, .job-card.visible, .community-link.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ------------------- */
/* Responsive          */
/* ------------------- */
@media (max-width: 48em) { 
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: 100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .features,
    .jobs-grid,
    .community-links {
        grid-template-columns: 1fr;
    }
}