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

@font-face {
    font-family: "MC Reg";
    src: url("fonts/mcreg.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "MC Reg", sans-serif;
    background: url("media/bg.png") center/cover fixed;
    overflow-x: hidden;
    color: white;
    min-height: 100vh;
}

/* MAIN */

.container {
    width: min(1000px, 90%);
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* WINDOWS */

.window {
    background: rgba(30, 30, 30, 0.92);
    border: 4px solid #555;
    box-shadow:
        0 0 0 4px #222,
        8px 8px 0 rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: slideInFade 0.5s ease-out forwards;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.window:hover {
    box-shadow:
        0 0 0 4px #222,
        12px 12px 0 rgba(0,0,0,0.5);
}

.window-top {
    background: linear-gradient(to right, #5a5a5a, #444);
    padding: 12px;
    border-bottom: 4px solid #222;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-top span {
    font-size: 1rem;
}

.buttons {
    display: flex;
    gap: 6px;
}

.buttons span {
    width: 14px;
    height: 14px;
    background: #999;
    border: 2px solid #222;
}

.window-content {
    padding: 30px;
}

/* HERO */

.hero .window-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.profile img {
    width: 150px;
    image-rendering: pixelated;
    border: 4px solid #666;
    background: #222;
}


.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 4px 4px #000;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

button {
    font-family: inherit;
    background: #6b6b6b;
    border: 4px solid #333;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

button:hover {
    transform: translateY(-3px);
    background: #7a7a7a;
    box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

button:active {
    transform: translateY(-1px);
}

/* MUSIC CONTROLS */

.music-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    width: auto;
    pointer-events: none;
}

.music-float-button {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    border: 4px solid #444;
    background: rgba(30, 30, 30, 0.95);
    color: #c0f3ff;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(0,0,0,0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.music-float-button:hover {
    transform: translateY(-2px);
    background: rgba(45, 45, 45, 0.98);
}

.music-icon {
    width: 28px;
    height: 28px;
    filter: brightness(1.2) saturate(1.4);
}

.music-controls {
    pointer-events: auto;
    position: absolute;
    right: 0;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 320px;
    max-width: min(92vw, 320px);
    padding: 16px;
    background: rgba(18, 18, 18, 0.96);
    border: 4px solid #444;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    border-radius: 18px;
    transform-origin: bottom right;
    animation: musicPop 0.26s ease-out;
}

@keyframes musicPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.music-info {
    font-size: 0.85rem;
    color: #9ecfff;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.seekbar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #444;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.seekbar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.2s;
}

.seekbar::-webkit-slider-thumb:hover {
    width: 18px;
    height: 18px;
    background: #66BB6A;
}

.seekbar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.2s;
}

.seekbar::-moz-range-thumb:hover {
    width: 18px;
    height: 18px;
    background: #66BB6A;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.play-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.toggle-btn {
    padding: 12px 20px;
    margin-top: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.volume-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #444;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    width: 14px;
    height: 14px;
    background: #66BB6A;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    width: 14px;
    height: 14px;
    background: #66BB6A;
}

/* ABOUT */

.about p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: rgba(70, 70, 70, 0.9);
    border: 2px solid #333;
    color: #a8ff9e;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.2s ease-out;
}

.hero-links a:hover {
    background: rgba(100, 100, 100, 0.95);
    color: #d2ffd8;
}

.section-grid {
    display: grid;
    gap: 20px;
}

.donate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .donate-grid {
        grid-template-columns: 1fr;
    }
}

#pc-specs .window-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#pc-specs .specs-grid,
#pc-specs .peripherals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pc-specs .peripherals-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#pc-specs .peripherals-title {
    display: inline-block;
    font-size: 0.95rem;
    color: #a8d7ff;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
}

#pc-specs .specs-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1px;
}

@media (max-width: 900px) {
    #pc-specs .specs-grid,
    #pc-specs .peripherals-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: rgba(40, 40, 40, 0.95);
    border: 3px solid #444;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 8px 8px 0 rgba(0,0,0,0.25);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #888;
    background: rgba(55, 55, 55, 0.98);
}

.card-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    image-rendering: pixelated;
    border: 2px solid #333;
    background: rgba(0,0,0,0.5);
    padding: 6px;
}

.card-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-title {
    font-size: 1.05rem;
    color: #c0f3ff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.card-meta {
    color: #c5d5ff;
    opacity: 0.88;
    line-height: 1.5;
}

.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px 14px;
    background: #2b5a5a;
    border: 3px solid #1f382f;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.card-link:hover {
    background: #3d7a7a;
    border-color: #2b5a5a;
}

.contact-card {
    grid-template-columns: auto 1fr;
}

.contact-card .card-link {
    display: none;
}

.contact-card .card-title {
    color: #d8c5ff;
}

.contact-card .card-meta a {
    color: #86c9ff;
}

.contact-card .card-meta a:hover {
    text-decoration: underline;
}

/* TERMINAL */

.terminal {
    background: #111;
    color: #5cff5c;
    font-family: monospace;
    line-height: 1.7;
}

/* MOBILE */

@media (max-width: 700px) {

    .hero .window-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-links {
        justify-content: center;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .card {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .card-link {
        justify-self: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

}

@media (max-width: 560px) {
    .music-float {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 16px;
        align-items: center;
        width: min(92vw, 340px);
    }

    .music-controls {
        min-width: 100%;
    }
}