
:root {
    --bg-color: #080312;
    --panel-bg: rgba(18, 10, 38, 0.85);
    --neon-pink: #ff007f;
    --neon-cyan: #00f3ff;
    --neon-yellow: #ffee00;
    --text-color: #e0f7fc;
    --border-color: #4a2b74;
}

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

body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 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.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 1000;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 0, 127, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    line-height: 1.4;
    padding-bottom: 3rem;
}

h1, h2, h3, h4, .pixel-font {
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(8, 3, 18, 0.9);
    border-bottom: 3px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1rem;
    color: var(--neon-pink);
    text-shadow: 2px 2px var(--neon-cyan);
    text-decoration: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1.2rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px var(--neon-yellow);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    background: var(--panel-bg);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
    margin: 2rem 0;
    position: relative;
}

.hero h1 {
    font-size: 2rem;
    color: #fff;
    text-shadow: 3px 3px var(--neon-pink), -2px -2px var(--neon-cyan);
    margin-bottom: 1rem;
}

.subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--neon-yellow);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.4rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.retro-btn {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    padding: 0.8rem 1.2rem;
    color: #000;
    background: var(--neon-cyan);
    border: 2px solid #fff;
    box-shadow: 4px 4px 0px var(--neon-pink);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.1s;
    cursor: pointer;
    text-align: center;
}

.retro-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--neon-pink);
    background: var(--neon-yellow);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--neon-cyan);
    box-shadow: 4px 4px 0px var(--neon-yellow);
}

.btn-secondary:hover {
    background: var(--neon-pink);
    color: #fff;
    box-shadow: 6px 6px 0px var(--neon-cyan);
}

section {
    margin: 3rem 0;
}

.section-title {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    text-shadow: 2px 2px var(--border-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "►";
    color: var(--neon-pink);
}

.game-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-card {
    background: var(--panel-bg);
    border: 2px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .game-card {
        grid-template-columns: 1fr;
    }
}

.game-media {
    border: 2px dashed var(--neon-cyan);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    overflow: hidden;
    position: relative;
}

.game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info h3 {
    font-size: 1.1rem;
    color: var(--neon-yellow);
    margin-bottom: 0.8rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: var(--border-color);
    color: var(--neon-cyan);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--neon-cyan);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.skill-box {
    background: var(--panel-bg);
    border: 1px solid var(--neon-pink);
    padding: 1rem;
}

.skill-box h4 {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

/* Software Proficiency Layout */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.software-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    text-align: center;
}

    .software-card p {
        font-family: 'Press Start 2P', monospace;
        font-size: 0.6rem;
        color: var(--neon-cyan);
        margin-top: 0.6rem;
    }

.software-icon {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px; /* Smooths hard edges on JPG images */
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 6px rgba(0, 243, 255, 0.3);
    transition: transform 0.2s ease;
}

.software-card:hover .software-icon {
    transform: scale(1.1);
    border-color: var(--neon-yellow);
    box-shadow: 0 0 10px var(--neon-yellow);
}

.detail-header {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 1rem;
}

.detail-header h1 {
    font-size: 2rem;
    color: var(--neon-pink);
    text-shadow: 2px 2px var(--neon-cyan);
    margin-bottom: 1rem;
}

.detail-banner {
    width: 70%; /* Adjust percentage or use pixel value like 700px */
    max-width: 800px; /* Prevents it from getting too large on big screens */
    height: 350px;
    margin: 0 auto 2rem auto; /* Top 0, Right AUTO, Bottom 2rem, Left AUTO centers the block */
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping */
    transform: scale(1.15); /* Zoomed in default state */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Matching smooth ease */
}

.detail-banner:hover img {
    transform: scale(0.95);
    cursor: pointer;
}

.role-panel {
    background: var(--panel-bg);
    border: 1px solid var(--neon-yellow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.role-panel h3 {
    font-size: 0.9rem;
    color: var(--neon-yellow);
    margin-bottom: 1rem;
}

.role-panel ul {
    list-style-type: square;
    margin-left: 1.5rem;
    color: var(--text-color);
}

.role-panel li {
    margin-bottom: 0.5rem;
}

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

.gallery-item {
    border: 2px solid var(--neon-pink);
    background: #000;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.15);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item img:hover {
    transform: scale(0.9);
    cursor: pointer;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: var(--neon-cyan);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid var(--neon-pink);
}

.resume-box {
    background: var(--panel-bg);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.resume-info h3 {
    font-size: 1rem;
    color: var(--neon-yellow);
    margin-bottom: 0.5rem;
}

.resume-info p {
    color: var(--text-color);
    font-size: 1.1rem;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--panel-bg);
    border-top: 2px solid var(--neon-pink);
}

footer h2 {
    font-size: 1rem;
    color: var(--neon-yellow);
    margin-bottom: 1rem;
}

/* Floating Retro Margin Decorations */
.decor-container {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none; /* Prevents icons from blocking mouse clicks */
    z-index: 50;
}

.left-side {
    left: 10px;
}

.right-side {
    right: 10px;
}

.decor-icon {
    position: absolute;
    font-size: 1.6rem;
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-cyan), 2px 2px 0px var(--neon-yellow);
    user-select: none;
    opacity: 0.85;
}

/* Floating Animations */
.float-slow {
    animation: floatGlow 4s ease-in-out infinite alternate;
}

.float-mid {
    animation: floatGlow 2.8s ease-in-out infinite alternate-reverse;
}

.float-fast {
    animation: floatGlow 2s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% {
        transform: translateY(0px) rotate(-8deg) scale(1);
    }

    100% {
        transform: translateY(-15px) rotate(12deg) scale(1.15);
    }
}

/* Hide clutter on small mobile screens to keep layout clean */
@media (max-width: 1100px) {
    .decor-container {
        display: none;
    }
}

/* Fullscreen Retro Image Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 3, 18, 0.95);
    backdrop-filter: blur(4px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
    object-fit: contain;
}

#modal-caption {
    margin-top: 1rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: var(--neon-yellow);
    text-shadow: 2px 2px var(--neon-pink);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--neon-pink);
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

.modal-close:hover {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
}