/* ==========================================
   LINKS PAGE - COLOR VARIABLES
========================================== */

:root {
    --bg: #121212;
    --card: #1e1e1e;

    --text: #f5f5f5;
    --muted: #b8c0cc;

    --primary: #4304a8;
    --primary-dark: #93c5fd;

    --border: #333333;

    --shadow: rgba(0, 0, 0, 0.35);
}


/* ==========================================
   GLOBAL RESET
========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    line-height: 1.7;

    color: var(--text);

    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        linear-gradient(
            to right,
            rgba(96, 165, 250, 0.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(96, 165, 250, 0.06) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at top left,
            rgba(96, 165, 250, 0.14),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            var(--bg),
            var(--bg)
        );

    background-size:
        auto,
        20px 20px,
        20px 20px,
        auto,
        auto;
}


/* ==========================================
   HEADER AND NAVIGATION
========================================== */

.site-nav {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 4px;

    padding: 24px 20px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
}

.site-nav a {
    display: inline-block;

    margin: 0 6px 6px;

    padding: 8px 14px;

    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;

    border-radius: 999px;

    background: rgba(
        255, 255, 255, 0.14
    );

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.site-nav a:hover {
    background: rgba(
        255, 255, 255, 0.24
    );

    transform: translateY(-2px);
}

.site-nav a[aria-current="page"] {
    background: rgba(
        255, 255, 255, 0.3
    );
}

.site-nav a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}


/* ==========================================
   MAIN PAGE CONTAINER
========================================== */

.container {
    width: 100%;

    max-width: 650px;

    margin: 40px auto;

    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: 0 10px 30px var(--shadow);

    text-align: center;
}


/* ==========================================
   PROFILE SECTION
========================================== */

.profile {
    margin-bottom: 30px;
}

.profile-image {
    display: block;

    width: 130px;
    height: 130px;

    margin: 0 auto 20px;

    border-radius: 50%;

    object-fit: cover;

    border: 4px solid var(--primary);

    box-shadow: 0 8px 24px var(--shadow);
}

.profile h1 {
    font-size: 2.5rem;

    margin-bottom: 10px;

    color: var(--text);
}

.description {
    color: var(--muted);

    font-size: 1rem;

    line-height: 1.7;

    max-width: 450px;

    margin: 0 auto;
}


/* ==========================================
   LINKS SECTION
========================================== */

.links-section {
    width: 100%;
}

.links {
    display: flex;
    flex-direction: column;

    gap: 14px;

    max-width: 450px;

    margin: 0 auto;
}


/* ==========================================
   LINK BUTTONS
========================================== */

.link-button {
    display: block;

    width: 100%;

    padding: 16px 20px;

    background: var(--primary);

    color: white;

    text-decoration: none;

    border-radius: 999px;

    border: 1px solid transparent;

    font-size: 16px;
    font-weight: bold;

    box-shadow: 0 5px 15px var(--shadow);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.link-button:hover {
    background: #5b16c8;

    transform: translateY(-3px);

    box-shadow: 0 10px 24px var(--shadow);
}

.link-button:active {
    transform: translateY(0);
}

.link-button:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 4px;
}


/* ==========================================
   FOOTER
========================================== */

footer {
    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 13px;

    text-align: center;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--primary-dark);

    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* ==========================================
   TABLET RESPONSIVENESS
========================================== */

@media (max-width: 768px) {

    .container {
        margin: 25px auto;

        width: calc(100% - 30px);

        padding: 28px 22px;
    }

    .profile h1 {
        font-size: 2rem;
    }

}


/* ==========================================
   MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 480px) {

    .site-nav {
        padding: 18px 10px;
    }

    .site-nav a {
        font-size: 12px;

        padding: 7px 11px;

        margin: 3px;
    }

    .container {
        margin: 20px auto;

        padding: 25px 18px;
    }

    .profile-image {
        width: 110px;
        height: 110px;
    }

    .profile h1 {
        font-size: 1.8rem;
    }

    .description {
        font-size: 14px;
    }

    .link-button {
        padding: 15px;

        font-size: 15px;
    }

}


/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .site-nav a,
    .link-button {
        transition: none;
    }

    .site-nav a:hover,
    .link-button:hover {
        transform: none;
    }

}