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

:root {
    --beige: #F5F1E8;
    --beige-dark: #E8E3D8;
    --sage: #9CAF88;
    --sage-dark: #7A9A6A;
    --earth: #8B7355;
    --text: #3A3A3A;
    --text-light: #6B6B6B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #F5F1E8 0%, #E8E3D8 50%, #F0EDE0 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Nature background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(156, 175, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 115, 85, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(156, 175, 136, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.header-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    font-style: italic;
}

.quote {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    font-style: italic;
    margin-top: 15px;
    max-width: 600px;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--sage);
    color: var(--sage-dark);
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--sage);
    transition: left 0.3s ease;
    z-index: -1;
}

.tab-btn:hover::before {
    left: 0;
}

.tab-btn:hover {
    color: white;
    border-color: var(--sage-dark);
}

.tab-btn.active {
    background: var(--sage);
    color: white;
    border-color: var(--sage-dark);
}

.tab-btn.active::before {
    left: 0;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper.centered {
    align-items: center;
}

.centered-section {
    max-width: 800px;
    margin: 0 auto;
}

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

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 60% center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(156, 175, 136, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: var(--sage);
}

.contact-info-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.globe-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 450px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

.globe-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

#globe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.text-content {
    background: rgba(255, 255, 255, 0.4);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--earth);
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text);
    line-height: 1.8;
}

.contact-info {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.contact-info-top .contact-link {
    margin: 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--sage-dark);
    text-decoration: none;
    margin: 8px 12px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(156, 175, 136, 0.2);
}

.contact-link:hover {
    background: rgba(156, 175, 136, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--sage);
}

.icon {
    font-size: 1.2rem;
}

.icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-link:hover .icon-svg {
    transform: scale(1.2) rotate(5deg);
}

.interests h3 {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--earth);
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag {
    background: rgba(156, 175, 136, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--sage-dark);
    border: 1px solid rgba(156, 175, 136, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(156, 175, 136, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sage);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.4);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--sage);
    border: 3px solid var(--beige);
    box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.2);
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--earth);
}

.company {
    font-size: 1.1rem;
    color: var(--sage-dark);
    font-weight: 500;
    margin-bottom: 5px;
}

.period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-style: italic;
}

.description {
    color: var(--text);
    line-height: 1.7;
}

/* Research Section */
.research-grid {
    display: grid;
    gap: 30px;
}

.research-card {
    background: rgba(255, 255, 255, 0.4);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--sage);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.research-card h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--earth);
}

.research-card .role {
    font-size: 1rem;
    color: var(--sage-dark);
    font-weight: 500;
    margin-bottom: 5px;
}

/* Interactive Leaves */
#interactive-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.interactive-leaf {
    position: fixed;
    left: 0;
    top: 0;
    cursor: pointer;
    pointer-events: auto;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.interactive-leaf:hover {
    filter: brightness(1.05);
    transition: filter 0.2s ease-out;
}

.interactive-leaf img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
    user-select: none;
    -webkit-user-drag: none;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.interactive-leaf:hover img {
    filter: drop-shadow(2.5px 4.5px 7px rgba(0, 0, 0, 0.22));
    transition: filter 0.2s ease-out;
}

.interactive-leaf.dragging {
    z-index: 1000;
}


/* Parallax effect on scroll */
.tab-content {
    position: relative;
}

.timeline-item,
.research-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible,
.research-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }

    .globe-container {
        height: 300px;
        max-width: 100%;
    }
    
    .contact-info-top {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info-top .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }

    .tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -28px;
    }
}

