
.page-header {
    background-color: #000;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 98%;
    margin: 0 auto;
    padding: 1rem 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.nav-desktop-container {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.brand-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 0.85;
    margin-bottom: 0.05em;
    width: fit-content;
}

.brand-subtitle {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    font-weight: 700;
    margin: 0;
    opacity: 0.8;
    line-height: 1;
    text-transform: uppercase;
    width: 100%;
    display: flex;
    justify-content: space-between;
    letter-spacing: 0;
}

.brand-subtitle .letter {
    flex: 0 0 auto;
}

.nav-desktop {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    flex: 1;
    min-width: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 700;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

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

.nav-separator {
    color: #ffffff;
    opacity: 0.6;
    font-weight: bold;
    margin: 0 0.3rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

.nav-mobile {
    display: none;
    background-color: #000;
    border-top: 1px solid #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-mobile.active {
    max-height: 200px;
}

.nav-mobile-content {
    padding: 1rem 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    max-width: 98%;
    margin: 0 auto;
}

.nav-mobile-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-mobile-link:hover {
    opacity: 0.7;
}

.portfolio-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 0.5rem;
}

.portfolio-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.portfolio-hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.portfolio-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.05em;
}

.portfolio-role-hero {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #ccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-family: 'Courier New', Courier, monospace;
}

.preview-images-section {
    padding: 0.5rem 0;
    background-color: #0a0a0a;
    margin-bottom: 0.5rem;
}

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

.preview-images-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.preview-images-scroll::-webkit-scrollbar {
    display: none;
}

.preview-image-item {
    flex: 0 0 200px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.preview-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #555;
}

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

.portfolio-description-section {
    padding: 0.5rem 0;
    font-weight: bold;
}

.portfolio-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-links-section {
    padding: 1rem 0;
    background-color: #0a0a0a;
    margin-top: 0.5rem;
}

.contact-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Courier New', Courier, monospace;
}

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

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 50px;
    height: 50px;
}

.contact-link:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.2rem;
}

.contact-link span {
    display: none;
}

.back-button-container {
    text-align: center;
    padding: 1rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #333;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #555;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: 2rem;
    }

    .nav-mobile {
        display: block;
    }

    .header-content {
        padding: 1rem 8px;
    }

    .brand-title {
        font-size: 1.5rem;
        line-height: 0.9;
        margin-bottom: 0.1em;
    }

    .brand-subtitle {
        font-size: 0.8rem;
        text-align: justify;
        text-align-last: justify;
        letter-spacing: 0.1em;
    }

    .portfolio-hero {
        height: 50vh;
        padding: 1rem;
    }
    
    .preview-images-scroll {
        gap: 0.5rem;
    }
    
    .preview-image-item {
        flex: 0 0 150px;
        height: 250px;
    }
    
    .contact-links {
        gap: 1rem;
    }
    
    .contact-link {
        padding: 0.7rem;
        min-width: 45px;
        height: 45px;
    }
    
    .contact-link i {
        font-size: 1.1rem;
    }
    
    .portfolio-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        height: 40vh;
    }
}

@media (max-width: 380px) {
    .header-content {
        padding: 0.8rem 5px;
    }

    .brand-title {
        font-size: 1.3rem;
        line-height: 0.9;
        margin-bottom: 0.1em;
    }

    .brand-subtitle {
        font-size: 0.7rem;
        text-align: justify;
        text-align-last: justify;
        letter-spacing: 0.05em;
    }
}
    
    .preview-image-item {
        flex: 0 0 120px;
        height: 200px;
    }
    
    .contact-links {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .contact-link {
        padding: 0.6rem;
        min-width: 40px;
        height: 40px;
    }
    
    .contact-link i {
        font-size: 1rem;
    }
    
    .image-modal-content {
        max-width: 95%;
    }
    
    .close-modal {
        top: 5px;
        right: 15px;
        font-size: 28px;
    }
}
