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

:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #333333;
    --text-color: #1a1a1a;
    --text-light: #ffffff;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --bg-grey: #2a2a2a;
    --border-color: #cccccc;
    --border-dark: #404040;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo a:hover {
    color: var(--secondary-color);
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background-color: var(--bg-color);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    min-height: 2rem;
}

.typing-text {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--bg-grey);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.image-placeholder {
    width: 400px;
    height: 400px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 10%;
}

.image-placeholder:hover {
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

.about .section-title {
    color: var(--text-light);
}

.about-text p {
    color: var(--secondary-color);
}

.about .skills h3 {
    color: var(--text-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills {
    margin-top: 3rem;
}

.skill-category {
    margin-bottom: 2.5rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 8px 20px;
    background-color: var(--bg-grey);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.experience-timeline {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-item {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title-role {
    flex: 1;
}

.experience-company {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
}

.experience-date {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    white-space: nowrap;
}

.experience-content {
    margin-top: 1rem;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--secondary-color);
    line-height: 1.7;
}

.experience-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.experience-list li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
    }
    
    .experience-date {
        align-self: flex-start;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card-link:hover .project-card {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
}

.project-card:has(.csv-img-rotated) .project-image {
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.project-placeholder {
    width: 100%;
    height: 100%;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: var(--bg-light);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image .csv-img-rotated {
    width: 200%;
    height: 175%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transform: rotate(-90deg);
    transform-origin: center center;
}

.project-image .research-img-rotated {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    
    transform-origin: center center;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    padding: 5px 15px;
    background-color: var(--bg-light);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.project-card-link:hover .project-link {
    color: var(--primary-color);
}

/* Contact Section */
.research-blog {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.research-blog-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.research-blog-sidebar {
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-light);
    padding: 1rem;
}

.research-blog-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.research-blog-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.research-blog-sidebar-link {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition);
}

.research-blog-sidebar-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.research-blog-content {
    max-width: 100%;
    text-align: center;
}

.research-blog-content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.8;
}

.research-blog-post {
    margin-top: 0;
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background-color: var(--bg-light);
    text-align: left;
    scroll-margin-top: 96px;
}

.research-blog-post:last-child {
    margin-bottom: 0;
}

.research-blog-post h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    scroll-margin-top: 96px;
}

.research-blog-date {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.research-blog-post h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.research-blog-post p {
    margin-bottom: 1rem;
}

.research-blog-post p:last-child {
    margin-bottom: 0;
}

.research-blog-video {
    width: 100%;
    max-height: 420px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: #000;
    margin-bottom: 1rem;
    object-fit: contain;
}

.research-blog-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.research-blog-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    object-fit: cover;
    cursor: zoom-in;
}

.research-blog-image-single {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .research-blog-layout {
        grid-template-columns: 1fr;
    }

    .research-blog-sidebar {
        position: static;
    }

    .research-blog-sidebar-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .research-blog-image-row {
        grid-template-columns: 1fr;
    }
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    padding: 2rem;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.contact {
    padding: 100px 0;
    background-color: var(--bg-grey);
}

.contact .section-title {
    color: var(--text-light);
}

.contact-text p {
    color: var(--secondary-color);
}

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

.contact-text {
    margin-bottom: 3rem;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.8;
}

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

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background-color: var(--bg-dark);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    border: 2px solid var(--border-dark);
}

.contact-link:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--text-light);
}

.contact-link svg {
    width: 32px;
    height: 32px;
}

.contact-link span {
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--bg-dark);
    text-align: center;
    color: var(--secondary-color);
    border-top: 1px solid var(--border-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-image {
        order: -1;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

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

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

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

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

