/* Custom styles and enhancements for faath.my.id */

/* Background Dot/Grid Pattern */
.grid-pattern {
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

html:not(.dark) .grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(17, 23, 38, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html:not(.dark) .glass-nav {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Light Mode Overrides */
html:not(.dark) body {
    background-color: #f8fafc;
    color: #1e293b;
}

html:not(.dark) .text-white {
    color: #0f172a;
}

html:not(.dark) .text-slate-300 {
    color: #475569;
}

html:not(.dark) .text-slate-400 {
    color: #64748b;
}

html:not(.dark) .bg-slate-900,
html:not(.dark) .bg-slate-900\/50,
html:not(.dark) .bg-slate-900\/60,
html:not(.dark) .bg-slate-900\/80,
html:not(.dark) .bg-slate-900\/90 {
    background-color: #ffffff;
}

html:not(.dark) .border-slate-800,
html:not(.dark) .border-slate-800\/80,
html:not(.dark) .border-slate-800\/90,
html:not(.dark) .border-slate-700 {
    border-color: #e2e8f0;
}

html:not(.dark) .bg-slate-800\/80,
html:not(.dark) .bg-slate-800\/70 {
    background-color: #f1f5f9;
    color: #334155;
}

html:not(.dark) .bg-gradient-to-br,
html:not(.dark) .bg-gradient-to-b {
    background: #ffffff;
}

/* Tech Badges */
.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 8px;
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.7);
    color: #cbd5e1;
    transition: all 0.2s ease;
}

html:not(.dark) .badge {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.badge:hover {
    border-color: #10b981;
    color: #34d399;
}

/* Contact Pill Buttons */
.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 14px;
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.8);
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

html:not(.dark) .contact-pill {
    background-color: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

.contact-pill:hover {
    transform: translateY(-2px);
    border-color: #10b981;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.15);
}

/* Stat Cards */
.stat-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.12);
}

/* Project Cards */
.project-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(16, 185, 129, 0.1);
}

/* Smooth custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

html:not(.dark)::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}
