/* =========================
   Base
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
            Inter,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;

    color: #fff;

    background:
            radial-gradient(
                    circle at 15% 15%,
                    rgba(75, 35, 210, .55),
                    transparent 30%
            ),
            radial-gradient(
                    circle at 85% 75%,
                    rgba(0, 90, 180, .35),
                    transparent 30%
            ),
            #151722;

    line-height: 1.6;
}

::selection {
    background: rgba(120, 90, 255, .35);
    color: white;
}

a {
    color: white;
    text-decoration: none;
}


/* =========================
   Reusable Glass
========================= */

.glass {
    border: 1px solid rgba(255, 255, 255, .12);

    background: rgba(255, 255, 255, .045);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
            0 15px 40px rgba(0, 0, 0, .2),
            inset 0 1px rgba(255, 255, 255, .06);

    border-radius: 24px;
}


/* =========================
   Header
========================= */

.header {
    width: min(1200px, 92%);
    margin: 20px auto;

    padding: 16px 24px;

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

    gap: 20px;
}

.header h1 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.header h1 span {
    opacity: .45;
}

.header nav {
    display: flex;
    gap: 24px;
}

.header nav a {
    opacity: .8;
    transition: .25s ease;
}

.header nav a:hover {
    opacity: 1;
    color: #b9a7ff;
}


/* =========================
   Main
========================= */

main {
    width: min(1200px, 92%);
    margin: auto;
}

section {
    margin: 24px 0;
}


/* =========================
   Hero
========================= */

.hero {
    min-height: 430px;

    padding: 45px;

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

    gap: 50px;
}

.hero-text {
    flex: 1;
}

.eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #aaa;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero h2 span {
    color: #a994ff;
}

.description {
    max-width: 600px;
    color: #bbb;
    font-size: 1.05rem;
}

.photo {
    width: 280px;
    flex-shrink: 0;
}

.photo img {
    display: block;
    width: 100%;

    border-radius: 22px;

    border: 1px solid rgba(255,255,255,.12);

    box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.hero-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-block;

    padding: 10px 20px;

    border-radius: 12px;

    background: #fff;
    color: #111;

    font-weight: 600;

    transition: .25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button.secondary {
    background: rgba(255,255,255,.08);
    color: white;

    border: 1px solid rgba(255,255,255,.12);
}


/* =========================
   Sections
========================= */

.section {
    padding: 35px;
}

.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: 2rem;
}


/* =========================
   Skills
========================= */

.skills {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(110px, 1fr));

    gap: 14px;
}

.skill {
    min-height: 120px;

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

    gap: 10px;

    border-radius: 18px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.07);

    transition: .25s ease;
}

.skill:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.07);
}

.skill img {
    width: 48px;
    height: 48px;

    object-fit: contain;
}

.skill span {
    font-size: .85rem;
    color: #bbb;
}


/* =========================
   Projects
========================= */

.projects {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 18px;
}

.project {
    padding: 22px;

    min-height: 260px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    gap: 20px;

    border-radius: 20px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.08);

    transition: .25s ease;
}

.project:hover {
    transform: translateY(-5px);

    background: rgba(255,255,255,.06);

    border-color: rgba(255,255,255,.16);
}

.project img {
    width: 100%;
    max-height: 140px;

    object-fit: contain;

    border-radius: 12px;
}

.project h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project p {
    color: #aaa;
    font-size: .92rem;
}

.project-links {
    display: flex;
    gap: 18px;

    margin-top: 16px;
}

.project-links a {
    color: #b8a6ff;
    font-weight: 600;

    transition: .2s ease;
}

.project-links a:hover {
    color: white;
}

.no-image {
    justify-content: center;
}


/* =========================
   Rubik
========================= */

.rubik {
    text-align: center;
}

.rubik-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(130px, 1fr));

    gap: 12px;
}

.rubik-grid span {
    padding: 14px;

    border-radius: 14px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.07);

    font-weight: 600;

    transition: .25s ease;
}

.rubik-grid span:hover {
    transform: scale(1.03);
    background: rgba(255,255,255,.08);
}


/* =========================
   Footer
========================= */

.footer {
    width: min(1200px, 92%);
    margin: 24px auto;

    padding: 28px;

    text-align: center;
}

.footer p {
    font-weight: 600;
    margin-bottom: 12px;
}

.footer nav {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;

    margin-bottom: 14px;
}

.footer nav a {
    color: #aaa;

    transition: .2s ease;
}

.footer nav a:hover {
    color: white;
}

.footer small {
    color: #666;
}


/* =========================
   Responsive
========================= */

@media (max-width: 700px) {

    .header {
        padding: 14px 18px;

        flex-direction: column;

        text-align: center;
    }

    .header nav {
        gap: 18px;
    }

    .hero {
        padding: 28px 22px;

        flex-direction: column-reverse;

        text-align: center;

        gap: 28px;
    }

    .photo {
        width: min(240px, 75%);
    }

    .hero h2 {
        font-size: 2.7rem;
    }

    .description {
        font-size: .95rem;
    }

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

    .section {
        padding: 25px 20px;
    }

    .section-title {
        text-align: center;
    }

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

    .skills {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .skill {
        min-height: 100px;
    }

    .skill img {
        width: 40px;
        height: 40px;
    }
}


@media (max-width: 420px) {

    main,
    .header,
    .footer {
        width: 94%;
    }

    .hero {
        padding: 25px 16px;
    }

    .hero h2 {
        font-size: 2.3rem;
    }

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

    .section {
        padding: 22px 16px;
    }

    .footer nav {
        flex-direction: column;
        gap: 8px;
    }
}