:root {
    --primary: #fff;
    --accent: #ffd700;
    --portal-size: 200px;
    --transition-speed: 1.5s;
    --mx: 0;
    --my: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(14px, 0.9vw + 0.5rem, 18px);
}

body {
    font-family: 'Outfit', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

#app {
    width: 100%;
    height: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slides */
#slides-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#slides-wrapper::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background: hsl(0deg 0% 0% /30%);
    z-index: 10;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: transform var(--transition-speed) cubic-bezier(0.7, 0, 0.3, 1),
        opacity var(--transition-speed) ease;
    will-change: transform, opacity;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide.leaving {
    transform: scale(5);
    opacity: 0;
    z-index: 2;
}

/* Background Parallax */
.slide-bg {
    position: absolute;
    top: -2%;
    left: -2%;
    width: 104%;
    height: 104%;
    background-size: cover;
    background-position: center;
    transform: translate(calc(var(--mx) * -20px), calc(var(--my) * -20px));
    transition: transform 0.1s ease-out;
}

/* Portal */
.portal-container {
    position: relative;
    width: var(--portal-size);
    height: var(--portal-size);
    z-index: 30;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(calc(var(--mx) * -40px), calc(var(--my) * -40px));
    transition: transform 0.1s ease-out, scale 0.3s ease;
}

.portal-container:hover {
    scale: 1.05;
}

.portal-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(255, 215, 0, 0.3);
    animation: portalPulse 4s infinite alternate;
}

.portal-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    animation: portalRotate 10s linear infinite;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

@keyframes portalPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.7);
    }
}

@keyframes portalRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.portal-preview-wrapper {
    width: 85%;
    height: 85%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

#portal-preview-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('../../Media/Map-Bg.jpg');
    /* Static map background */
    transform: scale(1.2);
    transition: transform 0.5s ease;
}

.portal-container:hover #portal-preview-content {
    transform: scale(1);
}

.portal-label {
    display: none;
    position: absolute;
    bottom: -40px;
}

/* UI Overlay */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dashboard-tiles {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    pointer-events: all;
    width: fit-content;
}

.tile {
    width: 12rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tile:hover,
.tile.active {
    /* transform: translateY(-10px); */
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

.tile-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: scale 0.6s ease;
}

.tile:hover .tile-img,
.tile.active .tile-img {
    scale: 1.1;
    opacity: 0.8;
}

.tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.tile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.tile:hover .tile-name,
.tile.active .tile-name {
    color: #ffd700;
}

/* Nav Arrows */
.tile-nav {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    pointer-events: all;
    padding-left: 40px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.1);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.glass-panel {
    background: rgba(17, 25, 40, 0.4);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    margin-bottom: auto;
    /* Push slide-info to the bottom */
    margin-top: 100px;
    /* Position it somewhat higher */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    animation: panelSlideIn 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.panel-title {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0.6;
    color: var(--accent);
}

@keyframes panelSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#slide-info {
    transition: opacity 0.5s ease;
}

.slide-subtitle {
    font-size: 2vmin;
    letter-spacing: 5px;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.7;
    display: none;
}

.slide-title {
    font-size: 3.8vmin;
    font-weight: 600;
    letter-spacing: 0px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #fff;
    display: none;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInFeature 0.5s ease forwards;
}

.features-list li:nth-child(1) {
    animation-delay: 0.2s;
}

.features-list li:nth-child(2) {
    animation-delay: 0.3s;
}

.features-list li:nth-child(3) {
    animation-delay: 0.4s;
}

.features-list li:nth-child(4) {
    animation-delay: 0.5s;
}

.features-list li:nth-child(5) {
    animation-delay: 0.6s;
}

.features-list li .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.features-list li .arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes fadeInFeature {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-dots {
    display: none;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--accent);
}

/* Central Hub Styles from index.html */
.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vmin;
    height: 30vmin;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
    /* High z-index to be clickable and visible */
    border: solid 3px skyblue;
    text-decoration: none;
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.3s ease;
}

.central-hub:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.hub-text {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hub-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2vmin;
    letter-spacing: 0.1vmin;
    margin-bottom: 0.5vmin;
    text-shadow: 0 0 10px #000000;
    color: white;
    text-transform: uppercase;
}

.hub-text h1 img {
    animation: pulseCenter 3s infinite ease-in-out;
}

.hub-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgb(0 229 255 / 20%) 0%, transparent 40%);
    pointer-events: none;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 0.77;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes pulseCenter {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@media screen and (min-width: 769px) {
    .tile {
        width: 30vmin;
        height: 12.5vmin;
        border-radius: 2vmin;
    }

    .tile-name {
        font-size: 3vmin;
    }

    .portal-container {
        width: 28vmin;
        height: 28vmin;
    }

    .hub-text h1 {
        font-size: 1.8vmin;
    }

    .tile-nav {
        padding-left: 4vmin;
    }

    .nav-btn {
        width: 7vmin;
        height: 7vmin;
    }

    .dashboard-tiles {
        display: flex;
        flex-direction: column;
        gap: 3vmin;
        margin-top: 5vmin;
    }

    .tile-content {
        padding: 2vmin;
    }
}