:root {
    --primary: #153e71;
    --accent: #1caaff;
    --flux: #ffde59;
    --background: linear-gradient(135deg, #183763 0%, #18284c 100%);
    --card-bg: rgba(255,255,255,0.08);
    --card-glass: rgba(44, 57, 99, 0.18);
    --border-glow: 0 0 8px 2px #32c7fa44;
    --btn-glow: 0 0 18px 5px #32c7fa99;
    --flux-glow: 0 0 12px 2px #ffde597a;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--background);
    color: #fff;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.header {
    text-align: center;
    position: relative;
    padding: 2.1rem 0 1.1rem 0;
    background: none;
    overflow: visible;
    z-index: 2;
}

.halo {
    position: absolute;
    top: 22px; left: 50%; transform: translateX(-50%);
    width: 320px; height: 78px;
    background: radial-gradient(ellipse at center, #1caaff33 0%, #32c7fa09 85%, transparent 100%);
    filter: blur(13px);
    z-index: 1;
    pointer-events: none;
    animation: halo-move 5s infinite alternate ease-in-out;
}
@keyframes halo-move {
    0% { filter: blur(13px) brightness(1.1);}
    100% { filter: blur(18px) brightness(1.28);}
}
.logo {
    width: 90px;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 4px 16px #1caaff65);
    margin-bottom: 0.45rem;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    border: 2px solid #1caaff22;
    transition: box-shadow 0.25s;
}
.logo:hover {
    box-shadow: 0 0 0 4px #ffde5933, 0 0 0 12px #1caaff44;
}

h1 {
    font-size: 2.55rem;
    letter-spacing: 1.6px;
    color: var(--flux);
    margin: 0 0 0.43rem 0;
    text-shadow: 0 4px 18px #000a, var(--flux-glow);
    z-index: 2;
    position: relative;
    font-weight: 900;
}

.subtitle {
    color: #bcf5ff;
    font-size: 1.09rem;
    margin-bottom: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.7px;
    z-index: 2;
    position: relative;
    text-shadow: 0 1px 6px #18284c44;
}

main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 50vh;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 2.6rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 2.1rem;
    z-index: 2;
}

.project-card {
    background: var(--card-bg);
    color: #fff;
    border-radius: 26px;
    box-shadow: var(--border-glow), 0 3px 36px #153e7135;
    max-width: 360px;
    min-width: 250px;
    padding: 2.1rem 1.7rem 1.4rem 1.7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    border: 2.2px solid #1caaff33;
    backdrop-filter: blur(4.2px);
    transition: transform 0.18s, box-shadow 0.18s, border 0.18s, background 0.2s;
    overflow: visible;
    outline: none;
}
.project-card:focus-within, .project-card:hover {
    transform: translateY(-10px) scale(1.027);
    box-shadow: 0 0 38px 9px #1caaff66, 0 2px 12px #ffde5933;
    border: 2.5px solid var(--accent);
    z-index: 3;
    background: var(--card-glass);
}
.card-badge {
    position: absolute;
    top: -18px; right: 22px;
    background: linear-gradient(90deg, #ffde59 50%, #ffe885 100%);
    color: #183763;
    font-size: 1.01rem;
    font-weight: bold;
    border-radius: 9px;
    padding: 0.22em 1.18em;
    box-shadow: 0 2px 8px #ffd95055;
    letter-spacing: 1px;
    border: 1.5px solid #fff3;
    z-index: 2;
    text-shadow: 0 1px 3px #fff6;
}
.project-card h2 {
    font-size: 1.42rem;
    color: var(--accent);
    margin-bottom: 1.12rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-shadow: 0 1px 7px #32c7fa55;
}

.project-card p {
    font-size: 1.09rem;
    color: #e7f7ff;
    margin-bottom: 1.65rem;
    min-height: 62px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 5px #18284c22;
}

.glow-btn {
    padding: 0.71rem 1.6rem;
    background: linear-gradient(93deg, #32c7fa 70%, #ffde59 100%);
    color: #142a4d;
    font-size: 1.09rem;
    font-weight: bold;
    border: none;
    border-radius: 17px;
    box-shadow: var(--btn-glow), 0 2px 11px #ffe06633;
    cursor: pointer;
    transition: background 0.17s, color 0.17s, box-shadow 0.2s, transform 0.13s;
    outline: none;
    text-shadow: 0 1px 6px #fff9;
    letter-spacing: 0.4px;
}
.glow-btn:hover, .glow-btn:focus {
    background: linear-gradient(90deg, #ffde59 10%, #32c7fa 95%);
    color: #075588;
    box-shadow: 0 0 38px 10px #ffde5977, 0 2px 17px #32c7fa99;
    transform: scale(1.055);
}

footer {
    text-align: center;
    color: #c1e4ff;
    font-size: 1.08rem;
    padding: 2.2rem 0 1.2rem 0;
    letter-spacing: 1px;
    opacity: 0.90;
    background: none;
    margin-top: 2.5rem;
}

.footer-quote {
    color: #ffe066;
    font-style: italic;
    font-size: 1.07rem;
    display: inline-block;
    margin-top: 0.7em;
    text-shadow: 0 2px 10px #0003;
}

.footer-link {
    color: #1caaff;
    text-decoration: none;
    font-size: 1.01rem;
    margin-top: 0.7em;
    display: inline-block;
    transition: color 0.17s;
}
.footer-link:hover { color: #ffde59; }

@media (max-width: 700px) {
    .projects {
        flex-direction: column;
        gap: 1.17rem;
        margin-top: 1.1rem;
    }
    .project-card {
        width: 97vw;
        min-width: unset;
        max-width: unset;
        padding: 1.35rem 1.11rem 1.13rem 1.11rem;
    }
    .header {
        padding: 1.1rem 0 0.7rem 0;
    }
    .logo {
        width: 62px;
    }
    main {
        min-height: unset;
    }
    .halo {
        width: 160px;
        height: 38px;
        top: 10px;
    }
    .footer-quote {
        font-size: 0.98em;
    }
}
