
/* Custom styles that complement Tailwind */
body {
    position: relative;
    background-color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@layer base {
    @font-face {
        font-family: 'Inter';
        font-style: normal;
        font-weight: 100 900;
        font-display: optional;
        src: url(https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap);
    }
}
/* Footer specific styles */
custom-footer {
    display: block;
    margin-top: 6rem;
    position: relative;
}

custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(59,130,246,0) 0%, rgba(59,130,246,0.5) 50%, rgba(59,130,246,0) 100%);
}
/* Background noise texture */
.noise-texture {
    position: absolute;
    inset: 0;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: -1;
}
.prose {
    line-height: 1.75;
}

.prose a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.prose a:hover {
    color: #2563eb;
}

.prose a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.2s ease;
}

.prose a:hover::after {
    width: 100%;
}
/* Smooth scrolling with offset for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* Enhanced animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.research-card, .award-card, .media-card, .student-card, .publication-card {
    animation: fadeIn 0.6s ease-out forwards;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}
a:hover .research-card {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}
.research-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.award-card:hover {
    transform: translateY(-5px) !important;
}

.research-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.research-details:not(.hidden) {
    max-height: 300px;
    padding: 1.5rem;
}
.research-card:nth-child(2) {
    animation-delay: 0.1s;
}
.research-card:nth-child(3) {
    animation-delay: 0.2s;
}

.media-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.media-card:nth-child(2) {
    animation-delay: 0.1s;
}
.media-card:nth-child(3) {
    animation-delay: 0.2s;
}
/* Student card animations */
.student-card {
    animation: fadeIn 0.6s ease-out forwards;
    transition: all 0.3s ease;
    text-align: center;
}
.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.student-card .profile-img {
    transition: all 0.3s ease;
}
.student-card:hover .profile-img {
    transform: scale(1.05);
}
.student-card h3,
.student-card p,
.student-card a {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100%;
}
.student-card:nth-child(2) {
    animation-delay: 0.1s;
}

.student-card:nth-child(3) {
    animation-delay: 0.2s;
}

.student-card:nth-child(4) {
    animation-delay: 0.3s;
}

.student-card:nth-child(5) {
    animation-delay: 0.4s;
}

.student-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Position cards */
.position-card:hover {
    border-color: #93c5fd;
}

.position-card .icon-container {
    transition: background-color 0.3s ease;
}

.position-card:hover .icon-container {
    background-color: #dbeafe;
}

.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
/* Section divider backgrounds */
.w-full.h-48 {
    position: relative;
    filter: brightness(0.85) contrast(1.1);
    transition: all 0.5s ease;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.w-full.h-48:hover {
    filter: brightness(1) contrast(1.2);
}

.w-full.h-48::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    mix-blend-mode: overlay;
    transition: opacity 0.5s ease;
}

.w-full.h-48:hover::before {
    opacity: 0.8;
}
/* Publication card images */
.publication-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.publication-card:hover img {
    transform: scale(1.05);
}
/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    
    .profile-image {
        margin: 0 auto;
    }

    /* Optimize section dividers for mobile */
    .w-full.h-48 {
        background-attachment: scroll;
        height: 120px;
    }
}

/* Micro-interactions for interactive elements */
button, .btn, [type="submit"], [role="button"] {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

button:hover, .btn:hover, [type="submit"]:hover, [role="button"]:hover {
    transform: scale(1.02);
}

button:active, .btn:active, [type="submit"]:active, [role="button"]:active {
    transform: scale(0.98);
}

/* Visually hidden but accessible for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
