:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --nav-color: #666666;
    --nav-active: #000000;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 60px;
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.logo a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

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

.nav-item {
    text-decoration: none;
    color: var(--nav-color);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-item.active {
    color: var(--nav-active);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 1.5px;
    background: var(--nav-active);
}

.nav-item:hover {
    color: var(--nav-active);
}

.more-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1001;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--nav-color);
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: var(--nav-active);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
}

main {
    margin-top: 140px;
    padding: 0 60px 60px;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

.carousel-track {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    gap: 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slot {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-slot .portfolio-item {
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
}

.carousel-slot img {
    height: 75vh;
    width: auto;
    display: block;
}

.carousel-slot.slot-single img {
    max-width: 85vw;
    object-fit: contain;
}

.carousel-slot.slot-pair img {
    max-width: 40vw;
    object-fit: contain;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
    transition: background 0.2s ease, opacity 0.2s ease;
    user-select: none;
}

.carousel-arrow:hover {
    background: #f5f5f5;
}

.carousel-prev {
    left: 24px;
}

.carousel-next {
    right: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    overflow: hidden;
    cursor: pointer;
}

@media (max-width: 768px) {
    .carousel-track {
        gap: 0;
    }
    .carousel-slot {
        flex: 0 0 100vw;
        width: 100vw;
        justify-content: center;
        gap: 0;
    }
    .carousel-slot img,
    .carousel-slot.slot-single img,
    .carousel-slot.slot-pair img {
        height: auto;
        width: auto;
        max-height: 82vh;
        max-width: 100vw;
        object-fit: contain;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

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

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
    animation: lightboxFade 0.25s ease;
}

@keyframes lightboxFade {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 38px;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: opacity 0.2s ease;
}

.lightbox-arrow:hover {
    opacity: 0.7;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    user-select: none;
}

@media (max-width: 768px) {
    .lightbox-arrow { font-size: 28px; padding: 12px; }
    .lightbox-close { font-size: 32px; top: 15px; right: 20px; }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        position: relative;
    }

    main {
        margin-top: 20px;
        padding: 20px;
    }

    .nav-center {
        gap: 15px;
    }
}