:root {
    --sz-primary: #FF002F;
    --sz-secondary: #212121;
    --sz-white: #FFE3E4;
    --sz-aux-light: #EB9FA3;
    --sz-aux-dark: #373131;
    --bg-content: #0006;

    --font-title: 'Sen', sans-serif;
    --font-body: 'Jost', sans-serif;
    --font-mono: 'Atkinson Hyperlegible', monospace;
}

.sz-icon {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(var(--sz-secondary), #151515);
    color: var(--sz-white);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 90px 20px;
    z-index: 1;
    max-width: 900px;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    z-index: 2;
}

.hero-logo {
    margin-bottom: -40px;
    margin-top: -40px;
    display: flex;
    z-index: 2;
}

.hero-logo svg {
    width: 256px;
    height: 256px;
}

.hero-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-top: 0;
    margin-bottom: 11px;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--sz-white);
    z-index: 2;
}

.mono-snippet {
    font-family: var(--font-mono);
    color: var(--sz-aux-light);
    font-size: 0.95rem;
    background-color: var(--bg-content);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    display: inline-block;
    border-left: 4px solid var(--sz-primary);
    letter-spacing: 2px;
    z-index: 2;
}

.mono-snippet li {
    list-style-image: none;
    list-style: "> ";
    list-style-position: inside;
    padding-inline-start: 1ch;
}

input {
    flex: 1;
    font-family: var(--font-mono);
    color: var(--sz-aux-light);
    background-color: var(--bg-content);
    border: 1px solid var(--sz-aux-dark);
    border-left: 4px solid var(--sz-primary);
    padding: 12px 15px;
    letter-spacing: 2px;
    outline: none;
    box-sizing: border-box;
    background-image:url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path fill='%23EB9FA3' d='M 4.2085575,3.6220193 11.791443,7.9999998 4.2085575,12.377981 Z' /></svg>");
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 11px;
    padding-left: 32px;
    animation: blink 1s infinite;
}

input:focus {
    border-color: var(--sz-primary);
    color: var(--sz-white);
    background-image:url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path fill='%23FFF' d='M 4.2085575,3.6220193 11.791443,7.9999998 4.2085575,12.377981 Z' /></svg>");
}

@keyframes blink {
    0% { background-blend-mode: normal; }
    50% { background-blend-mode: color; }
}

.container {
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-left: 4px solid var(--sz-primary);
    margin-bottom: 60px;
    font-size: 1.05rem;
    line-height: 1.6;
    z-index: 2;
    backdrop-filter: blur(5px);
    scroll-margin-top: 120px;
}

.container h3 {
    font-family: var(--font-title);
    color: var(--sz-primary);
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container p {
    margin-bottom: 15px;
}

.container ul {
    list-style-type: square;
    padding-left: 20px;
    color: var(--sz-aux-light);
}

.container li {
    margin-bottom: 10px;
}

.container li span {
    color: var(--sz-white);
}

.btn-primary {
    font-family: var(--font-title);
    display: inline-block;
    padding: 16px 45px;
    background-color: transparent;
    color: var(--sz-primary);
    border: 2px solid var(--sz-primary);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-primary:hover {
    background-color: var(--sz-primary);
    color: var(--sz-secondary);
    box-shadow: 0 0 20px rgba(255, 0, 47, 0.3);
}

.btn-primary::any-link {
    color: var(--sz-primary);
}

.btn-secondary {
    font-family: var(--font-mono);
    color: var(--sz-secondary);
    background-color: var(--sz-white);
    text-decoration: none;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 0.95rem;
    border: 2px solid var(--sz-white);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--sz-white);
    border: 2px solid var(--sz-primary);
    box-shadow: 0 0 15px rgba(255, 0, 47, 0.2);
    backdrop-filter: blur(5px);
}

.btns-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
    margin-bottom: 100px;
    width: 100%;
    scroll-margin-top: 120px;
}

.contact h3 {
    font-family: var(--font-title);
    color: var(--sz-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    font-size: 1.2rem;
}

.contact p.contact-desc {
    font-family: var(--font-body);
    color: var(--sz-white);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.links-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.links-container a {
    /*color: var(--sz-aux-light);*/
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--sz-aux-dark);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.links-container a:hover {
    color: var(--sz-white);
    border-bottom: 1px solid var(--sz-primary);
}

.links-container li {
    list-style-image: none;
    list-style-type: "//";
    font-size: 11px;
    color: var(--sz-aux-light);
}

.links-container li:hover {
    color: var(--sz-white);
}

li {
    /*list-style-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path fill='%23EB9FA3' d='M 12.377981,6.342657 8,13.925542 3.622019,6.342657 Z' /></svg>");*/
    list-style: "▾";
    padding-inline-start: 1ch;
}

li strong {
    color: var(--sz-aux-light);
}

a {
    color: var(--sz-aux-light);
    text-decoration: none;
}


.footer {
    position: fixed;
    bottom: 0;
    background-color: var(--bg-content);
    backdrop-filter: blur(22px);
    filter: drop-shadow(0px 0px 10px #000);
    text-shadow: 0px 0px 10px #000;
    color: var(--sz-white);
    opacity: .42;
    width: 100vw;
    padding: 5px;
    font-family: var(--font-title);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    z-index: 10;
    transition: opacity .69s ease, background-color 1.21s ease, padding 0.42s ease;
}

.footer:hover {
    opacity: 1;
    background-color: #FFE3E442;
    padding: 10px;
}

.headbar {
    position: fixed;
    /*top: 0;
    left: 0;*/
    width: 98%;
    background-color: var(--bg-content);
    backdrop-filter: blur(11px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px; /* Padding vertical reduzido */
    box-sizing: border-box;
    z-index: 100;
    /*border-bottom: 2px solid var(--sz-primary);*/
    border-radius: 11px;
    margin: 6px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.headbar-brand h1,
.headbar-nav {
    transition: opacity 0.4s ease, max-width 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    white-space: nowrap;
    opacity: 1;
    max-width: 1000px;
}

.headbar-brand svg {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado Scrolled com expansão no hover */
.headbar.scrolled:not(:hover) {
    padding: 5px 20px;
    /*background-color: var(--bg-content);*/
    opacity: .6;
    /*border-bottom-color: transparent;*/
    border-radius: 0px 0px 11px 11px;
    margin: 0;
}

.headbar.scrolled:not(:hover) .headbar-brand {
    pointer-events: auto;
}

.headbar.scrolled:not(:hover) .headbar-brand h1,
.headbar.scrolled:not(:hover) .headbar-nav,
.headbar.scrolled:not(:hover) .menu-toggle {
    opacity: 0;
    max-width: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    overflow: hidden;
}

.headbar.scrolled:not(:hover) .headbar-brand svg {
    width: 26px;
    height: 26px;
    opacity: 0.5;
}

.headbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--sz-white);
}

.headbar-brand svg {
    width: 32px;
    height: 32px;
}

.headbar-brand h1 {
    font-family: var(--font-title);
    font-size: 1.5rem; /* Fonte reduzida para o header */
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.headbar-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.headbar-nav a {
    font-family: var(--font-mono);
    color: var(--sz-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.headbar-nav a:hover {
    color: var(--sz-primary);
}

/* Menu Hambúrguer (Oculto no Desktop) */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 101;
    padding: 5px;
}

/* Menu Dropdown para Projects */
.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown a::after {
    content: "▼";
    font-size: 0.8rem;
    margin-left: 5px;
    vertical-align: 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--sz-secondary);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 101;
    /*border-left: 2px solid var(--sz-primary);*/
}

.dropdown-content a::after {
    content: none;
}

.dropdown-content a {
    color: var(--sz-white);
    padding: 15px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border-left: 2px solid var(--sz-primary);
    transition: border-left 0.3s ease;
}

.dropdown-content a:hover {
    border-left: 11px solid var(--sz-primary);
}

/* Hover do Dropdown habilitado APENAS no Desktop */
@media (min-width: 901px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.dropdown.mobile-active .dropdown-content {
    display: block;
}


@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .headbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: rgba(21, 21, 21, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start; /* Itens alinhados ao topo */
        align-items: flex-start;
        padding: 80px 40px 40px 40px;
        border-left: 2px solid var(--sz-primary);
        transition: right 0.4s ease;
        max-width: none;
        opacity: 1 !important;
    }

    .headbar-nav.mobile-open {
        right: 0;
    }

    .dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border-left: none;
        padding-left: 15px;
        background-color: transparent;
    }
}
