@import url('https://fonts.googleapis.com/css2?family=Martel+Sans:wght@300&family=Poppins:wght@600&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: black;
}

.main {
    background-image: url("assets/img/bg.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* Adjusted to cover for better responsiveness */
    height: 61vh;
    position: relative;
}

.main .box {
    height: 61vh;
    width: 100%;
    opacity: 0.69;
    position: absolute;
    top: 0;
    background-color: black;
}

nav {
    display: flex;
    justify-content: space-between;
    /* Changed to space-between for better alignment */
    padding: 0 20px;
    /* Added padding for better spacing */
    align-items: center;
    height: 62px;
}

nav img {
    color: red;
    width: 133px;
    position: relative;
    z-index: 10;
}

nav button {
    position: relative;
    z-index: 10;
    margin-left: 10px;
    /* Added margin to space out buttons */
}

.hero {
    font-family: 'Martel Sans', sans-serif;
    height: 303px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    position: relative;
    gap: 23px;
    padding: 0 30px;
    text-align: center;
    /* Added text alignment for better readability */
}

.hero> :first-child {
    font-weight: 900;
    font-size: 32px;
}

.hero> :nth-child(2) {
    font-weight: 400;
    font-size: 24px;
}

.hero> :nth-child(3) {
    font-weight: 400;
    font-size: 20px;
}

.separation {
    height: 7px;
    background-color: rgb(99, 93, 93);
}

.btn {
    padding: 3px 8px;
    font-weight: 400;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.532);
    border-radius: 4px;
    cursor: pointer;
    background-color: rgba(255, 254, 254, 0.5);
}

.btn-red {
    background-color: red;
    color: white;
    padding: 1px 24px;
    font-size: 20px;
    border-radius: 4px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-buttons input {
    padding: 7px 101px 8px 14px;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    background-color: rgba(23, 23, 23, 0.7);
    border: 1px solid rgba(246, 238, 238, 0.5);
}

.btn-red-sm {
    background-color: red;
    color: white;
}

.first {
    display: flex;
    /* Changed to row for side by side layout */
    justify-content: space-between;
    /* Space between elements */
    align-items: center;
    /* Align items vertically */
    max-width: 90vw;
    /* Adjusted for better responsiveness */
    margin: auto;
    color: white;
    padding-top: 20px;
    text-align: left;
    /* Adjusted text alignment */
}

.text {
    max-width: 45%;
    /* Ensure text doesn't take too much space */
}

.secImg {
    max-width: 45%;
    /* Ensure image doesn't take too much space */
    position: relative;
    margin-left: 20px;
    /* Added margin for spacing */
}

.secImg img {
    width: 100%;
    /* Adjusted to 100% for better responsiveness */
}

.secImg video {
    position: absolute;
    top: 0;
    /* Adjusted position for better alignment */
    right: 0;
    width: 100%;
    /* Adjusted width for better responsiveness */
    height: auto;
    /* Added height a uto to maintain aspect ratio */
}
section.first > div{
    display:flex;
    flex-direction: column;
}

section.first>div :first-child {
    font-size: 32px;
    font-weight: bolder;
}

section.first>div :nth-child(2) {
    font-size:15px;
    font-weight: lighter;
}

.faq h2{
    text-align: center;
    font-size: 48px;
}

.faq{
    background:black;
    color:white;
    padding:34px;
}

.faqbox:hover{
    background-color: #414141;
    color:white;
}

.faqbox svg{
    filter:invert(1);
}


.faqbox{
    color:white;
    transition: all 1s ease-out;
    font-size: 24px;
    display:flex;
    justify-content: space-between;
    background-color: #2d2d2d;
    padding:24px;
    max-width: 40vw;
    margin: 34px auto;
    cursor:pointer;
}

footer{
    color:white;
    max-width: 60vw;
    margin:auto;
    padding:14px;
}

footer .questions{
    padding:34px 0;
}

.footer{
    display: grid;
    color:white;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.footer a{
    font-size: 14px;
    color:white;
}

.footer-item{
    display:flex;
    flex-direction: column;
    gap:23px;
}
/* For tablets and smaller devices (max-width: 768px) */
@media (max-width: 768px) {
    .first, .footer {
        flex-direction: column;
        text-align: center;
    }

    .text, .secImg {
        max-width: 100%;
    }

    .secImg {
        margin: 20px 0;
    }

    .faqbox {
        max-width: 90vw;
    }

    /* Button adjustments for tablets */
    nav button {
        font-size: 14px; /* Adjust font size for smaller screens */
        padding: 6px 12px; /* Adjust padding for smaller screens */
    }

    .hero-buttons input {
        padding: 8px 16px; /* Adjust padding for input */
        font-size: 14px; /* Adjust font size for input */
    }

    .btn-red {
        padding: 8px 20px; /* Adjust padding for Get Started button */
        font-size: 18px; /* Adjust font size for Get Started button */
    }

    .hero {
        padding: 20px; /* Add padding for better spacing */
    }

    .hero > span {
        font-size: 18px; /* Adjust font size for hero text */
        margin: 10px 0; /* Add margin for spacing */
    }
}

/* For mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .hero> :first-child {
        font-size: 24px;
    }

    .hero> :nth-child(2) {
        font-size: 18px;
    }

    .hero> :nth-child(3) {
        font-size: 16px;
    }

    .hero-buttons input {
        padding: 7px 50px 8px 14px;
        font-size: 12px;
    }

    .btn-red {
        padding: 8px 16px;
        font-size: 16px;
    }

    .faq h2 {
        font-size: 36px;
    }

    .faqbox {
        font-size: 18px;
    }

    .footer {
        grid-template-columns: 1fr 1fr;
    }

    /* Button adjustments for mobile devices */
    nav button {
        font-size: 12px; /* Adjust font size for smaller screens */
        padding: 4px 8px; /* Adjust padding for smaller screens */
    }

    .hero-buttons input {
        padding: 6px 12px; /* Adjust padding for input */
        font-size: 12px; /* Adjust font size for input */
    }

    .btn-red {
        padding: 6px 16px; /* Adjust padding for Get Started button */
        font-size: 16px; /* Adjust font size for Get Started button */
    }

    .hero {
        padding: 15px; /* Add padding for better spacing */
    }

    .hero > span {
        font-size: 16px; /* Adjust font size for hero text */
        margin: 8px 0; /* Add margin for spacing */
    }
}
