/* Custom Animations and Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Circuit Pattern Background */
.circuit-pattern {
    background-image: 
        linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 107, 53, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuit-move 20s linear infinite;
}

@keyframes circuit-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Letter Animation */
.letter-animation {
    display: inline-block;
    animation: letter-glow 2s ease-in-out infinite alternate;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.letter-animation:nth-child(1) { animation-delay: 0s; }
.letter-animation:nth-child(2) { animation-delay: 0.1s; }
.letter-animation:nth-child(3) { animation-delay: 0.2s; }
.letter-animation:nth-child(4) { animation-delay: 0.3s; }
.letter-animation:nth-child(5) { animation-delay: 0.4s; }
.letter-animation:nth-child(6) { animation-delay: 0.5s; }
.letter-animation:nth-child(7) { animation-delay: 0.6s; }

@keyframes letter-glow {
    0% { 
        text-shadow: 0 0 5px #FF6B35, 0 0 10px #FF6B35;
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 10px #FF6B35, 0 0 20px #FF6B35, 0 0 30px #FF6B35;
        transform: scale(1.05);
    }
}

/* Construction Bounce */
.construction-bounce {
    animation: construction-bounce 2s ease-in-out infinite;
}

@keyframes construction-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

/* Typing Animation */
.typing-animation {
    border-right: 3px solid #FF6B35;
    white-space: nowrap;
    overflow: hidden;
    color: white;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #FF6B35; }
}

/* Construction Line */
.construction-line {
    animation: line-extend 2s ease-in-out;
}

@keyframes line-extend {
    0% { width: 0; }
    100% { width: 6rem; }
}

/* Revolution Text */
.revolution-text {
    animation: revolution-glow 3s ease-in-out infinite alternate;
}

@keyframes revolution-glow {
    0% { 
        text-shadow: 0 0 5px #FF6B35;
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 20px #FF6B35, 0 0 30px #FF6B35, 0 0 40px #FF6B35;
        transform: scale(1.02);
    }
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 1s ease-out forwards;
}

.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Animation */
.progress-animation {
    transition: width 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Social Icons */
.social-icon {
    display: inline-block;
    padding: 12px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    color: #9CA3AF;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    color: #FF6B35;
    border-color: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

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

.social-icon:hover::before {
    left: 100%;
}

/* Particles */
.particle {
    position: absolute;
    background: #FF6B35;
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 6s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .typing-animation {
        animation: none;
        border-right: none;
        white-space: normal;
        overflow: visible;
    }
}

/* Ensure text container has enough width on desktop */
@media (min-width: 769px) {
    .typing-animation {
        max-width: none;
        word-spacing: normal;
        letter-spacing: normal;
    }
    
    .construction-icon-container {
        width: 100px;
        height: 100px;
    }
    
    .letter-animation {
        animation-duration: 1.5s;
    }
}

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

/* Floating T-shirt Emojis */
.tshirt-emoji {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: float-up 8s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Background Elements */
.geometric-shapes {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 107, 53, 0.05) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: geometric-float 25s linear infinite;
}

@keyframes geometric-float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    animation: floating-orb 20s linear infinite;
}

.floating-elements::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    bottom: 10%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes floating-orb {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-20px, -60px) scale(0.9); }
    75% { transform: translate(-50px, -20px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Enhanced Icon Effects */
.hero-icon-container {
    animation: hero-float 6s ease-in-out infinite;
}

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

.icon-backdrop {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: backdrop-pulse 3s ease-in-out infinite;
}

@keyframes backdrop-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.floating-icon {
    position: absolute;
    font-size: 1.2rem;
    animation: float-around 8s ease-in-out infinite;
}

.gear-1 {
    top: -10px;
    right: -10px;
    animation-delay: 0s;
}

.bolt-1 {
    bottom: -5px;
    left: -15px;
    animation-delay: -2s;
}

.wrench-1 {
    top: 50%;
    left: -25px;
    animation-delay: -4s;
}

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -8px) rotate(90deg); }
    50% { transform: translate(-5px, -15px) rotate(180deg); }
    75% { transform: translate(-12px, -5px) rotate(270deg); }
}

.energy-ring {
    position: absolute;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    animation: energy-expand 4s ease-in-out infinite;
}

.ring-1 {
    inset: -10px;
    animation-delay: 0s;
}

.ring-2 {
    inset: -20px;
    animation-delay: -1s;
}

.ring-3 {
    inset: -30px;
    animation-delay: -2s;
}

@keyframes energy-expand {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0; }
}

.delay-1000 { animation-delay: 1s; }

/* Enhanced Progress Styles */
.progress-shimmer {
    animation: shimmer-move 3s ease-in-out infinite;
}

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

.milestone {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    border: 2px solid rgba(255, 107, 53, 0.5);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.milestone-dot.active {
    background: #FF6B35;
    border-color: #FF6B35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.milestone-label {
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 500;
}

/* Enhanced Countdown Styles */
.countdown-container {
    position: relative;
    animation: container-glow 4s ease-in-out infinite;
}

@keyframes container-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.4); }
}

.hologram-effect {
    animation: hologram-shift 6s ease-in-out infinite;
}

@keyframes hologram-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.status-indicator {
    display: flex;
    align-items: center;
    space-gap: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    background: rgba(107, 114, 128, 0.5);
}

.status-dot.active {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.loading {
    background: #F59E0B;
    animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.notification-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FF6B35, #F59E0B);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: badge-bounce 2s ease-in-out infinite;
}

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

/* Enhanced Social Icons */
.social-icon {
    position: relative;
    display: inline-block;
    padding: 14px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    color: #9CA3AF;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-icon:hover .social-tooltip {
    opacity: 1;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #833AB4, #FD1D1D, #FCB045);
    color: white;
    border-color: transparent;
}

.social-icon.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.social-icon.tiktok:hover {
    background: linear-gradient(45deg, #FF0050, #00F2EA);
    color: white;
    border-color: transparent;
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
}

/* Stats Animation */
.stat-item {
    padding: 12px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FF6B35;
    font-family: 'Orbitron', monospace;
}

.stat-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Email Signup Enhancement */
.notify-btn {
    position: relative;
    overflow: hidden;
}

.notify-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;
}

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

/* Web3 Feature Cards */
.web3-feature {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.web3-feature:hover::before {
    left: 100%;
}

.web3-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

/* Connect Account Button */
.connect-wallet-btn {
    background: linear-gradient(135deg, #FF6B35, #8B5CF6);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.connect-wallet-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;
}

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

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Platform Status Indicator */
.platform-status .status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.platform-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: online-pulse 2s ease-in-out infinite;
}

@keyframes online-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Enhanced Gradient Text */
.revolution-text {
    background: linear-gradient(135deg, #FF6B35, #8B5CF6, #06B6D4, #F59E0B);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced Construction Line */
.construction-line {
    background: linear-gradient(90deg, #FF6B35, #8B5CF6, #FF6B35);
    background-size: 200% 100%;
    animation: line-glow 3s ease-in-out infinite;
}

@keyframes line-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* VR Badge Enhancement */
.notification-badge {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    animation: vr-float 3s ease-in-out infinite;
}

@keyframes vr-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* Enhanced Holographic Effect */
.hologram-effect {
    background: linear-gradient(45deg, 
        rgba(255, 107, 53, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 25%,
        rgba(6, 182, 212, 0.1) 50%,
        rgba(245, 158, 11, 0.1) 75%,
        rgba(255, 107, 53, 0.1) 100%);
    background-size: 400% 400%;
    animation: hologram-rainbow 8s ease-in-out infinite;
}

@keyframes hologram-rainbow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* Enhanced Progress Bar */
.progress-animation {
    background: linear-gradient(90deg, #FF6B35, #8B5CF6, #06B6D4, #F59E0B);
    background-size: 300% 100%;
    animation: progress-rainbow 3s ease-in-out infinite;
}

@keyframes progress-rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Metaverse Portal Effects */
.countdown-container {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid;
    border-image: linear-gradient(45deg, #FF6B35, #8B5CF6, #06B6D4) 1;
    animation: portal-glow 4s ease-in-out infinite;
}

@keyframes portal-glow {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(255, 107, 53, 0.3),
            inset 0 0 30px rgba(139, 92, 246, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(139, 92, 246, 0.4),
            inset 0 0 50px rgba(6, 182, 212, 0.2);
    }
}

/* Enhanced Milestone Labels */
.milestone-label {
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #1A1A2E;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B35, #8B5CF6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e55a2b, #7C3AED);
}
