* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: black;
    color: white;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

main {
    padding-top: 100px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.products-hero {
    text-align: center;
    margin-bottom: 60px;
}

.products-hero h1 {
    color: #ffc200;
    font-size: 2.5em;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: "Bruno Ace SC", sans-serif;
}

.products-hero hr {
    width: 200px;
    height: 3px;
    background: #ffc200;
    border: none;
    margin: 0 auto;
}

/* Current Planet Name Display */
.current-planet-name {
    text-align: center;
    margin-bottom: 30px;
}

.current-planet-name h2 {
    color: white;
    font-size: 2.8em;
    font-family: "Bruno Ace SC", sans-serif;
    letter-spacing: 3px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 194, 0, 0.8),
        0 0 20px rgba(255, 194, 0, 0.6),
        0 0 30px rgba(255, 194, 0, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    animation: planetNameGlow 2s ease-in-out infinite;
}

@keyframes planetNameGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 194, 0, 0.8),
            0 0 20px rgba(255, 194, 0, 0.6),
            0 0 30px rgba(255, 194, 0, 0.4),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 194, 0, 1),
            0 0 30px rgba(255, 194, 0, 0.8),
            0 0 45px rgba(255, 194, 0, 0.6),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Solar System Container */
.solar-system-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* Sun in Center */
.sun-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 350px;
    height: 350px;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.sun-img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(255, 194, 0, 0.3));
    animation: sunGlow 3s ease-in-out infinite;
}

@keyframes sunGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 194, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 194, 0, 0.4));
    }
}

/* Ring Container */
.ring-container {
    position: relative;
    width: 700px;
    height: 400px;
    transform-style: preserve-3d;
}

.ring-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    width: 200%;
    max-width: 1400px;
    height: auto;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* Planet Orbit */
.planet-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.planet-item {
    position: absolute;
    top: 50%;
    left: 50%;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.planet-item img {
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    filter: brightness(0.8);
}

.planet-item:hover img {
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 194, 0, 0.6));
}

.planet-item.active img {
    filter: brightness(1.3) drop-shadow(0 0 30px rgba(255, 194, 0, 0.8));
}

/* Positions will be set dynamically by JavaScript */

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffc200;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(255, 194, 0, 0.2);
    border-color: #ffc200;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Planet Information Section */
.planet-info {
    max-width: 800px;
    margin: 80px auto 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 194, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 2px solid #ffc200;
    border-radius: 15px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.planet-info h2 {
    color: #ffc200;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-family: "Bruno Ace SC", sans-serif;
    letter-spacing: 2px;
}

.info-divider {
    width: 100px;
    height: 3px;
    background: #ffc200;
    margin: 0 auto 25px;
}

.planet-info p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.planet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 194, 0, 0.3);
}

.stat-label {
    color: #ffc200;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: white;
    font-size: 1.1em;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .solar-system-container {
        height: 500px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .ring-container {
        width: 500px;
        height: 350px;
    }
    
    .sun-center {
        width: 230px;
        height: 230px;
    }
    
    .nav-arrow {
        display: none;
    }
    
    .planet-info {
        margin: 60px 20px 40px;
        padding: 30px 20px;
    }
    
    .planet-info h2 {
        font-size: 2em;
    }
    
    .planet-stats {
        grid-template-columns: 1fr;
    }
    
    .products-hero h1 {
        font-size: 1.8em;
    }
    
    .current-planet-name h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .ring-container {
        width: 350px;
        height: 300px;
    }
    
    .sun-center {
        width: 180px;
        height: 180px;
    }
}
