/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00f0ff;
    --secondary: #ff00e5;
    --accent: #f0ff00;
    --dark: #0a0a1a;
    --darker: #050510;
    --text: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    cursor: crosshair;
}

/* ===== Starfield Canvas ===== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== Navigation ===== */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    padding: 15px 8px;
    border-right: 2px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    border-right-color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

/* ===== Sections ===== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    position: relative;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 1;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    color: white;
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        0 0 80px var(--secondary);
    animation: glitch 2s infinite;
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary);
    animation: glitch-1 0.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px);
}

.glitch::after {
    color: var(--secondary);
    animation: glitch-2 0.5s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px);
}

@keyframes glitch {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(-2px); }
    25% { transform: translate(2px); }
    50% { transform: translate(-1px); }
    75% { transform: translate(1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(2px); }
    25% { transform: translate(-2px); }
    50% { transform: translate(1px); }
    75% { transform: translate(-1px); }
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 3vw, 2rem);
    letter-spacing: 20px;
    color: var(--primary);
    margin-top: 20px;
    animation: fadeInUp 1s ease 0.3s both;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-top: 30px;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-buttons {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.9s both;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.6;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

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

/* ===== Video Section ===== */
.video-section {
    background: linear-gradient(180deg, transparent, rgba(255, 0, 229, 0.05), transparent);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    width: 100%;
    margin-top: 60px;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.video-container:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(255, 0, 229, 0.3);
    transform: translateY(-10px);
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-container h3 {
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary);
}

/* ===== Gallery Section ===== */
.gallery {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.05), transparent);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    opacity: 0.7;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.5s ease;
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item:hover {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
    transform: scale(1.02);
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.overlay p {
    opacity: 0.8;
}

/* ===== Sounds Section ===== */
.sounds {
    background: radial-gradient(ellipse at center, rgba(255, 0, 229, 0.1) 0%, transparent 70%);
}

.sound-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.sound-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 280px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sound-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(255, 0, 229, 0.3);
}

.sound-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.sound-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sound-card p {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.sound-wave {
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 40px;
    align-items: flex-end;
}

.sound-wave span {
    width: 4px;
    background: var(--secondary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.sound-wave span:nth-child(1) { animation-delay: 0s; height: 10px; }
.sound-wave span:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.sound-wave span:nth-child(3) { animation-delay: 0.2s; height: 30px; }
.sound-wave span:nth-child(4) { animation-delay: 0.3s; height: 20px; }
.sound-wave span:nth-child(5) { animation-delay: 0.4s; height: 10px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2); }
}

.sound-card.playing .sound-wave span {
    animation-duration: 0.5s;
}

/* ===== Experience Section ===== */
.experience {
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

.experience-preview {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.experience-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 30px;
    padding: 50px;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.experience-card:hover {
    transform: translateY(-20px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 240, 255, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--secondary), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.experience-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.experience-card > p {
    opacity: 0.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.experience-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.experience-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-card .btn {
    position: relative;
    z-index: 1;
    display: inline-block;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
}

footer .small {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 10px;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 80%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.lightbox .close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-content {
    text-align: center;
    margin-top: 20px;
}

.lightbox-content h3 {
    font-size: 2rem;
    color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .floating-nav {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
    }
    
    .nav-link {
        writing-mode: horizontal-tb;
        border-right: none;
        border-bottom: 2px solid transparent;
        padding: 8px 15px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-right-color: transparent;
        border-bottom-color: var(--primary);
    }
    
    .gallery-item.large {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .sound-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Custom Cursor Effect ===== */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    animation: trail 0.5s ease forwards;
}

@keyframes trail {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

/* ===== Video Links ===== */
.video-links {
    margin-top: 60px;
    text-align: center;
}

.video-links h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.link-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.external-link {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.external-link:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Video container fix */
.video-container video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
}

/* ===== GIF Gallery ===== */
.gif-gallery {
    margin-top: 80px;
    text-align: center;
}

.gif-gallery h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gif-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

.gif-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 229, 0.5);
}

/* ===== Animation Section ===== */
.animation-section {
    background: linear-gradient(180deg, transparent, rgba(255, 0, 229, 0.05), transparent);
}

.animation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1400px;
    width: 100%;
    margin-top: 60px;
}

.animation-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.animation-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.animation-item:hover img {
    transform: scale(1.1);
}

.animation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.animation-item:hover .animation-overlay {
    transform: translateY(0);
}

.animation-item:hover {
    box-shadow: 0 0 40px rgba(255, 0, 229, 0.5);
    transform: scale(1.05);
}

.animation-overlay h3 {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* ===== Space Fact Card ===== */
.space-fact {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 15px;
    padding: 20px 30px;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1s ease 1.2s both;
    z-index: 10;
}

.fact-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fact-content h4 {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.fact-content p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* ===== Screenshot Button ===== */
.screenshot-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Responsive for Space Fact ===== */
@media (max-width: 768px) {
    .space-fact {
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
        flex-direction: column;
        text-align: center;
        bottom: 140px;
    }
    
    .fact-icon {
        font-size: 2.5rem;
    }
}

/* ===== Sound Link Cards ===== */
.sound-link-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 280px;
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.sound-link-card:hover {
    transform: translateY(-10px);
    border-color: #ff00e5;
    box-shadow: 0 20px 40px rgba(255, 0, 229, 0.3);
}

.sound-link-card .sound-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.sound-link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.sound-link-card p {
    opacity: 0.6;
    font-size: 0.9rem;
}
