/* ============================================
   SCARY TECHDOM EXPOSURE WEBSITE
   ============================================ */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0a;
    --terminal-bg: rgba(10, 10, 10, 0.95);
    --primary-red: #ff0040;
    --dim-red: #cc0033;
    --accent-red: #ff0040;
    --warning-red: #ff2020;
    --text-white: #f0f0f0;
    --border-color: #ff004050;
    --glow-red: 0 0 10px #ff0040, 0 0 20px #ff0040, 0 0 30px #ff0040;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   CODE RAIN BACKGROUND
   ============================================ */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* ============================================
   SCANLINE OVERLAY
   ============================================ */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
}

.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 0, 64, 0.03) 50%,
            transparent 100%);
    animation: scanline-move 8s linear infinite;
}

@keyframes scanline-move {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* ============================================
   TERMINAL HEADER
   ============================================ */
.terminal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.terminal-buttons span:hover {
    transform: scale(1.2);
}

.btn-red {
    background: #ff5f56;
}

.btn-yellow {
    background: #ffbd2e;
}

.btn-green {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.9rem;
    color: var(--dim-red);
    flex: 1;
    text-align: center;
    animation: blink-cursor 1s infinite;
}

/* ============================================
   TERMINAL BODY
   ============================================ */
.terminal-body {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* ============================================
   WARNING BANNER
   ============================================ */
.warning-banner {
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--accent-red);
    text-shadow: var(--glow-red);
    padding: 15px;
    margin-bottom: 30px;
    border: 2px solid var(--accent-red);
    background: rgba(255, 0, 64, 0.1);
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   GLITCH EFFECT
   ============================================ */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: #ff0040;
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: #00ffff;
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(-2px, 2px);
    }
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

/* Profile Image */
.profile-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    filter: grayscale(30%) contrast(1.1);
    animation: image-flicker 5s infinite;
}

@keyframes image-flicker {

    0%,
    97%,
    100% {
        opacity: 1;
        filter: grayscale(30%) contrast(1.1);
    }

    98% {
        opacity: 0.8;
        filter: grayscale(50%) contrast(1.3) brightness(1.2);
    }

    99% {
        opacity: 0.9;
        filter: grayscale(20%) contrast(1);
    }
}

.image-frame {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--primary-red);
    border-radius: 5px;
    box-shadow: var(--glow-red);
    pointer-events: none;
    animation: frame-pulse 3s ease-in-out infinite;
}

@keyframes frame-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-red);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-red), 0 0 40px var(--primary-red);
    }
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(255, 0, 64, 0.03) 0px,
            rgba(255, 0, 64, 0.03) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
}

/* Profile Name */
.profile-name {
    font-family: 'VT323', monospace;
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    letter-spacing: 5px;
}

/* Profile Description */
.profile-description {
    max-width: 500px;
    text-align: center;
    color: var(--text-white);
    font-size: 1rem;
    line-height: 1.6;
    padding: 15px;
    border-left: 3px solid var(--primary-red);
    background: rgba(255, 0, 64, 0.05);
    margin-bottom: 20px;
}

/* ============================================
   INFO TERMINAL
   ============================================ */
.info-terminal {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.terminal-line {
    color: var(--dim-red);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.prompt {
    color: var(--primary-red);
    margin-right: 10px;
}

.typing-effect::after {
    content: '█';
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 0, 64, 0.1);
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.info-item:nth-child(1) {
    animation-delay: 0.1s;
}

.info-item:nth-child(2) {
    animation-delay: 0.2s;
}

.info-item:nth-child(3) {
    animation-delay: 0.3s;
}

.info-item:nth-child(4) {
    animation-delay: 0.4s;
}

.info-item:nth-child(5) {
    animation-delay: 0.5s;
}

.info-item:nth-child(6) {
    animation-delay: 0.6s;
}

.info-item:nth-child(7) {
    animation-delay: 0.7s;
}

.info-item:nth-child(8) {
    animation-delay: 0.8s;
}

.info-item:nth-child(9) {
    animation-delay: 0.9s;
}

.info-item:nth-child(10) {
    animation-delay: 1.0s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-label {
    color: var(--accent-red);
    min-width: 100px;
    font-weight: bold;
}

.info-value {
    color: var(--text-white);
    word-break: break-all;
}

/* ============================================
   GALLERY BUTTON
   ============================================ */
.gallery-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 20px 30px;
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 64, 0.2), transparent);
    transition: left 0.5s ease;
}

.gallery-btn:hover::before {
    left: 100%;
}

.gallery-btn:hover {
    background: rgba(255, 0, 64, 0.1);
    box-shadow: var(--glow-red);
    transform: scale(1.02);
}

.btn-icon {
    font-size: 1.2rem;
    animation: pulse-icon 1s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* ============================================
   GALLERY MODAL
   ============================================ */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modal-fade-in 0.3s ease;
}

.gallery-modal.active {
    display: flex;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.gallery-title {
    flex: 1;
    color: var(--dim-red);
    font-size: 0.9rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s;
}

.close-btn:hover {
    color: #fff;
    text-shadow: var(--glow-red);
}

.gallery-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-content::-webkit-scrollbar {
    width: 8px;
}

.gallery-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.gallery-content::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
    box-shadow: var(--glow-red);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.gallery-item:hover img,
.gallery-item:hover video {
    filter: grayscale(0%);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 60%,
            rgba(255, 0, 64, 0.2) 100%);
    pointer-events: none;
}

.gallery-item.video::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 10;
    pointer-events: none;
}

/* Empty Gallery Message */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--dim-red);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border: 2px solid var(--primary-red);
    box-shadow: var(--glow-red);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--accent-red);
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.2s;
}

.lightbox-close:hover {
    color: #fff;
    text-shadow: var(--glow-red);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .terminal-body {
        padding: 20px 15px;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }

    .info-label {
        min-width: 80px;
    }

    .gallery-content {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        padding: 10px 15px;
    }

    .terminal-title {
        font-size: 0.7rem;
    }

    .warning-banner {
        font-size: 1.2rem;
        padding: 10px;
    }

    .profile-image-container {
        width: 120px;
        height: 120px;
    }

    .gallery-btn {
        font-size: 1.2rem;
        padding: 15px 20px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}