:root {
	--font-serif: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
	--font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'Roboto Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;
}

body {
	font-family: var(--font-sans);
	font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 600;
}

code, pre, .mono {
	font-family: var(--font-mono);
}

html { scroll-behavior: smooth; }

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.dark .hover-lift:hover {
    box-shadow: 0 15px 30px rgba(255,255,255,0.1);
}

.gradient-text {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.active-nav-link {
    color: #2563EB !important;
    font-weight: 600;
}

.dark .active-nav-link {
    color: #3B82F6 !important;
}
/* Button animations */
#shareMenu {
	@apply transition-transform duration-300 hover:rotate-12;
}

#shareSubmenu button {
	@apply transition-all duration-300 transform hover:scale-110 hover:-translate-y-1;
}

/* Toast animation */
@keyframes toast-in {
	0% { opacity: 0; transform: translateY(20px); }
	100% { opacity: 1; transform: translateY(0); }
}

.animate-toast {
	animation: toast-in 0.3s ease-out;
}

/* Submenu animation */
#shareSubmenu {
	@apply origin-bottom-right;
	position: absolute;
	bottom: 100%;
	right: 0;
	margin-bottom: 0.5rem;
}

#shareSubmenu button {
	@apply opacity-0;
	animation: submenu-in 0.3s ease-out forwards;
}

@keyframes submenu-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Stagger animations */
#shareSubmenu button:nth-child(1) { animation-delay: 50ms; }
#shareSubmenu button:nth-child(2) { animation-delay: 100ms; }
#shareSubmenu button:nth-child(3) { animation-delay: 150ms; }

.share-btn-group {
	@apply flex flex-col items-center justify-center p-4 rounded-xl transition-all 
		   hover:transform hover:scale-105 hover:shadow-md;
}

.facebook { 
	@apply bg-[#1877f2] text-white hover:bg-[#166fe5];
}
.twitter { 
	@apply bg-[#1da1f2] text-white hover:bg-[#1a91da];
}
.linkedin { 
	@apply bg-[#0a66c2] text-white hover:bg-[#0959aa];
}
.whatsapp { 
	@apply bg-[#25d366] text-white hover:bg-[#1eb355];
}
.email { 
	@apply bg-gray-600 text-white hover:bg-gray-700;
}
.link { 
	@apply bg-blue-500 text-white hover:bg-blue-600;
}

/* Gallery hover effect */
.gallery-item:hover {
    z-index: 10;
}

/* Prevent body scroll when lightbox is open */
body.overflow-hidden {
    overflow: hidden;
}

/* Lightbox transitions */
#lightbox {
    transition: opacity 0.3s ease;
}

/* Loading state */
#lightbox-image {
    transition: opacity 0.3s ease;
}

#lightbox-image[src=""] {
    opacity: 0;
}

/* Gallery hover effect */
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: "View";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Add to your stylesheet */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

#lightbox-image {
    transition: opacity 0.3s ease;
}

#lightbox-image.opacity-0 {
    opacity: 0;
}

/* SciLink.me Footer Styles - Matching Your Website Design */

.academic-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 4rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
	border-top: 10px solid #8c81cd;
}

/* Background decoration similar to your main site */
.academic-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Main Footer Section */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 4rem 0 3rem;
}

.footer-brand {
    padding-right: 2rem;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.5rem 0;
    opacity: 0.8;
}

.brand-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(10px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -10px;
}

/* Legal & Compliance Section */
.footer-legal {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.legal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.advertising-notice {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.privacy-link,
.ads-settings {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.privacy-link:hover,
.ads-settings:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Bottom Section */
.footer-bottom {
    padding: 2.5rem 0 2rem;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.copyright-section .copyright {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.copyright-section .affiliation {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-style: italic;
}

.contact-info {
    margin-bottom: 0.75rem;
}

.contact-label {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.contact-email {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-email:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.contact-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.75rem;
}

.contact-form {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-form:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.contact-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.social-section {
    text-align: right;
}

.social-label {
    font-size: 0.9rem;
    color: white;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.last-updated,
.compliance-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.compliance-note {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 3rem;
    }
    
    .footer-legal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0 2.5rem;
    }
    
    .footer-brand {
        padding-right: 0;
        text-align: center;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }
    
    .footer-legal {
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .brand-name {
        font-size: 1.75rem;
    }
    
    .footer-main {
        padding: 2.5rem 0 2rem;
    }
}

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

.footer-column {
    animation: fadeInUp 0.6s ease-out both;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .footer-links a,
    .social-link,
    .footer-column {
        transition: none;
        animation: none;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .academic-footer {
        background: linear-gradient(135deg, #000 0%, #333 100%);
    }
    
    .brand-name,
    .column-title,
    .legal-title {
        color: #fff;
    }
    
    .footer-links a,
    .legal-links a {
        color: #ccc;
    }
    
    .footer-links a:hover,
    .legal-links a:hover {
        color: #fff;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.footer-links a:active {
    transform: scale(0.95);
}

/* Print styles */
@media print {
    .academic-footer {
        background: white !important;
        color: black !important;
        page-break-inside: avoid;
    }
    
    .footer-links a,
    .legal-links a,
    .contact-email,
    .contact-form {
        color: black !important;
        text-decoration: underline !important;
    }
}