/* Liquid glass refraction */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 32px rgba(0,0,0,0.05);
}

.glass-dark {
    background: rgba(26, 42, 58, 0.85); /* Deep Navy */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 12px 40px rgba(0,0,0,0.15);
}

.glass-dock {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 12px 32px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Animations */
.carousel-slide {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 10;
}

.carousel-slide.hidden-slide {
    opacity: 0;
    transform: translateY(20px);
    z-index: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* World Map SVG */
.map-region {
    fill: #4A5B6E;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    transform-origin: center;
}

.map-region:hover {
    fill: #1E6B6B;
}

.map-region.active {
    fill: #D4AF37;
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}

.map-pin {
    fill: #D4AF37;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.map-pin:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.6));
}

.map-pin.active {
    transform: scale(1.3);
    fill: #1E6B6B;
}

/* Accordion timeline */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-item.active .accordion-content {
    max-height: 600px;
}
.accordion-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-item.active .accordion-icon {
    transform: rotate(90deg);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
    background: #4A5B6E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1A2A3A;
}

/* Chat window specific */
.chat-window::-webkit-scrollbar {
    width: 4px;
}

/* Layout utilities */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive elements */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-magnetic:active {
    transform: scale(0.96);
}

/* Progress bar fill */
.progress-fill {
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
