
:root {
    --bg-dark: #001100;
    --phosphor-green: #33ff33;
    --cyan-accent: #66ffcc;
    --yellow-accent: #ffff66;
    --glow-blur: 10px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--phosphor-green);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('media/me.webp');
    background-size: 800px;
    background-position: bottom right;
    background-repeat: no-repeat;
    filter: sepia(0.3) hue-rotate(60deg) brightness(0.8);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(9, 17, 0, 0.5);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}


body, h1, h2, p, a {
    text-shadow: 0 0 var(--glow-blur) var(--phosphor-green);
}


.hero {
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.avatar {
    display: none;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.tagline {
    color: var(--cyan-accent);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.links a {
    color: var(--phosphor-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.links a:hover {
    color: var(--yellow-accent);
}

.separator {
    color: var(--cyan-accent);
}


.reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--cyan-accent);
    letter-spacing: 1px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.report-card {
    border: 2px solid var(--phosphor-green);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 17, 0, 0.3);
}

.report-card:hover {
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.4);
    transform: translateY(-2px);
}

.report-image {
    width: 100%;
    height: 260px;
    display: block;
    background: #000;
    border: none;
    overflow: hidden;
}

/* Image-specific styling */
img.report-image {
    object-fit: cover;
}

/* Iframe container - creates proper scaled space */
.report-image.iframe-container {
    position: relative;
    width: 208px;
    height: 260px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Iframe-specific styling for HTML reports */
iframe.report-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: top center;
    border: none;
    pointer-events: none;
    background: #000;
}

.report-info {
    padding: 1rem;
}

.report-date {
    font-size: 0.85rem;
    color: var(--cyan-accent);
    margin-bottom: 0.5rem;
}

.report-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.report-view-btn {
    flex: 1;
    background: transparent;
    color: var(--cyan-accent);
    text-decoration: none;
    border: 1px solid var(--cyan-accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-view-btn:hover {
    background: var(--cyan-accent);
    color: var(--bg-dark);
    text-shadow: none;
}

.report-link {
    display: inline-block;
    color: var(--phosphor-green);
    text-decoration: none;
    border: 1px solid var(--phosphor-green);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.report-link:hover {
    background: var(--phosphor-green);
    color: var(--bg-dark);
    text-shadow: none;
}


.about {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--cyan-accent);
    letter-spacing: 1px;
}

.about-content {
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--cyan-accent);
    font-weight: bold;
}

.highlight-alt {
    color: var(--yellow-accent);
    font-weight: bold;
}

.mission {
    font-weight: bold;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 255, 51, 0.3);
}


.terminal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(9, 9, 9, 1);
    border-top: 2px solid var(--phosphor-green);
    z-index: 1000;
}

.terminal-toggle {
    padding: 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.terminal-toggle:hover {
    background: rgba(51, 255, 51, 0.1);
}

#terminal-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

#terminal-icon.open {
    transform: rotate(180deg);
}

.blink {
    animation: blink 1s step-end infinite;
}

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

.terminal-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.terminal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('media/me.webp');
    background-size: 350px;
    background-position: bottom right;
    background-repeat: no-repeat;
    filter: sepia(0.3) hue-rotate(60deg) brightness(0.8);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}

.terminal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 17, 0, 0.5);
    pointer-events: none;
    z-index: 0;
}

.terminal-content.open {
    max-height: 75vh;
}

.terminal-output {
    padding: 1rem;
    height: calc(75vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.terminal-output div {
    margin: 0.3rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.terminal-input-line {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--phosphor-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.terminal-prompt {
    color: var(--cyan-accent);
    flex-shrink: 0;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--phosphor-green);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
    text-shadow: 0 0 10px var(--phosphor-green);
}

.terminal-input::placeholder {
    color: rgba(51, 255, 51, 0.4);
}


::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--phosphor-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-accent);
}


@media (min-width: 1400px) {
    body::before {
        background-size: 900px;
    }

    .terminal-content::before {
        background-size: 400px;
    }
}

@media (max-width: 1200px) {
    body::before {
        background-size: 600px;
    }

    .terminal-content::before {
        background-size: 300px;
    }
}

@media (max-width: 768px) {
    body::before {
        background-size: 400px;
    }

    .terminal-content::before {
        background-size: 200px;
    }

    .hero {
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .links {
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .terminal-content.open {
        max-height: 75vh;
    }

    .terminal-output {
        height: calc(75vh - 60px);
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .terminal-input-line {
        padding: 0.5rem 0.75rem;
    }

    .terminal-input {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body::before {
        background-size: 500px;
        background-position: center;
    }

    .terminal-content::before {
        background-size: 200px;
    }

    .terminal-output {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .terminal-input-line {
        padding: 0.5rem;
    }

    .terminal-prompt {
        font-size: 0.75rem;
    }

    .terminal-input {
        font-size: 0.75rem;
    }

    .terminal-toggle {
        font-size: 0.85rem;
    }
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal.open {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 17, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
    margin: 5vh auto;
    background: var(--bg-dark);
    border: 2px solid var(--phosphor-green);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(51, 255, 51, 0.3);
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 1px solid var(--phosphor-green);
    color: var(--phosphor-green);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    z-index: 2002;
}

.modal-close:hover {
    background: var(--phosphor-green);
    color: var(--bg-dark);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-image-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--phosphor-green);
}

.modal-image-container iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: top center;
    border-radius: 4px;
    border: 1px solid var(--phosphor-green);
    background: var(--bg-dark);
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-date {
    font-size: 0.9rem;
    color: var(--cyan-accent);
}

.modal-text {
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.modal-link {
    display: inline-block;
    color: var(--phosphor-green);
    text-decoration: none;
    border: 1px solid var(--phosphor-green);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.modal-link:hover {
    background: var(--phosphor-green);
    color: var(--bg-dark);
    text-shadow: none;
}


@media (max-width: 768px) {
    .modal-content {
        margin: 2vh 1rem;
        max-height: 96vh;
    }

    .modal-body {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
