/* =========================================================
   KRASH PRODUCTIONS — GLOBAL STYLESHEET
   Single Source of Truth
   ========================================================= */

/* =====================
   0. CSS VARIABLES
   ===================== */
   :root {
    --bg-color: #0b0b0b; /* dark background for menu */
    --text-color: #eaeaea;
    --link-color: #eaeaea;
    --shadow-light: rgba(255, 255, 255, 0.05);
    --shadow-medium: rgba(255, 255, 255, 0.05);
}

/* =====================
   1. RESET / NORMALIZE
   ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    display: flex;
    flex-direction: column;
}

/* =====================
   2. MEDIA & ELEMENTS
   ===================== */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* =====================
   3. TYPOGRAPHY SYSTEM
   ===================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    letter-spacing: 10px;
    
}

h2 {
    font-size: 0.9rem;
}

h3 {
    font-size: 0.85rem;
}

p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* =====================
   4. LAYOUT PRIMITIVES
   ===================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem;
}

.section {
    margin-bottom: 6rem;
}

/* Center major site regions */
.site-header,
.hero,
.statement,
.focus,
.cta,
.site-footer {
    margin-left: auto;
    margin-right: auto;
}

main {
    flex: 1;
}

/* =====================
   5. SITE HEADER & NAVIGATION
   ===================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    width: 100%;
    position: relative;
    z-index: 1000;
    box-shadow: 0 -10px 10px -10px rgba(255, 255, 255, 0.1) inset;      /* inner glow */


}

/* Brand */
.brand {
    display: flex;
    align-items: center;
}

.brand img {
    height: 90px;
    width: auto;
    display: block;
}

/* Menu container */
.menu-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Horizontal main links */
.nav-main {
    display: flex;
    gap: 25px;
    align-items: center;
    transition: 0.5s ease;
    order: 1;
}

.nav-main a {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    color: var(--text-color);
}

.nav-main a:hover {
    opacity: 1;
}

/* Burger */
.burger {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 25px;
    align-items: center;
}

/* Dropdown menu */
.nav-full {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 11px;
    right: 0;
    background: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0px 20px rgba(255, 255, 255, 0.2);
    z-index: 999;

    min-width: 200px;
    width: max-content;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.25s ease;
}

.nav-full a {
    padding: 10px 0;
    color: var(--text-color);
    white-space: nowrap;
}

.burger-and-nav-full {
    display: flex;
    align-items: center;
    position: relative;
    order: 2;
}

/* Show dropdown */
.burger-and-nav-full:hover .nav-full {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: 0.3s ease;
}

/* Hide horizontal links when hovering the burger or the dropdown */

.burger-and-nav-full:hover ~ .nav-main {
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}



/* =====================
   6. HERO SECTION
   ===================== */
   .hero {
    min-height: 69vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: relative;
    text-align: center;

    /* top Glow variables (animated by JS) */
    --top-blur: 70px;
    --top-spread: 0px;
    --top-alpha: 0.05;


    /* TOP glow (all pages) */
    box-shadow:
        0 -40px var(--top-blur) var(--top-spread)
        rgba(255, 255, 255, var(--top-alpha));

    transition: box-shadow 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}




/* Home page bottom glow (separate layer) */
.page-home .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

}

.page-home .hero {

    /* bottom Glow variables (animated by JS) */
    --bottom-blur: 70px;
    --bottom-spread: 40px;
    --bottom-alpha: 0.05;

    box-shadow:
        0 0px var(--bottom-blur) var(--bottom-spread)
        rgba(255, 255, 255, var(--bottom-alpha));
}



/* Hero heading */
.hero h1 {
    margin-bottom: 1.5rem;
    padding-top: 100px;

    text-shadow:
        0 0 23px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.2);

    transition: text-shadow 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body:not(.page-home) .hero h1 {
    text-shadow: none;
}

.hero-line {
    max-width: 600px;
    opacity: 0.65;
    padding-bottom: 270px;
}

/* =====================
   7. STATEMENT SECTION
   ===================== */
.statement {
    margin-top: 30vh;
    max-width: 800px;
    padding: 6rem 3rem;
    margin-left: auto;
    margin-right: auto;
}

/* =====================
   8. FOCUS GRID
   ===================== */
.focus {
    max-width: 1000px;
    padding: 6rem 3rem;
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.focus-item h2 {
    margin-bottom: 0.8rem;
}

.focus-item p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =====================
   9. CALL TO ACTION
   ===================== */
.cta {
    padding: 6rem 3rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: 1px solid #eaeaea;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #eaeaea;
    color: #0b0b0b;
}

/* =====================
   10. FOOTER
   ===================== */
.site-footer {
    padding: 3rem;
    font-size: 0.7rem;
    opacity: 0.4;
    text-align: center;
}


/* =====================
   12. UTILITIES
   ===================== */
.center-text {
    text-align: center;
}

.fade {
    opacity: 0.5;
}

.hidden {
    display: none;
}

/* =====================
   13. RESPONSIVE RULES
   ===================== */
   @media (max-width: 768px) {
    .site-header {
        padding: 1.5rem;
    }

    .hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 2.5rem;
        min-height: auto;
        justify-content: flex-start;
    }

    h1 {
        font-size: 2.2rem;
    }

    .nav-main {
        display: none;
    }

    .menu-container:hover .nav-full {
        display: flex;
    }

    .hero h1 {
        margin-top: 0;
        padding: 0;
        padding-top: 0;
        padding-bottom: 0px;
        display: flex;
    }

    .hero-line {
        padding-top: 0px;
        padding-bottom: 3rem;
        display: flex;
    }
    
   .page-home .hero{
        padding-top: 2.5rem;
    }

}

   @media (min-width: 770px) {
   .page-home .hero {
        padding-top: 10rem;
    }

    .hero {
        padding-top: 10rem;
    }

    .hero h1{
        padding-top: 100px;
    }

    body:not(.page-home) .hero {
        padding-top: 10rem;
    }
}