:root {
    --bg: #080b12;
    --surface: #10151f;
    --surface-2: #151c28;
    --text: #f3f5f7;
    --muted: #9ba5b4;
    --line: #242d3b;
    --accent: #61dafb;
    --green: #7ee787;
    --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

ul { list-style: none; }

.devicon-java-plain,
.devicon-spring-original,
.devicon-postgresql-plain,
.devicon-hibernate-plain,
.devicon-apachemaven-plain,
.devicon-junit-plain,
.devicon-git-plain,
.devicon-docker-plain,
.devicon-github-original,
.devicon-leetcode-plain {
    font-size: 1.05rem;
    line-height: 1;
}

.api-icon {
    display: inline-grid;
    place-items: center;
    min-width: 29px;
    height: 19px;
    padding: 0 4px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.container {
    width: min(100% - 40px, var(--max));
    margin-inline: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 11, 18, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.06em;
}

.logo span,
.hero h1 span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    color: var(--muted);
    font-size: .9rem;
}

.nav-links a:hover,
.socials a:hover,
.footer-inner a:hover {
    color: var(--text);
}

.nav-github {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 7px 12px;
    font-size: .78rem;
    font-weight: 600;
}

.hero {
    min-height: 680px;
    display: grid;
    align-items: center;
    padding: 90px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.065em;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    color: #d5dbe4;
    font-weight: 500;
}

.hero-text {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.05rem;
    margin: 20px 0 30px;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 9px;
    font-weight: 600;
    font-size: .9rem;
    transition: transform .2s ease, opacity .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    opacity: .92;
}

.primary {
    background: var(--text);
    color: var(--bg);
}

.secondary {
    border: 1px solid var(--line);
    color: var(--text);
}

.whatsapp {
    background: #183b2a;
    color: #b7f7cf;
}

.socials {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    color: var(--muted);
    font-size: .85rem;
}

.profile {
    margin: 0;
    text-align: center;
}

.profile-image {
    width: min(100%, 390px);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
}

.profile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile figcaption {
    margin-top: 14px;
    color: var(--muted);
    font-size: .78rem;
}

.section {
    padding: 100px 0;
    border-top: 1px solid var(--line);
}

.section h2 {
    max-width: 700px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.04em;
    margin-bottom: 45px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    color: var(--muted);
}

.about-grid p {
    max-width: 650px;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.about-highlight {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: start;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.about-highlight strong { color: var(--text); }
.about-highlight span { color: var(--muted); }

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skills li,
.project-tech li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: .78rem;
    color: #c7cfda;
}

.projects-section { background: #0b0f17; }

.project-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 30px;
    margin-bottom: 16px;
}

.project-tag {
    color: var(--accent);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.project-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.project-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--accent);
}

.project-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.project-card h3 {
    font-size: 1.45rem;
    margin-top: 3px;
}

.project-card p {
    color: var(--muted);
    max-width: 700px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.project-link {
    align-self: center;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.project-link span { margin-left: 5px; }

.contact {
    padding: 105px 0;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -.05em;
    margin-bottom: 12px;
}

.contact p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 28px;
}

.contact-actions { justify-content: center; }

.contact address { font-style: normal; }

footer {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    color: var(--muted);
    font-size: .8rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-inner ul {
    display: flex;
    gap: 20px;
}

@media (max-width: 760px) {
    .container { width: min(100% - 28px, var(--max)); }

    .nav {
        min-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 75px 0;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .profile {
        order: -1;
    }

    .profile-image {
        width: min(75vw, 310px);
    }

    .section {
        padding: 75px 0;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-link {
        justify-self: start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
