:root {
    --bg: #050816;
    --bg-soft: #0a1022;
    --panel: rgba(11, 18, 38, 0.82);
    --panel-border: rgba(69, 160, 255, 0.2);

    --text: #f4f7ff;
    --text-soft: #aab6cf;

    --blue: #2f8cff;
    --blue-light: #79c7ff;
    --blue-bright: #39b6ff;
    --blue-glow: rgba(47, 140, 255, 0.45);

    --max-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(
            circle at 82% 16%,
            rgba(27, 101, 255, 0.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 18% 74%,
            rgba(0, 174, 255, 0.08),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #050816 0%,
            #07101f 48%,
            #050816 100%
        );

    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(5, 8, 22, 0.82);
    backdrop-filter: blur(16px);

    border-bottom:
        1px solid rgba(75, 140, 255, 0.14);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.16);
}

nav {
    width: min(92%, var(--max-width));
    margin: 0 auto;

    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}

nav h1 {
    position: relative;

    font-size: 1.3rem;
    letter-spacing: 0.07em;

    color: var(--text);

    text-shadow:
        0 0 14px rgba(47, 140, 255, 0.34),
        0 0 26px rgba(47, 140, 255, 0.12);
}

nav h1::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 42%;
    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--blue-bright),
            transparent
        );

    box-shadow:
        0 0 12px var(--blue-glow);
}

nav ul {
    display: flex;
    align-items: center;

    gap: 1.5rem;

    list-style: none;
}

nav a {
    position: relative;

    color: var(--text-soft);

    font-size: 0.95rem;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    border-radius: 999px;

    background: var(--blue-bright);

    box-shadow:
        0 0 10px var(--blue-glow);

    transition:
        width 0.2s ease;
}

nav a:hover {
    color: var(--blue-light);

    text-shadow:
        0 0 10px var(--blue-glow);
}

nav a:hover::after {
    width: 100%;
}

main {
    overflow: hidden;
}

section {
    width: min(92%, var(--max-width));
    margin: 0 auto;

    padding: 6.5rem 0;
}

section + section {
    position: relative;
}

section + section::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    transform: translateX(-50%);

    width: min(80%, 800px);
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(82, 164, 255, 0.18),
            transparent
        );
}

#home {
    min-height: calc(100vh - 82px);

    display: grid;
    grid-template-columns: 1.08fr 0.92fr;

    align-items: center;

    gap: 2.5rem;

    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.hero-text {
    max-width: 720px;
}

.eyebrow {
    margin-bottom: 1rem;

    color: var(--blue-light);

    font-size: 0.8rem;
    font-weight: bold;

    letter-spacing: 0.26em;
}

.hero-text h2 {
    font-size: clamp(3.2rem, 6vw, 5.4rem);
    line-height: 0.95;

    letter-spacing: -0.05em;

    margin-bottom: 1rem;

    white-space: nowrap;

    text-shadow:
        0 0 18px rgba(47, 140, 255, 0.12);
}

.hero-subtitle {
    color: var(--blue-light);

    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: bold;

    margin-bottom: 1.2rem;

    text-shadow:
        0 0 14px rgba(47, 140, 255, 0.25),
        0 0 28px rgba(47, 140, 255, 0.15);
}

.hero-description {
    max-width: 620px;

    color: var(--text-soft);

    font-size: 1.08rem;

    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 1rem;
}

.button {
    display: inline-block;

    padding: 0.9rem 1.4rem;

    border-radius: 10px;

    font-weight: bold;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary-button {
    background:
        linear-gradient(
            135deg,
            #1e78ff,
            #55b6ff
        );

    color: white;

    box-shadow:
        0 0 22px rgba(47, 140, 255, 0.34);
}

.primary-button:hover {
    box-shadow:
        0 0 32px rgba(47, 140, 255, 0.55);
}

.secondary-button {
    border:
        1px solid rgba(83, 164, 255, 0.45);

    color: var(--blue-light);

    background:
        rgba(15, 34, 70, 0.35);
}

.secondary-button:hover {
    background:
        rgba(27, 79, 145, 0.28);

    border-color:
        rgba(110, 190, 255, 0.7);
}

.hero-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 560px;
}

.hero-image::before {
    content: "";

    position: absolute;

    width: 84%;
    aspect-ratio: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(59, 153, 255, 0.34),
            rgba(24, 84, 205, 0.13) 38%,
            transparent 72%
        );

    filter: blur(20px);

    animation:
        phoenix-glow 4s ease-in-out infinite alternate;
}

.hero-image img {
    position: relative;
    z-index: 1;

    width: min(115%, 650px);

    filter:
        drop-shadow(0 0 20px rgba(69, 160, 255, 0.5))
        drop-shadow(0 0 52px rgba(32, 101, 255, 0.28));
}

@keyframes phoenix-glow {
    from {
        transform: scale(0.96);
        opacity: 0.78;
    }

    to {
        transform: scale(1.04);
        opacity: 1;
    }
}

section > h2 {
    margin-bottom: 2.2rem;

    font-size: clamp(2rem, 4vw, 3rem);

    letter-spacing: -0.03em;
}

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1.5rem;
}

.card {
    position: relative;

    padding: 1.8rem;

    border:
        1px solid var(--panel-border);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 25, 52, 0.9),
            rgba(8, 14, 31, 0.82)
        );

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(80, 175, 255, 0.7),
            transparent
        );

    opacity: 0;

    transition:
        opacity 0.2s ease;
}

.card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(80, 175, 255, 0.5);

    box-shadow:
        0 14px 42px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(47, 140, 255, 0.08);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-bottom: 0.7rem;

    color: var(--blue-light);

    font-size: 1.25rem;
}

.card p {
    color: var(--text-soft);
}

#about p,
#contact p {
    max-width: 760px;

    color: var(--text-soft);

    font-size: 1.08rem;
}

.project-feature {
    margin-bottom: 1.5rem;

    padding: 2.2rem;

    border:
        1px solid rgba(76, 169, 255, 0.34);

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(47, 140, 255, 0.12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(14, 25, 52, 0.92),
            rgba(7, 13, 30, 0.9)
        );

    box-shadow:
        0 12px 50px rgba(0, 0, 0, 0.25),
        0 0 28px rgba(47, 140, 255, 0.08);
}

.project-label {
    margin-bottom: 0.55rem;

    color: var(--blue-light);

    font-size: 0.76rem;
    font-weight: bold;

    letter-spacing: 0.22em;
}

.project-feature h3 {
    margin-bottom: 0.8rem;

    font-size:
        clamp(1.7rem, 3vw, 2.4rem);
}

.project-feature p {
    max-width: 780px;

    color: var(--text-soft);
}

.project-points {
    margin-top: 1.4rem;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        0.7rem 1.4rem;

    list-style: none;
}

.project-points li {
    position: relative;

    padding-left: 1.2rem;

    color: #d9e3f7;
}

.project-points li::before {
    content: "•";

    position: absolute;

    left: 0;

    color: var(--blue-light);
}

.project-grid {
    margin-top: 1.5rem;
}

.project-status {
    margin-bottom: 0.6rem;

    color: var(--blue-light);

    font-size: 0.72rem;
    font-weight: bold;

    letter-spacing: 0.18em;
}

.in-development-card {
    grid-column: 1 / -1;

    border-color:
        rgba(121, 199, 255, 0.35);
}

.development-note {
    margin-top: 1rem;

    display: inline-block;

    color: var(--blue-light);

    font-size: 0.9rem;
    font-weight: bold;
}

.contact-panel {
    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    gap: 3rem;

    align-items: center;

    padding: 3rem;

    border:
        1px solid rgba(76, 169, 255, 0.32);

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(47, 140, 255, 0.15),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(14, 25, 52, 0.94),
            rgba(7, 13, 30, 0.92)
        );

    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(47, 140, 255, 0.08);
}

.contact-label {
    margin-bottom: 0.6rem;

    color: var(--blue-light);

    font-size: 0.75rem;
    font-weight: bold;

    letter-spacing: 0.2em;
}

.contact-copy h2 {
    margin-bottom: 1rem;

    font-size:
        clamp(2rem, 4vw, 3.2rem);

    letter-spacing: -0.03em;
}

.contact-copy p {
    max-width: 680px;

    color: var(--text-soft);

    margin-bottom: 0.8rem;
}

.contact-actions {
    padding: 2rem;

    border:
        1px solid rgba(90, 170, 255, 0.2);

    border-radius: 16px;

    background:
        rgba(5, 10, 25, 0.55);

    box-shadow:
        inset 0 0 30px rgba(47, 140, 255, 0.03);
}

.contact-small-title {
    margin-bottom: 0.7rem;

    color: var(--text-soft);

    font-size: 0.9rem;
}

.contact-email {
    display: block;

    margin-bottom: 1.5rem;

    color: var(--blue-light);

    font-size:
        clamp(1rem, 2vw, 1.25rem);

    font-weight: bold;

    word-break: break-word;

    text-shadow:
        0 0 12px rgba(47, 140, 255, 0.25);
}

.contact-button {
    text-align: center;
}

footer {
    padding: 2rem;

    text-align: center;

    color: #77839b;

    border-top:
        1px solid rgba(75, 140, 255, 0.12);

    background:
        rgba(3, 6, 16, 0.75);
}

@media (max-width: 1000px) {
    .hero-text h2 {
        white-space: normal;
    }
}

@media (max-width: 900px) {
    nav {
        flex-direction: column;

        justify-content: center;

        padding: 1rem 0;
    }

    nav ul {
        flex-wrap: wrap;

        justify-content: center;

        gap:
            0.9rem 1.2rem;
    }

    #home {
        min-height: auto;

        grid-template-columns: 1fr;

        padding-top: 4rem;

        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        min-height: auto;
    }
}

@media (max-width: 800px) {
    .contact-panel {
        grid-template-columns: 1fr;

        padding: 2rem;
    }

    .contact-actions {
        padding: 1.5rem;
    }
}

@media (max-width: 650px) {
    section {
        padding: 4.5rem 0;
    }

    .hero-text h2 {
        font-size:
            clamp(2.8rem, 14vw, 4.5rem);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .project-points {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;

        text-align: center;
    }

    nav h1 {
        font-size: 1.1rem;
    }

    nav ul {
        font-size: 0.9rem;
    }
}