/* Custom Styles for Simone Conia Personal Website */

body {
    font-family: 'Urbanist', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 50%, #f0f9ff 100%);
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    transition: all 0.3s ease;
}

.section-fade {
    opacity: 0;
    transform: translateY(30px);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #14b8a6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.publication-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.publication-card:hover {
    border-left-color: #14b8a6;
    transform: translateX(8px);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 16px;
    height: 16px;
    background-color: #14b8a6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #14b8a6;
}

.dark .timeline-item::before {
    border-color: #1e293b;
}

.research-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
    border: 1px solid rgba(20, 184, 166, 0.2);
        box-shadow:
            0 8px 32px 0 rgba(31, 38, 135, 0.07),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2);
        /* Inner rim */
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        overflow: hidden;
    }
/* Ripple effect on hover */
.research-card::before {
    content: '';
    position: absolute;
    top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.6s ease-out, opacity 0.6s ease-out;
        opacity: 0;
        pointer-events: none;
    z-index: 0;
}

.research-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 12px 40px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(20, 184, 166, 0.5);
    }
    
    .research-card:hover::before {
    transform: translate(-50%, -50%) scale(2.5);
        opacity: 1;
}

.dark .research-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
        box-shadow:
            0 8px 32px 0 rgba(0, 0, 0, 0.3),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .dark .research-card:hover {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-color: rgba(20, 184, 166, 0.5);
        box-shadow:
            0 12px 40px 0 rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .dark .research-card::before {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
}

.theme-toggle {
    position: relative;
    width: 40px;
        height: 40px;
        border-radius: 12px;
        background: transparent;
        border: 1px solid rgba(107, 114, 128, 0.2);
    cursor: pointer;
    display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: #4b5563;
        overflow: hidden;
}

.dark .theme-toggle {
    border-color: rgba(255, 255, 255, 0.2);
        color: #e5e7eb;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #14b8a6;
    color: #14b8a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

.dark .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #2dd4bf;
    color: #2dd4bf;
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.1);
}

.theme-toggle-icon {
    font-size: 1.25rem;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-sun {
    opacity: 0;
        transform: rotate(-90deg) scale(0.5);
}

.theme-toggle-moon {
    opacity: 1;
        transform: rotate(0) scale(1);
}

.dark .theme-toggle-sun {
    opacity: 1;
        transform: rotate(0) scale(1);
}

.dark .theme-toggle-moon {
    opacity: 0;
        transform: rotate(90deg) scale(0.5);
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
        mix-blend-mode: multiply;
    }
    
    .dark .blob {
        mix-blend-mode: screen;
        opacity: 0.7;
    }
    
    .blob-1 {
        top: -10%;
        left: -10%;
        width: 500px;
        height: 500px;
    background: rgba(20, 184, 166, 0.5);
        animation: blob-bounce-1 25s infinite ease-in-out alternate;
    }
    
    .blob-2 {
        bottom: -10%;
        right: -10%;
        width: 600px;
        height: 600px;
    background: rgba(168, 85, 247, 0.4);
        /* Purple-ish */
    animation: blob-bounce-2 35s infinite ease-in-out alternate;
    }
    
    .blob-3 {
        top: 40%;
        left: 40%;
        width: 400px;
        height: 400px;
    background: rgba(59, 130, 246, 0.4);
        /* Blue-ish */
    animation: blob-bounce-3 28s infinite ease-in-out alternate;
    }
    
    .dark .blob-1 {
    background: rgba(20, 184, 166, 0.4);
    }
    
    .dark .blob-2 {
    background: rgba(168, 85, 247, 0.35);
    }
    
    .dark .blob-3 {
    background: rgba(59, 130, 246, 0.35);
    }
    
                @keyframes blob-bounce-1 {
                    0% {
                        transform: translate(0, 0) scale(1);
                    }
        
                    33% {
                        transform: translate(100px, -50px) scale(1.1);
                    }
    
                                66% {
                                    transform: translate(-20px, 20px) scale(0.9);
                                }
        100% {
            transform: translate(0, 0) scale(1);
        }
}

@keyframes blob-bounce-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
33% {
        transform: translate(-50px, -50px) scale(1.1);
        }

                66% {
                    transform: translate(-20px, 20px) scale(0.9);
                }
100% {
    transform: translate(50px, 50px) scale(1);
}
}

@keyframes blob-bounce-3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, -20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.grid-container {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(20, 184, 166, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
    z-index: 1;
        /* Above blobs */
}

.dark .grid-container {
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(20, 184, 166, 0.05) 1px, transparent 1px);
}

/* About Text Container */
.about-text-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    position: relative;
}

.dark .about-text-container {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.about-text-container b {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .about-text-container b {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Grid Tiles for Mouse Proximity Effect */
.grid-tile{
  border-radius: 6px;
  opacity: 0.35;
  filter: blur(0.2px);
}


.dark .grid-tile {
    border-color: rgba(20, 184, 166, 0.15);
}

.grid-tile.hover-near {
    background-color: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}

.dark .grid-tile.hover-near {
    background-color: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.grid-tile.hover-close {
    background-color: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.4);
    transform: scale(1.05);
}

.dark .grid-tile.hover-close {
    background-color: rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.5);
}

/* Statistics Charts */
.stats-chart {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.1);
}

.dark .stats-chart {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.chart-bar {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.chart-bar:hover::before {
    left: 100%;
}

.chart-bar-vertical {
    background: linear-gradient(to top, #14b8a6 0%, #0d9488 100%);
    border-radius: 4px 4px 0 0;
    transition: all 0.8s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.2);
}

.chart-bar-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.chart-bar-vertical:hover::before {
    left: 100%;
}

.award-count {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.company-logo {
    transition: all 0.3s ease;
    filter: grayscale(20%);
    opacity: 0.8;
}

.company-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.dark .company-logo {
    filter: brightness(0) invert(1);
}

.dark .company-logo:hover {
    filter: brightness(0) invert(1);
        opacity: 1;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.1);
    transition: all 0.3s ease;
}

.dark .achievement-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.15);
}

.dark .achievement-card:hover {
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.2);
}

/* Chart container styles */
.chart-container {
    position: relative;
    height: 100%;
    background: rgba(20, 184, 166, 0.05);
    border-radius: 4px;
}

.dark .chart-container {
    background: rgba(20, 184, 166, 0.1);
}