/* Nanopaq Website - Dark Dashboard Theme with Lime Green Accent */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid Background Pattern */
.grid-bg {
    background-image: 
        linear-gradient(rgba(163, 230, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(163, 230, 53, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Header Scroll Effect */
#header.scrolled {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #27272a;
}

/* Selection */
::selection {
    background-color: rgba(163, 230, 53, 0.3);
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3e635;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section spacing */
section {
    position: relative;
}

/* Card hover effects */
.bg-bg-card {
    transition: all 0.3s ease;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect for accent elements */
.glow-accent {
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.3);
}

/* Button hover scale effect */
button, .btn {
    transition: all 0.2s ease;
}

button:active, .btn:active {
    transform: scale(0.98);
}

/* Form focus states */
input:focus, textarea:focus {
    outline: none;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Portfolio card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Process row hover indicator */
.process-row {
    position: relative;
}

.process-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #a3e635;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.process-row:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

/* Tech tag hover */
.tech-tag {
    transition: all 0.2s ease;
}

.tech-tag:hover {
    border-color: #a3e635;
    color: #a3e635;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Smooth section transitions */
section {
    scroll-margin-top: 80px;
}

/* Link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* List styles */
ul {
    list-style: none;
}

/* Monospace numbers */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* Status indicator dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a3e635;
    animation: pulse 2s infinite;
}

/* Dashboard-style number display */
.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Subtle border glow on hover */
.glow-border:hover {
    box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.3), 0 0 20px rgba(163, 230, 53, 0.1);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #171717 25%, #1f1f1f 50%, #171717 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .bg-bg-dark, .bg-bg-card {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
    
    .text-accent {
        color: #65a30d !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
