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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    position: relative;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    pointer-events: none;
}

.header * {
    pointer-events: auto;
}

.header-left .logo {
    height: 6rem;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

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

.sound-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sound-label {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.sound-toggle {
    background-color: #2a2a2a;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.sound-toggle:hover {
    background-color: #3a3a3a;
}

.sound-dots {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0.1em;
}

/* Main Content */
.main-content {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    left: 0;
    right: 0;
}

/* Gradient Overlays */
.gradient-overlay {
    position: fixed;
    left: 0;
    right: 0;
    width: 100vw;
    height: 200px;
    z-index: 999;
    pointer-events: none;
}

.gradient-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
}

.gradient-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4rem;
    width: 100vw;
    height: 100vh;
    padding: 2rem;
    margin: 0;
    max-width: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.grid-item {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    overflow: visible;
    position: relative;
    cursor: pointer;
    transition: none;
    border-radius: 1rem;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}


.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

.overlay-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    line-height: 0.9;
    text-align: center;
    pointer-events: none;
    z-index: 500;
    white-space: nowrap;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem 3rem;
    background-color: transparent;
    z-index: 1000;
    pointer-events: none;
}

.footer * {
    pointer-events: auto;
}

.footer-left {
    flex: 1;
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: 2px solid;
    font-family: inherit;
    letter-spacing: 0.05em;
}

.footer-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.template-btn {
    background-color: #FFD700;
    border-color: #32CD32;
    color: #32CD32;
}

.framer-btn {
    background-color: #2a2a2a;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-icon {
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .image-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 3rem;
        width: 100vw;
        height: 100vh;
        transform: translate(-50%, -50%);
        padding: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        width: 100vw;
        height: 100vh;
        transform: translate(-50%, -50%);
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .header-left {
        flex-shrink: 0;
    }

    .header-left .logo {
        height: 5rem;
    }

    .header-right {
        gap: 1rem;
        margin-left: auto;
        margin-top: 0;
        width: auto;
    }

    .nav {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav-link {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .main-content {
        height: 100vh;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 1rem;
        width: 100vw;
        height: auto;
        transform: translate(-50%, 0);
        padding: 1rem;
        min-height: 100vh;
        top: 0;
    }

    .overlay-logo {
        font-size: 3rem;
    }

    .footer {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-text {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    .footer-right {
        width: 100%;
    }

    .footer-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .gradient-overlay {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
    }

    .header-left .logo {
        height: 4.5rem;
    }

    .header-right {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0;
        margin-left: auto;
    }

    .nav {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .nav-link {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100vw;
        height: auto;
        transform: translate(-50%, 0);
        padding: 0.75rem;
        min-height: 100vh;
        top: 0;
    }
    
    .grid-item {
        aspect-ratio: 1;
        width: 100%;
    }

    .overlay-logo {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .gradient-overlay {
        height: 100px;
    }

    .footer {
        padding: 0.75rem;
    }

    .footer-text {
        font-size: 0.6rem;
    }

    .footer-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
}

