:root {
    --primary: #1a1a1a;
    --secondary: #000000;
    --accent: #ff0000;
    --dark: #0a0a0a;
    --light: #e6e6e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-bottom: 2px solid var(--accent);
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(255, 138, 0, 0.5); }
    to { text-shadow: 0 0 15px rgba(229, 46, 113, 0.8); }
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    background-color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

main {
    padding-top: 80px;
    min-height: 100vh;
}

section {
    padding: 4rem 5%;
    min-height: 100vh;
    display: none;
}

section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--accent), #990000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.home-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.home-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.home-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(10deg);
    transition: transform 0.5s ease;
}

.home-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon i {
    transition: text-shadow 0.3s ease;
}

.social-icon:hover i {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.social-icon {
    position: relative;
}

.social-icon::after {
    content: attr(data-platform);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.current-project {
    margin-top: 3rem;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}

.current-project h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.project-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,0,0,0.1) 0%, transparent 70%);
    animation: pulse 2s infinite;
    opacity: 0.5;
}

.social-icon:hover::after {
    opacity: 1;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 250px;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 2rem 0;
    width: 100%;
    opacity: 0.7;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
    line-height: 1.7;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-info {
    padding: 0.8rem;
    height: 70px;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

.game-info h3 {
    margin: 0;
    color: var(--accent);
    font-size: 1rem;
}

.terminal {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27c93f; }

.terminal-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 150px;
}

.terminal-line {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.blinking {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
    }

    .home-content {
        flex-direction: column;
    }

    .home-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: 2rem;
    }
}

h2 {
    font-size: 2rem;
    margin: 1.5rem 0;
    color: var(--accent);
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.show-card {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
}

.show-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.1);
}

.show-card[data-rank="1"] {
    border: 2px solid gold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.show-card[data-rank="2"] {
    border: 2px solid silver;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

.show-card[data-rank="3"] {
    border: 2px solid #cd7f32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.show-card[data-rank="1"] .rank-badge {
    background: gold;
    color: black;
}

.show-card[data-rank="2"] .rank-badge {
    background: silver;
    color: black;
}

.show-card[data-rank="3"] .rank-badge {
    background: #cd7f32;
    color: white;
}

.show-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.game-card:hover img,
.show-card:hover img {
    transform: scale(1.05);
}

.time-display {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
    animation: fadeIn 1s ease-out;
}

.time-text {
    display: inline;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

#chicago-time {
    color: var(--accent);
    font-weight: 500;
}

#time-emoji {
    animation: pulseSoft 2s infinite;
}

@keyframes pulseSoft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

canvas#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.song-container {
    max-width: 400px;
    margin: 1.5rem auto 2rem;
}

.song-embed-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,0,0,0.15);
    height: 80px;
}

.song-embed-wrapper iframe {
    border: none;
    margin-top: -10px;
    height: 100px;
}