@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    font-family: 'Lora', sans-serif;
}

#hero-section {
    background-image: url('../img/doors-2.jpeg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-text {
    position: relative;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(28px, 5vw, 60px);
    color: transparent;
    -webkit-text-stroke: 2px #383d52;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    /* white-space: nowrap; */
}

.hero-text h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    -webkit-text-stroke: 0;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: reveal-text 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    /* white-space: nowrap; */
    border-right: 3px solid transparent;
}

@keyframes reveal-text {
    0%, 20% {
        clip-path: inset(0 100% 0 0);
    }
    60%, 80% {
        clip-path: inset(0 0 0 0);
    }
    90%, 100% {
        clip-path: inset(0 100% 0 0);
    }
}

.hero-text p {
    font-size: clamp(18px, 3vw, 24px);
    color: #bedef4;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #FFFFFF;
    background-color: #FC0606;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1s;
}

.cta-button:hover {
    background-color: rgba(252, 6, 6, 0.8);
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Medium Devices (Tablets, 768px and up) */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 36px;
        -webkit-text-stroke: 1.5px #383d52;
    }

    .hero-text p {
        font-size: 20px;
    }

    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Small Devices (Phones, 480px and down) */
@media (max-width: 480px) {
    .hero-section {
        height: 80vh;
    }

    .hero-text h1 {
        font-size: 28px;
        -webkit-text-stroke: 1px #383d52;
    }

    .hero-text p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .cta-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}