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

:root {
    --bg-blue: #e8f1f5;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --accent-color: #0066ff;
    --border-color: #d0d0d0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-blue);
    padding-bottom: 60px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    background-color: var(--bg-blue);
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.background-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 900;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.02em;
	-webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(0, 0, 0, 0.05);
    color: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
}

.hero-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-dark);
    transition: width 0.3s ease;
}

.hero-link:hover::after {
    width: 100%;
}

/* Image Stack */
.hero-right {
    display: flex;
    justify-content: flex-end;
}

.image-stack {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 700px;
}

.stack-image {
    position: absolute;
    width: 280px;
    height: 380px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.stack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-image-1 {
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-5deg);
}

.stack-image-2 {
    top: 140px;
    left: 150px;
    z-index: 2;
    transform: rotate(3deg);
    width: 380px;
    height: 280px;
}

.stack-image-3 {
    top: 280px;
    left: 80px;
    z-index: 1;
    transform: rotate(-2deg);
    width: 380px;
    height: 280px;
}

.stack-image:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: var(--bg-blue);
}

.about-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
}

.about-grid:last-child {
    margin-bottom: 0;
}

.about-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 800px;
}

/* Works Section */
.works {
    background-color: var(--bg-blue);
}

.works-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

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

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
    max-height: 3640px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--text-dark);
    transition: height 0.1s ease-out;
}

.works-list {
    position: relative;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 120px;
    align-items: center;
    position: relative;
}

.work-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background-color: var(--text-dark);
    border: 3px solid var(--bg-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.work-left {
    text-align: right;
    padding-right: 40px;
}

.work-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.work-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background-color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.work-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.work-link:hover {
    color: var(--accent-color);
}

.work-blurb {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.work-right {
    padding-left: 40px;
}

.work-image {
    width: 100%;
    max-width: 530px;
    height: 400px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.work-image:hover {
    transform: translateY(-5px);
}

.work-image img, .work-image iframe {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.work-item-end {
    position: relative;
    text-align: center;
    padding: 60px 0;
    min-height: 150px;
}

.work-item-end::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed var(--border-color);
    transform: translateX(-25%);
    z-index: 1;
}

.end-text {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    background-color: var(--bg-blue);
    padding: 10px 20px;
    display: inline-block;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0 120px 0;
    background-color: var(--bg-blue);
    overflow: hidden;
    margin-bottom: 88px;
}

.testimonials-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
}

.testimonials-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.testimonials-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.testimonials-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.testimonials-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.testimonials-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-light);
}

.testimonials-scroll {
    display: flex;
    gap: 30px;
    padding: 20px 40px;
    width: max-content;
}

.testimonial-card {
    flex: 0 0 400px;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.scroll-hint {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background-color: var(--bg-blue);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.btn-linkedin {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--text-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-linkedin:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    padding: 1rem 0;
    background-color: var(--bg-blue);
    color: var(--text-dark);
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-top: 2px solid #4a4a4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a.active {
    color: var(--accent-color);
    background-color: rgba(0, 102, 255, 0.1);
}

.footer-nav a:hover:not(.active) {
    color: var(--text-light);
}

.linkedin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: #0a66c2;
    border-radius: 6px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.linkedin-badge:hover {
    background-color: #084d94;
    transform: translateY(-2px);
}

.linkedin-badge svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.learn-more-icon {
    top: 2px;
    position: relative;
}

.lab {
    padding: 60px 0 90px 0;
    background: var(--bg-blue);
}

.lab-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(424px, 424px));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.lab-card {
    background-color: #dce8f0;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 424px;
    height: 280px;
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #00a8ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lab-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.lab-card:hover::before {
    opacity: 1;
}

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

.lab-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
    line-height: 1;
}

.lab-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-dark);
}

.lab-tags {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.lab-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0;
    flex-grow: 1;
}

.lab-status {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.status-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .image-stack {
        height: 500px;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-line {
        left: 30px;
        max-height: 5170px;
    }

    .work-item::before {
        left: 30px;
    }

    .work-item-end::before {
        left: 30px;
    }

    .work-left {
        text-align: left;
        padding-right: 0;
        padding-left: 80px;
    }

    .work-tags {
        justify-content: flex-start;
    }

    .work-right {
        padding-left: 80px;
    }

    .lab-grid {
        /* grid-template-columns: 1fr; */
        gap: 25px;
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .background-text {
        font-size: 25vw;
    }

    .image-stack {
        height: 400px;
        max-width: 100%;
    }

    .stack-image {
        width: 200px;
        height: 280px;
    }

    .stack-image-2 {
        left: 60px;
        width: 280px;
        height: 200px;
    }

    .stack-image-3 {
        width: 280px;
        height: 200px;
    }

    .timeline-line {
        max-height: 4734px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .works-title,
    .testimonials-title,
    .contact-content h2 {
        font-size: 2rem;
    }

    .work-title {
        font-size: 1.5rem;
    }

    .work-image {
        height: 260px;
    }

    .work-image img, .work-image iframe {
        width: 100%;
        height: 260px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .testimonials {
        margin-bottom: 0;
    }

    .testimonial-card {
        flex: 0 0 320px;
    }

    .work-left,
    .work-right {
        padding-left: 60px;
    }

    .work-item-end::before {
        left: 30px;
    }

    .footer .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-nav {
        gap: 0.5rem
    }

    .lab {
        padding: 60px 0 20px 0;
    }

    .lab-title {
        font-size: 2rem;
    }

    .lab-card {
        padding: 1rem 2rem;
        width: 320px;
        height: 272px;
    }

    .lab-card-header {
        margin-bottom: 0.5rem;
    }

    .lab-card-title {
        font-size: 1.3rem;
    }

    .lab-icon {
        display: none;
    }

    .lab-tags {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}