* { 
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body { 
    background: linear-gradient(135deg, #0a0f18 0%, #1a1f2e 100%);
    color: #e2e8f0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0f18; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #10b981, #059669); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #059669, #047857); }

#progress-bar { 
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

#navbar { 
    background: rgba(10, 15, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.nav-link { 
    position: relative; 
    font-weight: 500; 
    color: #94a3b8; 
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    font-family: 'Fira Code', 'Consolas', monospace; /* Adding code font */
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: -5px; 
    left: 0; 
    width: 0; 
    height: 2.5px; 
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover { 
    color: #10b981;
}

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

.nav-link.active { 
    color: #10b981;
    font-weight: 600;
}

.hero-bg {
    background: linear-gradient(135deg, #0a0f18 0%, #111827 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 40%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
}

.profile-ring { 
    background: linear-gradient(135deg, #10b981, #3b82f6, #8b5cf6);
    padding: 4px;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.profile-ring-inner { 
    background: #0f172a;
    padding: 4px;
    border-radius: 50%;
}

.badge-pill { 
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.badge-pill:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.cta-primary { 
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 13px 32px;
    border-radius: 6px; /* more rectangular, like buttons in IDEs */
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -5px rgba(16, 185, 129, 0.5);
}

.cta-primary:active {
    transform: translateY(-1px);
}

.cta-secondary { 
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.3px;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.cta-secondary:hover { 
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.cta-secondary:active {
    transform: translateY(-1px);
}

.stat-card { 
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 20px 18px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Fira Code', monospace;
}

.stat-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.section-title { 
    font-size: 2.25rem;
    font-weight: 800; letter-spacing: -0.025em;
    color: #f8fafc;
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: 'Fira Code', monospace;
}

.section-title::after { 
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.section-title.centered::after { 
    left: 50%;
    transform: translateX(-50%);
}

.timeline-line { 
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #10b981 0%, #334155 100%);
    border-radius: 1px;
}

.timeline-dot { 
    position: absolute;
    left: 12px;
    top: 28px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f172a;
    border: 3px solid #10b981;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card { 
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.card:hover { 
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.1);
    transform: translateY(-4px);
}

.tech-badge { 
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    color: #34d399;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tech-badge:hover { 
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.skill-category { 
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid #1e293b;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
}

.skill-category:hover { 
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 36px rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
}

.skill-item { 
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover { 
    background: rgba(30, 41, 59, 0.8);
    transform: translateX(2px);
}

.level-dot { 
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.skill-bar-track { 
    height: 7px;
    background: #1e293b;
    border-radius: 3.5px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.skill-bar-fill { 
    height: 100%;
    border-radius: 3.5px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.skill-bar-fill.animated { 
    transform: scaleX(1);
}

.project-card { 
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(59, 130, 246, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.project-card:hover { 
    border-color: transparent;
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.15);
    transform: translateY(-8px);
}

.project-card:hover::before {
    opacity: 1;
}

.project-tag { 
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-vue { background: rgba(21, 128, 61, 0.2); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.tag-laravel { background: rgba(185, 28, 28, 0.2); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }
.tag-net { background: rgba(109, 40, 217, 0.2); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }
.tag-mgmt { background: rgba(180, 83, 9, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.tag-edu { background: rgba(3, 105, 161, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.filter-btn { 
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    border: 1.5px solid #334155;
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.filter-btn:hover { 
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    transform: translateY(-2px);
}

.filter-btn.active { 
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.reveal { 
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#mobile-menu { 
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open { 
    display: block;
    max-height: 500px;
}

.extra-icon { 
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.extra-icon:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.footer-bg { 
    background: linear-gradient(135deg, #05080f, #0a0f18);
    position: relative;
}

.footer-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

@media (max-width: 768px) {
    .section-title { 
        font-size: 1.75rem;
        font-weight: 800; letter-spacing: -0.025em;
    }
    
    .cta-primary, .cta-secondary {
        padding: 11px 24px;
        font-size: 0.9rem;
    }
}

/* Glowing blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: pulse 8s infinite alternate;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
}
.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

/* Tailwind Color Overrides for Dark Theme */
.bg-slate-50 { background-color: #0a0f18 !important; }
.bg-slate-100 { background-color: #0f172a !important; }
.bg-slate-200 { background-color: #1e293b !important; }
.bg-white { background-color: #0f172a !important; }
.bg-white\/10 { background-color: rgba(255,255,255,0.05) !important; }
.bg-white\/15 { background-color: rgba(255,255,255,0.08) !important; }
.bg-white\/85 { background-color: rgba(10, 15, 24, 0.85) !important; }
.bg-white\/90 { background-color: rgba(10, 15, 24, 0.9) !important; }

.text-slate-900 { color: #f8fafc !important; }
.text-slate-800 { color: #f1f5f9 !important; }
.text-slate-700 { color: #e2e8f0 !important; }
.text-slate-600 { color: #cbd5e1 !important; }
.text-slate-500 { color: #94a3b8 !important; }
.text-slate-400 { color: #64748b !important; }
.text-gray-900 { color: #f8fafc !important; }
.text-gray-800 { color: #f1f5f9 !important; }
.text-gray-700 { color: #e2e8f0 !important; }
.text-gray-600 { color: #cbd5e1 !important; }
.text-gray-500 { color: #94a3b8 !important; }

.text-blue-900 { color: #dbeafe !important; }
.text-blue-800 { color: #bfdbfe !important; }
.text-blue-700 { color: #93c5fd !important; }
.text-blue-600 { color: #60a5fa !important; }
.text-blue-500 { color: #3b82f6 !important; }
.text-blue-400 { color: #60a5fa !important; }
.text-green-700 { color: #34d399 !important; }
.text-green-600 { color: #34d399 !important; }
.text-purple-700 { color: #c084fc !important; }
.text-purple-600 { color: #a78bfa !important; }
.text-teal-600 { color: #2dd4bf !important; }
.text-indigo-600 { color: #818cf8 !important; }
.text-cyan-600 { color: #22d3ee !important; }
.text-orange-600 { color: #fb923c !important; }
.text-yellow-500 { color: #fbbf24 !important; }
.text-red-500 { color: #f87171 !important; }

.bg-blue-50 { background-color: rgba(59, 130, 246, 0.1) !important; }
.bg-blue-100 { background-color: rgba(59, 130, 246, 0.2) !important; }
.bg-green-50 { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-green-100 { background-color: rgba(16, 185, 129, 0.2) !important; }
.bg-purple-50 { background-color: rgba(139, 92, 246, 0.1) !important; }
.bg-purple-100 { background-color: rgba(139, 92, 246, 0.2) !important; }
.bg-yellow-50 { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-yellow-100 { background-color: rgba(245, 158, 11, 0.2) !important; }
.bg-red-50 { background-color: rgba(239, 68, 68, 0.1) !important; }
.bg-red-100 { background-color: rgba(239, 68, 68, 0.2) !important; }
.bg-slate-100 { background-color: rgba(30, 41, 59, 0.5) !important; }

/* Gradient Overrides */
.from-blue-50 { --tw-gradient-from: rgba(59, 130, 246, 0.1) !important; }
.to-blue-100 { --tw-gradient-to: rgba(59, 130, 246, 0.2) !important; }
.from-green-50 { --tw-gradient-from: rgba(16, 185, 129, 0.1) !important; }
.to-green-100 { --tw-gradient-to: rgba(16, 185, 129, 0.2) !important; }
.from-purple-50 { --tw-gradient-from: rgba(139, 92, 246, 0.1) !important; }
.to-purple-100 { --tw-gradient-to: rgba(139, 92, 246, 0.2) !important; }
.from-yellow-50 { --tw-gradient-from: rgba(245, 158, 11, 0.1) !important; }
.to-yellow-100 { --tw-gradient-to: rgba(245, 158, 11, 0.2) !important; }
.from-red-50 { --tw-gradient-from: rgba(239, 68, 68, 0.1) !important; }
.to-red-100 { --tw-gradient-to: rgba(239, 68, 68, 0.2) !important; }

.border-slate-100 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-slate-200 { border-color: rgba(255, 255, 255, 0.15) !important; }
.border-slate-200\/60 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-slate-200\/80 { border-color: rgba(255, 255, 255, 0.12) !important; }
.border-slate-300 { border-color: rgba(255, 255, 255, 0.2) !important; }
.border-gray-100 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-gray-200 { border-color: rgba(255, 255, 255, 0.15) !important; }
.border-green-200 { border-color: rgba(16, 185, 129, 0.2) !important; }
.border-blue-100 { border-color: rgba(59, 130, 246, 0.2) !important; }
.border-blue-200 { border-color: rgba(59, 130, 246, 0.3) !important; }
.border-purple-200 { border-color: rgba(139, 92, 246, 0.2) !important; }

/* Override hardcoded text colors in stats */
.stat-card .text-3xl {
    color: #10b981 !important;
}

/* Base text color */
body {
    color: #e2e8f0;
}

/* Hero Badges Animation */
.tech-badge-wrapper {
    opacity: 0;
    animation: badgeFade2 8s infinite ease-in-out;
}
.delay-0 { animation-delay: 0s; }
.delay-4 { animation-delay: 4s; }

@keyframes badgeFade2 {
    0% { opacity: 0; transform: translateY(10px); pointer-events: none; }
    6.25%, 43.75% { opacity: 1; transform: translateY(0); pointer-events: auto; }
    50%, 100% { opacity: 0; transform: translateY(-10px); pointer-events: none; }
}
.card, .project-card, .skill-category {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bg-slate-50 {
    background-color: #0a0f18 !important;
}

.bg-white {
    background-color: #0f172a !important;
}

/* Subtle pattern overlay for light sections */
section.bg-slate-50 {
    position: relative;
}
section.bg-slate-50::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Smooth reveal animation enhancement */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Project Images */
.project-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}

.project-image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.8) contrast(1.1); /* Darker images to fit dark theme */
}

.project-image-wrapper:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

.project-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-image-wrapper:hover::after {
    opacity: 1;
}
