html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: #101113;
    color: #dbe6ff;
    overflow-x: clip;
}

html:not(.aos-enabled) [data-aos] { opacity: 1; transform: none; }

nav { background: #101113ed !important; }
.nav-link { position: relative; transition: color .2s ease; }
.nav-link:hover, .active-lang { color: #8cf5ad !important; }
.nav-link::after {
    content: '';
    position: absolute;
    inset: auto 0 -4px;
    height: 2px;
    background: #8cf5ad;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.ds-brand {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: url('../public/ds-mark.svg') center / contain no-repeat;
    color: transparent;
}
.ds-brand:hover { background-color: #292d32; }

.portfolio-hero {
    isolation: isolate;
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: radial-gradient(ellipse at 77% 45%, #262a2d, transparent 60%), #101113;
}
.java-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background-image: linear-gradient(#c5dbd109 1px, transparent 1px),
                      linear-gradient(90deg, #c5dbd109 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 75% 48%, #000, transparent 85%);
}
.java-code {
    position: absolute;
    margin: 0;
    font: 400 clamp(.625rem, 1vw, .82rem)/1.7 Consolas, monospace;
    color: #aebbb7;
}
.java-code span { color: #91c7a3; }
.java-code--upper { top: 16%; right: 5%; opacity: .36; }
.java-code--lower { bottom: 8%; left: 49%; opacity: .25; }
.java-code--edge { top: 24%; left: 1%; opacity: .13; }

.hero-name { font-size: clamp(4rem, 8vw, 8rem) !important; letter-spacing: -.075em; line-height: .95 !important; }
.hero-santos { display: block; color: #8cf5ad; text-shadow: 0 0 38px #8cf5ad2b; }
.hero-fullname {
    display: block;
    margin-top: 22px;
    font: 500 11px 'Space Grotesk', sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #a4b0aa;
}

.glass-card {
    background: linear-gradient(145deg, #23262a, #16181c) !important;
    border: 1px solid #8cf5ad29 !important;
    box-shadow: 0 20px 50px #0003;
    transition: transform .25s ease, border-color .25s ease;
}
.glass-card:hover { transform: translateY(-5px); border-color: #8cf5ad73 !important; }
.bg-surface-container-low { background: #151719 !important; }
.bg-surface-container-high, .bg-surface-container-highest { background: #202326 !important; }
.glow-primary { text-shadow: 0 0 20px #8cf5ad55; }
section { scroll-margin-top: 80px; }
#inicio { scroll-margin-top: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid #8cf5ad; outline-offset: 4px; }

.portrait { position: relative; width: min(100%, 34rem); min-width: 0; }
.notebook {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    cursor: pointer;
    touch-action: manipulation;
}
.notebook-lid {
    display: block;
    position: relative;
    width: 91%;
    margin-inline: auto;
    padding: 11px 9px 14px;
    border: 1px solid #5b6269;
    border-radius: 14px 14px 4px 4px;
    background: linear-gradient(150deg, #34393f, #141619 56%);
    box-shadow: 0 18px 55px #0009;
}
.notebook-display {
    display: block;
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(121deg, #1b2026, #0a0b0d 65%);
    box-shadow: inset 0 0 0 1px #ffffff16;

}
.notebook-artwork {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .24s ease;
}
.notebook-led {
    position: absolute;
    bottom: 5px;
    right: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #78818a;
}
.notebook[aria-pressed="true"] .notebook-artwork { opacity: 1; }
.notebook[aria-pressed="true"] .notebook-led { background: #8cf5ad; box-shadow: 0 0 8px #8cf5ad; }
.notebook-base {
    display: block;
    position: relative;
    height: 14px;
    border-radius: 2px 2px 48% 48% / 2px 2px 10px 10px;
    background: linear-gradient(#888e94, #515860 25%, #24282c 72%, #70777f);
    box-shadow: 0 12px 18px #000a;
}
.notebook-base::after {
    content: '';
    position: absolute;
    inset: 0 42% auto;
    height: 4px;
    border-radius: 0 0 5px 5px;
    background: #202327;
}
.portrait-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .65rem;
    margin: 1.1rem 4.5% 0;
}
.notebook-hint { color: #aab5b1; font-size: .75rem; }
.notebook-hint-touch { display: none; }
.portrait-stack { padding: .45rem .65rem; border: 1px solid #ffffff23; border-radius: .5rem; background: #141618; }

@media (hover: none), (pointer: coarse) {
    .notebook-hint-mouse { display: none; }
    .notebook-hint-touch { display: inline; }
}
@media (max-width: 767px) {
    .hero-name { font-size: clamp(3.4rem, 15vw, 5.5rem) !important; }
    .java-code--upper { top: 12%; right: -7%; opacity: .2; }
    .java-code--lower { left: 17%; bottom: 2%; opacity: .27; }
    .java-code--edge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
