html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Base Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Details/Summary Animation */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary~* {
    animation: open-details 0.3s ease-in-out;
}

@keyframes open-details {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container Utility */
.section-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .section-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* Shine Button Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.btn-shine::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    transform: skewX(-20deg);
}

.btn-shine:hover::before {
    animation: btn-shine-sweep 0.5s ease-in-out;
}

.btn-shine:hover {
    box-shadow: 0 0 12px 2px rgba(247, 186, 27, 0.3);
}

.btn-shine-blue:hover {
    box-shadow: 0 0 12px 2px rgba(6, 48, 94, 0.35);
}

@keyframes btn-shine-sweep {
    from {
        opacity: 0;
        left: 0%;
    }

    50% {
        opacity: 0.6;
    }

    to {
        opacity: 0;
        left: 100%;
    }
}

.btn-shine:active {
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease-in;
}

/* ===== 3D ORBITAL CAROUSEL ===== */
.orbital-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.carousel {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    cursor: grab;
    user-select: none;
}

.carousel:active {
    cursor: grabbing;
}

.orbital-item {
    position: absolute;
    top: calc(50% + 30px);
    left: 50%;
    transform-style: preserve-3d;
    transition: opacity 0.15s ease;
    will-change: transform, opacity;
    /* z-index sera controlado via JS */
}

/* Glassmorphism Card with Shine Effect */
.orbital-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(6, 48, 94, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Shine effect pseudo-element */
.orbital-card::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    transform: skewX(-20deg);
    z-index: 10;
}

.orbital-card:hover::before {
    animation: btn-shine-sweep 0.5s ease-in-out;
}

.orbital-card:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(6, 48, 94, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Highlighted Card (R$ 10.000) */
.orbital-card.highlight {
    background: linear-gradient(135deg, #F7BA1B 0%, #f5c842 100%);
    border: 2px solid #d9a300;
    box-shadow:
        0 8px 32px rgba(247, 186, 27, 0.35),
        0 2px 8px rgba(217, 163, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.orbital-card.highlight:hover {
    background: linear-gradient(135deg, #ffe066 0%, #ffeb99 100%);
    border-color: #d9a300;
    box-shadow:
        0 12px 40px rgba(247, 186, 27, 0.5),
        0 4px 12px rgba(217, 163, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.orbital-card.highlight .orbital-icon {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.orbital-card.highlight:hover .orbital-icon {
    background: #ffffff;
}

.orbital-icon {
    width: 36px;
    height: 36px;
    background: rgba(6, 48, 94, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.orbital-card:hover .orbital-icon {
    background: rgba(6, 48, 94, 0.15);
}

.orbital-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.orbital-icon .material-symbols-outlined {
    font-size: 20px;
    color: #06305E;
}

.orbital-card.highlight .orbital-icon .material-symbols-outlined {
    color: #d9a300;
}

.orbital-text {
    font-size: 15px;
    font-weight: 700;
    color: #06305E;
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
}

/* Center Logo - z-index 50 (cards passam frente/trás) */
.center-logo {
    position: absolute;
    top: calc(50% - 40px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    animation: logoFadeIn 0.4s ease-out forwards;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.center-logo img {
    width: 160px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(6, 48, 94, 0.25));
}

@media (min-width: 768px) {
    .center-logo img {
        width: 300px;
    }

    .center-logo {
        top: calc(50% - 40px);
    }
}

/* Responsive orbital cards for mobile */
@media (max-width: 767px) {
    .center-logo {
        top: calc(50% - 20px);
    }

    .orbital-card {
        padding: 6px 10px 6px 6px;
        gap: 6px;
        border-radius: 10px;
        transform: scale(0.85);
    }

    .orbital-icon {
        width: 28px;
        height: 28px;
    }

    .orbital-icon img {
        width: 14px;
        height: 14px;
    }

    .orbital-icon .material-symbols-outlined {
        font-size: 14px;
    }

    .orbital-text {
        font-size: 11px;
    }
}