@import url('header.css');
@font-face {
    font-family: 'Keep-on-Truckin';
    src: url('fonts/KeeponTruckin.ttf') format('truetype');
}

*{
    margin:0;
    padding:0;
    box-sizing: border-box; /* Size remains widthxheight, adjusts content size within */
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 100vh; /* Expands with content */
    overflow: hidden;
}

.background img{
    position: absolute; /* Sit under the content */
    top: 0;
    left: 0;
    width : 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    object-fit: cover; /* Ensures that the image fills the screen*/
    background-position: center;
    z-index: -1; /*Stays behind the content*/
}


.hero-text {
    width: 100vw; 
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    text-align: center;
}

.hero-text .name{
    color: #C3388E;
}

.hero-text h1 {
    font-size: 3rem;
    color: #804585;
    margin-bottom: 10px;
    font-family: 'Keep-on-Truckin', sans-serif;
}

.hero-text h2 {
    font-size: 2rem;
    color: #804585;
    margin-bottom: 40px;
    font-family: 'Fredoka', sans-serif;
}

.hero-text p {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 30px;
    font-family: 'Nunito', sans-serif;
    padding: 0% 20%;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    font-family: 'Baloo 2', sans-serif;
}

.cta-buttons .primary-button {
    padding: 10px 20px;
    align-content: center;
    background-color: #804585;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-buttons .secondary-button {
    padding: 10px 20px;
    background-color: transparent; 
    border: 2px, solid #804585;
    color: #804585;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-buttons .primary-button:hover {
    background-color: #2A192A; 
    color: white;
}


.cta-buttons .secondary-button:hover {
    background-color: #C3388E;
    color: white;
    border: transparent;
}

/* Responsive Adjustments */
/* @media (max-width: 1024px) {
    .hero-section {
        flex-direction: row;
        text-align: left;
    }

    .hero-text h1{
        max-width: 40%;
        text-align: center;
        text-align: center;
        justify-content: center;
        align-items: left;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
}*/

@media (max-width: 768px) {
    .background img{
        min-height: 150%;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        height: auto;
    }

    .hero-text{
        max-width: 100%;
        display: flex;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-image img {
        width: 100%; 
        max-width: none;
        object-fit: cover;
    }

    .cta-buttons .btn {
        flex-direction: column;
        padding: 12px 25px;   
    }
}
