@charset "UTF-8";

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

/* Custom Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

/* Global Styles */
[x-cloak] { display: none !important; }

/* Custom Utilities */
.glass-card {
    /* Light Mode Default */
    background-color: rgba(255, 255, 255, 0.7); /* bg-white/70 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    border: 1px solid rgba(226, 232, 240, 1); /* border-slate-200 */
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /* shadow-xl */
    /* Spotlight setup */
    position: relative;
    overflow: hidden;
}




/* Spotlight Glow Effect */
.glass-card::before {
    content: "";
    position: absolute;
    left: var(--mouse-x);
    top: var(--mouse-y);
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    /* Light Mode Glow */
    background: radial-gradient(circle, rgba(148, 163, 184, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}




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

.text-glow {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Ensure smooth transitions for interactive elements */
a, button, .glass-card, input, select {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms; /* Slightly longer for theme switch feel */
}

/* --- Live Wave Flow Animation Background --- */

.hero-wave-container {
    position: absolute;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    /* Fade out slightly at the bottom */
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.waves-svg {
    width: 100%;
    height: 100%;
    /* Ensure it stretches to cover the area */
    preserveAspectRatio: none;
}

/* Wave Layers */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    /* Light Mode Colors */
    fill: rgba(59, 130, 246, 0.1); /* faint blue */
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: rgba(16, 185, 129, 0.1); /* faint emerald */
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: rgba(59, 130, 246, 0.05); /* very faint blue */
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    fill: rgba(16, 185, 129, 0.05); /* very faint emerald */
}



@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* --- Mobile Optimizations --- */
@media (max-width: 768px) { /* Adjust breakpoint as needed for md */
    /* Live Wave Background Optimization */
    .parallax > use:nth-child(2),
    .parallax > use:nth-child(3),
    .parallax > use:nth-child(4) {
        display: none; /* Hide extra wave layers for performance */
    }

    /* Tame Hover Interactions (Spotlight) */
    .glass-card::before {
        opacity: 0 !important; /* Disable spotlight glow on mobile */
    }
    .glass-card:hover::before {
        opacity: 0 !important;
    }
}/* --- Blog Specific Styles --- */

.line-clamp-2 {

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.line-clamp-3 {

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



/* Reading Progress Bar */

#progress-bar {

    width: 0%;

    height: 4px;

    background: linear-gradient(90deg, #3b82f6, #10b981);

    position: fixed;

    top: 0;

    left: 0;

    z-index: 100;

    transition: width 0.1s ease-out;

}



/* Article Typography Enhancements */

.article-content h2 {

    font-size: 1.75rem;

    font-weight: 800;

    margin-top: 2.5rem;

    margin-bottom: 1rem;

    color: #0f172a; /* Slate 900 */

    line-height: 1.3;

}



.article-content h3 {

    font-size: 1.4rem;

    font-weight: 700;

    margin-top: 2rem;

    margin-bottom: 0.75rem;

    color: #1e293b; /* Slate 800 */

}



.article-content p {

    margin-bottom: 1.5rem;

    line-height: 1.8;

    color: #334155; /* Slate 700 */

    font-size: 1.125rem; /* 18px */

}



.article-content ul {

    list-style-type: disc;

    padding-left: 1.5rem;

    margin-bottom: 1.5rem;

    color: #334155;

}



.article-content blockquote {

    border-left: 4px solid #3b82f6;

    padding-left: 1.5rem;

    font-style: italic;

    color: #475569;

    background: #f8fafc;

    padding: 1.5rem;

    border-radius: 0 0.5rem 0.5rem 0;

    margin: 2rem 0;

}
