/* Base */
:root {
    --green-500: #4ade80;
    --gray-900: #0b0f17;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(1200px 600px at 20% -10%, #0f172a 0%, rgba(15, 23, 42, 0) 60%),
        radial-gradient(1200px 600px at 120% 10%, #052e1e 0%, rgba(5, 46, 30, 0) 55%),
        var(--gray-900);
    color: #fff;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Título do hero */
.hero-title {
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    font-size: 2.75rem;
    margin-bottom: .6rem;
}

@media (min-width:640px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width:1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Subtexto do hero */
.hero-lead {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

@media (min-width:640px) {
    .hero-lead {
        font-size: 1.25rem;
    }
}

/* Lista de especialidades */
.specialties {
    display: grid;
    gap: .6rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.specialties li {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #e5e7eb;
    /* gray-200 */
    font-weight: 600;
}

.specialties li i {
    width: 34px;
    height: 34px;
    border-radius: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 98, 16, .10);
    /* usa sua brand */
    border: 1px solid rgba(18, 98, 16, .35);
    color: var(--brand, #4ade80);
    font-size: 1.05rem;
}

.specialties li span {
    color: var(--brand-accent, #32A329);
    font-weight: 700;
}

/* Botões (garante contraste com brand escuro) */
.btn-solid {
    background: var(--brand, #4ade80);
    color: #fff;
}

.btn-solid:hover {
    background: var(--brand-hover, #1C9919);
}


/* Ícones */
.icon-xl {
    font-size: 1.75rem;
    line-height: 1;
}

.icon-2xl {
    font-size: 2.25rem;
    line-height: 1;
}

.icon-5xl {
    font-size: 64px;
    line-height: 1;
}

/* Cartela visual para ícone das habilidades */
.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(18, 98, 16, .10);
    /* usa o verde escuro translúcido */
    color: var(--brand, #4ade80);
    /* fallback: #4ade80 */
    border: 1px solid rgba(18, 98, 16, .35);
}

/* (opcional) utilitários de marca */
.text-brand {
    color: var(--brand, #4ade80) !important;
}

.bg-brand {
    background: var(--brand, #4ade80) !important;
}


/* Acessibilidade de foco */
:focus-visible {
    outline: 2px solid var(--green-500);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Links do menu */
.nav-link {
    color: rgb(156 163 175);
    /* text-gray-400 */
    transition: color .2s ease;
}

.nav-link:hover {
    color: var(--green-500);
}

/* Decorativos */
.accent-border {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dynamic-glow {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, .2), 0 20px 60px rgba(34, 197, 94, .08), inset 0 0 50px rgba(34, 197, 94, .06);
}

.project-bg-glow {
    position: relative;
}

.project-bg-glow::before {
    content: "";
    position: absolute;
    inset: -40px 0 0 0;
    pointer-events: none;
    background: radial-gradient(600px 160px at 50% 0, rgba(34, 197, 94, .12), rgba(34, 197, 94, 0));
    filter: blur(10px);
}

/* Cards */
.project-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .project-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
    }
}

/* ====== Cards 2 por viewport (desktop) ====== */
.card-2up {
    width: 100%;
}

/* mobile: 1 por view */
@media (min-width: 1024px) {

    /* lg: 2 por view */
    .card-2up {
        width: calc(50% - 1rem);
    }

    /* - gap/2 para alinhar com space-x-8 */
}

/* Ajuste das tags com ícone */
.tag i {
    margin-right: .35rem;
    font-size: 1rem;
    line-height: 1;
}

/* Botões redondos com ícones (principal e mini) — mantêm seu estilo */
#prev-btn i,
#next-btn i {
    font-size: 1.1rem;
    line-height: 1;
}

.carousel-prev i,
.carousel-next i {
    font-size: .95rem;
    line-height: 1;
}


/* Tags e botões */
.tag {
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .75rem;
    background: #374151;
    color: var(--green-500);
    border-radius: 9999px;
}

.btn-outline,
.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: .75rem;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-outline {
    border: 1px solid var(--green-500);
    color: var(--green-500);
}

.btn-outline:hover {
    background: var(--green-500);
    color: #111827;
}

.btn-solid {
    background: var(--green-500);
    color: #111827;
}

.btn-solid:hover {
    background: #4ade80;
}

/* Social buttons */
.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0b1220;
    color: var(--green-500);
    transition: transform .2s ease, background .2s ease;
}

.social:hover {
    background: #12233b;
    transform: translateY(-1px);
}

/* Carrossel principal: esconder scrollbar */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Mini-carrossel */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem;
    border-radius: 9999px;
    z-index: 10;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    transition: background .2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, .7);
}

.carousel-prev {
    left: .5rem;
}

.carousel-next {
    right: .5rem;
}

.carousel-dots {
    position: absolute;
    bottom: .5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: .4rem;
}

.dot {
    width: .5rem;
    height: .5rem;
    border-radius: 9999px;
    background: #6b7280;
    transition: transform .2s ease, background .2s ease;
}

.dot:hover {
    transform: scale(1.1);
}

.dot-active {
    background: var(--green-500);
}

/* Slides */
.carousel-slide {
    opacity: 1;
}

.slide-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Utilitários */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}