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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #E7E3DC;
    color: #333;
    line-height: 1.6;
}

@font-face {
    font-family: 'bodoni'; 
    src: url('bodoni.ttf') format('truetype');
    font-weight: normal;
    font-style: normal; 
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    padding: 0 40px;
    z-index: 100;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-left {
    display: flex;
    align-items: center;
}

.sidebar h1 {
    margin-right: 50px;
    font-size: 24px;
    font-weight: 300;
    font-family: 'bodoni',serif;
    letter-spacing: 1px;
    color: #333;
}

.nav-items {
    display: flex;
    align-items: center;
}

.nav-item {
    display: inline-block;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    margin-right: 10px;
}

.nav-item:hover, .nav-item.active {
    background: #f0f0f0;
    color: #333;
    border-radius: 5px;
}

.instagram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.instagram-btn:hover {
    background: #555;
}

.instagram-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
}

.work-item {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    display: block;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.work-item:hover img {
    filter: brightness(0.4);
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
    padding: 20px;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.work-type, .work-role {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 5px;
}

.work-seemore {
    font-size: 16px;
    margin-bottom: 10px;
    position: absolute;
    top: 1pc;
    right: 1pc;
    color: #fff;
}

.photo-collage {
    columns: 3;
    column-gap: 15px;
    width: 100%;
    max-width: 1100px;
}

.photo-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    break-inside: avoid;
    margin-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #333;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s ease;
    border-radius: 5px;
}

.modal-nav:hover {
    background: rgba(255,255,255,1);
}

.modal-prev {
    left: -60px;
}

.modal-next {
    right: -60px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #333;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

.modal-close:hover {
    background: rgba(255,255,255,1);
}

.work-detail {
    width: 100%;
    max-width: 1100px;
}

.work-detail h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.work-detail h2 {
    font-size: 20px;
    color: #666;
    font-weight: normal;
    margin-bottom: 5px;
}

.work-detail p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
}

.back-button {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}

.back-button:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

.bio-section {
    width: 100%;
    background: #C0C7B9;
    margin-top: 60px;
    padding: 60px 40px;
}

.bio-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    font-weight: 300;
}

.bio-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.bio-photo {
    flex-shrink: 0;
}

.bio-photo img {
    max-width: 350px;
    height: auto;
    display: block;
}

.bio-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.project-link-btn:hover {
    background: #555;
}

.project-link-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-in.loaded {
    opacity: 1;
}

.video-container {
    display: block;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 2rem auto; /* centers it horizontally */
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


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

    .sidebar h1 {
        margin-right: 20px;
        font-size: 20px;
    }

    .nav-items {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-bottom: 1px solid #ddd;
    }

    .nav-items.show {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
        margin-right: 15px;
    }

    .bio-content {
        flex-direction: column;
        text-align: center;
    }

    .bio-photo {
        align-self: center;
        margin-bottom: 30px;
    }

    .bio-photo img {
        max-width: 250px;
    }

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

    .photo-collage {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px;
    }

    .bio-section {
        padding: 40px 20px;
    }

    .bio-photo img {
        max-width: 200px;
    }

    .photo-collage {
        columns: 1;
    }
}