html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    overflow-x: hidden;
}

/* Custom scrollbar with GREENISH vibe */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 10px;
}

/* green-500 */
::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* green-600 */

/* Glassmorphism effect */
.glassmorphism {
    background: rgba(30, 41, 59, 0.4);
    /* slate-800 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Hero Background Slides */
.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-bg-slide.active {
    opacity: 1;
}

/* On-scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Hero Section Typed Text Cursor */
.typed-cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Timeline styles with GREENISH vibe */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2rem;
    border-left: 2px solid #374151;
    /* gray-700 */
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-dot {
    position: absolute;
    left: -0.7rem;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: #22c55e;
    /* green-500 */
    border: 4px solid #1f2937;
    /* gray-800 */
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
   
    transform: scale(1.2);
    box-shadow: 0 0 15px #51976b;
}

.timeline-item:hover h4,
.timeline-item:hover p {
    color: #22c55e;
}

/* Reactive Glowing Skill Cards */
.skill-card {
    position: relative;
}

.skill-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.5) 0%, transparent 70%);
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Gallery Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    transition: transform 0.3s ease;
}

.lightbox-btn {
    position: absolute;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    z-index: 101;
}

#lightbox-close {
    top: 20px;
    right: 20px;
}

#lightbox-prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

#lightbox-next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}


        /* Research Paper Modal */
        #research-modal {
             position: fixed; top: 0; left: 0; width: 100%; height: 100%;
             background-color: rgba(0,0,0,0.9);
             z-index: 100;
             display: flex; justify-content: center; align-items: center;
             opacity: 0; visibility: hidden;
             transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        #research-modal.active { opacity: 1; visibility: visible; }
        
        /* Filterable Research Grid */
        .research-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.5rem;
        }
        .research-paper-card {
            transition: transform 0.3s ease, opacity 0.3s ease, display 0s ease 0.3s;
            will-change: transform, opacity;
        }
        .research-paper-card.hide {
            transform: scale(0.9);
            opacity: 0;
            display: none;
            transition: transform 0.3s ease, opacity 0.3s ease, display 0s ease 0.3s;
        }
        .filter-btn.active {
            background-color: #22c55e;
            color: white;
        }
/* Infinite Zoom Background Effect */
.infinite-zoom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: infiniteZoom 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes infiniteZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}