html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: #07131f;
    color: var(--font-primary-color);
    background-image:
        radial-gradient(circle at top left, rgba(108, 208, 255, 0.16), transparent 18%),
        radial-gradient(circle at 80% 8%, rgba(132, 199, 255, 0.09), transparent 12%),
        linear-gradient(180deg, #07131f 0%, #0b1e34 100%);
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --font-primary-color: #eef2f6;
    --background-color: #07131f;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-border: rgba(255, 255, 255, 0.12);
    --accent-color: #6cd0ff;
    --accent-strong: #49a7ff;
    --muted-text-color: #a5b4ce;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
}

.page-shell {
    min-height: 100vh;
    padding: 1.5rem 1rem 2rem;
}

.container {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.navbar {
    position: sticky;
    top: 1rem;
    z-index: 50;
    background: rgba(4, 18, 38, 0.82);
    border: 1px solid rgba(108, 208, 255, 0.16);
    backdrop-filter: blur(18px);
    border-radius: 999px;
    padding: 1rem 1.5rem;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: #eef2f6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.navbar a:hover,
.navbar a:focus-visible {
    background: rgba(108, 208, 255, 0.14);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.hero {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: var(--shadow);
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--accent-color);
    background: rgba(108, 208, 255, 0.12);
    margin-bottom: 1.35rem;
}

.eyebrow-light {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-text-color);
}

.title {
    margin: 0;
    font-size: clamp(2.75rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    max-width: 860px;
    margin-inline: auto;
}

.subtitle {
    margin: 1.5rem auto 0;
    max-width: 720px;
    font-size: 1.1rem;
    line-height: 1.95;
    color: var(--muted-text-color);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.button-primary {
    background: linear-gradient(135deg, #6cd0ff 0%, #5a8cff 100%);
    color: #07131f;
    box-shadow: 0 16px 40px rgba(108, 208, 255, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(108, 208, 255, 0.16);
    color: #eef2f6;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.portfolio {
    display: grid;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.section-heading {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    text-align: center;
}

.section-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.portfolio-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 2rem;
    align-items: center;
}

.portfolio-text {
    display: grid;
    gap: 1.25rem;
}

.intro-copy {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.85;
    color: rgba(238, 242, 246, 0.92);
}

.portfolio-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.portfolio-features li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--muted-text-color);
    line-height: 1.7;
}

.portfolio-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
    line-height: 1;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.skill {
    position: relative;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 208, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
}

.skill h5 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.skill p {
    margin: 0;
    line-height: 1.75;
    color: rgba(238, 242, 246, 0.86);
}

.contact-section {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.contact-card {
    display: grid;
    gap: 1rem;
    padding: 1.75rem;
    background: rgba(4, 18, 38, 0.92);
    border: 1px solid rgba(108, 208, 255, 0.18);
    border-radius: 24px;
}

.contact-card p {
    margin: 0;
    line-height: 1.8;
    color: rgba(238, 242, 246, 0.92);
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}


@media (max-width: 980px) {
    .navbar {
        width: 100%;
        padding: 1rem 1rem;
    }

    .title {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }

    .subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem 2.5rem;
        margin: 1.5rem auto 1rem;
        gap: 1.25rem;
    }

    .navbar ul {
        gap: 1rem;
    }

    .navbar a {
        font-size: 0.95rem;
    }

    .portfolio-text p {
        font-size: 1.15rem;
    }

    .contact-section p {
        text-align: left;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .portfolio-item {
        gap: 1rem;
    }

    .skill {
        padding: 1.5rem;
    }

    .contact-section h1,
    .portfolio h1,
    .contact-section p,
    .skills {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .skills {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 721px) and (max-width: 980px) {
    .skills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}