
/* ------------------------------------ Header / Navbar ---------------------------------------- */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}

.brand-name {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-black);
}

.main-nav .nav-link {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-black);
}

.lang-active {
    color: var(--color-dark-gray);
    font-weight: bold;
    margin-right: 5px;
}

.lang-inactive {
    color: rgba(50, 50, 50, 0.5);
}

/* ------------------------------------ END Header / Navbar ---------------------------------------- */
/* --------------------------------------- Hero ---------------------------------------------------- */
.hero-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 24px;
    line-height: 1.3;
}

/* Mouse Animation */
.mouse-hint {
    z-index: 10;
}

.mouse {
    width: 28px;
    height: 44px;
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-dot {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    animation: mouseY 1.6s infinite;
}

@keyframes mouseY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    .hero-subtitle {
        font-size: 22px;
    }
    #mouse {
        visibility: hidden;
    }
}

/* ------------------------------------ END HERO ---------------------------------------- */
/* ------------------------------- BACKGROUND DECORATIONS ------------------------------- */
.decoration {
    position: absolute;
    filter: blur(100px);
    opacity: 0.5;
    z-index: -5;
}

.blue {
    top: -95px;
    right: 0;
}

.magenta {
    bottom: -150px;
    left: -20px;
}

.purple {
    bottom: 100px;
    left: 100px;
}

/* ------------------------------- END OF BACKGROUND DECORATIONS ------------------------------- */
/* --- Quote --- */
.quote-content {
    background: var(--gradient);
}

.quote-content p {
    color: var(--color-white);
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 34px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .quote-content p {
        font-size: 28px;
    }
}

/* ----------------------------------- LinkedIn ------------------------------------------ */
.sk-ww-linkedin-profile-post {
    max-height: 600px !important;
    overflow-x: visible !important;
    overflow-y: clip !important;
    background-color: transparent !important;
}
.sk-posts-body {
    padding: 12px 12px 0 12px;
}
.sk-posts-header {
    display:none;
}
.gradient-fade-section {
    height: 250px;
    width: -webkit-fill-available;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0) 100%
    );
    
    /* Ensure it sits on top of any underlying background/image if needed */
    z-index: 10; 
}

/* ----------------------------------- END OF LinkedIn Cards --------------------------------------- */
/* ----------------------------------- Conferences ------------------------------------------------- */
.play-button img {
    width: 80px;
    height: 80px;
}

/* --------------------------------------- World Map ----------------------------------------------- */

.world-section {
    position: relative;
}

#globe-container {
    width: 100%;
    height: 600px;
    position: relative;
    cursor: grab;
}

#globe-container:active {
    cursor: grabbing;
}

/* Globe Tooltip */
.globe-tooltip {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #DDD;
    border-radius: 8px;
    padding: 12px 16px;
    width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 9999;
}

.globe-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.globe-tooltip h4 {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-black);
}

.globe-tooltip p {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text-body);
}

@media (max-width: 768px) {
    #globe-container {
        height: 400px;
    }
}
/* ----------------------------------- END OF WORLD MAP ------------------------------------------ */


/* ------------------------------------- WORK SECTION -------------------------------------------- */
.work-card {
    background-color: var(--color-white);
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    /* Horizontal Layout: Image Left, Content Right */
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
    /* Stretch to full height */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.work-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
    flex-shrink: 0;
    /* Fixed square size for the image on the left */
    width: 140px;
    height: 100%;
    /* Fill the height of the card */
    min-height: 140px;
    /* Ensure it doesn't collapse */
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0) opacity(0.9);
    transition: filter 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.work-card:hover .work-image {
    filter: saturate(1) opacity(1);
}

/* Wrapper for the Right Side Content */
.work-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* TOP SECTION: Title + Badge */
.work-card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Title with 2-line limit and ellipsis */
.work-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
    /* CSS Logic for 2 lines + ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge styling (moved to right side) */
.work-badge {
    font-size: 12px;
    padding: 4px 10px;
    color: var(--color-white);
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
}

.book-tag {
    background-color: #57a0ff;
}

.publication-tag {
    background-color: #ff57c1;
}

.external-tag {
    background-color: #57a0ff;
}

/* BOTTOM SECTION: Button */
.work-card-bottom {
    margin-top: 12px;
    /* Ensure spacing if title is short */
    width: 100%;
}

/* --- News --- */
.news-banner-wrapper a {
    text-decoration: none;
}
.news-banner {
    background: var(--gradient);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-banner i{
    font-size: 1.5rem;
    color: var(--color-white);
}

.news-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .work-image {
        filter: saturate(1) opacity(1);
    }
}

/* ----------------------------------- END OF WORK SECTION ------------------------------------------ */

/*  Toast  */
.toast-header {
    font-family: var(--font-mono);
    background: var(--gradient);
}
.toast-body {
    font-family: var(--font-sans);
}

/* Swiper Fixes */
.swiper {
    overflow: visible !important;
    padding-bottom: 40px;
}

/* SWIPER CONFIG*/
.swiper {
    overflow: hidden;
    padding-bottom: 40px;
}

.swiper-slide {
    height: auto !important;
}

/* Optional: ensures borders/padding are handled correctly */
.swiper-slide {
    box-sizing: border-box;
}

.swiper-slide .work-img {
    display: block;
    /* Important for proper sizing */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Maintains aspect ratio and covers the area */
}

/* -------------------------------------------------------- Footer -------------------------------------------------------- */
.site-footer-main {
    background-color: var(--color-dark-gray);
}

.site-footer-main i{
    color: var(--color-white);
}

.footer-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-white);
}
