*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--aqua-foreground);
    color: var(--aqua-foreground);
    font-family: "Manrope", sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, #ffffff 0%, #eaeaea 45%, #e1e1e1 100%);
    background-size: 400% 400%;
    animation: shift-gradient 20s ease infinite;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    background: var(--aqua-background);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--aqua-border);
    z-index: 900;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--aqua-foreground);
    flex-shrink: 0;
}

.nav-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.0;
}

.brand-text .name {
    font-size: 12;
    font-weight: 700;
    color: var(--aqua-foreground);
    letter-spacing: -0.1px;
    white-space: nowrap;
}

.brand-text .designed-by {
    font-size: 12px;
    font-weight: 400;
    color: var(--aqua-foreground-muted);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--aqua-foreground-muted);
    text-decoration: none;
    letter-spacing: 0.1px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--aqua-foreground);
}

.nav-actions {
    margin-left: auto;
}

.nav-resume {
    font-size: 14px;
    font-weight: 400;
    color: var(--aqua-foreground-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-resume:hover {
    color: var(--aqua-foreground);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: auto;
}

.hamburger span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: var(--aqua-foreground);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.menu {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--aqua-background);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--aqua-border);
    padding: 12px 0 20px;
    z-index: 899;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu a {
    display: block;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 400;
    color: var(--aqua-foreground-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.menu a:hover {
    color: var(--aqua-foreground);
}

section {
    min-height: 100svh;
    padding: 130px 22px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#home {
    gap: 32px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--aqua-foreground-muted);
    opacity: 0;
    animation: fade-up 0.6s ease 0.1s forwards;
}

.hero-headline {
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 1.02;
    max-width: 920px;
    color: var(--aqua-foreground);
    opacity: 0;
    animation: fade-up 0.7s ease 0.25s forwards;
}

.hero-sub {
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 300;
    color: var(--aqua-foreground-muted);
    max-width: 560px;
    line-height: 1.6;
    opacity: 0;
    animation: fade-up 0.7s ease 0.4s forwards;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fade-up 0.7s ease 0.55s forwards;
}

.section-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--aqua-foreground-muted);
}

.section-headline {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: var(--aqua-foreground);
    max-width: 720px;
}

.section-body {
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 300;
    color: var(--aqua-foreground-muted);
    line-height: 1.7;
    max-width: 580px;
}

.section-body a {
    color: var(--aqua-foreground);
    text-decoration: none;
    border-bottom: 1px solid var(--aqua-border);
    transition: border-color 0.2s;
}

.section-body a:hover {
    border-color: var(--aqua-foreground);
}

#about {
    gap: 28px;
}

#projects {
    gap: 48px;
}

.projects-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 960px;
}

.project-card {
    border: 1px solid var(--aqua-border);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
}

.project-card:hover {
    border-color: var(--aqua-foreground);
}

.project-card h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--aqua-foreground);
}

.project-card .stack {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--aqua-foreground-muted);
}

.project-card p.description {
    font-size: 14px;
    font-weight: 300;
    color: var(--aqua-foreground-muted);
    line-height: 1.65;
    flex: 1;
}

#contact {
    gap: 24px;
}

.contact-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

footer {
    padding: 28px 22px 36px;
    border-top: 1px solid var(--aqua-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-made-with {
    font-size: 13px;
    color: var(--aqua-foreground-muted);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-made-with:hover {
    color: var(--aqua-foreground);
}

.aqua2-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--aqua-background);
    color: var(--aqua-foreground);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--aqua-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > .reveal:nth-child(1) {
    transition-delay: 0.00s;
}

.stagger > .reveal:nth-child(2) {
    transition-delay: 0.07s;
}

.stagger > .reveal:nth-child(3) {
    transition-delay: 0.14s;
}

@keyframes shift-gradient {
    0% {
        background-position: 0% 0%;
    } 25% {
        background-position: 100% 0%;
    } 50% {
        background-position: 100% 100%;
    } 75% {
        background-position: 0% 100%;
    } 100% {
        background-position: 0% 0%;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    } to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-resume {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .menu {
        display: flex;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (min-width: 769px) {
    .menu {
        display: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    body::before {
        background: radial-gradient(circle at center, #000000 0%, #151515 45%, #1e1e1e 100%);
    }

    .nav-logo img {
        filter: invert(1);
    }
}