@font-face {
    font-family: 'ABCStefan';
    src: url('assets/fonts/ABCStefan-Simple-Trial.otf') format('opentype');
}

@font-face {
    font-family: 'AlteHaasGroteskBold';
    src: url('assets/fonts/AlteHaasGroteskBold.ttf') format('truetype');
}

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

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    gap: 60px;
}

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

.nav-logo img {
    height: 73px;
    width: auto;
    display: block;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 60px;
    align-items: center;
    font-family: 'ABCStefan', sans-serif;
    font-size: 24px;
}

.nav-item {
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    color: #000;
    transform: translateY(-8px);
}

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

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 40px 200px 40px;
    max-width: 100%;
    align-items: center;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.image-grid img:hover {
    opacity: 0.8;
}

/* Hover Preview */
.hover-preview {
    position: fixed;
    width: 390px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.hover-preview.visible {
    opacity: 1;
}

.hover-preview img,
.hover-preview video {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Grid for Projects Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
    padding: 20px 40px;
    margin: 0 auto;
    box-sizing: border-box;
}

.gallery-item {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.gallery-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Videos with transparent backgrounds - no scaling needed */
.gallery-item video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.gallery-info {
    padding: 15px 5px 0 5px;
    text-align: center;
    width: 100%;
}

.gallery-title {
    font-family: 'AlteHaasGroteskBold', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    line-height: 1.2;
}

.gallery-date {
    font-family: 'AlteHaasGroteskBold', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.name {
    font-family: 'AlteHaasGroteskBold', sans-serif;
    font-size: 100px;
    color: #FF0000;
    letter-spacing: -0.02em;
    line-height: 0.85;
    white-space: nowrap;
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px 35px;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        gap: 30px;
    }
    
    .nav-logo img {
        height: 55px;
    }
    
    .nav-links {
        gap: 30px;
        font-size: 18px;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 20px;
    }
    
    /* Hide hover preview on touch devices */
    .hover-preview {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .nav-links {
        gap: 20px;
        font-size: 16px;
    }
}

