/* LunarPaw Landing Page Styles */
/* Theme: Space, Purple (#6B21A8), Gold (#FFD700) */
/* Aesthetic: Pump.fun trending page */

/* ===== CSS VARIABLES ===== */
:root {
    --lunar-purple: #6B21A8;
    --lunar-purple-dark: #4C1D95;
    --lunar-purple-light: #9333EA;
    --lunar-gold: #FFD700;
    --lunar-gold-dark: #B8860B;
    --lunar-gold-light: #FEF3C7;
    --lunar-space: #0F0F1A;
    --lunar-space-light: #1A1A2E;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--lunar-space);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lunar-space);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--lunar-purple), var(--lunar-gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--lunar-purple-light), var(--lunar-gold));
}

/* ===== STARFIELD BACKGROUND ===== */
#starfield {
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: var(--opacity); }
}

/* Shooting Star */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    animation: shoot 3s linear infinite;
    opacity: 0;
}

@keyframes shoot {
    0% {
        transform: translateX(-100px) translateY(100px) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(-100px) rotate(-45deg);
        opacity: 0;
    }
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107, 33, 168, 0.2);
}

#navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    box-shadow: 0 4px 30px rgba(107, 33, 168, 0.3);
}

.nav-link {
    position: relative;
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lunar-gold), var(--lunar-purple));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ===== SHIMMER EFFECT ===== */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

/* ===== PULSE GLOW ===== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 60px rgba(107, 33, 168, 0.3);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== BUTTON STYLES ===== */
button, .btn {
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Gradient Button Hover */
.gradient-btn {
    position: relative;
    overflow: hidden;
}

.gradient-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.gradient-btn:hover::before {
    left: 100%;
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ===== ROADMAP TIMELINE ===== */
.roadmap-line {
    background: linear-gradient(180deg, var(--lunar-purple), var(--lunar-gold), var(--lunar-purple));
}

/* ===== CARD HOVER EFFECTS ===== */
.tokenomics-card,
.roadmap-card,
.community-card {
    transition: all 0.3s ease;
}

.tokenomics-card:hover,
.roadmap-card:hover,
.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 33, 168, 0.3);
}

/* ===== GALLERY IMAGE HOVER ===== */
.gallery-image {
    transition: transform 0.5s ease;
}

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

/* ===== MODAL ANIMATION ===== */
.modal-enter {
    animation: modalIn 0.3s ease forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== MOON CRATER EFFECT ===== */
.moon-crater {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
    box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.3);
}

/* ===== PAW PRINT ANIMATION ===== */
@keyframes paw-walk {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.paw-print {
    animation: paw-walk 2s ease-in-out infinite;
}

.paw-print:nth-child(2) { animation-delay: 0.2s; }
.paw-print:nth-child(3) { animation-delay: 0.4s; }
.paw-print:nth-child(4) { animation-delay: 0.6s; }

/* ===== ORBIT ANIMATION ===== */
@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

.orbit {
    animation: orbit 20s linear infinite;
}

/* ===== ROCKET LAUNCH ANIMATION ===== */
@keyframes launch {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

.rocket-launch {
    animation: launch 2s ease-in forwards;
}

/* ===== BOUNCE IN ANIMATION ===== */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease forwards;
}

/* ===== SLIDE IN ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s ease forwards;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--lunar-gold) 0%, var(--lunar-purple-light) 50%, var(--lunar-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 33, 168, 0.2);
}

/* ===== HOVER GLOW ===== */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lunar-purple), var(--lunar-gold), var(--lunar-purple), transparent);
}

/* ===== PARALLAX LAYERS ===== */
.parallax-layer {
    will-change: transform;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .animate-float {
        animation: float 3s ease-in-out infinite;
    }
    
    .font-orbitron {
        letter-spacing: 0.02em;
    }
    
    /* Disable complex animations on mobile */
    .star {
        animation-duration: 3s;
    }
    
    .shooting-star {
        display: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(107, 33, 168, 0.5);
    color: #FFD700;
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
    outline: 2px solid var(--lunar-gold);
    outline-offset: 2px;
}

/* ===== LOADER ===== */
.paw-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(107, 33, 168, 0.3);
    border-top-color: var(--lunar-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background: var(--lunar-space-light);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--lunar-purple);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ===== NEON TEXT EFFECT ===== */
.neon-text {
    text-shadow: 
        0 0 5px var(--lunar-gold),
        0 0 10px var(--lunar-gold),
        0 0 20px var(--lunar-gold),
        0 0 40px var(--lunar-purple);
}

/* ===== BORDER GRADIENT ===== */
.border-gradient {
    position: relative;
    background: var(--lunar-space);
    border-radius: 16px;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--lunar-purple), var(--lunar-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
