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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oxanium', sans-serif;
    background-color: white;
    color: black;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Particles.js background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 1.5rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.nav-container {
    display: contents;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    line-height: 1;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link.active {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 1;
}

/* Main content */
main {
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    scroll-margin-top: 0;
    position: relative;
}

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

#projects .content {
    max-width: none;
    width: 100%;
    margin: 0;
}

/* Logo */
.logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: black;
    z-index: 1001;
}

/* Landing section */
#landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 4rem;
    padding-top: 0rem;
}

#landing .content {
    max-width: 800px;
}

.intro {
    margin-bottom: 3rem;
}

.intro p {
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.8;
}

.link {
    color: black;
    text-decoration: underline;
    font-weight: 500;
}

.link:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    color: black;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Projects page */
#projects {
    overflow: hidden;
}

#projects h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    padding: 0 3rem 3rem 3rem;
    box-sizing: border-box;
    height: calc(100vh - 200px);
    max-width: 100%;
}

.project-card {
    background: transparent;
    border: 2px solid black;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-card {
    background: black;
    border: none;
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0.8;
}

.video-card .project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: transparent;
    padding: 1.5rem;
    border-radius: 8px;
    flex: none;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: black;
}

.project-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: black;
    flex: 1;
}

.video-card .project-content h3 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-card .project-content p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-card .project-link {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.project-link {
    color: black;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    opacity: 0.7;
}

.project-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Publications page */
#publications h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

.publications-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.publication-item {
    background: transparent;
    border: 2px solid black;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.publication-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: black;
    line-height: 1.4;
}

.publication-item .authors {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.publication-item .venue {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.publication-link {
    color: black;
    text-decoration: underline;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.publication-link:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

/* Contact page */
#contact h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

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

.contact-item {
    margin-bottom: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.contact-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-item {
        min-height: 35px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        min-height: 35px;
    }
    
    .nav-link.active {
        font-size: 1.1rem;
    }
    
    .logo {
        top: 1rem;
        left: 1rem;
        font-size: 1.5rem;
    }
    
    #landing {
        padding-left: 2rem;
        text-align: left;
    }
    
    .intro p {
        font-size: 1.2rem;
    }
    
    /* Mobile projects section */
    #projects {
        min-height: auto;
        height: auto;
        padding: 4rem 1rem 3rem;
        overflow: visible;
    }
    
    #projects .content {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0;
        height: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .project-card {
        width: 100%;
        min-height: auto;
        height: auto;
        padding: 1.5rem;
        border-radius: 8px;
        position: relative;
        box-sizing: border-box;
        overflow: visible;
    }
    
    /* Mobile video card specific styling */
    .video-card {
        min-height: 350px;
        background: black;
        border: none;
        display: flex;
        flex-direction: column;
    }
    
    .project-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.6;
        border-radius: 8px;
    }
    
    .video-card .project-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
        padding: 3rem 1.5rem 1.5rem;
        border-radius: 0 0 8px 8px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 60%;
    }
    
    .video-card .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
        color: white;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
        font-weight: 600;
    }
    
    .video-card .project-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        color: white;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
        overflow: visible;
        word-wrap: break-word;
    }
    
    .video-card .project-link {
        color: white;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
        font-size: 0.85rem;
        margin-top: auto;
    }
    
    .project-links {
        gap: 0.75rem;
    }
    
    /* Mobile regular card styling */
    .project-card:not(.video-card) {
        background: transparent;
        border: 2px solid black;
        padding: 1.5rem;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .project-card:not(.video-card) .project-content {
        position: static;
        background: transparent;
        padding: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    .project-card:not(.video-card) .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
        color: black;
        font-weight: 600;
        word-wrap: break-word;
    }
    
    .project-card:not(.video-card) .project-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        color: black;
        flex: 1;
        overflow: visible;
        word-wrap: break-word;
    }
    
    .project-card:not(.video-card) .project-link {
        font-size: 0.85rem;
        color: black;
        margin-top: auto;
    }
    
    #projects h1,
    #publications h1,
    #contact h1 {
        font-size: 2rem;
    }
    
    .publications-list {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .publication-item {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .publication-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .publication-item .authors {
        font-size: 0.9rem;
    }
    
    .publication-item .venue {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .publication-link {
        font-size: 0.9rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
}

/* Additional breakpoint for smaller mobile devices */
@media (max-width: 480px) {
    #projects {
        padding: 3rem 0.5rem 2rem;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.2rem;
    }
    
    .video-card {
        min-height: 320px;
    }
    
    .video-card .project-content {
        padding: 2.5rem 1.2rem 1.2rem;
    }
    
    .video-card .project-content h3,
    .project-card:not(.video-card) .project-content h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .video-card .project-content p,
    .project-card:not(.video-card) .project-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .video-card .project-link,
    .project-card:not(.video-card) .project-link {
        font-size: 0.8rem;
    }
    
    .project-links {
        gap: 0.5rem;
    }
    
    .publications-list {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .publication-item {
        padding: 1.2rem;
    }
    
    .publication-item h3 {
        font-size: 1.1rem;
    }
    
    .publication-item .authors,
    .publication-item .venue,
    .publication-link {
        font-size: 0.8rem;
    }
} 