/* ============================================
   ISEO PROJECTION - MAIN STYLES
   ============================================ */

/* Root Variables */
:root {
    --accent: #f15a24;
    --background-light: #f7f7f7;
    --background-dark: #191919;
}

/* Material Symbols Font */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Hero Section */
.hero-overlay {
    background: linear-gradient(rgba(10, 17, 25, 0.1), rgba(17, 25, 44, 0.55));
}

/* Mega Menu */
.mega-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    z-index: 60;
    padding-top: 1rem;
}

.nav-item:hover .mega-menu-content {
    display: block;
}

.nav-link-hover {
    position: relative;
}

.nav-link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #f15a24;
    transition: all ease;
}

.nav-link-hover:hover::after {
    width: 100%;
}

.hero-section {
    position: relative;
}

/* ============================================
   SUPPORT FLOATING WIDGET - ANIMATED STATES
   ============================================ */
.support-widget {
    position: fixed;
    z-index: 40;
    font-family: inherit;
}

/* Desktop Version */
@media (min-width: 769px) {
    .support-widget {
        bottom: 40px;
        right: 40px;
        width: 380px;
    }

    /* Icon Button - Always visible */
    .support-icon-btn {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
        border: none;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(255, 102, 0, 0.3);
        transition: all 0.3s ease;
        z-index: 41;
        opacity: 1;
    }

    .support-icon-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 32px rgba(255, 102, 0, 0.4);
    }

    .support-icon-btn:active {
        transform: scale(0.95);
    }

    .support-icon-btn.hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* Card - Hidden/Visible States */
    .support-card {
        position: absolute;
        bottom: 70px;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
        border-radius: 16px;
        padding: 28px 24px 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12),
                    0 0 1px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .support-card.open {
        opacity: 1;
        max-height: 500px;
        pointer-events: auto;
        transform: translateY(0);
    }

    .support-card:hover:not(.open) {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15),
                    0 0 1px rgba(0, 0, 0, 0.08);
        transform: translateY(-4px);
    }

    .support-close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: #999;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .support-close-btn:hover {
        background: #f0f0f0;
        color: #333;
    }

    .support-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .support-avatar-desktop {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
    }

    .support-header-text h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.2;
    }

    .support-header-text p {
        margin: 4px 0 0 0;
        font-size: 12px;
        color: #666;
        font-weight: 500;
    }

    .support-message {
        background: #f0f7ff;
        border-left: 3px solid #ff6600;
        padding: 12px 14px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.5;
        color: #333;
    }

    .support-message strong {
        color: #ff6600;
        font-weight: 700;
    }

    .support-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
        color: white;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        width: 100%;
        justify-content: center;
        box-shadow: 0 8px 16px rgba(255, 102, 0, 0.25);
    }

    .support-cta + .support-cta {
        margin-top: 12px;
    }

    .support-cta:hover {
        background: linear-gradient(135deg, #e65c00 0%, #ff7a1a 100%);
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(255, 102, 0, 0.35);
    }

    .support-cta:active {
        transform: translateY(0);
    }
}

/* Mobile Version */
@media (max-width: 768px) {
    .support-widget {
        bottom: 20px;
        right: 20px;
        width: auto;
    }

    .support-icon-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
        border: none;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
        transition: all 0.3s ease;
        z-index: 41;
        opacity: 1;
    }

    .support-icon-btn:active {
        transform: scale(0.9);
    }

    .support-icon-btn.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .support-card {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 85vw;
        max-width: 320px;
        background: white;
        border-radius: 12px;
        padding: 20px 16px 16px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
        border: 1px solid #f0f0f0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .support-card.open {
        opacity: 1;
        max-height: 500px;
        pointer-events: auto;
        transform: translateY(0);
    }

    .support-close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border: none;
        background: transparent;
        color: #999;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .support-close-btn:active {
        background: #f0f0f0;
    }

    .support-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .support-avatar-desktop {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 14px;
        flex-shrink: 0;
        box-shadow: 0 3px 10px rgba(255, 102, 0, 0.2);
    }

    .support-header-text h3 {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.2;
    }

    .support-header-text p {
        margin: 2px 0 0 0;
        font-size: 11px;
        color: #666;
        font-weight: 500;
    }

    .support-message {
        background: #f0f7ff;
        border-left: 3px solid #ff6600;
        padding: 10px 12px;
        border-radius: 6px;
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.4;
        color: #333;
    }

    .support-message strong {
        color: #ff6600;
        font-weight: 700;
    }

    .support-cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
        color: white;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        width: 100%;
        justify-content: center;
        box-shadow: 0 6px 14px rgba(255, 102, 0, 0.2);
    }

    .support-cta + .support-cta {
        margin-top: 10px;
    }

    .support-cta:active {
        transform: scale(0.95);
    }
}




/* Carousel Styles */
.carousel-viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-viewport.grabbing {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    height: 100%;
    width: 100%;
}

/* Mobile Menu */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.dark #mobile-menu {
    background-color: rgba(10, 17, 25, 0.98);
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Accordion */
.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* ============================================
   RESPONSIVE TABS - SCROLLABLE ON MOBILE
   ============================================ */
.tabs-scroll-container {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar while keeping functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    scroll-snap-align: center;
    transition: all 0.3s ease;
}

.tab-btn:active {
    transform: scale(0.98);
}

/* Desktop: Don't show scroll, center content */
@media (min-width: 769px) {
    .tabs-scroll-container {
        justify-content: center;
        overflow-x: visible !important;
    }
}

/* Mobile: Show horizontal scroll with padding */
@media (max-width: 768px) {
    .tabs-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
        margin: 0 -16px;
    }

    .tab-btn {
        font-size: 11px;
        padding: 10px 14px !important;
    }
}

.mobile-accordion-checkbox:checked ~ .mobile-accordion-content {
    max-height: 500px;
}

.mobile-accordion-checkbox:checked ~ label .arrow-icon {
    transform: rotate(180deg);
}

/* Gallery */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #0A1119;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-btn.active {
    background-color: #f15a24;
    color: white;
    border-color: #f15a24;
}
/* Version mobile */
@media (max-width: 768px) {
    .tab-btn {
        font-size: 14px;
        padding: 10px 14px;
    }

    .tab-btn.active {
        background-color: #f15a24;
        color: white;
        border-color: #f15a24;
    }
}

/* Pagination Dots */
.pagination-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #cbd5e1;
    cursor: pointer;
}

.dark .pagination-dot {
    background-color: #334155;
}

.pagination-dot.active {
    width: 24px;
    background-color: #f15a24;
}
