/* NomadLabs Custom Styles */

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Category Filter Buttons */
.category-active {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: 1px solid transparent;
}

.category-inactive {
    background-color: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
    border: 1px solid #334155;
}

.category-inactive:hover {
    border-color: #6366f1;
    color: #e2e8f0;
    background-color: rgba(30, 41, 59, 0.8);
}

/* Custom Gradients */
.text-gradient {
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glow Effects */
.glow-hover:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* ===== MOBILE RESPONSIVE (< 640px) ===== */
@media (max-width: 640px) {
    /* Better touch targets */
    button, 
    a,
    .category-inactive,
    .category-active {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Modal full screen on mobile */
    #modal-panel {
        max-height: 90vh;
        margin: 1rem;
        border-radius: 1rem;
    }
    
    /* Navigation improvements */
    nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Project cards */
    .group {
        margin-bottom: 1rem;
    }
    
    /* Footer stacking */
    footer .flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Category filters horizontal scroll */
    #category-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }
    
    #category-filters::-webkit-scrollbar {
        display: none;
    }
    
    /* Section headings */
    section h2 {
        font-size: 1.75rem !important;
    }
    
    /* Contact form inputs */
    input, textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}

/* ===== TABLET RESPONSIVE (< 768px) ===== */
@media (max-width: 768px) {
    /* Hero subtitle */
    .hero-subtitle {
        line-height: 1.7;
    }
    
    /* Modal adjustments */
    #modal-panel {
        max-width: 95vw;
    }
    
    /* Stats section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== SMALL MOBILE (< 375px) ===== */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
    }
    
    /* Buttons stack */
    .flex.gap-4 button {
        width: 100%;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    nav, footer, #modal-panel {
        display: none;
    }
}
