/* Homepage Styles */

/* Split Layout */
.split-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.diagonal-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
    background-color: var(--color-bg-alt);
    z-index: 1;
}

/* Navigation Override for Homepage */
.split-container .nav {
    position: absolute;
    top: 0;
    left: 2rem;
    z-index: 3;
    display: flex;
    align-items: center;
    background: none;
    backdrop-filter: none;
    width: auto;
    padding: 1.5rem 0;
}

/* Character image */
.character-image {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 40%;
    max-width: 500px;
    z-index: 2;
    transition: transform 0.5s ease;
    object-fit: cover;
    height: auto;
}

.character-image:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

/* Content area */
.content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 40%;
    z-index: 2;
}

.greeting {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.mask-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.mask-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px var(--color-shadow-light);
}

.mask-item:hover {
    transform: translateY(-5px);
}

.mask-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mask-item .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text-light);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.mask-item:hover .info {
    transform: translateY(0);
}

.view-all {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--color-primary);
    transition: all 0.3s;
}

.view-all:hover {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .character-image {
        width: 50%;
    }
    
    .content {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .diagonal-split {
        clip-path: polygon(0 0, 100% 0, 100% 40%, 0 55%);
        height: 50%;
    }
    
    .split-container .nav {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        width: calc(100% - 2rem);
        display: flex;
        justify-content: space-between;
    }
    
    .character-image {
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
    }
    
    .character-image:hover {
        transform: translate(-50%, -50%) scale(1.02);
    }
    
    .content {
        top: auto;
        bottom: 5%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }
    
    .mask-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .greeting {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .mask-preview {
        grid-template-columns: 1fr;
    }
}
