/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8a2be2;
    --primary-dark: #6a1b9a;
    --secondary-color: #e91e63;
    --accent-color: #00bcd4;
    --dark-bg: #0a0a0f;
    --dark-surface: #1a1a2e;
    --darker-surface: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --gradient-primary: linear-gradient(135deg, #8a2be2 0%, #e91e63 50%, #00bcd4 100%);
    --gradient-accent: linear-gradient(135deg, #00bcd4 0%, #8a2be2 100%);
    --glow-sm: 0 0 5px rgba(138, 43, 226, 0.3);
    --glow-md: 0 0 10px rgba(138, 43, 226, 0.4);
    --glow-lg: 0 0 20px rgba(138, 43, 226, 0.5);
    --glow-xl: 0 0 30px rgba(138, 43, 226, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Starfield Background */
#starfield-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#starfield {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(16, 20, 40, 0.8) 0%, var(--dark-bg) 100%);
}

/* Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main Container */
.coming-soon-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content-wrapper {
    text-align: center;
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

/* Logo Container */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.4;
    animation: pulseGlow 3s ease-in-out infinite;
}

.logo-icon {
    position: relative;
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
    animation: floatBounce 3s ease-in-out infinite;
}

/* Main Title */
.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.title-line {
    display: block;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInTitle 0.8s ease-out forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
}

/* Subtitle */
.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

/* Builder Scene */
.builder-scene {
    position: relative;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(20px);
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.builder-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(138, 43, 226, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 188, 212, 0.1) 100%);
    border-radius: 1.5rem;
    pointer-events: none;
}

/* Gear Container */
.gear-container {
    position: relative;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear {
    position: absolute;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
}

.gear-1 {
    font-size: 3rem;
    animation: spinClockwise 4s linear infinite;
    left: 50%;
    transform: translateX(-50%);
}

.gear-2 {
    font-size: 2rem;
    animation: spinCounterClockwise 3s linear infinite;
    left: 20%;
    top: 30%;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 10px rgba(233, 30, 99, 0.5));
}

.gear-3 {
    font-size: 2.25rem;
    animation: spinClockwise 3.5s linear infinite;
    right: 20%;
    top: 20%;
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
}

/* Building Blocks */
.building-blocks {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.75rem;
    height: 100px;
    margin-bottom: 1.5rem;
    position: relative;
}

.block {
    width: 45px;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    animation: blockRise 2s ease-out infinite;
}

.block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 0.5rem;
}

.block-1 {
    height: 40px;
    animation-delay: 0s;
}

.block-2 {
    height: 60px;
    animation-delay: 0.3s;
}

.block-3 {
    height: 80px;
    animation-delay: 0.6s;
}

.block-4 {
    height: 50px;
    animation-delay: 0.9s;
}

/* Progress Bar */
.progress-bar-wrapper {
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 1rem;
    width: 0%;
    animation: progressFill 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-percentage {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: var(--glow-sm);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.125rem;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: var(--glow-md);
    border-color: transparent;
}

/* Footer */
.footer-text {
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.footer-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

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

@keyframes spinClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinCounterClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes blockRise {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-10px) scaleY(1.1);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    50% {
        width: 75%;
    }
    100% {
        width: 0%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .logo-icon {
        font-size: 4rem;
    }

    .gear-1 {
        font-size: 4rem;
    }

    .gear-2 {
        font-size: 2.5rem;
    }

    .gear-3 {
        font-size: 3rem;
    }

    .builder-scene {
        padding: 2rem 1.5rem;
    }

    .building-blocks {
        height: 120px;
    }

    .block {
        width: 50px;
    }

    .block-1 {
        height: 50px;
    }

    .block-2 {
        height: 70px;
    }

    .block-3 {
        height: 90px;
    }

    .block-4 {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .coming-soon-container {
        padding: 1rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .logo-icon {
        font-size: 3rem;
    }

    .gear-container {
        height: 150px;
    }

    .gear-1 {
        font-size: 3rem;
    }

    .gear-2 {
        font-size: 2rem;
        left: 10%;
    }

    .gear-3 {
        font-size: 2.5rem;
        right: 10%;
    }

    .building-blocks {
        gap: 0.5rem;
    }

    .block {
        width: 40px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}