:root {
    --cyan: #00f2ff;
    --magenta: #ff00ff;
    --deep-space: #020617;
}

body {
    margin: 0; background-color: var(--deep-space); color: #fff;
    font-family: 'Quicksand', sans-serif; overflow-x: hidden;
    -webkit-user-select: none; user-select: none; touch-action: pan-y;
}

.stars, .twinkling { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.stars { background: #000 url(/lightcode-compass/img/stars.png) repeat; z-index: -2; }
.twinkling {
    background: transparent url(/lightcode-compass/img/twinkling.png) repeat;
    z-index: -1; animation: move-twink 200s linear infinite;
}
@keyframes move-twink { from {background-position:0 0;} to {background-position:-10000px 5000px;} }

.container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; text-align: center; position: relative; }

.welcome-text { font-size: 1.6rem; letter-spacing: 6px; }
.sub-title { font-size: 1.8rem; letter-spacing: 4px; }
.animated-title {
    font-family: 'Orbitron', sans-serif; line-height: 1.4;
    background: linear-gradient(90deg, #fff, var(--cyan), var(--magenta), var(--cyan), #fff);
    background-size: 300% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: frequency-shift 3s infinite ease-in-out, color-wave 5s linear infinite;
    display: inline-block;
}

.animated-slider-title {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, var(--cyan), #fff, var(--cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: frequency-shift 4s infinite ease-in-out, color-wave 6s linear infinite;
}

@keyframes frequency-shift {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--cyan)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 10px var(--magenta)); }
}
@keyframes color-wave { to { background-position: 300% center; } }

.glow-line { height: 2px; width: 100px; background: var(--cyan); margin: 15px auto 50px; box-shadow: 0 0 10px var(--cyan); }

.video-portal {
    position: relative; width: 100%; max-width: 700px; margin: 0 auto 40px;
    border-radius: 150px; overflow: hidden; box-shadow: 0 0 50px rgba(255, 0, 255, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}
.video-portal video { width: 100%; transform: scale(1.05); }

/* FIXED HEIGHT TEXT SLIDER */
.info-slider-section {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    padding: 35px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px; text-align: left;
    min-height: 350px; /* Lock height to prevent page jumping */
    display: flex; flex-direction: column;
}

.slider-header { font-size: 1rem; margin-bottom: 25px; text-align: center; letter-spacing: 2px; border-bottom: 1px solid rgba(0, 242, 255, 0.2); padding-bottom: 10px; }

.info-display { 
    flex-grow: 1; /* Allows content to take up available space */
    display: flex; align-items: center; /* Centers content vertically */
    position: relative; 
}

.text-slide { display: none; animation: fadeIn 0.5s ease-in-out; width: 100%; }
.text-slide.active { display: block; }
.text-slide h2 { color: var(--cyan); font-family: 'Orbitron', sans-serif; font-size: 1.2rem; margin-top: 0; }
.text-slide p { font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }

.info-nav-bottom { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
.nav-btn-circle {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--cyan);
    color: #fff; width: 50px; height: 50px; cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    transition: all 0.3s ease;
}
.nav-btn-circle:hover { background: var(--cyan); color: #000; box-shadow: 0 0 15px var(--cyan); transform: scale(1.1); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Rainbow & Gallery Styles */
.rainbow-border {
    position: relative; background: rgba(255, 255, 255, 0.05);
    border: 4px solid transparent; border-radius: 30px; padding: 40px;
    margin-top: 60px; display: flex; flex-direction: column; align-items: center;
    background-clip: padding-box;
}
.rainbow-border::after {
    content: ''; position: absolute; top: -4px; bottom: -4px; left: -4px; right: -4px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%; z-index: -1; border-radius: 34px; animation: rainbow-glow 20s linear infinite; filter: blur(2px);
}
.rainbow-button {
    display: inline-block; padding: 18px 45px; border-radius: 50px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%; color: #fff; font-weight: bold; text-decoration: none;
    font-family: 'Orbitron', sans-serif; animation: rainbow-glow 15s linear infinite;
    box-shadow: 0 0 20px rgba(255,255,255,0.2); border: none; transition: transform 0.3s;
}
@keyframes rainbow-glow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.atune-logo { max-width: 300px; height: auto; margin-bottom: 20px; }
.atune-text h3 { font-family: 'Orbitron', sans-serif; color: #fff; text-shadow: 0 0 10px var(--cyan); }

.slider-wrapper { overflow: hidden; width: 100%; padding: 40px 0; cursor: pointer; }
.slider-container { display: flex; gap: 30px; transition: transform 0.1s linear; justify-content: center; }
.slide-card { max-width: 768px; width: 90vw; border-radius: 15px; transition: transform 0.3s ease; }
.slide-card img { width: 100%; height: auto; border-radius: 15px; pointer-events: none; display: block; }

.lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.98); display: none; align-items: center; justify-content: center; z-index: 99999; }
.lightbox-content { width: 95vw; height: 95vh; display: flex; justify-content: center; align-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: 1px solid var(--cyan); }
.close-btn { position: absolute; top: 10px; right: 25px; color: #fff; font-size: 60px; cursor: pointer; z-index: 100000; }

/* Mobile Height Adjustment */
@media (max-width: 768px) {
    .info-slider-section { min-height: 480px; }
    .slide-card { width: 95vw; }
}