/* Tailwind Utilities */
.bg-dark { background-color: #0A0A0A; }
.bg-darker { background-color: #050505; }
.text-primary { color: #00DC82; }
.text-secondary { color: #00B8D4; }
.text-accent { color: #6C63FF; }
.bg-primary\/5 { background-color: rgba(0, 220, 130, 0.05); }
.bg-primary\/10 { background-color: rgba(0, 220, 130, 0.1); }
.bg-primary\/20 { background-color: rgba(0, 220, 130, 0.2); }
.border-primary\/10 { border-color: rgba(0, 220, 130, 0.1); }
.border-primary\/20 { border-color: rgba(0, 220, 130, 0.2); }
.border-primary\/50 { border-color: rgba(0, 220, 130, 0.5); }
.bg-secondary\/10 { background-color: rgba(0, 184, 212, 0.1); }
.bg-secondary\/20 { background-color: rgba(0, 184, 212, 0.2); }
.bg-accent\/10 { background-color: rgba(108, 99, 255, 0.1); }
.bg-accent\/20 { background-color: rgba(108, 99, 255, 0.2); }
.font-outfit { font-family: 'Outfit', sans-serif; }
.bg-dark\/50 { background-color: rgba(10, 10, 10, 0.5); }
.bg-dark\/80 { background-color: rgba(10, 10, 10, 0.8); }
.bg-dark\/95 { background-color: rgba(10, 10, 10, 0.95); }
.from-primary { --tw-gradient-from: #00DC82; }
.to-secondary { --tw-gradient-to: #00B8D4; }
.from-primary\/5 { --tw-gradient-from: rgba(0, 220, 130, 0.05); }
.from-primary\/10 { --tw-gradient-from: rgba(0, 220, 130, 0.1); }
.from-primary\/20 { --tw-gradient-from: rgba(0, 220, 130, 0.2); }
.to-primary\/5 { --tw-gradient-to: rgba(0, 220, 130, 0.05); }
.to-transparent { --tw-gradient-to: transparent; }
.via-transparent { --tw-gradient-via-color: transparent; }
.from-secondary\/10 { --tw-gradient-from: rgba(0, 184, 212, 0.1); }
.to-accent\/10 { --tw-gradient-to: rgba(108, 99, 255, 0.1); }

/* Important utility classes */
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.grid { display: grid; }
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.mx-auto { margin-left: auto; margin-right: auto; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }
.overflow-hidden { overflow: hidden; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
.blur-3xl { filter: blur(64px); }

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
}

@media (max-width: 768px) {
    .md\:flex { display: none !important; }
    .md\:hidden { display: block !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:text-5xl { font-size: 3rem; }
    .lg\:text-7xl { font-size: 4.5rem; }
}

/* Additional gradient utilities */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
:root { --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

/* Additional layout utilities */
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.leading-tight { line-height: 1.25; }
.transform { transform: var(--tw-transform); }
.translate-x-full { --tw-translate-x: 100%; transform: var(--tw-transform); }
:root { --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:bg-primary\/20:hover { background-color: rgba(0, 220, 130, 0.2); }
.hover\:bg-primary\/10:hover { background-color: rgba(0, 220, 130, 0.1); }
.hover\:bg-primary\/90:hover { background-color: rgba(0, 220, 130, 0.9); }
.hover\:text-primary:hover { color: #00DC82; }
.hover\:text-primary\/80:hover { color: rgba(0, 220, 130, 0.8); }
.hover\:text-secondary:hover { color: #00B8D4; }
.hover\:text-secondary\/80:hover { color: rgba(0, 184, 212, 0.8); }
.hover\:text-accent:hover { color: #6C63FF; }
.hover\:text-accent\/80:hover { color: rgba(108, 99, 255, 0.8); }
.hover\:border-primary\/50:hover { border-color: rgba(0, 220, 130, 0.5); }
.hover\:border-secondary\/50:hover { border-color: rgba(0, 184, 212, 0.5); }
.hover\:border-accent\/50:hover { border-color: rgba(108, 99, 255, 0.5); }

/* Mobile Menu CSS - Simplified and Robust */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#mobile-menu.active {
    transform: translateX(0);
}

@media (min-width: 768px) {
    #mobile-menu-button,
    #mobile-menu {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .md\:flex {
        display: none !important;
    }
    
    #mobile-menu-button {
        display: block !important;
    }
}

/* Custom Components Styles */
/* Base styles that apply to all screen sizes */
.card {
    background: linear-gradient(145deg, #0c0c0c, #0a0a0a);
    border: 1px solid rgba(0, 220, 130, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(0, 220, 130, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 220, 130, 0.2);
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .card:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .mobile-only {
        display: none !important;
    }

    #mobile-menu {
        display: none !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background: linear-gradient(to right, #00DC82, #00B8D4);
        transition: width 0.3s ease;
    }

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

/* Mobile-specific styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    /* Rest of your mobile styles */
    .nav-link, 
    .mobile-tap-target {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
    }

    #mobile-menu {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease-in-out;
        opacity: 0;
    }

    #mobile-menu.active {
        transform: translateX(0);
        opacity: 1;
    }

    .card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .card:active {
        transform: scale(0.98);
    }
}

/* Pull to refresh, scroll indicator, and feedback styles should only apply on mobile */
@media (max-width: 768px) {
    .pull-to-refresh,
    .scroll-indicator,
    .mobile-feedback {
        display: block;
    }
}

@media (min-width: 769px) {
    .pull-to-refresh,
    .scroll-indicator,
    .mobile-feedback {
        display: none !important;
    }
}

.bg-pattern {
    background-color: #0A0A0A;
    background-image: 
        linear-gradient(rgba(0, 220, 130, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 220, 130, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
}

.glow {
    box-shadow: 0 0 30px rgba(0, 220, 130, 0.3);
}

.gradient-text {
    background: linear-gradient(to right, #00DC82, #00B8D4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.animated-border {
    position: relative;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00DC82);
    animation: animate 3s linear infinite;
}

@keyframes animate {
    0% { left: -100% }
    50% { left: 100% }
    100% { left: 100% }
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.rotate-gradient {
    background: linear-gradient(270deg, #00DC82, #00B8D4);
    background-size: 200% 200%;
    animation: gradientRotate 8s ease infinite;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

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

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

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

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.nav-link {
    position: relative;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up-delay-3 {
    animation-delay: 0.6s;
}

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

.typing-cursor {
    border-right: 2px solid #00DC82;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.bg-animate {
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glowing gradient border animation */
.gradient-border {
    position: relative;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(
        45deg,
        #00DC82,
        #00B8D4,
        #6C63FF,
        #00DC82
    );
    -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;
    background-size: 300% 300%;
    animation: borderAnimation 8s linear infinite;
}

@keyframes borderAnimation {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Glass morphism effect */
.glass {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Neon text effect */
.neon-text {
    text-shadow: 
        0 0 5px #00DC82,
        0 0 10px #00DC82,
        0 0 20px #00DC82;
}

/* Particle background */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(0, 220, 130, 0.5);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

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

/* Enhanced card hover effect */
.enhanced-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 0 20px rgba(0, 220, 130, 0.2),
        0 0 40px rgba(0, 220, 130, 0.1),
        0 0 60px rgba(0, 220, 130, 0.05);
}

/* 3D rotation effect */
.rotate-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.rotate-3d:hover {
    transform: rotateX(10deg) rotateY(10deg);
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    /* Larger tap targets for mobile */
    .nav-link, 
    .mobile-tap-target {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
    }

    /* Enhanced mobile menu animation */
    #mobile-menu {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease-in-out;
        opacity: 0;
    }

    #mobile-menu.active {
        transform: translateX(0);
        opacity: 1;
    }

    /* Mobile-specific card interactions */
    .card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .card:active {
        transform: scale(0.98);
    }

    /* Pull to refresh indicator */
    .pull-to-refresh {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(10px);
        z-index: 49;
    }

    .pull-to-refresh.visible {
        transform: translateY(0);
    }

    /* Mobile scroll indicator */
    .scroll-indicator {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba(0, 220, 130, 0.1);
        border: 1px solid rgba(0, 220, 130, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 48;
    }

    .scroll-indicator.visible {
        opacity: 1;
    }

    /* Mobile feedback animations */
    .mobile-feedback {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 16px 24px;
        background: rgba(10, 10, 10, 0.9);
        border: 1px solid rgba(0, 220, 130, 0.2);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        z-index: 100;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .mobile-feedback.visible {
        opacity: 1;
    }
} 