:root {
    --primary: #2ecc71;
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #f0f0f0;
    --muted: #9aa0a6;
}

html {
    scroll-behavior: smooth; 
}

* {
    box-sizing: border-box;
    transition-property: color, background-color, border-color, transform, opacity, box-shadow, filter;
    transition-duration: 2s;
    transition-timing-function: ease;
}

body {
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    color: var(--text);
    margin: 0;
    line-height: 1.7;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -2;
    background: url('backgound.jpg') center / cover no-repeat;
    filter: blur(9px);
    transform: scale(1.04);
}

body::after {
    z-index: -1;
    background: rgba(0, 0, 0, 0.6);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    background: var(--primary);
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 2000;
    font-weight: 700;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.86));
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.hero h1 {
    font-size: clamp(1.9rem, 5vw, 3.3rem);
    margin: 0;
}

.hero-subtitle {
    letter-spacing: 0.14em;
    font-size: 0.92rem;
    color: var(--muted);
    margin-top: 8px;
}

.typing-title {
    display: inline-block;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    padding-right: 6px;
    min-height: 1.15em;
    animation: caret-blink 0.8s steps(1) infinite;
}

.typing-title.done {
    border-right-color: transparent;
    animation: none;
}

@keyframes caret-blink {

    0%,
    49% {
        border-right-color: var(--primary);
    }

    50%,
    100% {
        border-right-color: transparent;
    }
}

.quick-nav {
    max-width: 1080px;
    margin: 10px auto 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-nav a {
    color: var(--primary);
    text-decoration: none;
    border: 1px solid #2b2b2b;
    background: #151515;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.quick-nav a.is-active {
    background: #005e00;
    border-color: #005e00;
    color: #fff;
}

.container {
    max-width: 1080px;
    margin: -56px auto 50px;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.infobox,
.content-box {
    background: var(--card);
    border-radius: 12px;
}

.infobox {
    padding: 20px;
    border-top: 1px solid var(--primary);
    box-shadow: 0 1px 2px var(--primary);

    height: fit-content;
}

.profile {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 14px;
}

.carousel {
    position: relative;
    margin-bottom: 14px;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
}

.skeleton-image {
    background: linear-gradient(110deg, #2a2a2a 8%, #3a3a3a 18%, #2a2a2a 33%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.1s linear infinite;
}

.skeleton-image.is-loaded {
    animation: none;
    background: transparent;
}

.carousel-slide.is-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
    z-index: 4;
}

.carousel-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    position: relative;
    z-index: 4;
}

.carousel-dot {
    width: 5px;
    height: 5px;
    border: 0;
    background: #4b4b4b;
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--primary);
}

.carousel-dot:nth-child(3) {
    display: none;
}
.infobox h3 {
    margin-top: 16px;
    margin-bottom: 12px;
    color: var(--primary);
}

#redes {
    text-align: center;
}

.infobox p {
    margin: 8px 0;
    font-size: 0.95rem;
}

hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 20px 0;
}

.social-links a {
    color: #7dff8d;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #005e00;
    background: rgba(0, 94, 0, 0.2);
    transition: transform 0.5s ease, background-color 0.5s ease, color 0.5s ease,
        box-shadow 0.5s ease;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.social-icon {
    width: 18px;
    margin-right: 10px;
    text-align: center;
}

.social-links a:hover {
    background: #005e00;
    color: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 10px 24px rgba(0, 94, 0, 0.35);
}

.content-box {
    padding: 28px;
    text-align: justify;
}

h2 {
    color: var(--primary);
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-top: 28px;
    text-transform: uppercase;
}

ul,
ol {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

blockquote {
    border-left: 3px solid var(--primary);
    margin: 16px 0;
    padding: 6px 16px;
    color: #d6d6d6;
    background: rgba(255, 255, 255, 0.02);
}

.activi {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--primary);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

footer {
    text-align: center;
    color: #777;
    padding: 20px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px dashed var(--primary);
    outline-offset: 3px;
}

.top-link {
    position: fixed;
    right: 16px;
    bottom: 16px;
    text-decoration: none;
    background: var(--primary);
    color: #000;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.floating-nav {
    position: fixed;
    right: 16px;
    bottom: 64px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 4px;
}

.floating-nav.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-nav a {
    text-decoration: none;
    background: rgba(21, 21, 21, 0.94);
    border: 1px solid #2b2b2b;
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.floating-nav a:hover {
    background: #1b3814;
}

.floating-nav a.is-active {
    background: #005e00;
    border-color: #005e00;
    color: #fff;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 860px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        margin-top: -42px;
    }

    .hero {
        min-height: 260px;
    }

    .hero-subtitle {
        letter-spacing: 0.08em;
    }

    .content-box {
        text-align: left;
    }

    .floating-nav a {
        font-size: 0.74rem;
        padding: 5px 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}
