/* Variables */
:root {
    --primary: #486049;
    --primary-light: #5A7A5B;
    --primary-dark: #3A4F3B;
    --accent-blue: #64B5F6;
    --accent-purple: #9D8CFF;
    --accent-teal: #4DB6AC;
    --accent-orange: #FF9F43;
    --accent-pink: #FF69B4;
    --accent-yellow: #FFD93D;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, #0A0A0F 0%, #1A1A23 50%, #0F1419 100%);
    min-height: 100vh;
}

/* Logo Styles */
.logo-gradient {
    background: linear-gradient(135deg, #486049 0%, #5A7A5B 50%, #486049 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    position: relative;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(72, 96, 73, 0.2) 0%, rgba(72, 96, 73, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(72, 96, 73, 0.5) 0%, rgba(72, 96, 73, 0.2) 100%);
    -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;
}

/* Header Styles */
#header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Solar Rings Animation */
.solar-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    pointer-events: none;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

.solar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.3 !important;
    top: 50%;
    left: 50%;
    transform-origin: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
    visibility: visible !important;
}

.solar-ring-1 {
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    animation: rotate-clockwise 20s linear infinite;
}

.solar-ring-2 {
    width: 450px;
    height: 450px;
    transform: translate(-50%, -50%);
    animation: rotate-counter-clockwise 30s linear infinite;
}

.solar-ring-3 {
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    animation: rotate-clockwise 40s linear infinite;
}

.solar-ring-4 {
    width: 750px;
    height: 750px;
    transform: translate(-50%, -50%);
    animation: rotate-counter-clockwise 50s linear infinite;
}

.solar-ring-5 {
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    animation: rotate-clockwise 60s linear infinite;
}

.solar-ring-6 {
    width: 1050px;
    height: 1050px;
    transform: translate(-50%, -50%);
    animation: rotate-counter-clockwise 70s linear infinite;
}

.solar-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 8px currentColor;
}

.solar-dot-1 {
    background: #486049;
    color: #486049;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #486049;
}

.solar-dot-2 {
    background: #64B5F6;
    color: #64B5F6;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #64B5F6;
}

.solar-dot-3 {
    background: #9D8CFF;
    color: #9D8CFF;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #9D8CFF;
}

.solar-dot-4 {
    background: #4DB6AC;
    color: #4DB6AC;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #4DB6AC;
}

.solar-dot-5 {
    background: #FF9F43;
    color: #FF9F43;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px #FF9F43;
}

.solar-dot-6 {
    background: #FF69B4;
    color: #FF69B4;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px #FF69B4;
}

/* Sparkling Stars */
.stars-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
}

/* Different star sizes and positions */
.star-1 { width: 2px; height: 2px; top: 15%; left: 8%; animation-delay: 0s; }
.star-2 { width: 1px; height: 1px; top: 25%; left: 85%; animation-delay: 0.5s; }
.star-3 { width: 3px; height: 3px; top: 35%; left: 12%; animation-delay: 1s; }
.star-4 { width: 1px; height: 1px; top: 45%; left: 90%; animation-delay: 1.5s; }
.star-5 { width: 2px; height: 2px; top: 55%; left: 5%; animation-delay: 2s; }
.star-6 { width: 1px; height: 1px; top: 65%; left: 88%; animation-delay: 2.5s; }
.star-7 { width: 2px; height: 2px; top: 75%; left: 15%; animation-delay: 0.3s; }
.star-8 { width: 1px; height: 1px; top: 85%; left: 82%; animation-delay: 0.8s; }
.star-9 { width: 2px; height: 2px; top: 20%; left: 92%; animation-delay: 1.3s; }
.star-10 { width: 1px; height: 1px; top: 30%; left: 3%; animation-delay: 1.8s; }
.star-11 { width: 3px; height: 3px; top: 40%; left: 95%; animation-delay: 2.3s; }
.star-12 { width: 1px; height: 1px; top: 50%; left: 2%; animation-delay: 0.2s; }
.star-13 { width: 2px; height: 2px; top: 60%; left: 93%; animation-delay: 0.7s; }
.star-14 { width: 1px; height: 1px; top: 70%; left: 7%; animation-delay: 1.2s; }
.star-15 { width: 2px; height: 2px; top: 80%; left: 96%; animation-delay: 1.7s; }
.star-16 { width: 1px; height: 1px; top: 10%; left: 18%; animation-delay: 2.2s; }
.star-17 { width: 2px; height: 2px; top: 90%; left: 25%; animation-delay: 0.4s; }
.star-18 { width: 1px; height: 1px; top: 12%; left: 78%; animation-delay: 0.9s; }
.star-19 { width: 3px; height: 3px; top: 28%; left: 22%; animation-delay: 1.4s; }
.star-20 { width: 1px; height: 1px; top: 88%; left: 75%; animation-delay: 1.9s; }

@keyframes sparkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1);
        box-shadow: 0 0 6px currentColor;
    }
}

/* Solar system is now visible */

/* Animation keyframes */

@keyframes rotate-clockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Enhanced gradient effects with colors */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(72, 96, 73, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 181, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(157, 140, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(77, 182, 172, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hero content should be above solar system */
main .container {
    position: relative;
    z-index: 10;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(72, 96, 73, 0.3);
    box-shadow: 0 20px 40px -20px rgba(72, 96, 73, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(72, 96, 73, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Demo Card */
.demo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(72, 96, 73, 0.1);
}

/* Colorful feature icons */
.feature-icon-1 { 
    color: var(--primary); 
    background: rgba(72, 96, 73, 0.1); 
}

.feature-icon-2 { 
    color: var(--accent-blue); 
    background: rgba(100, 181, 246, 0.1); 
}

.feature-icon-3 { 
    color: var(--accent-purple); 
    background: rgba(157, 140, 255, 0.1); 
}

/* Colorful stats */
.stat-1 { color: var(--primary); }
.stat-2 { color: var(--accent-blue); }
.stat-3 { color: var(--accent-orange); }
.stat-4 { color: var(--accent-purple); }

/* Demo card enhancements */
.demo-progress-1 { background: var(--primary); }
.demo-progress-2 { background: var(--accent-blue); }
.demo-progress-3 { background: var(--accent-teal); }

/* Ensure demo card is visible */
.demo-card {
    opacity: 1;
    transform: translateY(0);
}

.demo-slide-up {
    opacity: 1;
    transform: translateY(0);
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

.particle-1 { background: var(--accent-blue); }
.particle-2 { background: var(--accent-purple); }
.particle-3 { background: var(--accent-teal); }
.particle-4 { background: var(--accent-orange); }
.particle-5 { background: var(--accent-pink); }

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -8px rgba(72, 96, 73, 0.4);
}

.btn-primary.glow-pulse {
    animation: enhanced-glow-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(72, 96, 73, 0.4);
}

.btn-secondary {
    background: rgba(72, 96, 73, 0.1);
    border: 1px solid rgba(72, 96, 73, 0.2);
    color: #486049;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.btn-secondary:hover {
    background: rgba(72, 96, 73, 0.2);
    border-color: rgba(72, 96, 73, 0.3);
}

.btn-secondary:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: none;
}

@keyframes enhanced-glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(72, 96, 73, 0.4), 0 0 40px rgba(72, 96, 73, 0.2);
        transform: translateY(0);
    }
    50% { 
        box-shadow: 0 0 30px rgba(72, 96, 73, 0.6), 0 0 60px rgba(72, 96, 73, 0.3);
        transform: translateY(-1px);
    }
}

/* Ensure all elements are visible by default */
.fade-up, .slide-left, .slide-right, .scale-in {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Gradient Effects */
.gradient-blur {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 96, 73, 0.03) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

/* Animations */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Blur Text Animation (Linear Style) */
.blur-text {
    filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-text.animate {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0px);
}

/* Fallback for when animations don't load */
.blur-text {
    animation: blur-text-fallback 0.8s ease-out forwards;
}

@keyframes blur-text-fallback {
    0% {
        filter: blur(8px);
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        filter: blur(0px);
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Staggered blur animation for multiple elements */
.blur-text-1 { transition-delay: 0.1s; }
.blur-text-2 { transition-delay: 0.2s; }
.blur-text-3 { transition-delay: 0.3s; }
.blur-text-4 { transition-delay: 0.4s; }
.blur-text-5 { transition-delay: 0.5s; }
.blur-text-6 { transition-delay: 0.6s; }

/* Fade up animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.animate {
    opacity: 1;
    transform: translateY(0px);
}

/* Scale in animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Slide in from left */
.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left.animate {
    opacity: 1;
    transform: translateX(0px);
}

/* Slide in from right */
.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right.animate {
    opacity: 1;
    transform: translateX(0px);
}

/* Typing cursor animation */
.typing-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Progress bar animation */
.progress-bar {
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar.animate {
    width: 100%;
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Glow pulse animation */
.glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(72, 96, 73, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(72, 96, 73, 0.6);
    }
}

/* Rotate in animation */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotate-in.animate {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Badge bounce animation */
.badge-bounce {
    animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Stats counter animation */
.stat-counter {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-counter.animate {
    opacity: 1;
    transform: scale(1);
}

/* Demo card slide up */
.demo-slide-up {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-slide-up.animate {
    opacity: 1;
    transform: translateY(0px) scale(1);
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(72, 96, 73, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* Particle fade in */
.particle-fade {
    opacity: 0;
    animation: particle-fade 1s ease-out forwards;
}

@keyframes particle-fade {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 0.4; transform: scale(1); }
}

/* Solar ring fade in */
.solar-ring-fade {
    opacity: 0;
    transform: scale(0.8);
    animation: solar-ring-fade 1.5s ease-out forwards;
}

@keyframes solar-ring-fade {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 0.15; transform: scale(1); }
}

/* Demo Modal Styles */
.demo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease-out;
}

.demo-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 95%;
    max-width: 1400px;
    height: 90%;
    max-height: 900px;
    position: relative;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(72, 96, 73, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.demo-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.demo-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.demo-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.demo-body {
    height: calc(100% - 70px);
    padding: 0;
}

.demo-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0a0a0a;
}

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

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

/* Demo Modal Ghost Buttons */
.demo-ghost-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
}

.demo-ghost-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.demo-ghost-btn:active {
    transform: translateY(0);
}

.demo-ghost-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.demo-ghost-btn:disabled:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    transform: none;
}