:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2C3E50;
    --light: #F7F7F7;
    --gradient: linear-gradient(45deg, var(--primary), var(--secondary));
    --orbit-size: 500px;
    --star-size: 150px;
    --earth-size: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, var(--dark), #1a1a1a);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

/* Add animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 90%, var(--primary) 100%);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

.cursor-follower {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
    box-shadow: 0 0 20px var(--accent);
    backdrop-filter: invert(1);
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.solar-system {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    perspective: 1000px;
}

#earth-canvas {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    pointer-events: none;
    max-width: none;
}

.star-container {
    position: relative;
    width: var(--star-size);
    height: var(--star-size);
    border-radius: 50%;
    z-index: 2;
    animation: sunPulse 4s ease-in-out infinite;
    box-shadow: 
        0 0 50px rgba(255, 207, 51, 0.4),
        0 0 100px rgba(255, 207, 51, 0.2),
        0 0 150px rgba(255, 207, 51, 0.1);
}

.star-face {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(1.1);
}

.star-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center,
        rgba(255, 207, 51, 0.4) 0%,
        rgba(255, 207, 51, 0.2) 30%,
        rgba(255, 207, 51, 0.1) 50%,
        transparent 70%
    );
    border-radius: 50%;
    animation: sunGlow 4s ease-in-out infinite;
}

/* Corona effect */
.star-container::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center,
        rgba(255, 207, 51, 0.3) 0%,
        rgba(255, 207, 51, 0.1) 50%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(8px);
    animation: coronaPulse 4s ease-in-out infinite alternate;
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: orbitRotate 20s linear infinite;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent
    );
}

.earth {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--earth-size);
    height: var(--earth-size);
    border-radius: 50%;
    transform-style: preserve-3d;
    transform-origin: calc(var(--orbit-size) / 2) center;
    animation: earthOrbit 20s linear infinite;
}

.earth-surface {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/13/NASA_Blue_Marble_2002.png/2560px-NASA_Blue_Marble_2002.png');
    background-size: 200% 100%;
    transform-style: preserve-3d;
    animation: earthSpin 20s linear infinite;
    box-shadow: 
        /* Inner shadow for depth */
        inset -10px -10px 20px rgba(0, 0, 0, 0.5),
        inset 10px 10px 20px rgba(255, 255, 255, 0.2),
        /* Outer glow */
        0 0 20px rgba(255, 255, 255, 0.2);
}

.earth-clouds {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 50%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/Cloud_cover_Earth.png/1024px-Cloud_cover_Earth.png');
    background-size: 200% 100%;
    opacity: 0.3;
    filter: brightness(1.5);
    mix-blend-mode: overlay;
    animation: cloudMove 15s linear infinite;
}

/* Add atmosphere effect */
.earth::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
}

/* Night side shadow */
.earth::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    filter: blur(5px);
    animation: nightSide 20s linear infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes sunGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes coronaPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes orbitRotate {
    from { transform: rotateX(65deg) rotateZ(0deg); }
    to { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes earthOrbit {
    from { 
        transform: rotate(0deg) translateX(calc(var(--orbit-size) / 2 - var(--earth-size) / 2));
    }
    to { 
        transform: rotate(360deg) translateX(calc(var(--orbit-size) / 2 - var(--earth-size) / 2));
    }
}

@keyframes earthSpin {
    from { 
        background-position: 200% center;
        transform: rotateY(0deg);
    }
    to { 
        background-position: 0% center;
        transform: rotateY(360deg);
    }
}

@keyframes cloudMove {
    from { 
        background-position: 200% center;
        transform: rotateY(0deg);
    }
    to { 
        background-position: 0% center;
        transform: rotateY(360deg);
    }
}

@keyframes nightSide {
    from {
        transform: rotateY(90deg) translateX(50%);
        opacity: 0.8;
    }
    50% {
        transform: rotateY(270deg) translateX(-50%);
        opacity: 0.8;
    }
    to {
        transform: rotateY(450deg) translateX(50%);
        opacity: 0.8;
    }
}

.center-content {
    position: absolute;
    text-align: center;
    z-index: 3;
    width: 100%;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.glowing-text {
    font-size: 5rem;
    font-weight: 800;
    color: #FF6B6B;
    text-shadow: 
        0 0 10px rgba(255, 107, 107, 0.7),
        0 0 20px rgba(255, 107, 107, 0.5),
        0 0 30px rgba(255, 107, 107, 0.3),
        0 0 40px rgba(255, 107, 107, 0.2);
    animation: textPulse 2s ease-in-out infinite alternate;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 2rem;
    color: #FFE66D;
    text-shadow: 
        0 0 10px rgba(255, 230, 109, 0.7),
        0 0 20px rgba(255, 230, 109, 0.5),
        0 0 30px rgba(255, 230, 109, 0.3);
    animation: subtitlePulse 2s ease-in-out infinite alternate;
    opacity: 0.9;
}

@keyframes textPulse {
    from {
        text-shadow: 
            0 0 10px rgba(255, 107, 107, 0.7),
            0 0 20px rgba(255, 107, 107, 0.5),
            0 0 30px rgba(255, 107, 107, 0.3);
    }
    to {
        text-shadow: 
            0 0 15px rgba(255, 107, 107, 0.9),
            0 0 25px rgba(255, 107, 107, 0.7),
            0 0 35px rgba(255, 107, 107, 0.5);
    }
}

@keyframes subtitlePulse {
    from {
        text-shadow: 
            0 0 10px rgba(255, 230, 109, 0.7),
            0 0 20px rgba(255, 230, 109, 0.5);
    }
    to {
        text-shadow: 
            0 0 15px rgba(255, 230, 109, 0.9),
            0 0 25px rgba(255, 230, 109, 0.7);
    }
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient);
    opacity: 0;
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 0;
}

.achievement-card:hover::before {
    opacity: 0.1;
    transform: rotate(45deg) translate(0, 0);
}

.achievement-card h2 {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.achievement-card:hover h2 {
    transform: scale(1.05);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.image-container {
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover::after {
    opacity: 0.2;
}

.floating {
    animation: float 3s ease-in-out infinite;
    filter: brightness(1);
    transition: all 0.3s ease;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.image-container:hover .floating {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.fun-facts {
    padding: 4rem 2rem;
    text-align: center;
}

.fun-facts ul {
    list-style: none;
    max-width: 800px;
    margin: 2rem auto;
}

.fun-facts li {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fun-facts li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.fun-facts li:hover::before {
    left: 100%;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 1rem;
}

/* Mouse movement animation */
@media (hover: hover) {
    body {
        cursor: none;
    }
    
    .achievement-card:hover ~ .cursor-follower {
        transform: scale(2);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    :root {
        --orbit-size: 350px;
        --star-size: 100px;
        --earth-size: 40px;
    }
    
    #earth-canvas {
        transform: translate(-50%, -50%) scale(0.8);
    }
    
    .center-content {
        bottom: 5%;
    }
    
    .glowing-text {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .achievements {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --orbit-size: 280px;
        --star-size: 80px;
        --earth-size: 30px;
    }
    
    .center-content {
        bottom: 3%;
    }
    
    .glowing-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    #earth-canvas {
        transform: translate(-50%, -50%) scale(0.7);
    }
}

/* Scroll reveal animation */
@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.achievement-card, .image-container, .fun-facts li {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

/* Staggered animation delays */
.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }

.image-container:nth-child(1) { animation-delay: 0.5s; }
.image-container:nth-child(2) { animation-delay: 0.6s; }
.image-container:nth-child(3) { animation-delay: 0.7s; }
.image-container:nth-child(4) { animation-delay: 0.8s; } 