* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1a2a3a, #0b1320);
    color: #eaeaea;
    overflow: hidden;
}

/* Layout */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Slideshow */
.photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

/* Content */
.content {
    padding: 24px;
    text-align: center;
    z-index: 2;
}

h1 {
    font-size: 1.4rem;
    color: #9ad1ff;
}

h2 {
    font-size: 2rem;
    margin: 10px 0;
    color: #ffffff;
}

#typing {
    font-size: 1rem;
    line-height: 1.7;
    color: #d0d7e2;
    min-height: 120px;
}

/* Button */
button {
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #0b1320;
    font-size: 0.9rem;
}

/* Nyan Cat */
.nyan {
    position: fixed;
    bottom: 15%;
    left: -160px;
    width: 120px;
    animation: nyan 20s linear infinite;
    pointer-events: none;
}

@keyframes nyan {
    from { left: -160px; }
    to { left: 110%; }
}
/* ===== MOBILE TEXT POSITION FIX ===== */
@media (max-width: 767px) {
    .app {
        position: relative;
    }

    .content {
        position: absolute;
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 0 10px;
        text-align: center;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    #typing {
        font-size: 0.95rem;
        min-height: 100px;
    }

    button {
        margin-top: 14px;
    }
}


/* Desktop */
@media (min-width: 768px) {
    .app {
        flex-direction: row;
    }

    .photo {
        width: 50%;
        aspect-ratio: auto;
        height: 100vh;
    }

    .content {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
