body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb; /* Lighter gray background */
}

.tab-content {
    display: block;
    min-height: 200px; 
}

.section-title {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0;
    animation: slideInFromLeft 0.8s ease forwards;
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Header animations */
h1 {
    animation: fadeInUp 1s ease 0.1s both;
}

header p {
    animation: fadeInUp 1s ease 0.3s both;
}

header img {
    animation: fadeIn 1s ease 0.3s both;
}

/* Profile photo hover effect */
header img:hover {
    transform: scale(1.05) rotate(2deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab content animations */
.tab-content {
    animation: fadeInUp 0.6s ease both;
}

/* Staggered animation for list items */
.animated-list li {
    opacity: 0;
    animation: slideInFromLeft 0.6s ease forwards;
}

.animated-list li:nth-child(1) { animation-delay: 0.1s; }
.animated-list li:nth-child(2) { animation-delay: 0.2s; }
.animated-list li:nth-child(3) { animation-delay: 0.3s; }
.animated-list li:nth-child(4) { animation-delay: 0.4s; }
.animated-list li:nth-child(5) { animation-delay: 0.5s; }
.animated-list li:nth-child(6) { animation-delay: 0.6s; }
.animated-list li:nth-child(7) { animation-delay: 0.7s; }
.animated-list li:nth-child(8) { animation-delay: 0.8s; }

/* Education and section animations */
.education-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.education-item:nth-child(1) { animation-delay: 0.2s; }
.education-item:nth-child(2) { animation-delay: 0.4s; }

/* Publication hover effects */
.publication-item {
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.publication-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Publication entry spacing */
#publications-content p {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#publications-content p:hover {
    background-color: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image hover effects */
.hover-zoom {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.hover-zoom:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Bio text animation */
.bio-text {
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s both;
}

/* Styles for the navigation tabs */
.tab-link {
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4b5563;
    position: relative;
    overflow: hidden;
}

.tab-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-link:hover::before {
    left: 100%;
}

.tab-link:hover {
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-link.active {
    border-color: #2563eb;
    color: #111827;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.05);
}

/* Icon animations */
.icon-link {
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.icon-link svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #6b7280;
    transition: all 0.1s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.icon-link:hover svg {
    fill: #111827;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Floating animation for social icons */
.social-icons {
    animation: fadeIn 0.5s ease 0.5s both;
}

.social-icons a {
    animation: fadeIn 0.5s ease both;
}


/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease;
}

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

/* News section special effects */
.news-item {
    transition: all 0.1s ease;
}

.news-item:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
}

/* Footer animation */
footer {
    animation: fadeInUp 0.1s ease 0.1s both;
}

/* Smooth reveal animation for sections */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced image gallery effects */
.art-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.art-gallery img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.art-gallery img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

@media (max-width: 768px) {
    .art-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .art-gallery {
        grid-template-columns: 1fr;
    }
}


.art-gallery-2 {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.art-gallery-2 img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.art-gallery-2 img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

/* Sticky navigation styles */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.1rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.sticky-nav .container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0;
}

.about-nav, .publications-nav, .extra-nav {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.4rem 0 0.4rem 0;
    margin: 0 -2rem 2rem -2rem;
    z-index: 60;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-offset .about-nav, .content-offset .publications-nav, .content-offset .extra-nav {
    top: 90px; 
}

.about-nav ul, .publications-nav ul, .extra-nav ul {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 1em;
}

.about-nav li, .publications-nav li, .extra-nav li {
    list-style: none;
}

.about-nav-link, .publications-nav-link, .extra-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #6b7280;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.about-nav-link:hover, .publications-nav-link:hover, .extra-nav-link:hover {
    color: #2563eb;
    background-color: #f3f4f6;
}

.about-nav-link.active, .publications-nav-link.active, .extra-nav-link.active {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
}

/* Adjust main content when sticky nav is active */
.content-offset {
    padding-top: 80px;
}

/* Collapsible video styles */
.collapsible-video {
    margin-top: 0.5rem;
}

.video-toggle {
    cursor: pointer;
    color: #3b82f6;
    text-decoration: underline;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.video-toggle:hover {
    color: #1e40af;
}

.video-toggle::after {
    content: " ▼";
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.video-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.video-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease;
    margin: 0;
}

.video-container.expanded {
    max-height: 400px;
    margin-top: 0.75rem;
}

.video-container iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 8px;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.3s ease;
}

.lightbox-image {
    max-width: 95%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Make images clickable */
.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Section spacing before footer */
.section-spacing {
    height: 6rem;
    background-color: #f9fafb;
}

/* Footer Section */
.footer-section {
    margin-top: 1rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    padding: 2rem 0 2rem 0;
    background-image: url('images/greysplotches.png');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 600px;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    min-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.footer-link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    min-width: 1.25rem;
    min-height: 1.25rem;
}

.footer-copyright {
    color: #6b7280;
    justify-content: space-between;
    font-size: 0.875rem;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0 3rem 0;
    position: relative;
    margin-top: 1rem;
    text-align: center;

}
.contact-footer-btn {
    background: #059669 !important;
}

.contact-footer-btn:hover {
    background: #047857 !important;
}

/* Ensure content can scroll past main content */
body {
    min-height: 100vh;
}
