/* Modern Minimal Design for INTERMEDIA DESIGN STUDIO */

:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --accent-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --accent-color: #ff6b6b;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-black);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 2s ease-out 0.5s forwards;
}

.logo-section {
    margin-bottom: 4rem;
}

.main-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 100;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1s forwards;
}

.sub-title {
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 200;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1.3s forwards;
}

.divider {
    width: 100px;
    height: 1px;
    background-color: var(--white);
    margin: 2rem auto;
    opacity: 0;
    animation: fadeInScale 1s ease-out 1.6s forwards;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1.8s forwards;
}

.japanese-title {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--accent-gray);
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 2s forwards;
}

.architect-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-gray);
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 2.2s forwards;
}

.enter-section {
    margin-top: 4rem;
}

.enter-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 2.5s forwards;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.enter-button:hover::before {
    left: 0;
}

.enter-button:hover {
    color: var(--primary-black);
    transform: translateY(-2px);
}

.enter-arrow {
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enter-button:hover .enter-arrow {
    transform: translateX(5px);
}

/* Background Images */
.background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.bg-1 {
    background-image: url('picH/KHouse/K-03.jpg');
    animation: backgroundSlide 15s infinite;
}

.bg-2 {
    background-image: url('picH/NKNS/NKNS-01.jpg');
    animation: backgroundSlide 15s infinite 5s;
}

.bg-3 {
    background-image: url('picH/ISZ/ISZ-01.jpg');
    animation: backgroundSlide 15s infinite 10s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out 3s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    animation: scrollMove 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes backgroundSlide {
    0%, 33.33% {
        opacity: 0.3;
    }
    0%, 33.33% {
        opacity: 0;
    }
}

@keyframes scrollMove {
    0% {
        top: -100%;
    }
    50% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 2rem;
    }
    
    .main-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .sub-title {
        font-size: clamp(1rem, 6vw, 2rem);
    }
    
    .tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .japanese-title {
        font-size: 0.9rem;
    }
    
    .architect-name {
        font-size: 0.8rem;
    }
    
    .enter-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
        right: 1rem;
    }
    
    .scroll-line {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .divider {
        width: 60px;
    }
    
    .enter-section {
        margin-top: 3rem;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-gray);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}