/* Global Variables */
:root {
    --bg-dark: #0a0a0c;
    --bg-panel: rgba(255, 255, 255, 0.05);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;

    /* Vibrant Accents */
    --accent-primary: #FFD700;
    /* Electric Gold */
    --accent-secondary: #FF0055;
    /* Hot Pink */
    --accent-glow: rgba(255, 215, 0, 0.3);

    /* Fonts */
    --font-heading: 'League Gothic', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 0, 85, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

a:hover {
    color: var(--accent-secondary);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography Overrides */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}

h1 {
    font-size: 8rem;
    /* Even larger */
    line-height: 0.9;
    font-weight: 400;
    margin-bottom: 20px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8);
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

@keyframes pulsate {
    0% {
        text-shadow: 0 0 10px var(--accent-secondary), 0 0 20px var(--accent-secondary), 0 0 40px var(--accent-secondary);
    }

    100% {
        text-shadow: 0 0 20px var(--accent-secondary), 0 0 40px var(--accent-secondary), 0 0 80px var(--accent-secondary);
    }
}

h2 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    margin: 10px auto 0;
}

#triangle-btn,
.controls > button {
    touch-action: manipulation;
}


/* Start Animation Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOutOverlay 1s ease-out 1.5s forwards;
    pointer-events: none;
}

.intro-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86.6px solid var(--accent-primary);
    filter: drop-shadow(0 0 20px var(--accent-primary));
    animation: zoomTriangle 1.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes zoomTriangle {
    0% {
        transform: scale(0.1) rotate(0deg);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: scale(60) rotate(10deg);
        opacity: 0;
    }
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Main Content Fade In */
#main-content {
    opacity: 0;
    animation: fadeInContent 1s ease-out 1.2s forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    /* Darker, richer background base */
    background: radial-gradient(circle at center, #1a1a20 0%, #0a0a0c 100%);
}

/* Remove old pseudo-element */
.hero::before {
    display: none;
}

/* New Dynamic Background Container */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Large Rotating Triangle Background */
.hero-triangle-large {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    overflow: visible;
    transform-origin: center;
    /* Center translation handles position, this handles rotation */
    animation: rotateSlow 60s linear infinite;
    /* Ensure it behaves like an image/object in positioning */
    transform: translate(-50%, -50%);
}

.hero-triangle-large path,
.hero-triangle-large .triangle-handle {
    fill: none;
    stroke: rgba(255, 215, 0, 0.1);
    /* Visible Gold */
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    /* Soften ends of the gap */
}

@keyframes rotateSlow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateSlowReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Container stack order */
.hero .container {
    position: relative;
    z-index: 3;
}

.intro-claim {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 1.5s forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #ccc;
    font-weight: 400;
    line-height: 1.8;
}

/* Instrument Section */
section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.instructions {
    margin-bottom: 40px;
    font-size: 1rem;
    color: var(--text-muted);
    background: var(--bg-panel);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.triangle-container {
    margin: 50px auto;
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.triangle-visual {
    background: none;
    border: none;
    /* Custom Mallet Cursor */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><line x1="4" y1="28" x2="28" y2="4" stroke="white" stroke-width="2"/><circle cx="28" cy="4" r="3" fill="white"/></svg>') 28 4, pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    width: 100%;
    height: 100%;
}

.triangle-visual:hover {
    transform: scale(1.05);
}

.triangle-visual:focus-visible {
    filter: drop-shadow(0 0 15px var(--accent-secondary));
}

.triangle-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    transition: filter 0.3s;
}

.triangle-shape {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 6;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.triangle-handle-visual {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 6;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* Hit Animation */
.triangle-visual.hit .triangle-svg {
    animation: vibrate 0.3s linear infinite;
    filter: drop-shadow(0 0 40px var(--accent-primary));
}

.triangle-visual.hit .triangle-shape {
    stroke: #fff;
    /* Flash white on hit */
}

@keyframes vibrate {
    0% {
        transform: translate(0) rotate(0);
    }

    20% {
        transform: translate(-3px, 3px) rotate(-2deg);
    }

    40% {
        transform: translate(-3px, -3px) rotate(2deg);
    }

    60% {
        transform: translate(3px, 3px) rotate(0deg);
    }

    80% {
        transform: translate(3px, -3px) rotate(2deg);
    }

    100% {
        transform: translate(0) rotate(0);
    }
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.control-btn {
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.control-btn.secondary {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.control-btn.secondary:hover {
    color: #fff;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Playlist Section */
.section-playlist {
    padding: 100px 0;
}

.table-responsive {
    overflow-x: auto;
    background: var(--bg-panel);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: left;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

caption {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: left;
    color: var(--text-muted);
}

th {
    text-align: left;
    padding: 15px 20px;
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

td {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-weight: 600;
    color: #fff;
}

tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.08);
}

.affiliate {
    color: var(--text-muted);
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.affiliate:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    text-decoration: none;
}

.note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 20px;
    font-style: italic;
}

/* Videos Section */
.section-videos {
    padding: 80px 0 120px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.video-card {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.2);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 0, 85, 0.2), rgba(255, 215, 0, 0.2));
    opacity: 0.5;
}

.play-icon {
    font-size: 4rem;
    color: #fff;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.video-card:hover .play-icon {
    transform: scale(1.2);
    color: var(--accent-primary);
}

.video-card h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 2rem;
}

.video-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #intro-overlay {
        display: none;
    }

    #main-content {
        opacity: 1;
        animation: none;
    }

    .triangle-visual.hit .triangle-svg {
        animation: none;
        opacity: 0.7;
    }

    .triangle-visual,
    .control-btn,
    .video-card,
    a {
        transition: none;
    }

    .triangle-visual:hover,
    .video-card:hover {
        transform: none;
    }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    .triangle-container {
        width: 250px;
        height: 250px;
    }

    .control-btn {
        padding: 10px 20px;
        font-size: 1.2rem;
    }

    th,
    td {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* --- Science Section --- */
.section-science {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg-surface);
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.science-card {
    background: var(--bg-dark);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--accent-primary);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.science-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'League Gothic', sans-serif;
    font-size: 2.5rem;
    /* Increased size */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.science-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* --- Manifesto Section --- */
.section-manifesto {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg-surface-2, #1a1a1a);
    border-top: 1px solid var(--border-color);
}

.section-manifesto h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.section-manifesto .creed {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-family: 'League Gothic', sans-serif;
    letter-spacing: 1px;
    color: var(--text-primary);
}
