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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000000;
    display: flex;
    min-height: 100vh;
}

/* Side Navigation */
nav {
    width: 250px;
    background-color: #000000;
    padding: 40px 30px;
    border-right: 1px solid #000000;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.logo:focus-visible {
    outline: 2px solid #feca57;
}

.logo-tagline {
    color: #555;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 4px;
    margin-bottom: 50px;
    display: block;
}

nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 25px;
}

nav a {
    text-decoration: none;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    display: block;
    position: relative;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

nav a:hover {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav a:focus-visible {
    outline: 2px solid #feca57;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav a.active {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background-color: #2a2a2a;
    margin: 30px 0;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    font-size: 12px;
    color: #555;
    transition: color 0.2s ease;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.social-links a:hover {
    color: #888;
}

.social-links a:focus-visible {
    outline: 2px solid #feca57;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright {
    font-size: 11px;
    color: #444;
    margin-top: 30px;
    line-height: 1.6;
}

/* Main Content Area */
main {
    margin-left: 250px;
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    animation: heroFadeInUnblurZoom 2s ease-out forwards;
    filter: blur(10px);
}

@keyframes heroFadeInUnblurZoom {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

.gallery-container {
    padding-top: 20px;
    flex: 1;
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-grid img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    background-color: #000000;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
    animation-delay: 3.5s;
}

.masonry-grid img.loaded {
    animation-delay: 0s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    border-bottom: 1px solid #000000;
    z-index: 1002;
    padding: 12px 20px;
    transition: transform 0.3s ease;
    justify-content: space-between;
    align-items: flex-start;
}

.mobile-header.hidden {
    transform: translateY(-100%);
}

.mobile-header-text {
    display: flex;
    flex-direction: column;
}

.mobile-title {
    color: #e8e8e8;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-tagline {
    color: #555;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: 2px solid transparent;
    padding: 10px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline 0.2s ease;
    flex-shrink: 0;
}

.hamburger:focus-visible {
    outline: 2px solid #d64545;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background-color: #d64545;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/*Tablet layout (2 columns)*/
@media (max-width: 1400px) {
    .mobile-header {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        right: -250px;
        width: 250px;
        height: 100vh;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 20px;
        top: 0;
        left: auto;
        border-right: none;
        border-left: 1px solid #000000;
    }

    nav.active {
        right: 0;
    }

    main {
        margin-left: 0;
        margin-top: 60px;
    }

    .gallery-container {
        padding: 20px;
    }

    .masonry-grid {
        column-count: 2;
        column-gap: 20px;
    }

    .masonry-grid img {
        margin-bottom: 20px;
    }
}

/*Mobile layout (1 column)*/
@media (max-width: 800px) {
    .mobile-header {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        right: -250px;
        width: 250px;
        height: 100vh;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 20px;
        top: 0;
        left: auto;
        border-right: none;
        border-left: 1px solid #000000;
    }

    nav.active {
        right: 0;
    }

    main {
        margin-left: 0;
        margin-top: 60px;
    }

    .gallery-container {
        padding: 20px;
    }

    .masonry-grid {
        column-count: 1;
        column-gap: 0;
    }

    .masonry-grid img {
        margin-bottom: 20px;
    }
}
