/* CSS Variables for shadcn/ui theme */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 84% 4.9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
}

* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-feature-settings: "rlig" 1, "calt" 1;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Molecular Background */
#molecular-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #000011 0%, #000033 100%);
}

#molecular-background canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000011 0%, #000033 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.loading-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.loading-logo img {
    width: 48px;
    height: 48px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo-text {
    font-family: 'Rubik', sans-serif;
    color: #ffffff;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.1px;
}

.loading-text {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 25px;
    margin-bottom: 1rem;
}

.progress-container {
    width: 60%;
    max-width: 400px;
    min-width: 300px;
}

.progress-bar {
    background: rgba(168, 85, 247, 0.2);
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 9999px;
    width: 100%;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 
        0 0 10px rgba(168, 85, 247, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-indicator {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(168, 85, 247, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.loading-percentage {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 0.5rem;
    font-family: 'Geist Mono', monospace;
    font-weight: 500;
}

/* Component classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;  /* Updated to 2px to match our enhanced styles */
    text-decoration: none;
    position: relative;  /* Added for pseudo-element positioning */
    overflow: hidden;    /* Added for shimmer effect */
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-default {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(139, 69, 219, 0.1)) !important;
    color: #a855f7 !important;
    border: 2px solid rgba(168, 85, 247, 0.3) !important;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 15px rgba(168, 85, 247, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.btn-default::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-default:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 69, 219, 0.2)) !important;
    color: #c084fc !important;
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
}

.btn-default:hover::before {
    left: 100%;
}

.btn-ghost {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(139, 69, 219, 0.1)) !important;
    color: #a855f7 !important;
    border: 2px solid rgba(168, 85, 247, 0.3) !important;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 15px rgba(168, 85, 247, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.btn-ghost::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-ghost:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 69, 219, 0.2)) !important;
    color: #c084fc !important;
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
}

.btn-ghost:hover::before {
    left: 100%;
}

.btn-sm {
    height: 36px;
    border-radius: calc(var(--radius) - 2px);
    padding: 0 12px;
    font-size: 12px;
}

.btn-lg {
    height: 44px;
    padding: 0 32px;
    border-radius: var(--radius);
}

.card {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid hsl(var(--border));
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    transition: all 0.2s;
}

.badge:hover {
    background: hsl(var(--secondary)) / 0.8;
}

/* Layout components */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border) / 0.2);
    background: rgba(0, 0, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-container {
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: hsl(var(--foreground));
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    font-size: 14px;
}

.logo-text {
    font-family: 'Rubik', sans-serif;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 28px;
    margin-left: 12px;
    letter-spacing: 0.1px;
}

.nav {
    display: none;
    gap: 24px;
    align-items: center;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

/* Mobile Navigation */
.nav.mobile-open {
    display: flex;
    position: fixed;
    top: 56px;
    right: 20px;
    left: auto;
    transform: none;
    width: 280px;
    max-width: calc(100vw - 40px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-direction: column;
    padding: 12px 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Small arrow pointing to hamburger button */
.nav.mobile-open::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.95);
    z-index: 1001;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        transform-origin: top right;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        transform-origin: top right;
    }
}

.nav.mobile-open .nav-link {
    padding: 14px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0 8px;
    border-radius: 8px;
    border-bottom: none;
}

.nav.mobile-open .nav-link + .nav-link {
    margin-top: 4px;
}

.nav.mobile-open .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-1px);
}

.nav.mobile-open .nav-link:last-child {
    border-bottom: none;
}

.nav.mobile-open .nav-link.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 69, 219, 0.3));
    color: #ffffff;
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 
        0 2px 8px rgba(168, 85, 247, 0.2),
        0 0 15px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    position: relative;
    z-index: 1001;
    transition: color 0.2s ease;
    color: white;
}

.mobile-menu-btn.active {
    color: var(--accent-color);
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.nav-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(139, 69, 219, 0.4));
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 
        0 2px 8px rgba(168, 85, 247, 0.3),
        0 0 20px rgba(168, 85, 247, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: white;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Hero Section - Main Page */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 0;
    min-height: calc(100vh - 64px);
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* Centered hero layout */
.hero-container-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-content-centered {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 4px 12px;
    border-radius: 9999px;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    font-size: 12px;
    font-weight: 500;
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.hero-badge a:hover {
    color: inherit;
    text-decoration: none;
}

.hero-badge a:visited {
    color: inherit;
}

.hero-badge a:focus {
    outline: 2px solid rgba(168, 85, 247, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.hero-badge:hover {
    background: hsl(var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-badge.show {
    opacity: 1;
    transform: translateY(0);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title-large {
    font-family: 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    background: linear-gradient(
        90deg,
        #e5e7eb 0%,
        #f8fafc 15%,
        #ffffff 30%,
        #f0f9ff 45%,
        #ffffff 60%,
        #f8fafc 75%,
        #e5e7eb 100%
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 6s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-title-large::before { content: none; pointer-events: none; }

/* Remove the box */
.hero-title-large::after { content: none; }

/* Smooth gradient shimmer across the clipped text */
@keyframes shimmer {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}

/* Subtle layered glow pulse that keeps edges crisp */
@keyframes glowPulse {
    0%, 100% {
        text-shadow:
            0 0 4px rgba(224, 242, 254, 0.18),
            0 0 10px rgba(255, 255, 255, 0.15),
            0 2px 6px rgba(0, 0, 0, 0.35);
    }
    50% {
        text-shadow:
            0 0 8px rgba(224, 242, 254, 0.30),
            0 0 18px rgba(255, 255, 255, 0.25),
            0 3px 10px rgba(0, 0, 0, 0.45);
    }
}


/* replaced by shimmer */

@keyframes beating-overlay {
    0%, 100% {
        background-position: 0% 0;
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        background-position: 100% 0;
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes beating-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.98);
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.03);
        filter: brightness(1.3);
    }
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 64px;
    }
    
    .hero-title-large {
        font-size: 80px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 72px;
    }
    
    .hero-title-large {
        font-size: 96px;
    }
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-description-large {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.01em;
}

@media (min-width: 768px) {
    .hero-description-large {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 20px;
    }
    
    .hero-description-large {
        font-size: 28px;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
}

/* About Section - About Page */
.about-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 0;
    min-height: calc(100vh - 64px);
}

.about-container {
    max-width: 4xl;
    margin: 0 auto;
}

.about-content {
    max-width: 3xl;
    margin: 0 auto;
    text-align: center;
}

.about-header {
    margin-bottom: 48px;
}

.about-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: white;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@media (min-width: 640px) {
    .about-title {
        font-size: 56px;
    }
}

.about-subtitle {
    font-size: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Matrix Decryption Effect */
.matrix-decrypt {
    font-family: 'Geist Mono', monospace !important;
    color: #00ff00 !important;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00,
        0 1px 4px rgba(0, 0, 0, 0.8) !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-paragraph {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .about-paragraph {
        font-size: 18px;
    }
}

.about-paragraph strong {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.about-paragraph a {
    color: hsl(var(--foreground));
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.about-paragraph a:hover {
    color: hsl(var(--muted-foreground));
}

/* Animation delay classes for staggered effect */
.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

.animate-delay-4 {
    animation-delay: 0.8s;
}

.animate-delay-5 {
    animation-delay: 1.0s;
}

/* Keyframe animation for fade in and slide up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.team-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.team-credits {
    font-family: 'Geist Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-align: center;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Animations */
.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide elements initially only if JS will load */
.js-enabled .hero-badge {
    opacity: 0;
    transform: translateY(20px);
}

.js-enabled .hero-title,
.js-enabled .hero-title-large {
    opacity: 0;
    transform: translateY(40px);
}

.js-enabled .hero-description,
.js-enabled .hero-description-large {
    opacity: 0;
    transform: translateY(32px);
}

.js-enabled .hero-actions {
    opacity: 0;
    transform: translateY(24px);
}

/* Show states */
.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

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

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================
   CONTACT PAGE STYLES
   ===================================== */

.contact-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
}

.contact-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: white;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.contact-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Form Styles */
.contact-form {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: white;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-error {
    display: none;
    font-size: 14px;
    color: #ef4444;
    margin-top: 4px;
}

.form-submit-btn {
    /* Inherit main button styles, override specific properties */
    margin-top: 8px;
    width: 100%;
    gap: 8px;
}

.form-submit-btn.sending {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3);
    cursor: not-allowed;
}

.form-submit-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 24px;
}

.contact-info-item {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.contact-info-item:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-info-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-info-content {
    flex: 1;
}

.contact-info-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.contact-info-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-title {
        font-size: 36px;
    }
    
    .contact-subtitle {
        font-size: 18px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-form-container {
        gap: 24px;
    }
    
    .contact-info-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 100px 0 60px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-subtitle {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-submit-btn {
        padding: 14px 24px;
    }
}

/* Molecular Loading Indicator */
.molecular-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 17, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content p {
    margin-top: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top: 3px solid #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* =====================================
   Blog Styles
   ===================================== */

/* Blog Page */
.blog-section {
    padding: 6rem 0;
    min-height: 100vh;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.blog-post-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 520px; /* ensure consistent panel height */
}



.blog-post-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-post-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.blog-post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.read-more-link {
    margin-top: auto;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-post-title {
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
}

.blog-post-title a {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #a855f7;
}

.blog-post-summary {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #c084fc;
    transform: translateX(5px);
}

.read-more-link i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(3px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-btn,
input[type="submit"].newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    font-size: inherit;
}

.newsletter-btn:hover,
input[type="submit"].newsletter-btn:hover {
    background: linear-gradient(135deg, #3730a3, #5b21b6);
    transform: translateY(-2px);
}

.newsletter-btn.success,
input[type="submit"].newsletter-btn.success {
    background: linear-gradient(135deg, #059669, #047857);
}

.newsletter-btn:disabled,
input[type="submit"].newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-privacy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.newsletter-privacy a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.newsletter-privacy a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Blog Post Page */
.blog-post {
    padding: 2rem 0;
    min-height: 100vh;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #a855f7;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.image-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
    padding: 0.5rem 0;
    font-style: italic;
}

.image-caption strong {
    color: white;
    font-weight: 600;
    font-style: normal;
}

/* Scientific figure specific styles */
.scientific-figure {
    margin: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.scientific-figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
}

.scientific-figure .image-caption {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 1rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

/* Responsive adjustments for figures */
@media (max-width: 768px) {
    .scientific-figure {
        margin: 2rem 0;
        padding: 1rem;
    }
    
    .scientific-figure img {
        padding: 0.5rem;
    }
}

.blog-post-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #a855f7;
}

.blog-post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin: 2.5rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: white;
    margin: 2rem 0 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
    background: rgba(168, 85, 247, 0.1);
    border-left: 4px solid #a855f7;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-content strong {
    color: white;
    font-weight: 600;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.share-btn:active {
    transform: translateY(1px);
}

.share-btn.success {
    background: var(--accent-color) !important;
    color: white !important;
    border-color: var(--accent-color) !important;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: white;
}

.notification-success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.notification-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .newsletter-section {
        padding: 2rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-btn {
        justify-content: center;
    }
    
    .blog-post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    display: block;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

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

.modal-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Clickable image cursor */
.blog-post-image img,
.scientific-figure img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-post-image img:hover,
.scientific-figure img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-close {
        top: -40px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .modal-caption {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}