/* Fonts */
@font-face {
    font-family: 'AKZ';
    src: url('../font/akz.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

@font-face {
    font-family: 'Futura Cyrillic Demi';
    src: url('../font/FuturaCyrillicDemi.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'AKZ', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
}

/* Header styles */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    width: 70vw;
    max-width: 100%;
    height: auto;
}

/* Navigation styles */
.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Hamburger (mobile only by default hidden) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    margin-right: 16px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #000;
}

.nav-hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.nav-overlay-link {
    font-size: 22px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    padding: 8px 0;
}

.nav-overlay-link:hover {
    color: #333;
}

/* Desktop: Works sub-nav row (below header) */
.nav-works-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 16px;
    display: none;
    flex-wrap: wrap;
    gap: 24px 40px;
    border-bottom: 1px solid #eee;
}

.nav-works-row.is-open {
    display: flex;
}

.nav-works-link {
    font-size: 15px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
}

.nav-works-link:hover {
    color: #333;
}

@media (min-width: 769px) {
    .header {
        align-items: flex-end;
    }

    .nav-hamburger {
        display: none !important;
    }

    .header .nav {
        display: flex;
    }
}

/* Footer styles */
.footer {
    background-color: #fff;
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid #ddd;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-name {
    color: #000;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.footer-social {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.social-link {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #666;
}

.footer-copyright {
    color: #000;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Toast shown when email is copied in footer */
.footer-email-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 10px 20px;
    background: #000;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.footer-email-toast.footer-email-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Gallery styles */
.gallery {
    padding: 0 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.gallery-link {
    display: block;
    text-decoration: none;
}

/* Desktop only: hover overlay with project name */
@media (min-width: 769px) {
  .gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    white-space: pre-line;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

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

/* Section styles */
.gallery-section {
    padding: 0 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'AKZ', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #000;
    margin-bottom: 30px;
    margin-top: 40px;
}

/* Mobile responsive - single column */
@media (max-width: 768px) {
    #header-placeholder {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
    }

    .header {
        padding: 20px 15px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        justify-content: space-between;
        align-items: center;
        max-width: 100%;
    }

    .header .logo {
        width: 30vw;
        max-width: 30vw;
    }

    .nav-hamburger {
        display: flex;
        margin-right: 20px;
    }

    .header .nav {
        display: none;
    }

    .nav-works-row {
        display: none !important;
    }

    .nav-hamburger.is-open .nav-hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-hamburger.is-open .nav-hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.is-open .nav-hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .gallery,
    .gallery-section {
        max-width: 100%;
    }

    .nav {
        gap: 25px;
    }

    .nav-link {
        font-size: 14px;
    }

    .gallery {
        padding: 0 0 20px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .gallery-section {
        padding: 0 0 20px 0;
    }

    .section-title {
        font-size: 20px;
        margin-left: 15px;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .footer {
        padding: 40px 15px;
        margin-top: 40px;
    }

    .footer-social {
        gap: 20px;
    }
}

/* Tablet view - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
