/* Theme: Laboratory - Day 12 (Letter L): Inspired by scientific research labs, chemical reactions, test tubes and beakers, molecular structures, clean white surfaces, precise measurements, experiment documentation, research notes, analytical precision, sterile environments */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #2c3e50;
    background: #fdfefe;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(52, 152, 219, 0.015) 19px, rgba(52, 152, 219, 0.015) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(52, 152, 219, 0.015) 19px, rgba(52, 152, 219, 0.015) 20px);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 82% 15%, rgba(46, 204, 113, 0.02) 0%, transparent 35%),
        radial-gradient(circle at 18% 85%, rgba(52, 152, 219, 0.025) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.015) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
    animation: chemicalReaction 40s ease-in-out infinite alternate;
}

@keyframes chemicalReaction {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e8ecef;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

#topnav.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 2.8rem;
    text-transform: uppercase;
}

.logo h1::before {
    content: '⚗️';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    animation: bubbling 3s ease-in-out infinite;
}

@keyframes bubbling {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-55%) scale(1.1);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.2rem;
}

.nav-menu li a {
    display: block;
    padding: 0.6rem 1.4rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    position: relative;
    letter-spacing: 0.3px;
    border-radius: 4px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0.4rem;
    left: 1.4rem;
    right: 1.4rem;
    height: 2px;
    background: #3498db;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    background: #3498db;
    border: none;
    color: white;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 4px;
}

.mobile-toggle:hover {
    background: #2980b9;
    transform: scale(1.05);
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '🧪';
    position: absolute;
    top: 8%;
    right: 4%;
    font-size: 14rem;
    opacity: 0.025;
    animation: testTubeRotate 30s linear infinite;
}

#hero::after {
    content: '🔬';
    position: absolute;
    bottom: 8%;
    left: 3%;
    font-size: 16rem;
    opacity: 0.02;
    animation: microscopeZoom 25s ease-in-out infinite;
}

@keyframes testTubeRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes microscopeZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.hero-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: #2c3e50;
    letter-spacing: -1px;
}

.hero-text h1 br {
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
}

.btn-primary {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.25);
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.25);
}

.hero-image {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    position: relative;
    border-radius: 4px;
    border: 1px solid #e8ecef;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 50%, #9b59b6 100%);
    border-radius: 4px 4px 0 0;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 20px 60px rgba(0, 0, 0, 0.12);
}

.profile-card img {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.profile-details h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.profile-details p {
    color: #7f8c8d;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    font-weight: 400;
    font-size: 0.95rem;
}

.social-links a {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    background: #2ecc71;
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
}

.social-links a:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.25);
}

section {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
}

.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2c3e50;
    letter-spacing: -0.8px;
    position: relative;
    display: inline-block;
}

#experience {
    background: #fafbfc;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8ecef;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #3498db;
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 2rem;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -54px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e8ecef;
}

.timeline-content {
    background: white;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    border-radius: 4px;
    border: 1px solid #e8ecef;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3498db;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.timeline-content h4 {
    color: #3498db;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.timeline-content p {
    color: #7f8c8d;
    line-height: 1.65;
    margin: 0;
}

.timeline-content a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

.timeline-content a:hover {
    border-bottom-color: #3498db;
}

#ai {
    background: white;
}

.ai-projects {
    display: grid;
    gap: 3rem;
}

.project-card {
    background: #fafbfc;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border: 1px solid #e8ecef;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 50%, #9b59b6 100%);
    border-radius: 4px 4px 0 0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 15px 45px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.project-client {
    color: #3498db;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2px;
    font-family: 'IBM Plex Mono', monospace;
}

.project-card > p {
    color: #7f8c8d;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.project-impact {
    background: rgba(52, 152, 219, 0.05);
    padding: 1.5rem;
    color: #2c3e50;
    line-height: 1.65;
    border-radius: 2px;
    border-left: 3px solid #3498db;
}

.project-impact strong {
    color: #3498db;
    font-weight: 600;
}

#speaking {
    background: #fafbfc;
}

.speaking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.year-section {
    background: white;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    position: relative;
    border: 1px solid #e8ecef;
}

.year-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3498db;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    border-radius: 4px 4px 0 0;
}

.year-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 15px 45px rgba(0, 0, 0, 0.1);
}

.year-section:hover::before {
    opacity: 1;
}

.year-section h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8ecef;
    font-weight: 700;
}

.year-section.books {
    grid-column: span 2;
    background: #3498db;
    border-color: #2980b9;
}

.year-section.books::before {
    background: white;
    opacity: 0.2;
}

.year-section.books h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 1rem 0;
    color: #7f8c8d;
    border-bottom: 1px solid #e8ecef;
    line-height: 1.65;
    position: relative;
    padding-left: 1.8rem;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1rem;
    color: #3498db;
}

.year-section.books .achievements li {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.year-section.books .achievements li::before {
    color: white;
}

.achievements li:last-child {
    border-bottom: none;
}

.achievements strong {
    color: #2c3e50;
    font-weight: 600;
}

.year-section.books .achievements strong {
    color: white;
}

#personal {
    background: white;
}

#contact {
    background: #fafbfc;
}

.contact-card {
    background: white;
    padding: 5rem 4rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 20px 60px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid #e8ecef;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 50%, #9b59b6 100%);
    border-radius: 4px 4px 0 0;
}

.contact-card h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.contact-card > p {
    font-size: 1.05rem;
    color: #7f8c8d;
    line-height: 1.65;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
}

.contact-link:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.contact-link .icon {
    font-size: 1.4rem;
}

#footer {
    background: #2c3e50;
    padding: 3rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #5dade2;
}

@media screen and (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .speaking-grid {
        grid-template-columns: 1fr;
    }

    .year-section.books {
        grid-column: span 1;
    }
}

@media screen and (max-width: 900px) {
    .nav-container {
        padding: 0 1.5rem;
        height: 65px;
    }

    html {
        scroll-padding-top: 65px;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: white;
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.35s ease;
        border-bottom: 1px solid #e8ecef;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #e8ecef;
        border-radius: 0;
    }

    .nav-menu li a::after {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
        padding-left: 3.5rem;
    }

    .timeline-year {
        text-align: left;
        padding-right: 0;
    }

    .timeline-year::after {
        left: -34px;
        right: auto;
    }

    .contact-card {
        padding: 3.5rem 2rem;
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding: 0 1.2rem;
    }

    .nav-container {
        padding: 0 1.2rem;
        height: 60px;
    }

    html {
        scroll-padding-top: 60px;
    }

    #hero {
        padding: 110px 0 80px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .timeline-item {
        padding-left: 2.8rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .project-card {
        padding: 2rem 1.5rem;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }

    .contact-card h2 {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-link {
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}