@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --color-bg-deep: #030712;
    --color-bg-card: rgba(15, 23, 42, 0.65);
    --color-border-glass: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(34, 211, 238, 0.3);
    --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.2);
    border-radius: 9999px;
    border: 2px solid var(--color-bg-deep);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.5);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-deep);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-glass);
}

.glass-panel-glow:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
    transform: translateY(-4px);
}

/* Interactive Floating Background Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    animation: floatOrb 25s infinite alternate ease-in-out;
}

.glow-orb-cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
}

.glow-orb-purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
}

.glow-orb-emerald {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.2);
    }
    100% {
        transform: translate(-50px, 120px) scale(0.9);
    }
}

/* Background Grid Overlay */
.grid-overlay {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Custom Text Gradient */
.text-gradient-cyan-purple {
    background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald-cyan {
    background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interactive Card Effects */
.card-hover-border {
    position: relative;
    overflow: hidden;
}

.card-hover-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), transparent, rgba(6, 182, 212, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.card-hover-border:hover::before {
    background: linear-gradient(to bottom right, #22d3ee, #8b5cf6, #34d399);
}

/* Canvas background overlay */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Scroll Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Shimmer animation for loading/active elements */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-text {
    background: linear-gradient(90deg, #94a3b8, #ffffff, #94a3b8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
}

/* Page transitions styling */
.page-content {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-content.hidden-animation {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 0;
}

/* Hero Badge */
.hero-badge {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.05);
}

/* Publications dynamic list items */
.publication-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.publication-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Contact steps navigation */
.step-dot.active {
    background-color: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
}
.step-dot.completed {
    background-color: #34d399;
}
