﻿/* Project: Elijah Taylor IT Portfolio */

/* Apply a natural box layout model to all elements */
*, *:before, *:after {
    box-sizing: border-box;
}

:root {
    /* --- NEW Abyssal Cyber Theme --- */
    --bg-color: #000105; 
    --nav-bg: #000a18;   
    --text-main: #00bbff; 
    --accent-bright: #ffffff; 
    --scan-color: rgba(0, 187, 255, 0.25); 
    --font-data: 'Share Tech Mono', monospace; 
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
    font-family: var(--font-data);
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
}

/* --- Matrix Animation Logic --- */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00050a !important;
    z-index: -1;
    display: flex;
    justify-content: space-between;
}

.rain-side {
    display: flex;
    gap: 10px;
    padding: 0 10px;
}

.matrix-column {
    width: 20px;
    color: var(--text-main) !important;
    font-size: 1.2rem;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    user-select: none;
    opacity: 0.3;
    animation: matrix-rain 5s linear infinite;
}

.matrix-column::before {
    content: "日Hﾊﾐﾋｰｳｼﾅﾓﾆｻﾜﾂｵﾘｱﾎﾃﾏｹﾒｴｶｷｸｹｺｿﾀﾁﾂﾃﾄﾅﾆﾇﾈﾉﾊﾋﾌﾍﾎﾏﾐﾑﾒﾓﾔﾕﾖﾗﾘﾙﾚﾛﾜﾝ1234567890";
}

.matrix-column:nth-child(2n) { animation-duration: 3.5s; opacity: 0.15; }
.matrix-column:nth-child(3n) { animation-duration: 7s; opacity: 0.25; }

@keyframes matrix-rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.site-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 30px 0;
    background: var(--nav-bg);
    border-bottom: 2px solid var(--text-main);
}

header h1 {
    font-size: 2.2rem;
    margin: 0;
    text-shadow: 0 0 10px var(--text-main);
    color: var(--text-main);
}

nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: rgba(0, 26, 53, 0.95);
    border-bottom: 2px solid var(--text-main);
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
}

nav li a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    padding: 20px 25px;
    text-transform: uppercase;
}

nav li a:hover {
    color: #ffffff;
    background-color: rgba(0, 119, 255, 0.1);
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 10px;
}

.terminal-window {
    background: rgba(1, 10, 21, 0.9);
    padding: 30px;
    border: 1px solid var(--text-main);
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.2);
}

.bio-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    max-width: 950px; 
    margin-left: auto;
    margin-right: auto; 
}

.bio-text-side {
    text-align: left !important;
}

#typewriter-container {
    white-space: pre-wrap;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-main);
    text-align: left !important;
    display: block;
    width: 100%;
}

.bio-layout .bio-image-side {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.bio-layout .profile-photo-side {
    width: 100%;
    border: 1px solid var(--text-main);
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.2);
}

.img-caption {
    font-size: 0.8rem;
    margin-top: 10px;
    color: var(--text-main);
    opacity: 0.8;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px auto;
    max-width: 1000px; 
    justify-content: center;
}

.flex-center-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right:auto;
}

.image-grid img, 
.flex-center-row img {
    width: 100%;
    max-width: 400px; 
    height: 250px !important;   
    object-fit: cover !important;
    border: 1px solid var(--text-main);
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.2);
    transition: transform 0.4s ease, border 0.3s;
    cursor: crosshair;
}

.top-profile img {
    max-width: 320px !important;
    height: auto !important;
}

.image-grid img:hover,
.flex-center-row img:hover {
    transform: scale(1.2) !important;
    z-index: 100;
    border: 2px solid #ffffff;
    box-shadow: 0 0 40px var(--text-main);
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    margin: 40px 0;
    align-items: stretch;
}

.hobby-item {
    background: rgba(1, 10, 21, 0.6);
    border: 1px solid var(--text-main);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    height: auto; 
    box-sizing: border-box;
    overflow: hidden;
}

.hobby-item .swim-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    box-sizing: border-box;
    object-fit: cover;
    border: 1px solid rgba(0, 119, 255, 0.5);
    margin-bottom: 10px;
}

.game-gif-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
    height: auto; 
    margin-bottom: 10px;
}

.game-gif-container .terminal-img {
    width: 100%;
    height: 180px; 
    object-fit: cover; 
    border: 1px solid rgba(0, 119, 255, 0.5);
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease; 
}

.game-gif-container .terminal-img:hover {
    transform: scale(1.1); 
    z-index: 10;
    position: relative;
    border-color: #ffffff;
    box-shadow: 0 0 15px var(--text-main);
}

.slider {
    width: 100%;
    aspect-ratio: 1 / 1; 
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 119, 255, 0.5);
    margin-bottom: 10px;
}

.slide {
    width: 100%;
    height: 100%;
}

.slide .terminal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hobby-item img:hover, .slider:hover {
    border-color: #ffffff;
    box-shadow: 0 0 15px var(--text-main);
    cursor: crosshair;
}

/* --- Status Bar & Footer --- */
.status-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #00050a;
    border-top: 1px solid var(--text-main);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    color: var(--text-main);
    z-index: 1100;
}

footer {
    text-align: center;
    padding: 20px 0 80px 0; 
    background: rgba(1, 10, 21, 0.9);
    border-top: 1px solid var(--text-main);
    color: var(--text-main);
}

footer a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--text-main);
}

/* Visibility classes for Desktop/Mobile Footer toggle */
.desktop-only { display: inline-block; }
.mobile-only { display: none; }
.separator { display: none; } /* Hidden because only 1 item shows at a time */

/* Terminal Settings */
.terminal-header-accent {
    border-bottom: 1px solid var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.text-yellow { color: #ffff00; }
.text-cyan { color: #00fff9; }
.text-gray-comment { color: #888; font-style: italic; }
.spacing-top { margin-top: 30px; }
.briefing-accent {
    margin-top: 30px;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding-top: 20px;
}

.flex-center-row .hobby-item .swim-img {
    height: 550px !important; 
    aspect-ratio: 9 / 16 !important; 
    width: auto !important; 
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.flex-center-row .hobby-item {
    height: auto !important;
    min-height: 650px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* --- Mobile View Cleanup --- */
@media screen and (max-width: 850px) {
    /* Toggle visibility for footer links */
    .desktop-only { display: none; }
    .mobile-only { display: inline-block; }

    .terminal-header, 
    .log-entry, 
    .log-line {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    
    .terminal-window {
        padding: 15px !important;
    }

    .bio-layout {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    
    .profile-photo-side {
        max-width: 250px !important; 
        height: auto !important;
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap !important;  
        justify-content: center !important; 
        gap: 5px;
    }
    
    nav li a {
        padding: 10px 12px !important; 
        font-size: 0.85rem !important; 
    }

    .image-grid img:hover,
    .game-gif-container .terminal-img:hover {
        transform: none !important; 
    } 

    .slider:hover,
    .flex-center-row img:hover {
        transform: scale(1.1) !important; 
        z-index: 50 !important;
        position: relative;
        border: 2px solid #ffffff !important;
        box-shadow: 0 0 15px var(--text-main) !important;
        cursor: crosshair;
    }

    .image-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; 
        gap: 20px !important; 
        padding: 0;
        margin: 30px 0 !important;
    }

    .flex-center-row {
        display: grid !important;
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
        margin: 30px 0 !important;
    }

    .flex-center-row img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .image-grid img, 
    .flex-center-row img {
        aspect-ratio: 16 / 9 !important; 
        height: auto !important;
        object-fit: cover;
    }

    .hobby-grid {
        grid-template-columns: 1fr !important; 
    }
        
    .hobby-item {
        height: auto !important; 
        margin-bottom: 20px;
    }
        
    .hobby-item .swim-img,
    .slider {
        height: 300px !important; 
    }
         
    .hobby-item .game-gif-container {
        display: grid !important;
        grid-template-columns: 1fr !important; 
        height: auto !important;
        gap: 12px !important;
    }

    .game-gif-container .terminal-img {
        height: 200px !important;
        width: 100% !important;
        object-fit: cover;
    }

    .top-profile img {
        max-width: 100% !important;
        height: auto !important; 
    }
    
    .flex-center-row .hobby-item .swim-img {
        height: 400px !important;
        aspect-ratio: 9 / 16 !important;
    }
    
    .flex-center-row .hobby-item {
        width:100%;
        min-height: auto;
    }
}

/* --- Typewriter Cursor Effect --- */
.typewriter-text::after {
    content: "|";
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    font-weight: bold;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: var(--text-main); }
}