/* =========================================
   CORE VARIABLES (THEME CONFIGURATION)
   ========================================= */
:root {
    --bg-color: #0A0A0A;
    /* Deep Void Black */
    --surface-color: #121212;
    /* Dark Surface Grey */
    --text-main: #F0F2F5;
    /* High-Vis Off-White */
    --text-muted: #9CA3AF;
    /* Technical Muted Grey */
    --border-color: #374151;
    /* Subtle Interface Lines */
    --accent-red: #FF3333;
    /* High-Vis Tactical Red */

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* =========================================
   GLOBAL RESETS & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    padding: 2rem;
    /* subtle blueprint grid background */
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0 2rem 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.section-header::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background-color: var(--text-main);
}

/* =========================================
   BENTO GRID SYSTEM
   ========================================= */
.bento-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.bento-card {
    background: var(--surface-color);
    border: 2px solid var(--text-main);
    /* Sharp, bold borders */
    padding: 2rem;
    position: relative;
    transition: all 0.1s ease-out;
    /* Snappy, industrial transition */
    overflow: hidden;
}

/* Decal System (Fake data tags in corners) */
.bento-card::before {
    content: attr(data-label);
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--border-color);
}

/* Interactive Hover State */
.bento-card.interactive:hover {
    background-color: var(--accent-red);
    color: var(--surface-color);
    border-color: var(--text-main);
    transform: translateY(-4px);
    box-shadow: 8px 8px 0px var(--text-main);
    cursor: pointer;
}

.bento-card.interactive:hover .mono-tag,
.bento-card.interactive:hover p,
.bento-card.interactive:hover::before {
    color: var(--surface-color);
}

/* =========================================
   SPECIFIC SECTIONS
   ========================================= */

/* Hero Identity */
.hero {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--text-main);
    color: var(--surface-color);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
}

.hero h2 {
    color: var(--accent-red);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 2s infinite;
}

/* About Section */
.about {
    grid-column: span 8;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Contact & Socials */
.contact {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-link {
    display: inline-block;
    background: var(--bg-color);
    border: 2px solid var(--text-main);
    padding: 1rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: auto;
}

.social-btn {
    border: 2px solid var(--border-color);
    padding: 0.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.1s;
}

.social-btn:hover {
    background: var(--text-main);
    color: var(--surface-color);
    border-color: var(--text-main);
}

/* Media Grids (Videos, Thumbnails, etc) */
.media-grid {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.media-grid.thumb-grid {
    grid-template-columns: repeat(5, 1fr);
}

.media-grid.code-grid {
    grid-template-columns: repeat(3, 1fr);
}

.media-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.media-box {
    background: var(--border-color);
    aspect-ratio: 16/9;
    width: 100%;
    border: 2px solid var(--text-main);
    position: relative;
    overflow: hidden;
    transition: 0.1s;
}

/* Shorts are vertical */
.shorts-grid .media-box {
    aspect-ratio: 9/16;
}

.media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    /* Fits the sterile vibe */
    transition: 0.1s;
}

.media-item:hover .media-box {
    border-color: var(--accent-red);
    box-shadow: 4px 4px 0px var(--accent-red);
}

.media-item:hover img {
    filter: grayscale(0%);
    /* Color returns on hover */
}

.media-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Animations & Responsiveness */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .about {
        grid-column: span 12;
    }

    .contact {
        grid-column: span 12;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-grid.thumb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .media-grid,
    .media-grid.thumb-grid,
    .media-grid.code-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MODAL OVERLAY
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    /* Heavy Black with opacity */
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--accent-red);
    box-shadow: 8px 8px 0px var(--text-main);
    animation: zoomIn 0.2s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--surface-color);
    font-size: 40px;
    font-weight: 900;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-red);
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
