/* =========================================
   RESET & VARIABLES
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --neon-red: #ff2a5f;
    --neon-green: #39ff14;
    --card-bg: #111;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Playfair Display', serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* =========================================
   LOADER
========================================= */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.chip {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 6px dashed var(--gold);
    animation: spin 2s linear infinite;
}

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

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

#hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    margin-top: 150px; /* Push down 150px so it doesn't block faces */
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
    margin-bottom: 5px;
    line-height: 1.1; /* Tighter line height for stacked words */
}

.hero .subtitle {
    font-size: 1.6rem; /* 33% larger than previous 1.2rem */
    font-style: italic;
    color: #ccc;
    margin-bottom: 50px;
}

/* Glitch Effect */
.glitch { display: inline-block; position: relative; }

.tm {
    display: inline-block;
    font-size: 0.33em; /* 1/3 size of the wallet font */
    vertical-align: top;
    line-height: 1;
    margin-left: 2px;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-green);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(6px, 9999px, 86px, 0); }
    10% { clip: rect(35px, 9999px, 82px, 0); }
    100% { clip: rect(98px, 9999px, 71px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 59px, 0); }
    10% { clip: rect(62px, 9999px, 21px, 0); }
    100% { clip: rect(45px, 9999px, 90px, 0); }
}

.scroll-indicator {
    margin-top: 150px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.arrow {
    width: 20px; height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    margin: 10px auto 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* =========================================
   COMMON SECTION STYLES
========================================= */
main {
    padding-bottom: 100px;
    position: relative;
    z-index: 10;
}

section {
    padding: 60px 20px;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 40px;
}

/* =========================================
   FACTOIDS
========================================= */
.factoids {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.fact-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.fact-card {
    position: relative;
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 28px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 28px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.fact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 20px 50px rgba(0, 0, 0, 0.8);
}

.icon-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 2rem;
    margin-right: 25px;
    margin-bottom: 0;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.05));
    box-shadow: inset 0 1px 1px rgba(212, 175, 55, 0.4), 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.fact-content p {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0;
}

.fact-content strong {
    font-weight: 600;
    color: #fff;
}

/* =========================================
   SMS ALERT (CHASE LIGHTS)
========================================= */
.sms-alert {
    background-color: #0a0a0a;
}

.paper-container {
    position: relative;
    background: #fdfbf7;
    color: #222;
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}

/* Chase Lights Border */
.paper-container::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    background: linear-gradient(90deg, #ff2a5f, #d4af37, #39ff14, #ff2a5f);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 8px;
    animation: chase-lights 3s linear infinite;
    opacity: 0.8;
}

@keyframes chase-lights {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.paper-content h3 {
    color: #d00;
    text-align: center;
    margin: 20px 0;
}

.paper-content p {
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 0.95rem;
}

.paper-content hr {
    border: 0;
    border-top: 2px dashed #ccc;
    margin: 20px 0;
}

.bullet-list, .target-list {
    margin-bottom: 20px;
    list-style: none;
    font-family: monospace;
}

.bullet-list li, .target-list li {
    margin-bottom: 8px;
}

.highlight-text {
    font-weight: bold;
    font-size: 1.1rem;
    background: yellow;
    color: black;
    padding: 5px;
}

.bold-reassure {
    font-weight: 900;
    text-align: center;
    font-size: 1.2rem;
}

.signoff {
    text-align: center;
    font-style: italic;
    margin-top: 30px;
}

/* =========================================
   WHISKEY TRIBUTE
========================================= */
.whiskey-tribute {
    background: linear-gradient(135deg, #1a1005 0%, #050505 100%);
}

.whiskey-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.whiskey-text {
    text-align: center;
}

.whiskey-text h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(212,175,55,0.4);
}

.whiskey-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.woodford-img {
    display: block;
    margin: 20px auto 100px auto; /* 100px padding bottom */
    max-width: 75%; /* 25% smaller */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid #111;
}

.whiskey-img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    transform: scale(0.9);
}

/* =========================================
   GALLERY
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5vw;
}

.grid-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    border: 3px solid var(--gold);
    transform-origin: center center;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.grid-item:hover img {
    transform: scale(1.1);
}

/* =========================================
   MEMES
========================================= */
.meme-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.meme {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #444;
}

/* =========================================
   FOOTER
========================================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 15px 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0) 100%);
    z-index: 100;
    pointer-events: none; /* Let clicks pass through the faded gradient area */
}

footer p {
    pointer-events: auto; /* Re-enable clicks on the text itself */
    font-size: 0.9rem;
    margin: 0;
    color: #666;
    font-family: var(--font-heading);
}

/* =========================================
   OVER-THE-TOP EFFECTS
========================================= */

/* 1. Entry Door */
#entry-door {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle, #1a0808 0%, #000 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.5s ease;
}

#enter-btn {
    padding: 20px 40px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    background: transparent;
    color: var(--gold);
    border: 3px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(212,175,55,0.4), inset 0 0 20px rgba(212,175,55,0.4);
    transition: all 0.3s ease;
}

#enter-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 40px rgba(212,175,55,0.8);
    transform: scale(1.05);
}

/* 2. Interactive Infinity Envelope */
/* 2. Interactive Infinity Envelope */
#infinity-envelope {
    position: fixed;
    bottom: 60px;
    right: 30px;
    background: #111;
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 9000;
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
    transition: transform 0.2s;
    animation: bounce-env 3s infinite;
}

#infinity-envelope:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(212,175,55,0.8);
}

.env-icon { position: relative; z-index: 1; opacity: 0.3; filter: grayscale(100%); }

.infty-icon {
    position: absolute;
    font-family: Arial, sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-shadow: 0 0 8px #000, 0 0 15px #000, 0 4px 6px rgba(0,0,0,0.8);
}

@keyframes bounce-env {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 3. Falling Cash */
#rain-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.matrix-bill {
    position: absolute;
    top: -800px;
    max-width: 90vw; 
    height: auto;
    pointer-events: none;
    animation: matrix-fall linear forwards;
}

@keyframes matrix-fall {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(200vh); }
}

/* 4. Pacman Target Animation */
.pacman-row {
    position: relative;
    display: block;
    padding: 10px 0;
    margin-bottom: 10px;
}

.eat-text {
    display: inline-block;
    position: relative;
}

.pacman {
    position: absolute;
    top: 50%; left: -40px; 
    transform: translateY(-50%);
    width: 0; height: 0;
    border-right: 24px solid transparent;
    border-top: 24px solid yellow;
    border-left: 24px solid yellow;
    border-bottom: 24px solid yellow;
    border-radius: 50%;
    z-index: 10;
    animation: chomp 0.3s infinite alternate;
}

@keyframes chomp {
    0% { border-right: 24px solid transparent; }
    100% { border-right: 24px solid yellow; }
}

/* 5. Konami Strobe / Madness */
.strobe-mode {
    animation: strobe 0.2s infinite;
}

.strobe-video {
    animation: wild-video 0.5s infinite alternate !important;
}

@keyframes strobe {
    0% { filter: invert(0) hue-rotate(0deg); }
    50% { filter: invert(1) hue-rotate(180deg); }
    100% { filter: invert(0) hue-rotate(360deg); }
}

@keyframes wild-video {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.5) rotate(5deg); }
}

/* 6. Silent Assassin Easter Egg */
@keyframes pulse-assassin {
    0% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 15px red; }
    100% { opacity: 0.6; }
}

#silent-assassin {
    cursor: pointer;
    text-decoration: underline;
    color: red;
    transition: color 0.3s ease;
    animation: pulse-assassin 2.5s infinite ease-in-out;
}

#silent-assassin:hover {
    color: var(--neon-red);
    text-shadow: 0 0 10px red;
}

.matrix-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    padding: 0 10%;
    box-sizing: border-box;
    background: #000;
    z-index: 100000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 2s ease;
}

.typewriter-text {
    font-family: monospace;
    color: #0f0;
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    text-align: center;
}

/* =========================================
   MEDIA QUERIES (DESKTOP ENHANCEMENT)
========================================= */
@media (min-width: 768px) {
    .hero h1 { font-size: 5rem; }
    .fact-cards-container {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(180px, auto);
        gap: 30px;
    }
    
    .bento-wide { grid-column: span 2; }
    .bento-tall { grid-row: span 2; }
    .bento-full { grid-column: span 3; }
    .fact-card {
        width: auto;
    }
    .whiskey-content {
        flex-direction: row;
        align-items: center;
    }
    .whiskey-text {
        text-align: left;
        flex: 1;
    }
    .whiskey-img {
        flex: 1;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
        grid-gap: 20px;
    }
    .grid-item.wide { grid-column: span 2; }
    .grid-item.tall { grid-row: span 2; }
}
