/*
Theme Name: Amazon Entertainments
Version: 1.0
*/
body {
  font-family: system-ui;
  background: #f06d06;
  color: white;
  text-align: center;
}
/* Create the vibrating inner frame */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(255, 0, 0, 0);
    transition: all 0.3s ease;
    pointer-events: none;
}

.card:hover::before {
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: frame-glitch 0.2s infinite;
}

@keyframes frame-glitch {
    0% { transform: translate(2px, 2px); border-color: var(--accent); }
    50% { transform: translate(-2px, -2px); border-color: #fff; }
    100% { transform: translate(1px, -1px); border-color: var(--accent); }
}
.work-grid {
    perspective: 1000px; /* Gives the grid a 3D field */
}

.card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, background 0.3s ease;
}

/* A subtle "inner shadow" that moves with the tilt */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.1) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    transform: translateZ(30px); /* Lifts the text off the surface */
    transition: transform 0.1s ease-out;
    pointer-events: none;
}
.card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03); /* Default subtle state */
    z-index: 1;
}

/* The Liquid Blob */
.card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: var(--accent);
    border-radius: 50%; /* Keeps it looking like a liquid drop */
    transform: translate(-50%, -50%); /* Centers the expansion on the mouse */
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1), 
                height 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: -1; /* Sits behind the text */
}

/* When the card is hovered, the blob grows */
.card:hover::after {
    width: 350%; /* Large enough to cover the rectangular card */
    height: 350%;
}

/* Ensure text stays readable and transitions color */
.card h3 {
    transition: color 0.4s ease;
    pointer-events: none;
}

.card:hover h3 {
    color: #000; /* Contrast against the red fill */
}
top: var(--y, 50%);
    left: var(--x, 50%);
.card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    z-index: 1;
    /* Ensure the card doesn't jump when the text moves */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* The Liquid Ink Blob */
.card::after {
    content: '';
    position: absolute;
    /* Coordinates provided by JavaScript */
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 0;
    height: 0;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.card:hover::after {
    /* Large enough to cover the corners regardless of entry point */
    width: 300%;
    height: 300%;
}

/* The Text Lift Effect */
.card h3 {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
                color 0.3s ease;
    pointer-events: none;
    transform: translateY(0);
}

.card:hover h3 {
    color: #000;
    /* Lifts the text up slightly */
    transform: translateY(-15px);
}
/* Card Text Base Style */
.card h3 {
    position: relative;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    letter-spacing: 0px;
    z-index: 2;
}

/* The Brackets [ ] */
.card h3::before,
.card h3::after {
    content: '';
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #000; /* Black to match our liquid fill text color */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.card h3::before {
    left: -10px;
    border-left: 2px solid #000;
}

.card h3::after {
    right: -10px;
    border-right: 2px solid #000;
}

/* Hover State */
.card:hover h3 {
    letter-spacing: 3px; /* Cinematic spreading */
    padding: 0 15px;    /* Space for brackets */
}

.card:hover h3::before {
    left: 0;
    opacity: 1;
}

.card:hover h3::after {
    right: 0;
    opacity: 1;
}
.menu-container {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
}

.magnetic-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none; /* Keep the custom cursor we built */
    transition: border 0.3s ease, background 0.3s ease;
}

.btn-text {
    display: block;
    pointer-events: none;
    transition: transform 0.2s linear;
}

/* The Hamburger Icon */
.menu-icon span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 6px 0;
    transition: background 0.3s ease;
}

/* Hover State */
.magnetic-btn:hover {
    border-color: var(--accent);
    background: rgba(255, 0, 0, 0.05);
}

.magnetic-btn:hover .menu-icon span {
    background: var(--accent);
}
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    background: #000000; /* Pure Black */
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 0;
}
.mission-section {
    padding: 100px 0;
    text-align: center;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.mission-statement {
    position: relative;
    font-size: clamp(2rem, 8vw, 5rem); /* Responsive size */
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); /* Hollow look */
    text-transform: uppercase;
    letter-spacing: 15px;
    cursor: default;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The "Solid Fill" that appears on hover/scroll */
.mission-statement::before {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 0%; /* Start empty */
    height: 100%;
    color: white;
    -webkit-text-stroke: 0px transparent;
    border-right: 3px solid var(--accent); /* The "Laser" line */
    white-space: nowrap;
    overflow: hidden;
    transition: width 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    filter: drop-shadow(0 0 10px var(--accent));
}

/* Interaction: Sweep the red laser across */
.mission-section:hover .mission-statement::before {
    width: 100%;
}

.mission-section:hover .mission-statement {
    letter-spacing: 20px;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

/* The Bottom Accent Line */
.mission-underline {
    width: 0px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin-top: 20px;
    transition: width 1s ease;
}

.mission-section:hover .mission-underline {
    width: 300px;
}
.reveal-active .mission-statement::before {
    width: 100% !important;
}
.reveal-active .mission-underline {
    width: 300px !important;
}
.title-target-system {
    position: relative;
    display: inline-block;
    padding: 60px 100px; /* Space for rings */
    margin-bottom: 40px;
}

/* The Rings */
.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(255, 0, 0, 0.3);
    pointer-events: none;
}

.outer-ring {
    width: 120%;
    height: 180%;
    animation: rotateCW 15s linear infinite;
}

.inner-ring {
    width: 110%;
    height: 160%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--amazon-red); /* A small red accent "needle" */
    animation: rotateCCW 10s linear infinite;
}

/* Technical Corners */
.corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--amazon-red);
    opacity: 0.5;
}

.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Animations */
@keyframes rotateCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCCW {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}
:root { --amazon-red: #ff0000; }

.portfolio-section {
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px;
}

.portfolio-title {
    color: white;
    font-size: 3rem;
    letter-spacing: 10px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* 3D SCENE SETUP */
.portfolio-container {
    perspective: 2000px;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cards-ring {
    position: relative;
    width: 350px;
    height: 200px;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CIRCLE STATE */
.is-circle .cards-ring { animation: spin 20s linear infinite; }
.is-circle .proj-card { position: absolute; width: 350px; }

/* 6 Cards at 60 degree steps */
.is-circle .proj-card:nth-child(1) { transform: rotateY(0deg) translateZ(500px); }
.is-circle .proj-card:nth-child(2) { transform: rotateY(60deg) translateZ(500px); }
.is-circle .proj-card:nth-child(3) { transform: rotateY(120deg) translateZ(500px); }
.is-circle .proj-card:nth-child(4) { transform: rotateY(180deg) translateZ(500px); }
.is-circle .proj-card:nth-child(5) { transform: rotateY(240deg) translateZ(500px); }
.is-circle .proj-card:nth-child(6) { transform: rotateY(300deg) translateZ(500px); }

/* GRID STATE (2 Rows x 3 Columns) */
.is-grid .cards-ring {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 30px;
    width: 90%;
    max-width: 1100px;
    transform: none !important; /* Stop 3D Rotation */
    animation: none;
    height: auto;
}

.is-grid .proj-card {
    position: relative;
    transform: none !important; /* Flatten cards */
    width: 100%;
}

/* CARD STYLING */
.proj-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.proj-card:hover { border-color: var(--amazon-red); }

.video-box {
    aspect-ratio: 16/9;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cam-label {
    position: absolute;
    top: 5px; left: 5px;
    color: var(--amazon-red);
    font-family: monospace;
    font-size: 0.7rem;
}

.card-text h3 { color: white; font-size: 1rem; margin-top: 10px; }
.card-text p { color: #555; font-size: 0.7rem; }

/* RE-ENTRY BUTTON */
.exit-grid {
    display: none;
    margin-top: 40px;
    background: transparent;
    border: 1px solid var(--amazon-red);
    color: white;
    padding: 10px 20px;
    cursor: pointer;
}

.is-grid .exit-grid { display: block; }

@keyframes spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}
:root {
    --red: #ff0000;
    --black: #000000;
    --white: #ffffff;
}

.amazon-event-header {
    background: var(--black);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

/* --- The Dark Glass Title --- */
.amazon-glitch-text {
    position: relative;
    font-size: clamp(2rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 22px; /* Wide spacing for cinematic look */
    padding: 35px 70px;
    display: inline-block;
    
    /* Deep Glassmorphism */
    background: rgba(18, 18, 18, 0.8); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

/* --- Red & White Glitch Layers --- */
.amazon-glitch-text::before,
.amazon-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    padding: 35px 70px;
    box-sizing: border-box;
    opacity: 0.8;
}

/* Red Twitch Layer */
.amazon-glitch-text::before {
    left: 4px;
    text-shadow: -3px 0 var(--red);
    clip: rect(30px, 9999px, 50px, 0);
    animation: glitch-loop-1 2s infinite linear alternate-reverse;
}

/* White Static Layer */
.amazon-glitch-text::after {
    left: -4px;
    text-shadow: 2px 0 var(--white);
    clip: rect(80px, 9999px, 120px, 0);
    animation: glitch-loop-2 1s infinite linear;
}

/* --- HUD Header Styling --- */
.uplink-module { margin-bottom: 25px; }

.uplink-data {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 5px;
    font-size: 0.8rem;
}

.white-label { color: var(--white); opacity: 0.7; }
.red-value { color: var(--red); text-shadow: 0 0 10px var(--red); }
.red-dot { color: var(--red); animation: blink 0.6s infinite; margin-right: 10px; }

/* --- Animations --- */
@keyframes glitch-loop-1 {
    0% { clip: rect(10px, 9999px, 35px, 0); }
    100% { clip: rect(60px, 9999px, 90px, 0); }
}

@keyframes glitch-loop-2 {
    0% { clip: rect(90px, 9999px, 130px, 0); }
    100% { clip: rect(10px, 9999px, 40px, 0); }
}

@keyframes blink { 
    0%, 100% { opacity: 1; } 50% { opacity: 0; } 
}

/* The Vertical Scanline */
.scanline {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    animation: scan-move 3s linear infinite;
    z-index: 10;
}

@keyframes scan-move { 
    0% { top: 0; } 
    100% { top: 100%; } 
}
:root {
    --red: #ff0000;
    --black: #000000;
}

.deck-section {
    background: var(--black);
    padding: 100px 20px;
    text-align: center;
    min-height: 800px;
}

.card-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* STACKED STATE (Playing Cards Fan) */
.is-stacked .amazon-card {
    position: absolute;
    left: 50%;
    transform-origin: bottom center;
    cursor: pointer;
}

/* Creating the Fan Effect for 10 cards */
.is-stacked .amazon-card:nth-child(1) { transform: translateX(-50%) rotate(-20deg); }
.is-stacked .amazon-card:nth-child(2) { transform: translateX(-50%) rotate(-15deg); }
.is-stacked .amazon-card:nth-child(3) { transform: translateX(-50%) rotate(-10deg); }
.is-stacked .amazon-card:nth-child(4) { transform: translateX(-50%) rotate(-5deg); }
.is-stacked .amazon-card:nth-child(5) { transform: translateX(-50%) rotate(0deg); }
.is-stacked .amazon-card:nth-child(6) { transform: translateX(-50%) rotate(5deg); }
.is-stacked .amazon-card:nth-child(7) { transform: translateX(-50%) rotate(10deg); }
.is-stacked .amazon-card:nth-child(8) { transform: translateX(-50%) rotate(15deg); }
.is-stacked .amazon-card:nth-child(9) { transform: translateX(-50%) rotate(20deg); }
.is-stacked .amazon-card:nth-child(10) { transform: translateX(-50%) rotate(25deg); }
/* RESET CONTAINER */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    min-height: 800px !important; /* Forces the section to have height */
    width: 100%;
    margin-top: 50px;
}

/* FORCE IMAGE VISIBILITY */
.amazon-card {
    width: 250px !important;
    height: 350px !important;
    position: relative !important; /* Change from absolute to see them all */
    display: block !important;
}

.card-inner {
    width: 100%;
    height: 100%;
}

.card-front {
    display: block !important;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-color: red; /* If you see RED, the URL is wrong. If you see NOTHING, the CSS is wrong */
    border: 2px solid white;
}
/* GRID STATE (2 Rows of 5) */
.is-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cards per row */
    gap: 20px;
    height: auto;
}

.is-grid .amazon-card {
    position: relative;
    left: 0;
    transform: none !important;
}

/* Card Styling */
.amazon-card {
    width: 220px;
    height: 320px;
    transition: all 0.5s ease;
}

.card-inner {
    width: 100%;
    height: 100%;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    position: relative;
}

.card-front {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.card-info {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    width: 100%;
    padding: 20px;
    color: white;
}

.amazon-card:hover {
    border-color: var(--red);
    box-shadow: 0 0 20px var(--red);
    z-index: 100;
}

.reset-btn {
    margin-top: 50px;
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    padding: 10px 30px;
    cursor: pointer;
    font-family: monospace;
    letter-spacing: 2px;
}
.story-section {
    background: #000;
    padding: 100px 5%;
    color: white;
    font-family: 'Helvetica Neue', sans-serif;
}

.story-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    gap: 60px;
    align-items: center;
}

/* Image Styling */
.story-visual {
    position: relative;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: sepia(20%) contrast(1.1);
}

.image-overlay-tint {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.2), transparent);
}

/* Content Styling */
.status-tag {
    color: var(--red);
    font-family: monospace;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.story-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
}

.red-text { color: #ff0000; }

.story-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
    max-width: 500px;
}

.story-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-family: monospace;
}

.signature { letter-spacing: 5px; color: white; }
.timestamp { color: #ff0000; }

/* Mobile Optimization */
@media (max-width: 900px) {
    .story-container { grid-template-columns: 1fr; }
    .story-visual { height: 400px; }
}
.amazon-card::after {
    content: '';
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 100px;
    height: 100px;
    /* ... rest of your flare styling ... */
}