/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: #000;
}

/* Hero Section - Full Viewport */
.galaxy-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    background-image: url('background2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

/* Dark overlay to reduce background brightness */
.galaxy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}



/* Planet Base Styles */
.planet {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    z-index: 2;
    outline: none !important;
    border: none !important;
}

.planet:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

.planet:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.planet:focus-visible {
    outline: none !important;
    border: none !important;
}

.planet img {
    outline: none !important;
    border: none !important;
}

.planet:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 10px;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

.planet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Central Logo */
.central-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 10;
    pointer-events: none;
}

.central-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

/* Tagline */
.tagline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 240px; /* Position below the logo */
    z-index: 10;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

/* Social Icons */
.social-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 340px; /* Position below the tagline */
    display: flex;
    gap: 30px;
    z-index: 10;
}

.social-icon {
    width: 32px;
    height: 32px;
    color: #ffffff;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(217, 55, 187, 0.8));
}

.social-icon:hover svg {
    fill: url(#social-gradient);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Planet Positioning - Desktop (Orbiting around center logo in clock pattern) */

/* 2 o'clock - Top Right (mirrors Verdantis) */
.planet-solara {
    bottom: 12%;
    left: 8%;
    width: 250px;
    height: 250px;
    animation: float-1 6s ease-in-out infinite;
}

/* 11 o'clock - Top Left */
.planet-verdantis {
    top: 22%;
    left: 5%;
    width: 250px;
    height: 250px;
    animation: float-2 7s ease-in-out infinite;
}

/* 12 o'clock - Top Center */
.planet-seenstar {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    animation: float-3 5.5s ease-in-out infinite;
}

/* 8 o'clock - Bottom Left */
.planet-earth {
    top: 22%;
    right: 3%;
    width: 250px;
    height: 250px;
    animation: float-4 6.5s ease-in-out infinite;
}

/* 4 o'clock - Bottom Right (mirrors Earth) */
.planet-braxx {
    bottom: 12%;
    right: 8%;
    width: 250px;
    height: 250px;
    animation: float-5 5s ease-in-out infinite;
}

/* Trading Post, Transmissions, Information Station, and Game Portal */
.trading-post,
.transmissions,
.information-station,
.game-portal {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    z-index: 2;
}

.trading-post:hover,
.transmissions:hover,
.information-station:hover,
.game-portal:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

.trading-post:focus,
.transmissions:focus,
.information-station:focus,
.game-portal:focus {
    outline: none !important;
    border: none !important;
}

.trading-post img,
.transmissions img,
.information-station img,
.game-portal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* 4 o'clock - Right Side (mirrors Transmissions) */
.trading-post {
    top: 15%;
    right: 12%;
    width: 250px;
    height: 250px;
    animation: float-trading 6.5s ease-in-out infinite;
}

/* 10 o'clock - Upper Left */
.transmissions {
    top: 15%;
    left: calc(12% + 80px);
    width: 250px;
    height: 250px;
    animation: float-transmissions 5.5s ease-in-out infinite;
}

/* Between Earth and Logo - Lower Left area */
.information-station {
    bottom: 35%;
    left: 25%;
    width: 200px;
    height: 200px;
    animation: float-info-station 6s ease-in-out infinite;
}

/* Between Braxx and Logo - Lower Right area */
.game-portal {
    bottom: 35%;
    right: 25%;
    width: 220px;
    height: 220px;
    animation: float-game-portal 7s ease-in-out infinite;
}

/* Floating Animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateX(-50%) translateY(0px) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-15px) rotate(-2deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

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

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

@keyframes float-transmissions {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-info-station {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes float-game-portal {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(1.5deg); }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: none;
    border-radius: 20px;
    padding: 40px;
    max-width: 750px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #ff6b6b;
}

.modal-body {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .central-logo {
        width: 300px;
        height: 300px;
    }

    .tagline {
        font-size: 28px;
        letter-spacing: 2px;
        margin-top: 180px;
    }

    .social-icons {
        margin-top: 270px;
        gap: 25px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .planet-solara {
        bottom: 10%;
        left: 5%;
        width: 180px;
        height: 180px;
    }

    .planet-verdantis {
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
        width: 200px;
        height: 200px;
    }

    .planet-seenstar {
        top: 10%;
        right: 5%;
        width: 180px;
        height: 180px;
    }

    .planet-earth {
        top: 10%;
        right: 5%;
        width: 180px;
        height: 180px;
    }

    .planet-braxx {
        top: 50%;
        right: 5%;
        transform: translateY(-50%);
        width: 180px;
        height: 180px;
    }

    .trading-post {
        top: 10%;
        width: 200px;
        height: 200px;
    }

    .transmissions {
        bottom: 10%;
        right: 5%;
        width: 180px;
        height: 180px;
    }

    .information-station {
        top: 50%;
        left: 3%;
        transform: translateY(-50%);
        width: 140px;
        height: 140px;
    }

    .game-portal {
        top: 50%;
        right: 3%;
        transform: translateY(-50%);
        width: 160px;
        height: 160px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .central-logo {
        width: 200px;
        height: 200px;
    }

    .tagline {
        font-size: 18px;
        letter-spacing: 1.5px;
        margin-top: 120px;
        line-height: 1.5;
    }

    .social-icons {
        margin-top: 200px;
        gap: 20px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .planet-solara {
        bottom: 8%;
        left: 5%;
        transform: none;
        width: 120px;
        height: 120px;
    }

    .planet-verdantis {
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
        width: 130px;
        height: 130px;
    }

    .planet-seenstar {
        top: 8%;
        right: 50%;
        left: auto;
        transform: translateX(50%);
        width: 120px;
        height: 120px;
    }

    .planet-earth {
        top: 8%;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 120px;
    }

    .planet-braxx {
        top: 50%;
        right: 5%;
        transform: translateY(-50%);
        width: 120px;
        height: 120px;
    }

    .trading-post {
        top: 8%;
        width: 120px;
        height: 120px;
    }

    .transmissions {
        bottom: 8%;
        right: 5%;
        width: 110px;
        height: 110px;
    }

    .information-station {
        top: 50%;
        left: 2%;
        transform: translateY(-50%);
        width: 90px;
        height: 90px;
    }

    .game-portal {
        top: 50%;
        right: 2%;
        transform: translateY(-50%);
        width: 100px;
        height: 100px;
    }

    .modal-content {
        padding: 30px;
        width: 95%;
    }

    .modal-body {
        font-size: 16px;
    }

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

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

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

/* Mobile-Only Sections - Hidden by default */
.mobile-hero,
.mobile-cards-section {
    display: none;
}

/* Mobile-Only Header - Hidden by default on desktop */
.mobile-only-header {
    display: none;
}

/* Mobile Layout - 768px and below */
@media (max-width: 768px) {
    /* Hide desktop galaxy elements on mobile */
    .galaxy-hero .planet,
    .galaxy-hero .trading-post,
    .galaxy-hero .transmissions,
    .galaxy-hero .information-station,
    .galaxy-hero .game-portal,
    .galaxy-hero .central-logo,
    .galaxy-hero .tagline {
        display: none;
    }

    .galaxy-hero {
        display: none;
    }

    /* Show mobile sections */
    .mobile-hero,
    .mobile-cards-section {
        display: block;
    }

    /* Show mobile header */
    .mobile-only-header {
        display: block;
    }

    /* Mobile Hero */
    .mobile-hero {
        position: relative;
        width: 100%;
        height: 100vh;
        background-color: #000;
        background-image: url('background2.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .mobile-hero-content {
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .mobile-logo {
        width: 250px;
        height: 250px;
        margin-bottom: 30px;
    }

    .mobile-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
    }

    .mobile-tagline {
        color: #ffffff;
        font-size: 24px;
        font-weight: 600;
        letter-spacing: 2px;
        text-align: center;
        line-height: 1.4;
        text-transform: uppercase;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        margin-bottom: 30px;
    }

    .mobile-social-icons {
        display: flex;
        gap: 30px;
    }

    .mobile-social-icons .social-icon {
        width: 28px;
        height: 28px;
        color: #ffffff;
        transition: all 0.3s ease;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    }

    .mobile-social-icons .social-icon:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(217, 55, 187, 0.8));
    }

    .mobile-social-icons .social-icon svg {
        width: 100%;
        height: 100%;
    }

    .mobile-scroll-indicator {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        animation: mobile-bounce 2s infinite;
    }

    .mobile-scroll-arrow {
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 15px solid rgba(255, 255, 255, 0.7);
        filter: drop-shadow(0 0 10px rgba(217, 55, 187, 0.5));
    }

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

    /* Mobile Cards Section */
    .mobile-cards-section {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
        padding: 40px 20px;
        min-height: 100vh;
    }

    .mobile-cards-container {
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-card {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 0 20px rgba(217, 55, 187, 0.2);
    }

    .mobile-card:hover,
    .mobile-card:active {
        transform: scale(1.02);
        border-color: rgba(217, 55, 187, 0.5);
        box-shadow: 0 0 30px rgba(217, 55, 187, 0.4);
    }

    .mobile-card img {
        width: 150px;
        height: 150px;
        object-fit: contain;
        margin-bottom: 15px;
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    }

    .mobile-card-title {
        color: #ffffff;
        font-size: 20px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
        background: linear-gradient(135deg, #d937bb 0%, #49a8e5 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

