body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    padding-top: 160px; 
}

nav {
    background: #232931;
    color: white;
    padding: 40px 2rem; 
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

nav.shrunk {
    padding: 10px 2rem;  
    background: rgba(35, 41, 49, 0.98);
}

nav.shrunk .profile-pic {
    width: 45px; 
    height: 45px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

nav li { margin-left: 30px; }

nav a {
    color: #eeeeee;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover, .active {
    color: #4ecca3;
}

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    box-sizing: border-box; 
}

.projects-wide {
    max-width: 95% !important; 
    width: 95% !important;
    margin: 40px auto !important; 
    padding: 60px 10% !important; 
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    display: block !important;
}

.projects-header {
    text-align: center;     
    margin-bottom: 30px; 
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    margin-bottom: 180px; 
    width: 100%;
}

.project-card:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image {
    flex: 0 0 50%; 
    max-width: 550px;
}

.project-image figure {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.project-image img, 
.project-image video,
.project-image figure img,
.project-image figure video {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    display: block;
    object-fit: contain; 
}

.project-image img, 
.project-image figure img {
    background: transparent; 
}

.project-image video,
.project-image figure video {
    background: #000; 
}

.project-content {
    flex: 0 0 40%; 
    max-width: 500px; 
    text-align: left; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.project-image figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

.pdf-container {
    margin-top: 30px;
    margin-bottom: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

.pdf-container iframe {
    width: 100%;
    height: 800px;
    display: block;
    border: none;
}

.btn {
    display: inline-block;
    background-color: #4ecca3; 
    color: #232931;            
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 50px;      
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #45b691; 
    transform: translateY(-3px); 
    color: #ffffff;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #eeeeee;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    nav {
        padding: 15px 1rem;
    }

    nav.shrunk {
        padding: 10px 1rem;
    }

    .profile-pic {
        width: 45px;
        height: 45px;
    }

    nav.shrunk .profile-pic {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #232931;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }

    nav ul.nav-open {
        display: flex;
    }

    nav li {
        margin: 0;
        padding: 12px 0;
    }

    nav a {
        font-size: 1.1rem;
    }

    main {
        margin: 20px 15px;
        padding: 25px 20px;
    }

    .projects-wide {
        padding: 30px 5% !important;
        margin: 20px 10px !important;
        width: auto !important;
        max-width: none !important;
    }

    .project-card, .project-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 80px;
    }

    .project-image, .project-content {
        max-width: 100%;
        flex: 1;
    }

    .project-image img,
    .project-image video,
    .project-image figure img,
    .project-image figure video {
        height: auto;
        max-height: 300px;
    }

    .pdf-container iframe {
        height: 500px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .project-card, .project-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        margin-bottom: 100px;
    }
    .project-image, .project-content {
        max-width: 100%;
        flex: 1;
    }
}
