﻿@font-face {
    font-family: 'PressStart2P';
    src: url('/fonts/PressStart2P-Regular.ttf') format('truetype');
    font-display: swap;
}

:root {
    --bg-dark: #0d0d0d;
    --bg-dark-alt: #1a1a1a;
    /* Popular modern “soft white” palette */
    --bg-light: #f9f9fb;
    --bg-light-alt: #e9e9ef;
    --text-dark: #e6e6e6;
    --text-light: #222;
    --accent: #d67b5d;
    --font-main: 'PressStart2P', monospace;
    --transition: 0.3s ease;
}


[data-theme="dark"] {
    --bg: var(--bg-dark);
    --bg-alt: var(--bg-dark-alt);
    --text: var(--text-dark);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --bg-alt: var(--bg-light-alt);
    --text: var(--text-light);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    margin: 0;
    transition: background-color var(--transition), color var(--transition);
    line-height: 1.6;
    font-size: 24px;
    background: repeating-conic-gradient(var(--bg) 0 25%, var(--bg-alt) 0 50%) 50% / 128px 128px;
}

    /* Optional subtle pixel grid background */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(214, 123, 93, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 123, 93, 0.05) 1px, transparent 1px);
        background-size: 32px 32px;
        pointer-events: none;
        z-index: 0;
    }

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.logo-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

    .logo-container img {
        height: 150px; /* larger and centered */
        image-rendering: pixelated;
        transition: transform 0.3s ease;
    }

        .logo-container img:hover {
            transform: scale(1.05);
        }

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    nav a {
        text-decoration: none;
        color: var(--text);
        transition: color var(--transition);
        font-size: 20px;
    }

#theme-toggle {
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--text);
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (max-width: 600px) {
    .logo-container img {
        height: 80px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    nav a {
        font-size: 9px;
    }

    main {
        padding: 0 1rem;
    }
}

section {
    margin: 4rem 0;
}

h2 {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h3 {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 0.5rem;
}

p, a {
    font-size: 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    text-align: justify;
}

    .card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

    .card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        pointer-events: none;
    }

[data-theme="dark"] .card {
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02) );
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .card {
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.65), rgba(240, 240, 240, 0.35) );
    border-color: rgba(200, 200, 200, 0.3);
}

footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    font-size: 18px;
}


body, header, main, footer {
    position: relative;
    z-index: 1;
}

.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

    .contact-icons img {
        width: 48px;
        height: 48px;
        image-rendering: pixelated;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .contact-icons a:hover img {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
