/* Base fonts */
body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Mono font for techy accents */
.skill-tag, .tech-tag,
.font-mono,
time, .text-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Skill tags */
.skill-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Tech tags on project cards */
.tech-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 0.7rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

/* Project cards */
.project-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Dark mode overrides */

/* Backgrounds */
.dark body { background-color: #030712; color: #f3f4f6; }
.dark nav { background-color: rgba(3, 7, 18, 0.9); border-color: #1f2937; }
.dark section { background-color: #030712; }
.dark section.bg-gray-50,
.dark .bg-gray-50 { background-color: #0f172a !important; }
.dark .bg-white { background-color: #111827 !important; }
.dark footer { background-color: #0f172a; border-color: #1f2937; }

/* Text */
.dark .text-gray-900 { color: #f9fafb !important; }
.dark .text-gray-700 { color: #d1d5db !important; }
.dark .text-gray-600 { color: #9ca3af !important; }
.dark .text-gray-500 { color: #6b7280 !important; }
.dark .text-gray-400 { color: #4b5563 !important; }
.dark h1, .dark h2, .dark h3 { color: #f9fafb; }
.dark strong { color: #f9fafb; }

/* Borders */
.dark .border-gray-100 { border-color: #1f2937 !important; }
.dark .border-gray-200 { border-color: #1f2937 !important; }
.dark .border-gray-300 { border-color: #374151 !important; }

/* Nav links */
.dark nav a { color: #9ca3af; }
.dark nav a:hover { color: #f9fafb; }
.dark nav .bg-gray-900 { background-color: #f9fafb !important; color: #111827 !important; }
.dark nav .hover\:bg-gray-700:hover { background-color: #e5e7eb !important; }

/* Buttons */
.dark .bg-gray-900 { background-color: #f9fafb !important; color: #111827 !important; }
.dark .hover\:bg-gray-700:hover { background-color: #e5e7eb !important; }
.dark .border-gray-300 { border-color: #374151 !important; }
.dark .text-gray-700 { color: #d1d5db !important; }

/* Timeline dots */
.dark .bg-gray-200 { background-color: #1f2937 !important; }

/* Form inputs */
.dark input, .dark textarea {
    background-color: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}
.dark input::placeholder, .dark textarea::placeholder { color: #6b7280; }
.dark input:focus, .dark textarea:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 2px #374151;
}

/* Custom classes */
.dark .skill-tag {
    background-color: #1f2937;
    color: #d1d5db;
}

.dark .tech-tag {
    background-color: #0f172a;
    color: #9ca3af;
    border-color: #374151;
}

.dark .project-card {
    background: #111827;
    border-color: #374151;
}

.dark .project-card:hover {
    border-color: #6b7280;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Mobile menu */
.dark #mobile-menu { border-color: #1f2937; }

/* Apply mono to dates, labels, arrows */
.text-xs.uppercase,
.text-sm.text-gray-400,
.tracking-wide {
    font-family: 'JetBrains Mono', monospace;
}

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

/* Fade-in animation for sections */
section {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
