body {
    font-family: 'Inter', sans-serif; /* Default to a readable font */
    background-color: #F8FAFC; 
}

/* Loading Screen Styles */
#loading-screen {
    animation: fadeOut 0.5s ease-in-out 3s forwards;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(2px 2px at 20px 30px, #fff, transparent),
                radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
                radial-gradient(1px 1px at 90px 40px, #fff, transparent),
                radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
                radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.logo-ring, .logo-ring-2 {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.logo-ring {
    animation: rotate 3s linear infinite;
}

.logo-ring-2 {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-color: rgba(255,255,255,0.2);
    animation: rotate 4s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    animation: typing 1.5s steps(12) 0.5s both, blink 1s infinite 2s;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out 1.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 2px;
    animation: progress 3s ease-out;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

.loading-percentage {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    animation: countUp 3s ease-out;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hover Effects */
.hover-glow {
    transition: all 0.3s ease;
    position: relative;
}

.hover-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.2);
}

/* Enhanced Link Hover Effects */
a {
    position: relative;
    transition: all 0.3s ease;
}

a:hover {
    transform: translateY(-1px);
}

/* Button Hover Effects */
button, .bg-indigo-500, .bg-sky-600, .bg-teal-600 {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover, .bg-indigo-500:hover, .bg-sky-600:hover, .bg-teal-600:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

button::before, .bg-indigo-500::before, .bg-sky-600::before, .bg-teal-600::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover::before, .bg-indigo-500:hover::before, .bg-sky-600:hover::before, .bg-teal-600:hover::before {
    left: 100%;
}

/* Glass Card Enhanced Hover */
.glass-card {
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}



@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-logo {
    animation: bounceIn 1s ease-out;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3), 0 0 0 0 rgba(99, 102, 241, 0.7);
    animation: pulse 2s infinite, ripple 2s infinite;
}

@keyframes ripple {
    0% {
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3), 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3), 0 0 0 20px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3), 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.logo-text {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    }
}

.loading-text {
    animation: slideUp 1s ease-out 0.3s both;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    animation: slideUp 1s ease-out 0.6s both;
}

.dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.font-handwriting {
    font-family: 'Caveat', cursive;
}
.font-cursive {
    font-family: 'Marck Script', cursive;
}
.content-wrapper {
    position: relative;
    z-index: 1;
}
.card {
    background-color: rgba(255, 255, 255, 0.75); /* Slightly more opaque for readability */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism Card Style for Projects & Blog */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.glass-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}
.text-shadow {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Cohesive Light Pastel Palette */
.bg-playground { background-color: #e0f2fe; color: #0369a1; } /* Sky */

.active-filter {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Scrollbar for 'All' projects */
.project-grid-scrollable {
    max-height: 600px; /* Adjust as needed */
    overflow-y: auto;
    padding-right: 1rem; /* For scrollbar spacing */
}
/* Blog Carousel Styles */
.blog-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-track {
    animation: scroll-horizontal 20s linear infinite;
    width: calc(400px * 8);
}

@keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 4 - 32px * 4)); }
}

.blog-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .blog-track {
        width: calc(300px * 8);
    }
    .blog-track .glass-card {
        width: 300px !important;
    }
    @keyframes scroll-horizontal {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-300px * 4 - 32px * 4)); }
    }
}
/* Blog Horizontal Scroll Styles */
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
/* Hide scrollbar but keep functionality */
.overflow-x-auto {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.overflow-x-auto::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for projects section */
.project-grid-scrollable {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-grid-scrollable::-webkit-scrollbar {
    display: none;
}
/* Custom scrollbar styling */
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(255, 255, 255, 0.1);
}

.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

.project-grid-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(255, 255, 255, 0.1);
}

.project-grid-scrollable::-webkit-scrollbar {
    width: 6px;
}

.project-grid-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.project-grid-scrollable::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 3px;
}

.project-grid-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}
/* Updated scrollbar styling */
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.1);
}

.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.project-grid-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.1);
}

.project-grid-scrollable::-webkit-scrollbar {
    width: 6px;
}

.project-grid-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.project-grid-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.project-grid-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}