/* Font Faces */
@font-face {
    font-family: 'SP BLUNT';
    src: url('assets/SP-Blunt-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('assets/GT-Pressura-Mono-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* CSS Variables */
:root {
    --yellow: #FFD900;
    --green-header: #3C654C;
    --green-main: #294333;
    
    --font-blunt: 'SP BLUNT', 'Bangers', cursive;
    --font-mono: 'GT Pressura Mono', 'Roboto Mono', monospace;
}

/* Animations */
@keyframes jitter {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-1px, 1px) rotate(-0.5deg); }
    20% { transform: translate(1px, -1px) rotate(0.3deg); }
    30% { transform: translate(-1px, 0) rotate(0deg); }
    40% { transform: translate(1px, 1px) rotate(0.5deg); }
    50% { transform: translate(0, -1px) rotate(-0.3deg); }
    60% { transform: translate(-1px, 1px) rotate(0deg); }
    70% { transform: translate(1px, 0) rotate(0.3deg); }
    80% { transform: translate(0, 1px) rotate(-0.5deg); }
    90% { transform: translate(1px, -1px) rotate(0.5deg); }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Film Grain Overlay */
.scanlines {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    20% { transform: translate(2%, 2%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); }
    70% { transform: translate(-1%, -1%); }
    80% { transform: translate(1%, 1%); }
    90% { transform: translate(-2%, -1%); }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--green-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--green-main);
}

::-webkit-scrollbar-thumb {
    background: #FFE033;
    border: 1px solid black;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFD900;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #FFE033 var(--green-main);
}

body {
    font-family: var(--font-mono);
    background-color: var(--green-main);
    color: var(--yellow);
    overflow-x: hidden;
    cursor: url('assets/cursor.png'), auto;
}

a, button, .intro-button, .header-logo, .header-x {
    cursor: url('assets/cursor-hover.png'), pointer !important;
}

* {
    cursor: url('assets/cursor.png'), auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background-color: var(--green-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}

.header-logo {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--yellow);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
    -webkit-text-stroke: 0.75px black;
    text-shadow: 0.5px 0.5px 0 black;
}

.header-logo:hover {
    opacity: 0.7;
}

.header-x {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--yellow);
    text-decoration: none;
    transition: opacity 0.3s;
    -webkit-text-stroke: 0.75px black;
    text-shadow: 0.5px 0.5px 0 black;
}

.header-x:hover {
    opacity: 0.7;
}

.if-logo {
    position: fixed;
    top: 80px;
    right: 40px;
    width: 80px;
    height: auto;
    z-index: 100;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    padding-top: 36px;
    display: flex;
    flex-direction: column;
}

.hero-welcome {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    padding-top: 150px;
    padding-left: 250px;
    margin-bottom: 20px;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 50px;
}

.hero-image {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Header Section */
.header-section {
    padding: 0 15%;
    margin-top: 150px;
    width: 100%;
    box-sizing: border-box;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Numbers Section */
.numbers-section {
    margin-top: 50px;
    width: 100%;
    padding: 0 28%;
    box-sizing: border-box;
}

.numbers-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Built Section */
.built-section {
    margin-top: 50px;
    width: 100%;
    padding: 0 24%;
    box-sizing: border-box;
}

.built-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Graphs Section */
.graphs-section {
    margin-top: 50px;
    width: 100%;
    padding: 0 28%;
    box-sizing: border-box;
    overflow: visible;
}

.graphs-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    left: calc(5% + 30px);
}

/* Burning Section */
.burning-section {
    margin-top: 50px;
    width: 100%;
    padding: 0 24%;
    box-sizing: border-box;
}

.burning-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Board Section */
.board-section {
    margin-top: 50px;
    width: 100%;
    padding: 0 22%;
    box-sizing: border-box;
}

.board-image {
    width: 100%;
    height: auto;
    display: block;
}

/* The Why Section */
.the-why-section {
    margin-top: 50px;
    width: 100%;
    padding: 0 22%;
    box-sizing: border-box;
}

.the-why-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Sections (1, 2, 3) */
.content-section {
    margin-top: 50px;
    width: 100%;
    padding: 0 270px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.content-image {
    max-width: 700px;
    width: 100%;
    height: auto;
    display: block;
}

/* Greeen Section - bottom 25% cutoff */
.greeen-section {
    margin-top: 50px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    aspect-ratio: 4063 / 681;
}

.greeen-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--green-main);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 36px;
    transition: opacity 0.5s ease-out;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-welcome {
    align-self: flex-start;
    padding-top: 100px;
    padding-left: 200px;
    margin-bottom: 0;
}

.intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro-character {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.gaylord-image {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: 30px;
}

.speech-bubble {
    position: absolute;
    top: -90px;
    left: 200px;
    max-width: 230px;
    height: auto;
    transition: opacity 0.3s ease;
}

.speech-bubble.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-textbox {
    background-color: var(--green-header);
    border: 2px solid var(--yellow);
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 480px;
    width: 100%;
    min-height: 120px;
    margin-top: 0;
    margin-left: 40px;
    display: flex;
    align-items: center;
}

.intro-text {
    font-family: var(--font-blunt);
    font-size: 22px;
    line-height: 1.3;
    color: var(--yellow);
    margin: 0;
}

.intro-button {
    font-family: var(--font-blunt);
    font-size: 20px;
    color: var(--yellow);
    background-color: #FF4040;
    border: 2px solid #FFE033;
    border-radius: 12px;
    padding: 18px 80px;
    margin-top: 50px;
    cursor: pointer;
    text-transform: uppercase;
    animation: jitter 0.15s infinite;
}

.intro-button:hover {
    filter: brightness(1.1);
    animation-play-state: paused;
}

.intro-button:active {
    transform: scale(0.98);
}

.intro-footer {
    width: 100%;
    height: 36px;
    background-color: var(--green-header);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--yellow);
}

/* Main Site Hidden State */
.main-site {
    transition: opacity 0.5s ease-in;
}

.main-site.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.main-site.fade-in {
    opacity: 1;
}

/* Hidden Utility */
.hidden {
    opacity: 0;
}

/* Responsive - Tablet (1024px) */
@media (max-width: 1024px) {
    .hero-welcome {
        padding-left: 120px;
        padding-top: 100px;
        font-size: 16px;
    }
    
    .hero-image {
        max-width: 350px;
    }
    
    .header-section {
        margin-top: 100px;
    }
    
    .greeen-section {
        padding: 0;
    }
    
    /* Intro Tablet */
    .intro-welcome {
        padding-left: 120px;
        padding-top: 60px;
    }
    
    .intro-character {
        max-width: 400px;
    }
    
    .gaylord-image {
        max-width: 200px;
    }
    
    .speech-bubble {
        left: 220px;
        top: -20px;
    }
    
    .intro-textbox {
        max-width: 400px;
        margin-left: 30px;
    }
    
    .intro-text {
        font-size: 20px;
    }
}

/* Responsive - Mobile (768px) */
@media (max-width: 768px) {
    .header {
        height: 30px;
        padding: 0 12px;
    }
    
    .header-logo,
    .header-x {
        font-size: 12px;
    }
    
    .if-logo {
        width: 50px;
        top: 60px;
        right: 20px;
    }
    
    .hero {
        padding-top: 30px;
    }
    
    .hero-welcome {
        font-size: 14px;
        padding-left: 20px;
        padding-top: 60px;
    }
    
    .hero-content {
        margin-top: 30px;
    }
    
    .hero-image {
        max-width: 280px;
    }
    
    .header-section {
        padding: 0 12%;
        margin-top: 60px;
    }
    
    .numbers-section {
        margin-top: 30px;
        padding: 0 22%;
    }
    
    .built-section {
        padding: 0 18%;
    }
    
    .graphs-section {
        padding: 0 20%;
    }
    
    .graphs-image {
        left: 8%;
    }
    
    .burning-section {
        padding: 0 18%;
    }
    
    .board-section {
        padding: 0 15%;
    }
    
    .the-why-section {
        padding: 0 15%;
    }
    
    .greeen-section {
        margin-top: 30px;
        padding: 0;
    }
    
    /* Intro Mobile */
    .intro-overlay {
        padding-top: 30px;
    }
    
    .intro-welcome {
        padding-left: 20px;
        padding-top: 30px;
        font-size: 14px;
    }
    
    .intro-content {
        padding: 0 20px;
    }
    
    .intro-character {
        max-width: 280px;
        margin-bottom: 0;
    }
    
    .gaylord-image {
        max-width: 150px;
        margin-left: 50px;
    }
    
    .speech-bubble {
        max-width: 180px;
        left: 170px;
        top: -60px;
    }
    
    .intro-textbox {
        max-width: 320px;
        padding: 25px;
        margin-left: 0;
        margin-top: 0;
    }
    
    .intro-text {
        font-size: 18px;
    }
    
    .intro-button {
        font-size: 16px;
        padding: 14px 50px;
        margin-top: 30px;
    }
    
    .intro-footer {
        height: 30px;
        font-size: 12px;
    }
}

/* Responsive - Small Mobile (480px) */
@media (max-width: 480px) {
    .header {
        height: 28px;
        padding: 0 10px;
    }
    
    .header-logo,
    .header-x {
        font-size: 11px;
    }
    
    .if-logo {
        width: 40px;
        top: 50px;
        right: 15px;
    }
    
    .hero-welcome {
        font-size: 12px;
        padding-left: 15px;
        padding-top: 40px;
    }
    
    .hero-content {
        margin-top: 20px;
    }
    
    .hero-image {
        max-width: 220px;
    }
    
    .header-section {
        padding: 0 10%;
        margin-top: 40px;
    }
    
    .numbers-section {
        margin-top: 20px;
        padding: 0 18%;
    }
    
    .built-section {
        padding: 0 15%;
    }
    
    .graphs-section {
        padding: 0 15%;
    }
    
    .graphs-image {
        left: 10%;
    }
    
    .burning-section {
        padding: 0 15%;
    }
    
    .board-section {
        padding: 0 12%;
    }
    
    .the-why-section {
        padding: 0 12%;
    }
    
    .greeen-section {
        margin-top: 20px;
        padding: 0;
    }
    
    /* Intro Small Mobile */
    .intro-welcome {
        padding-left: 15px;
        padding-top: 20px;
        font-size: 12px;
    }
    
    .intro-character {
        max-width: 200px;
        margin-bottom: 0;
    }
    
    .gaylord-image {
        max-width: 110px;
        margin-left: 40px;
    }
    
    .speech-bubble {
        max-width: 140px;
        left: 130px;
        top: -50px;
    }
    
    .intro-textbox {
        max-width: 280px;
        padding: 20px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .intro-button {
        font-size: 14px;
        padding: 12px 40px;
        margin-top: 20px;
    }
    
    .intro-footer {
        height: 28px;
        font-size: 10px;
    }
}
