:root {
    --bg-color: #012b20;
    --container-bg: #014c36;
    --text-color: #ffffff;
    --accent-color: #00ff88;
    --link-bg: #016a4b;
    --link-hover: #00ff88;
    --link-text: #ffffff;
    --white-color: #ffffff;
    --overlay-dark: rgba(1, 43, 32, 0.75);
    --shadow-soft: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
    --border-light: rgba(255, 255, 255, 0.15);
    --overlay-header: rgba(255, 255, 255, 0.08);
    --overlay-btn-dark: rgba(0, 0, 0, 0.35);
    --font-main: "Poppins", sans-serif;
}

.dark-theme {
    --bg-color: #fafafa;
    --container-bg: #ffffff;
    --text-color: #111;
    --link-bg: #e9e9e9;
    --link-text: #111;
    --link-hover: #00c896;
    --overlay-dark: rgba(255, 255, 255, 0.6);
    --shadow-soft: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.25);
    --border-light: rgba(0, 0, 0, 0.15);
    --overlay-header: rgba(255, 255, 255, 0.25);
    --overlay-btn-dark: rgba(255, 255, 255, 0.25);
}

/* Fundo e estrutura */
body {
    background: var(--bg-color) url("/assets/img/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    backdrop-filter: blur(5px);
    z-index: -1;
    transition: background-color 0.6s ease, color 0.4s ease;
}

html,
body,
.container,
.link,
.about__btn,
.faq-question,
.info-card,
.info-card__button {
    transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease,
        box-shadow 0.4s ease;
}

body {
    transition: none;
}

/* Container principal */
.container {
    background: var(--container-bg);
    border-radius: 25px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-soft);
    transition: background 0.6s ease, opacity 0.6s ease;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0.9;
        transform: scale(0.99);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--container-bg) 100%);
    opacity: 1;
}
.dark-theme .hero::before {
    opacity: 0;
}

.hero::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #ffffff 100%);
    opacity: 0;
}
.dark-theme .hero::after {
    opacity: 1;
}

/* Perfil */
.profile {
    padding: 1.8rem 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.profile__name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.profile__bio {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.3rem;
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
}

.socials a {
    color: var(--text-color);
    transition: color 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
    color: var(--link-hover);
    transform: scale(1.1);
}

/* Links */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--link-bg);
    color: var(--link-text);
    font-weight: 600;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    width: 100%;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.link:hover {
    background: var(--link-hover);
    color: #000;
    transform: translateY(-3px);
}

/* Video */
.video-card {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 20px var(--shadow-strong);
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    font-size: 0.8rem;
    opacity: 0.6;
    padding-bottom: 1.5rem;
}

/* Botão de tema */
#theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--overlay-btn-dark);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: 0.3s ease;
}
#theme-toggle:hover {
    background: var(--accent-color);
    color: #000;
}
#theme-toggle i {
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.dark-theme #theme-toggle i {
    transform: rotate(180deg);
}

/* Sobre */
.about {
    width: 100%;
    padding: 1.5rem 2rem;
}
.about__btn {
    width: 100%;
    background: var(--link-bg);
    color: var(--link-text);
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}
.about__btn:hover {
    background: var(--link-hover);
    color: #000;
}
.about__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 0.5rem;
}
.about__content.open {
    max-height: 200px;
    opacity: 1;
}
.about__content p {
    color: var(--text-color);
    opacity: 0.75;
}

/* Galeria */
.gallery {
    width: 100%;
    padding: 1.5rem 2rem;
    position: relative;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-track img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--overlay-btn-dark);
    border: none;
    color: var(--white-color);
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* FAQ */
.faq {
    width: 100%;
    padding: 2rem 2rem;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.faq-question i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    text-align: left;
}

.faq-answer.open {
    max-height: 250px;
    opacity: 1;
    margin-top: 0.6rem;
}

.faq-answer p {
    color: var(--text-color);
    opacity: 0.75;
    font-size: 0.92rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

/* Mapa */
.map {
    width: 100%;
    padding: 1.5rem 2rem;
}
.map iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 12px;
}

/* Header flutuante */
#floating-header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    width: 90%;
    max-width: 436px;
    background: var(--overlay-header);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 30px var(--shadow-strong);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.45s ease, opacity 0.45s ease;
    z-index: 100;
    opacity: 0.97;
}

#floating-header.visible {
    transform: translateX(-50%) translateY(0);
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

#header-theme-toggle {
    background: var(--overlay-btn-dark);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#header-theme-toggle:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.08);
}

/* Responsividade */
@media (max-width: 500px) {
    body {
        padding: 0;
    }

    #floating-header {
        width: 92%;
        top: 12px;
        border-radius: 12px;
    }

    .container {
        border-radius: 0;
        max-width: 100vw;
        width: 100vw;
        box-shadow: none;
    }

    .hero {
        aspect-ratio: 4 / 3;
    }

    .profile__name {
        font-size: 1.5rem;
    }

    .link {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* Card Section */
.card-section {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.info-card {
    background: var(--container-bg);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 25px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-strong);
}

.info-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.info-card__content {
    padding: 1.5rem;
    text-align: center;
}

.info-card__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-card__text {
    font-size: 0.95rem;
    opacity: 0.8;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.info-card__button {
    display: inline-block;
    border: 2px solid var(--link-text);
    color: var(--link-text);
    font-weight: 600;
    padding: 0.4rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-card__button:hover {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: #000;
}

@media (max-width: 480px) {
    .info-card {
        max-width: 100%;
    }

    .info-card__image {
        height: 180px;
    }
}
