@font-face {
    font-family: 'Tiffany Laurence Regular';
    src: url('./fonts/tiffany-laurence.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Tiffany Laurence Regular', serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.container {
    position: relative;
    text-align: center;
    width: 100%;
    height: 100vh;
}

.text-block {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hi, .im, .and, .i, .like, .to, .build {
    position: absolute;
    font-size: 1.5rem;
    font-weight: normal;
    color: black;
    line-height: 1;
}

.salar {
    position: absolute;
    font-size: 4rem;
    font-weight: normal;
    color: black;
    line-height: 1;

    top: 0rem;
}

.hi {
    left: -1.5rem;
    top: -0.2rem
}

.im {
    left: 0.5rem;
    top: -0.2rem
}

.and {
    left: -2.1rem;
    top: 3.5rem
}

.i {
    left: 0.1rem;
    top: 3.5rem
}

.like {
    top: 3.5rem;
    left: 0.7rem;
}

.to {
    left: -1.1rem;
    top: 4.8rem;
}

.build {
    left: 0.1rem;
    top: 4.8rem;
    font-style: italic;
    color: #2db8a8;
    cursor: pointer;
    transition: color 0.3s ease;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    text-decoration: underline;
}

.build:hover {
    color: #1a8b7a;
}

.build.flipped {
    animation: trapdoor-flip 0.3s ease-in-out forwards;
}

.build.unflipped {
    animation: trapdoor-unflip 0.3s ease-in-out forwards;
}

@keyframes trapdoor-flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(-180deg);
    }
}

@keyframes trapdoor-unflip {
    0% {
        transform: rotateX(-180deg);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.build-content {
    position: absolute;
    left: 50%;
    top: 9rem;
    width: 60rem;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.build-content.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.build-line {
    font-family: serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.8rem;
    text-align: left;
    text-indent: -1.1em;
    padding-left: 1.5em;
}

.build-line a {
    color: #2db8a8;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.build-line a:hover {
    color: #1a8b7a;
}

.social-links {
    margin-top: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    display: flex;
    gap: 2rem;
    font-family: 'Tiffany Laurence Regular', serif;
    font-size: 1.2rem;
    justify-content: center;
}

.social-links.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.social-links a {
    color: #2db8a8;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1a8b7a;
}

/* Mobile responsive adjustments */
@media (max-width: 985px) {
    .build-content {
        left: 50%;
        width: 30rem;
        transform: translateX(-50%) translateY(-20px);
    }
    
    .build-content.visible {
        transform: translateX(-50%) translateY(0);
    }
    
    .build-line {
        font-size: 1.1rem;
        margin-bottom: 1.7rem;
    }
}

@media (max-width: 480px) {
    .build-content {
        left: 50%;
        width: 23rem;
        transform: translateX(-50%) translateY(-20px);
    }
    
    .build-content.visible {
        transform: translateX(-50%) translateY(0);
    }
    
    .build-line {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .social-links {
        font-size: 1rem;
        gap: 1.5rem;
    }
}
