/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.counter-wrapper {
    text-align: center;
    margin-top: 8px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    line-height: 0;
}

.counter-wrapper a {
    display: inline-block;
    line-height: 0;
}

/* Websiteout injects a digit image, not text*/
.counter-wrapper img {
    display: block;
    margin: 0 auto;
    height: 11px;
    width: auto;
    border: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fcfcfd;
    color: #1f2937;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    padding: 22px 0 4px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(252, 252, 253, 0.9);
    backdrop-filter: blur(6px);
}

.nav-routing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    width: 100%;
    max-width: fit-content;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

/* GPS route track under nav */
.nav-gps-layer {
    width: 100%;
    height: 28px;
    position: relative;
    pointer-events: none;
    margin-top: -2px;
}

.nav-gps-svg {
    display: block;
    width: 100%;
    height: 26px;
    overflow: visible;
}

.gps-route-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 4 6;
}

.gps-route-trail {
    fill: none;
    stroke: #0d9488;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
    transition: stroke-dasharray 0.05s linear;
}

.gps-marker {
    transform-origin: center;
    transform-box: fill-box;
    filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, 0.14));
}

.gps-marker-pulse {
    fill: rgba(13, 148, 136, 0.12);
    stroke: rgba(13, 148, 136, 0.25);
    stroke-width: 1;
    opacity: 0;
}

.gps-marker-halo {
    fill: rgba(13, 148, 136, 0.18);
    stroke: none;
}

.gps-marker-ring {
    fill: #ffffff;
    stroke: #0d9488;
    stroke-width: 1.25;
}

.gps-marker-beam {
    fill: #0d9488;
}

.gps-marker.gps-marker--arrived .gps-marker-pulse {
    animation: gps-pulse 1.2s ease-out 1;
}

@keyframes gps-pulse {
    0% {
        opacity: 0.65;
        r: 6;
    }
    100% {
        opacity: 0;
        r: 11;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gps-route-trail {
        transition: none;
    }

    .gps-marker.gps-marker--arrived .gps-marker-pulse {
        animation: none;
    }
}

.home-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #111827;
}

.nav-link.active {
    color: #111827;
    font-weight: 600;
}

/* Main Content Area */
#content-area {
    display: flex;
    gap: 64px;
    padding: 44px 0 84px;
    align-items: flex-start;
}

/* Fixed Left Section */
.left-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 110px;
    padding-top: 60px;
}

/* Profile Picture */
.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background-color: #f5f6f8;
}

#profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #f8fafc;
    color: #4b5563;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
}

.social-icon:active {
    transform: translateY(0);
    background-color: #e8e8e8;
}

/* Right Section */
.right-section {
    flex: 1;
    padding-top: 0;
}

.name {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 52px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-align: center;
}

.skills {
    font-size: 17px;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 36px;
    text-align: center;
}

.about-section {
    max-width: 68ch;
    margin: 0 auto;
}

.about-text {
    font-size: 15.5px;
    color: #4b5563;
    line-height: 1.85;
    font-weight: 400;
    text-align: justify;
}

.about-key {
    font-weight: 520;
    color: #111827;
    letter-spacing: 0.005em;
}

/* Page Content */
.page-content {
    display: none;
    min-height: calc(100vh - 120px);
}

.page-content.active {
    display: block;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.content-section:last-child {
    border-bottom: none;
}

.section-title {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 37px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 36px;
    letter-spacing: 0.01em;
    text-align: center;
}

.projects-subtitle {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 0;
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.entry-container {
    max-width: 72ch;
    margin: 0 auto;
}

.section-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 6px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.entry-box {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 80px;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
}

.entry-box:hover {
    background-color: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.09);
    transform: translateY(-1px);
}

.entry-box.expanded {
    background-color: #ffffff;
    border-color: #cbd5e1;
    min-height: 200px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.1);
}

.entry-box-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.entry-box-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.entry-toggle-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    transition: transform 0.3s ease;
    color: #64748b;
    flex-shrink: 0;
    margin-top: 2px;
    stroke-width: 3;
}

.entry-box.expanded .entry-toggle-icon {
    transform: rotate(180deg);
}

/* Subtle visual cues for expandable boxes */
.entry-box {
    position: relative;
}

.entry-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #eef2f7;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.entry-box:hover::after {
    opacity: 1;
}

.entry-details {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.75;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    text-align: justify;
}

.entry-box.expanded .entry-details {
    max-height: none;
    padding-top: 18px;
    margin-top: 12px;
    border-top: 1px solid #edf2f7;
}

/* Research Section Specific Styles */
#research .entry-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

#research .entry-subtitle {
    font-size: 13.5px;
    font-weight: 400;
    color: #666666;
    line-height: 1.3;
}

#projects .entry-subtitle {
    font-size: 13.5px;
    font-weight: 400;
    color: #666666;
    line-height: 1.3;
}

/* Tag-style buttons */
.research-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.research-tab {
    padding: 7px 14px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.research-tab:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.research-tab.active {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

.research-content {
    display: none;
}

.research-content.active {
    display: block;
}

.research-abstract {
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
    text-align: justify;
}

.research-poster {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.research-poster:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.research-poster .pdf-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666666;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.research-poster .pdf-preview:hover {
    color: #1e3a8a;
}

.research-poster .poster-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.research-poster .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.research-poster:hover .overlay {
    opacity: 1;
}

.research-poster:hover .poster-thumbnail {
    filter: blur(1px);
    transform: scale(1.02);
}

.research-poster .pdf-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #ffffff;
}

.research-poster .pdf-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
}

.research-poster .pdf-subtext {
    font-size: 12px;
    color: #cccccc;
    margin-top: 4px;
}

.cv-pdf-viewer {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f8f8;
}

.cv-pdf-viewer:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.research-paper-link {
    color: #1e3a8a;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s ease;
}

.research-paper-link:hover {
    color: #1e40af;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    width: 100%;
    gap: 20px;
}

.entry-title {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    flex: 1;
    min-width: 0;
}

.entry-location {
    font-size: 14px;
    color: #6b7280;
    text-align: left;
    min-width: 120px;
    margin-top: -10px;
}

.entry-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.entry-date {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0;
    line-height: 1.2;
}

.entry-details {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.75;
}

.entry-details div {
    margin-bottom: 4px;
}

.entry-link a {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 14px;
}

.entry-link a:hover {
    text-decoration: underline;
}

.project-links {
    margin-top: 12px;
    display: flex;
    gap: 16px;
}

.project-link {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    #content-area {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
        padding-top: 48px;
    }
    
    .left-section {
        align-items: center;
        position: static;
    }
    
    .name {
        font-size: 40px;
    }
    
    .skills {
        text-align: center;
    }
    
    .nav-routing {
        align-items: center;
        max-width: 100%;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-gps-layer {
        display: none;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .entry-container {
        max-width: 100%;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .entry-location {
        text-align: left;
        margin-top: 4px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 33px;
    }
    
    .skills {
        font-size: 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }

    .entry-box {
        padding: 18px;
    }
} 