/* public/css/style.css */

/* CSS Variables */
:root {
    --main-color: #ff1500;
    --accent-color: #ffff00;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*body {*/
/*    background: #000;*/
/*    color: var(--main-color);*/
/*    font-family: 'VT323', monospace;*/
/*    overflow-x: hidden;*/
/*    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAACsSURBVHjajNGxDYNADIXhz6EgQkKiQGLGrEAHG2QDNmADNmADNmADGIEFKFAgISHxUiBuOEJy0ku8k77/2Wfbz8yWZSkA1lpnZnvMbFmWAqC1vgG4ALgBaKSUUik1CiG01joJIZ7OuUYI8QZw895fgyAYOedOQRB4XdfPvu+vURTt8jx/pGl6Y4yZlVKqqqp3HMenNE3vWus351xQVdU7DMM9gFNZlg9r7c/aXzrUL+m8n6kyAAAAAElFTkSuQmCC'), auto;*/
/*}*/

body {
    background: #000;
    color: var(--main-color);
    font-family: 'VT323', monospace;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Use min-height to ensure full viewport coverage */
    height: 100%; /* Ensure body inherits full height */
}

/* TV Boot Screen */
#tv-boot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    animation: tvFlicker 0.15s infinite;
}

@keyframes tvFlicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.crt-screen {
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #001a00 0%, #000 100%);
    border: none; /* Remove border for fullscreen effect */
    border-radius: 0; /* Remove border radius for fullscreen */
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 255, 0, 0.1);
}

.crt-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 2;
}

.crt-screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid #111;
    pointer-events: none;
    z-index: 1;
}

.static-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj4KICAgIDxmaWx0ZXIgaWQ9Im5vaXNlIj4KICAgICAgICA8ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSI0IiAvPgogICAgPC9maWx0ZXI+CiAgICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjEiLz4KPC9zdmc+');
    opacity: 0.1;
    animation: noise 1s steps(10) infinite;
    z-index: 3;
}

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

.boot-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 1;
    animation: logoFlicker 0.2s infinite, logoSequence 3s ease-in-out forwards;
}

.boot-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    drop-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.boot-logo.enhanced {
    animation: logoFlicker 0.15s infinite, logoSequenceEnhanced 3.5s ease-in-out forwards;
}

@keyframes logoSequenceEnhanced {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
        filter: brightness(2) contrast(1.5) hue-rotate(0deg);
    }
    10% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
        filter: brightness(1.5) contrast(1.3) hue-rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: brightness(1.2) contrast(1.1) hue-rotate(0deg);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: brightness(1.2) contrast(1.1) hue-rotate(0deg);
    }
    85% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05) rotate(1deg);
        filter: brightness(1.8) contrast(1.4) hue-rotate(30deg);
    }
    95% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.2) rotate(-2deg);
        filter: brightness(2.5) contrast(2) hue-rotate(60deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(0deg);
        filter: brightness(3) contrast(3) hue-rotate(90deg);
        visibility: hidden;
    }
}

@keyframes logoFlicker {
    0% { opacity: 1; }
    25% { opacity: 0.8; }
    50% { opacity: 1; }
    75% { opacity: 0.9; }
    100% { opacity: 1; }
}

@keyframes logoSequence {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
        visibility: hidden;
    }
}

.boot-sequence {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 4;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    visibility: hidden; /* Completely hide initially */
    animation: bootSequenceAppear 0.5s ease-in forwards;
    animation-delay: 3s; /* Appears after logo disappears */
}

@keyframes bootSequenceAppear {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -50%) translateY(20px);
    }
    1% {
        visibility: visible; /* Make visible at start of animation */
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) translateY(0);
    }
}

#boot-lines {
    min-height: 200px;
    line-height: 1.8;
    margin-bottom: 0;
    opacity: 0; /* Hide the text container initially */
    animation: bootLinesAppear 0.3s ease-in forwards;
    animation-delay: 3.5s; /* Delay slightly more than boot sequence */
}

@keyframes bootLinesAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


.boot-text {
    opacity: 0;
    animation: fadeInText 0.5s forwards;
    margin: 8px 0;
}

.boot-text:nth-child(1) { animation-delay: 3.5s; }


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

.press-start {
    margin-top: 50px;
    font-size: 24px;
    animation: blink 1s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.press-start:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

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

/* Main Site */
#main-site {
    display: none;
    width: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    position: relative;
}

.glitch-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03),
            rgba(0, 255, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 50%,
        transparent 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.logo {
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 10px;
    color: var(--main-color);
    text-shadow: 2px 2px 0 var(--main-color), -2px -2px 0 #ffffff;
    animation: glitchText 5s infinite;
}

@keyframes glitchText {
    0%, 94% {
        text-shadow: 2px 2px 0 var(--main-color), -2px -2px 0 #ffffff;
    }
    95% {
        text-shadow: 2px 2px 0 #ffffff, -2px -2px 0 var(--main-color);
    }
    96% {
        text-shadow: -2px 2px 0 var(--main-color), 2px -2px 0 #ffffff;
    }
    97% {
        text-shadow: 2px -2px 0 #ffffff, -2px 2px 0 var(--main-color);
    }
    98%, 100% {
        text-shadow: 2px 2px 0 var(--main-color), -2px -2px 0 #ffffff;
    }
}

.tagline {
    font-size: 16px;
    margin-top: 10px;
    color: var(--accent-color);
    opacity: 0.8;
}

nav {
    margin: 30px 0;
    text-align: center;
}

.nav-item {
    display: inline-block;
    margin: 0 20px;
    padding: 10px 20px;
    border: 2px solid var(--main-color);
    background: rgba(0, 255, 0, 0.1);
    color: var(--main-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 20px var(--main-color);
}

.nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-item:hover::before {
    left: 100%;
}

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

.content-box {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--main-color);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--main-color), #ff00ff, #00ffff, var(--main-color));
    z-index: -1;
    /*animation: borderAnimation 3s linear infinite;*/
    opacity: 0.5;
}

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

.content-box h2 {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.content-box p {
    color: var(--main-color);
    line-height: 1.6;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
}

.image-glitch {
    width: 100%;
    background: #000;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.image-glitch img {
    width: 100%;
    height: auto; /* Let image keep its natural aspect ratio */
    display: block; /* Removes any inline spacing */
    filter: brightness(1.2) contrast(1.2);
}

.image-glitch::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            0deg,
            rgba(255, 0, 255, 0.03),
            rgba(255, 0, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
    );
    pointer-events: none;
}

.video-container {
    aspect-ratio: 16/9;
    background: #000;
    border: 2px solid var(--main-color);
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.video-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9InN0YXRpYyI+CiAgICAgIDxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjkiIG51bU9jdGF2ZXM9IjQiIC8+CiAgICA8L2ZpbHRlcj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI3N0YXRpYykiIG9wYWNpdHk9IjAuMDgiLz4KPC9zdmc+');
    opacity: 0.3;
    z-index: 1;
    animation: static 1s steps(10) infinite;
}

@keyframes static {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, -100%); }
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--main-color);
    z-index: 0;
}

footer {
    text-align: center;
    padding: 50px 0;
    margin-top: 100px;
    border-top: 1px solid var(--main-color);
    position: relative;
}

.footer-text {
    color: var(--main-color);
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.member-section {
    margin: 50px 0;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.member-card {
    background: rgba(0, 50, 0, 0.5);
    border: 1px solid var(--main-color);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.member-card:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    text-decoration: none;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 2px solid var(--main-color);
    transition: all 0.3s ease;
}

.member-card:hover .member-avatar {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.member-name {
    color: var(--accent-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.member-role {
    color: var(--main-color);
    font-size: 12px;
    opacity: 0.8;
}

.social-links {
    /*margin-top: 30px;*/
    margin-bottom: 30px;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 15px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--main-color);
    color: #000;
}

/* Admin Panel */
#admin-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--main-color);
    padding: 30px;
    z-index: 1000;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    cursor: grab;
}

.admin-title {
    font-size: 24px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.close-admin {
    font-size: 24px;
    color: var(--main-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-admin:hover {
    color: #ff00ff;
    transform: rotate(90deg);
}

.admin-section {
    margin-bottom: 30px;
}

.admin-section h3 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: var(--main-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.btn {
    padding: 10px 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--main-color);
    color: var(--main-color);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
}

.btn:hover {
    background: var(--main-color);
    color: #000;
}

.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--main-color);
    color: var(--main-color);
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 999;
}

.admin-toggle:hover {
    background: var(--main-color);
    color: #000;
}

/* Animations */
@keyframes tvTurnOff {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1, 0.001);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes glitchImage {
    0% {
        filter: brightness(1.2) contrast(1.2) hue-rotate(0deg);
        transform: translateX(0);
    }
    25% {
        filter: brightness(1.5) contrast(1.5) hue-rotate(90deg);
        transform: translateX(-5px);
    }
    50% {
        filter: brightness(0.8) contrast(1.3) hue-rotate(180deg);
        transform: translateX(5px);
    }
    75% {
        filter: brightness(1.1) contrast(1.1) hue-rotate(270deg);
        transform: translateX(-3px);
    }
    100% {
        filter: brightness(1.2) contrast(1.2) hue-rotate(360deg);
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Cursor Trail */
.cursor-trail {
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 32px;
        letter-spacing: 5px;
    }

    .boot-logo img {
        width: 120px;
        height: 120px;
    }
    
    .nav-item {
        margin: 5px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .content {
        grid-template-columns: 1fr;
    }
    
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #admin-panel {
        width: 95%;
        padding: 20px;
    }

    .boot-sequence {
        font-size: 12px;
        padding: 0 20px;
    }

    .press-start {
        font-size: 20px;
        margin-top: 30px;
    }

    .press-start {
        top: 220px; /* Adjusted for smaller text on mobile */
        font-size: 20px;
    }

    .press-start.bottom-positioned {
        bottom: 15vh;
    }
}

@media (max-width: 480px) {
    .boot-sequence {
        font-size: 11px;
    }

    .boot-logo img {
        width: 100px;
        height: 100px;
    }

    #boot-lines {
        min-height: 140px;
    }

    .press-start {
        top: 200px;
        font-size: 18px;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none;
    }
}