* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom animations */
@keyframes blink-caret {
    50% { border-color: transparent; }
}

#typewriter {
    border-right: 3px solid #3B82F6;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(1.8) translateY(-5px);
    }
}

.trail-dot {
    animation: fadeOut 0.6s forwards;
}

[v-cloak] { display: none; }

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper customization */
.swiper-button-next, .swiper-button-prev { color: #3B82F6; }
.swiper-pagination-bullet { background-color: #475569 !important; }
.swiper-pagination-bullet-active { background-color: #3B82F6 !important; }

.swiper-pagination {
    position: relative !important;
    margin-top: 2rem !important;
    bottom: 0 !important;
}

.nav-link.active {
    color: #3B82F6;
    font-weight: 600;
}

.trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    opacity: 0.6;
    filter: blur(2px);
    z-index: 1000;
}

/* Light mode styles */
body.light-mode {
    background-color: #F8FAFC;
    color: #0F172A;
}

body.light-mode nav {
    background-color: rgba(248, 250, 252, 0.8);
    border-color: rgba(203, 213, 225, 0.5);
}

body.light-mode .bg-slate {
    background-color: #FFFFFF;
    border-color: rgba(203, 213, 225, 0.5);
}

body.light-mode .text-slate-300,
body.light-mode .text-slate-400 {
    color: #475569;
}

body.light-mode .text-off-white {
    color: #0F172A;
}

body.light-mode .bg-navy {
    background-color: #F1F5F9;
}

body.light-mode .border-slate-light {
    border-color: #E2E8F0;
}

body.light-mode footer {
    background-color: #FFFFFF;
    border-color: #E2E8F0;
}

body.light-mode #typewriter {
    border-right-color: #3B82F6;
}

body.light-mode .project-card:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

/* Toggle switch styles */
body.light-mode .toggle-circle {
    transform: translateX(28px);
    background-color: #0F172A;
}

body.light-mode #theme-toggle div {
    background-color: #E2E8F0;
    border-color: #CBD5E1;
}

/* Hero background grid pattern */
.hero-grid {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
}

.hero-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.1), transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(139, 92, 246, 0.1), transparent 50%);
    pointer-events: none;
}

body.light-mode .hero-grid {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
}

body.light-mode .hero-grid::before {
    background: radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.06), transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(139, 92, 246, 0.06), transparent 50%);
}

/* Social icons slide-in animation */
.social-icons {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out 0.6s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
