body{
    background-color: #fbffe4 !important;
}
.hamburger-container {
    right:7rem;
}
header .logo {
    text-align: left;
    width: 22%;
}
header .row {
    margin: 0px auto;
    width: 75%;
    height: 100px;
    display: flex
;
    align-items: center;
    justify-content: space-between;
}
/*  */
.publication-section {
    padding-top: 8%;
    width: 100%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-image: url(../img/neon.png);
    background-size: 40%;
    background-position: -8% -46%;
}
.publication-section h1 {
 font-size:calc(8vw + 0.1rem);
 position: relative;
}


.publication-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px;
}

@media (max-width: 1200px) {
    .publication-grid { column-count: 2; }
}

@media (max-width: 768px) {
    .publication-grid { column-count: 1; }
}

.publication-card {
    break-inside: avoid;
    margin-bottom: 120px; /* Increased spacing between cards */
   
    width: calc(100% - 60px);
    margin: 0 0 40px 0px;
    position: relative;
    opacity: 1; /* Changed from 0 to make cards visible */
    transform: translateX(100px)!important;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform, opacity;
    padding: 0;
    min-height: 120px;
    box-shadow: none; /* Removed box shadow */
    border: none; /* Removed border */
}

/* Remove the first dot from publication-card */
.publication-card::before {
    display: none;
}

.publication-card:hover {
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
    background: transparent;
}

/* .publication-card:nth-child(odd),
.publication-card:nth-child(even) {
    margin-left: 60px;
    padding-left: 60px;
    text-align: left;
} */

/* Remove duplicate dot styles and keep just one definition */
.publication-inner::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #3e8d7a;
    border-radius: 50%;
    left: -68px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 6px rgba(62, 141, 122, 0.2);
    z-index: 2;
    opacity: 1; /* Make sure dots are visible */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

.publication-inner {
    background: rgba(255, 255, 255, 0.95); /* #fbffe4 with opacity */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgb(62 141 122 / 18%), inset 0 1px 0 rgb(255 255 255 / 90%);
    /* border-left: 5px solid #3e8d7a;
    border-left: 5px solid #3e8d7a; */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    transform: none; /* Remove any existing transform */
    backface-visibility: hidden;
    margin-left: 60px; /* Add space for year */
    will-change: transform, opacity;
}

.publication-inner:hover {
    transform: none; /* Remove hover transform */
    box-shadow: 
        0 15px 40px rgba(62, 141, 122, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgb(255, 255, 255);
}



.publication-card:nth-child(odd) .publication-inner::before,
.publication-card:nth-child(even) .publication-inner::before {
    left: -77px;
}

.publication-year {
    position: absolute;
    left: -166px; /* Adjusted position */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: 700;
    color: #3e8d7a;
    background: none;
    padding: 0;
    margin: 0;
    text-align: right;
    width: auto; /* Changed from fixed width */
    z-index: 3; /* Ensure it's above the line */
    white-space: nowrap; /* Prevent wrapping */
}

.publication-title {
    font-size: 1.5em;
    color: #3e8d7a;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.publication-journal {
    font-size: 1em;
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.5;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(62, 141, 122, 0.2);
}

.publication-doi {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(62, 141, 122, 0.1);
    border-radius: 12px;
    color: #3e8d7a;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    font-weight: 500;
}

.publication-doi:hover {
    background:#3e8d7a;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(62, 141, 122, 0.15);
}
.publication-doi:hover .doi-icon{
    fill: #ffffff;
}
.publication-doi i {
    font-size: 1.1em;
}

.doi-icon {
    width: 18px;
    height: 18px;
    fill: #3e8d7a;
}

.publication-authors {
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.publications-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0px;
    overflow: visible;
}

.timeline-line {
    position: absolute;
    left: 91px;
    width: 2px;
    height: 100%;
    top: 0;
    background: rgba(62, 141, 122, 0.1);
}

.timeline-progress {
    position: absolute;
    left: 91px;
    width: 2px;
    height: 100%;
    top: 0;
    background: #3e8d7a;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}
.cursor-follower {
    position: fixed;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(161, 215, 132, 0.35); /* Light kiwi color */
    filter: blur(20px);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index:6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-card:hover ~ .cursor-follower {
    opacity: 1;
}

/* Remove all other timeline-related styles */

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-line {
        left: 50px;
    }
    
    .publication-card {
        width: calc(100% - 80px);
        margin-left: 60px !important;
        padding-left: 30px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .publication-inner::before {
        left: -40px !important;
    }

    .publications-timeline {
        padding: 60px 20px;
        padding-left: 90px;
    }
    
    .publication-inner {
        padding: 30px;
    }
    
    .publication-title {
        font-size: 1.2em;
    }
    
    .publication-authors,
    .publication-journal {
        font-size: 1em;
    }

    .publication-year {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 15px;
        padding: 5px 12px;
        background: rgba(62, 141, 122, 0.1);
        border-radius: 15px;
        display: inline-block;
        text-align: left;
    }

    .timeline-progress-bar {
        left: 50px;
    }
}

@media (max-width: 480px) {
    .publication-section {
        padding-top:36%;
    }
    header .logo {
        text-align: left;
        width: 64%;
    }
    .publication-inner{
        margin-left: 0px;

    }
    .publications-timeline {
        padding: 60px 20px;
        padding-left: 0px;
    }
    .publications-timeline {
        padding: 60px 20px;
        padding-left: 0px;
    }
    .publication-card {
        width: 100%;
        margin-left: 0px !important;
        padding-left: 0px !important;
        padding-right: 0 !important;
        transform: translateX(27px) !important;
        text-align: left !important;
    }
    .timeline-line {
        left: 9px;
    }
    .timeline-progress {
        position: absolute;
        left: 8px;
    }
    header .row {
        margin: 0px auto;
        width: 88%;
    }
    .publication-inner::before {
        content: '';
        position: absolute;
        height: 11px;
        width: 11px;
        left: -23px !important;
    }
    .hamburger-container {
        right: 1rem;
    }    
}
