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

::selection {
    background-color: #fff;
    color: #000;
}

::-moz-selection {
    background-color: #fff;
    color: #000;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    position: relative;
}

#vaporwave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

.container {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 2vh 5%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header {
    text-align: center;
    margin-bottom: 2vh;
    flex-shrink: 0;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-transform: lowercase;
}

.nav-links {
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 0.02em;
}

.nav-active {
    color: #ccc;
    font-weight: 500;
}

.main-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.square-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    position: relative;
    width: 100%;
}

.containers-wrapper {
    position: relative;
    flex: 1;
    max-width: 1200px;
    min-height: 400px;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.image-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}


.label-left {
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 0.85rem;
    color: #ccc;
}

.label-right {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 0.85rem;
    color: #ccc;
}

.label-bottom {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #aaa;
    white-space: nowrap;
}

.email-link {
    color: #bbb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #fff;
}

.external-icon {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.email-link:hover .external-icon {
    opacity: 1;
}

.square-link {
    width: 100%;
    max-width: 1200px;
    display: block;
    text-decoration: none;
}

.square {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    cursor: pointer;
}

.square-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.hover-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #000;
    background-color: #fff;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.square:hover .hover-text {
    opacity: 1;
}

.arrow {
    font-size: 3rem;
    color: #666;
    user-select: none;
    font-weight: 300;
    flex-shrink: 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.arrow:hover {
    color: #fff;
}


@media (max-width: 768px) {
    .container {
        padding: 1vh 3%;
    }
    
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.5vh;
    }
    
    .header {
        margin-bottom: 1vh;
    }
    
    .square-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .arrow {
        font-size: 2rem;
    }
    
    .label-left,
    .label-right {
        font-size: 0.75rem;
        top: -25px;
    }
    
    .label-bottom {
        font-size: 0.75rem;
    }
}

/* 3D hover effects for corners */
.square {
    --rotateX: 0deg;
    --rotateY: 0deg;
    transform: perspective(1000px) rotateX(var(--rotateX)) rotateY(var(--rotateY));
}
