/* Navbar styling */



.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    top: 0;
    background: #b0a092;
    padding: 0px 20px;
    font-weight: bold;
    font-size: 20px;
    z-index: 1000;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Left navigation - align to the right within its container */
.nav-list-left {
    justify-content: flex-end;
    gap: 30px;
}

/* Right navigation - align to the left within its container */
.nav-list-right {
    justify-content: flex-start;
    gap: 30px;
}

/* Logo styling */
.logo {
    display: flex;
    justify-content: center;
    padding: 0 40px;
    /* Add space around logo */
}

.logo img {
    width: 65px;
    height: 70px;
}

.nav-list li a {
    text-decoration: none;
    color: rgb(255, 255, 255) !important;
    font-size: 20px;
    padding-bottom: 5px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
}

.nav-list li a:hover::after {
    width: 100%;
}

.nav-list li a.active::after {
    width: 100%;
    background-color: #ffffff;
}





/* Hide mobile elements by default */
.hamburger,
.mobile-menu-overlay,
.mobile-nav-list {
    display: none;
}

/* Mobile Navigation Styles - For tablets and phones */
@media (max-width: 1300px) {
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Hide desktop nav on mobile/tablet */
    .nav-list-left,
    .nav-list-right {
        display: none;
    }

    /* Show mobile menu elements */
    .mobile-menu-overlay,
    .mobile-nav-list {
        display: block !important;
    }

    /* Adjust navbar for mobile/tablet - keep grid but modify */
    .navbar {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        position: relative;
    }

    /* Center logo on mobile/tablet */
    .logo {
        justify-self: center;
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Position hamburger on left */
    .hamburger {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: #b0a092;
        display: flex;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-list.active {
        left: 0;
    }

    .mobile-nav-list li {
        margin-bottom: 15px;
        list-style: none;
    }

    .mobile-nav-list li a {
        color: white;
        text-decoration: none;
        font-size: 20px;
        font-weight: bold;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .mobile-nav-list li a:hover {
        color: rgb(141, 83, 7);
        transform: translateX(10px);
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        z-index: 1001;
    }

    /* Hamburger animation when active */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Nuclear option - remove visited styles globally for nav */
a.nav-link:visited {
    color: inherit !important;
}

/* Or even more specific */
nav a:visited,
.navbar a:visited,
.nav-list a:visited,
.mobile-nav-list a:visited {
    color: rgb(255, 255, 255) !important;
}

/* Nuclear option - ensure ALL nav links stay white */
.navbar a.nav-link,
.navbar .nav-list a,
.navbar .mobile-nav-list a,
.nav-list a,
.mobile-nav-list a {
    color: rgb(255, 255, 255) !important;
}

/* Force navbar links to stay white - override any global styles */
.navbar a,
.navbar .nav-list a,
.navbar .mobile-nav-list a,
.nav-list a,
.nav-list-left a,
.nav-list-right a,
.mobile-nav-list a,
.nav-link {
    color: rgb(255, 255, 255) !important;
}

/* Cover all link states */
.navbar a:link,
.navbar a:visited,
.navbar a:hover,
.navbar a:active,
.navbar a:focus,
.nav-list a:link,
.nav-list a:visited,
.nav-list a:hover,
.nav-list a:active,
.nav-list a:focus,
.mobile-nav-list a:link,
.mobile-nav-list a:visited,
.mobile-nav-list a:hover,
.mobile-nav-list a:active,
.mobile-nav-list a:focus {
    color: rgb(255, 255, 255) !important;
}

/* Research Section Styles */
#research {
    background-color: #fffbf5;
    padding: 80px 0;
    min-height: 100vh;
}

section,
footer,
.main-content {
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.research-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* Paper Visualization Styles */
.paper-visualization {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.highlight-author {
    background: linear-gradient(120deg, #095fa6, #4f331a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.paper-screenshot {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.paper-image {
    width: 600px;
    height: 700px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #b0a092;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.paper-screenshot:hover .screenshot-overlay {
    opacity: 0.8;
}

.view-paper-btn {
    background: white;
    opacity: 2;
    color: #9b672a;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.view-paper-btn:hover {
    transform: scale(1.05);
}

/* Publication Details Styles */
.publication-details {
    padding: 20px;
}

.publication-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;

}

.publication-card:hover {
    transform: translateY(-10px);

}

.journal-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #b0a092;
}

.journal-logo {
    width: 70px;
    height: 70px;
}

.journal-name {
    font-weight: bold;
    color: #4f331a;
    font-size: 16px;
}

.paper-title {
    font-size: 24px;
    color: #4f331a;
    margin-bottom: 30px;
    line-height: 1.4;
}

.authors-list {
    margin-bottom: 30px;
}

.author {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.author.primary-author {
    font-weight: bold;
    color: #4f331a;
}

.author-role {
    color: #666;
    font-size: 14px;
}

.publication-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
}

.info-label {
    font-weight: bold;
    color: #4f331a;
    min-width: 80px;
    margin-right: 15px;
}

.info-value {
    color: #666;
}

.status-published {
    color: #4f331a;
    font-weight: bold;
}

.research-abstract {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #b0a092;
}

.research-abstract h4 {
    color: #4f331a;
    margin-bottom: 15px;
}

.research-abstract p {
    color: #4f331a;
    line-height: 1.6;
}



.research-metrics {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.metric {
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #4f331a;
}

.metric-label {
    font-size: 14px;
    color: #666;
}


/* Mobile Responsive */
@media (max-width: 1224px) {
    .research-hero {

        grid-template-columns: 1fr;
        gap: 40px;
    }

    .publication-card {
        padding: 25px;
        max-width: none !important;
        padding-left: -30px;
        padding-right: -30px;
    }


    .paper-visualization {
        height: 500px;
        margin-bottom: 125px;
        /* <--- ADD THIS LINE */
    }




    .paper-image {
        width: 500px;
        height: 600px;
    }

    .btn {
        text-align: center;
    }

    .author {
        height: auto;
        align-items: flex-start;
    }

    .author-role {
        /* 1. This ensures the text itself aligns to the right */
        text-align: right;

        /* 2. This prevents the text from being forced into one long line */
        white-space: normal;

        /* 3. Give it a max-width so it wraps before hitting the name */
        max-width: 60%;

        line-height: 1.2;
    }
}




@media (max-width: 645px) {
    .research-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .paper-visualization,
    .publication-details {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .paper-visualization {
        height: auto;
    }

    .paper-screenshot {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .paper-image {
        width: 100%;
        height: auto;
        max-width: 380px;
        margin: 0 auto;
        display: block;
    }

    .publication-card {
        width: 100%;
        padding: 20px;
        margin-left: -40px;
    }
}