/* Cosmic Network Animation Styles */

/* Ensure canvas is behind all content */
#defaultCanvas0 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
}

/* Adjust body background to be semi-transparent */
body {
    background-color: rgba(37, 33, 34, 0.85) !important;
    background-image: none !important;
}

/* Make main sections have subtle background */
#header {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#main {
    background-color: rgba(37, 33, 34, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#footer {
    background-color: rgba(28, 25, 26, 0.95);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Add glow effect to headers */
h1, h2, h3 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Enhance portfolio boxes */
.box {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.box:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Make navigation semi-transparent */
#nav {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhance banner readability */
#banner {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 3em 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Add subtle animations to links */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px currentColor;
}

/* Enhance button styles */
.button {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Make images pop */
.image.featured {
    position: relative;
    overflow: hidden;
}

.image.featured img {
    transition: transform 0.3s ease;
}

.image.featured:hover img {
    transform: scale(1.05);
}

/* Add glow to social icons */
.social li a {
    transition: all 0.3s ease;
}

.social li a:hover {
    transform: scale(1.2);
    text-shadow: 0 0 20px currentColor;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance optimization for mobile */
@media screen and (max-width: 736px) {
    #defaultCanvas0 {
        opacity: 0.5;
    }
    
    body {
        background-color: rgba(37, 33, 34, 0.95) !important;
    }
}

/* Navigation scroll effect */
#nav.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.95) !important;
}

/* Pulse animation for social links */
.social li a.pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Image lazy loading effect */
.image.featured img {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.image.featured img.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Particle burst indicator */
.particle-burst {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    pointer-events: none;
    animation: burst 0.5s ease-out forwards;
}

@keyframes burst {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

/* Enhanced glow for headers when in view */
h2 {
    transition: text-shadow 0.3s ease;
}

h2:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Special effect for research publications */
#main ul.divided li {
    transition: all 0.3s ease;
    padding-left: 20px;
    border-left: 3px solid transparent;
}

#main ul.divided li:hover {
    border-left-color: #00ffff;
    padding-left: 30px;
    background-color: rgba(0, 255, 255, 0.05);
}

/* Font size adjustments for sections below Research Publications */
#footer {
    font-size: 0.85em;
}

#footer h2 {
    font-size: 1.5em;
}

#footer h3 {
    font-size: 1.2em;
}

/* Remove spacing between items in Research Publications */
section ul.divided li {
    margin: 0 !important;
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
}

section ul.divided li:first-child {
    padding-top: 0 !important;
}

/* Specifically for Research Publications section */
#main section ul.divided li h3 {
    margin-bottom: 0.3em !important;
}

#main section ul.divided li p {
    margin-bottom: 0.2em !important;
}

/* Remove spacing in Skills/Experiences and Certifications sections */
#footer ul.divided li {
    margin: 0 !important;
    padding: 0.3em 0 !important;
    border-top-width: 1px !important;
}

#footer ul.divided li:first-child {
    border-top: 0 !important;
    padding-top: 0 !important;
}

/* Adjust About Me dates section */
#footer ul.dates li {
    margin-bottom: 1em !important;
    padding-bottom: 1em !important;
}

#footer ul.dates li h3 {
    margin-bottom: 0.3em !important;
}

#footer ul.dates li p {
    margin-bottom: 0.2em !important;
    line-height: 1.4;
}