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

body,
html {
    min-height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    color: white;
}

.container {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 760px);
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-overlay h1 {
    font-size: clamp(1.4rem, 6.5vw, 2.5rem);
    line-height: 1;
}

.text-overlay h1 span,
.quote span {
    display: inline-block;
}

.text-overlay p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    line-height: 1.5;
    margin-top: 20px;
}

.third-text {
    font-size: 1em !important;
    line-height: 1.4;
    margin-top: 20px;
    overflow-wrap: anywhere;
}

.third-text a {
    color: white;
    text-decoration: none;
}

.contact-line {
    display: block;
}

.third-text a:hover {
    text-decoration: underline;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background-color: #0000ff;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 1.2;
}

.btn:hover {
    background-color: #ff6600;
}

.btn a {
    color: white;
    text-decoration: none;
    display: block;
}

@media (max-width: 768px) {
    .text-overlay {
        top: 53%;
        width: min(90vw, 390px);
    }

    .text-overlay h1 {
        font-size: clamp(1.7rem, 9vw, 2.35rem);
        line-height: 0.98;
    }

    .text-overlay p {
        font-size: clamp(1rem, 4.8vw, 1.2rem);
        line-height: 1.25;
        margin-top: 16px;
    }

    .third-text {
        font-size: clamp(0.82rem, 3.6vw, 0.94rem) !important;
        line-height: 1.28;
        margin-top: 20px;
    }

    .contact-line {
        margin-top: 8px;
    }

    .contact-line a {
        display: block;
    }

    .button-container {
        gap: 10px;
        margin-top: 28px;
    }

    .btn {
        padding: 9px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 380px) {
    .text-overlay h1 span,
    .quote span {
        display: block;
    }

    .text-overlay {
        width: 88vw;
    }

    .third-text {
        margin-top: 18px;
    }

    .button-container {
        margin-top: 24px;
    }
}
