body {
    color: white;
    text-align: center;
    background: #000;
    font-family: "Source Sans Pro";
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header styling */
header {
    position: absolute;
    top: 0;
    left: 15%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: transparent;
    z-index: 1000;
}

nav {
    position: absolute;
    left: 50%;
}

.menu-icon {
    display: none;
}

.menu-toggle {
    display: none;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.menu-nav {
    display: none;
}

.mobile-nav {
    display: none;
}

nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: #ff4c4c;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    background: url("images/headphones_hero_1.jpg") no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    padding: 0 20px;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-top: 15%;
    padding: 0 20px;
}

.content h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.cta-button {
    background: #ff6565;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 30px;
    margin: 20px 0;
}

.cta-button:hover {
    background: #ff6565;
}

.description {
    color: white;
    font-size: 16px;
    font-family: Source Sans Pro;
    line-height: 26px;
    word-wrap: break-word;
    font-weight: 400;
}

.main-heading {
    font-weight: 700;
}

.what-we-do {
    width: 100%;
    height: 100vh;
    background-color: white;
    font-family: "Source Sans Pro";
    color: #000;
}

.what-we-do .stuff {
    position: relative;
    margin: auto;
    padding: 0;
    top: 15%;
    max-width: 800px;
    font-size: 16px;
    font-family: Source Sans Pro;
    line-height: 26px;
    word-wrap: break-word;
    text-align: center;
}

.stuff p {
    color: #071629;
    font-size: 16px;
    font-family: Source Sans Pro;
    font-weight: 400;
    line-height: 26px;
    word-wrap: break-word;
    max-width: 650px;
    display: inline-flex;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 900px;
    margin: 20% auto;
}

.icon-container h3 {
    color: #071629;
    font-size: 18px;
    font-family: Source Sans Pro;
    font-weight: 600;
    line-height: 26px;
    word-wrap: break-word;
}

.icon-box1 {
    text-align: center;
    flex: 1;
    max-width: 207px;
    min-height: auto;
    line-height: 26px;
    position: relative;
    margin-top: 11px;
}

.icon-box1 i {
    font-size: 50px;
    color: #ff6666;
    display: block;
    margin-bottom: 10px;
}

.icon-box1 p {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin: 0 auto;
    /* Center within its box */
}

.icon-box1 img {
    width: 50px;
    height: auto;
    margin: 20px auto;
}

.icon-box {
    text-align: center;
    flex: 1;
    max-width: 207px;
    min-height: auto;
    line-height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.icon-box i {
    font-size: 50px;
    color: #ff6666;
    display: block;
    margin-bottom: 10px;
}

.icon-box p {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin: 0 auto;
    /* Center within its box */
}

.icon-box img {
    width: 50px;
    height: auto;
    margin: 20px auto;
}

/* Results */
.our-results {
    width: 100%;
    height: 100vh;
    background: url("images/headphones_hero_2.jpg") no-repeat center center/cover;
    font-family: "Source Sans Pro";
    color: white;
}

.our-results img {
    width: 36%;
    height: auto;
}

.our-results h2 {
    font-size: 36px;
    font-weight: bold;
    position: relative;
    top: 24%;
    margin: auto;
}

.results-text {
    color: white;
    font-size: 16px;
    font-family: Source Sans Pro;
    font-weight: 400;
    line-height: 26px;
    word-wrap: break-word;
    position: relative;
    top: 35%;
    max-width: 650px;
    /* Prevents text from stretching too far */
    margin: 0 auto;
    /* Centers text */
    text-align: center;
}

.results-container {
    display: flex;
    justify-content: center;
    gap: 67px;
    margin-top: 22%;
    margin-right: 5%;
}

.result-box {
    position: relative;
    text-align: center;
}

.result-box img {
    width: 182px;
    /* Adjust based on your pentagon image size */
    height: 172px;
    display: block;
}

.result-box .percent {
    position: absolute;
    top: 35%;
    /* Adjust if needed */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 46px;
    font-weight: bold;
    color: white;
}

.result-box p {
    position: absolute;
    bottom: 15%;
    /* Adjust this for spacing */
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: white;
    text-align: center;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.contact-us {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    background-color: white;
    font-family: "Source Sans Pro";
    color: #000;
}

.contact-us form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    /* Controls the width */
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    /* Soft edges */
}

.contact-us label {
    align-self: flex-start;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    top: 38px;
}

.contact-us input,
.contact-us textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-bottom: 2px solid #ccc;
    font-size: 16px;
    outline: none;
    background: transparent;
    position: relative;
}

.contact-us input:focus,
.contact-us textarea:focus {
    border-bottom: 2px solid #ff5a5f;
}

.contact-us button {
    width: 40%;
    padding: 12px;
    background-color: #ff6565;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s ease;
}

.contact-us button:hover {
    background-color: #e0484d;
}

footer {
    color: white;
    font-size: 12px;
    background-color: #071629;
    font-family: Source Sans Pro;
    font-weight: 400;
    word-wrap: break-word;
    padding: 20px;
}

.footer-logo img {
    width: 160px;
    height: auto;
    margin-right: 65%;
    transform: translate(-80%, 30px);
}

.footer-links img {
    width: 130px;
    height: auto;
    margin-left: 65%;
}

.footer-links p {
    margin: auto;
    opacity: 0.35;
}

/* Tablet Support */
/* This media query targets devices with a minimum width of 480px and a maximum width of 768px */
@media (min-width: 481px) and (max-width: 767px) {
    body {
        font-size: 16px;
    }

    /* Header */
    header {
        left: 0;
        width: 100%;
        padding: 10px 20px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        position: relative;
        left: 0;
        text-align: center;
        width: 100%;
    }

    nav a {
        font-size: 14px;
        margin: 0 10px;
    }

    /* Hero Section */
    .hero {
        height: 80vh;
        padding: 20px;
    }

    .content {
        margin-top: 10%;
        max-width: 600px;
        padding: 0 15px;
    }

    .content h1 {
        font-size: 28px;
    }

    .content p {
        font-size: 15px;
    }

    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }

    /* What We Do Section */
    .what-we-do {
        height: auto;
        padding: 50px 20px;
    }

    .stuff {
        max-width: 700px;
        margin: 0 auto;
        font-size: 16px;
    }

    .icon-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 600px;
        margin: 30px auto;
    }

    .icon-box1,
    .icon-box {
        max-width: 100%;
        text-align: center;
    }

    .icon-box1 i,
    .icon-box i {
        font-size: 50px;
        margin-bottom: 10px;
    }

    .icon-box1 p,
    .icon-box p {
        font-size: 14px;
        color: #333;
    }

    /* Our Results */
    .our-results {
        height: auto;
        padding: 50px 20px;
    }

    .our-results h2 {
        font-size: 28px;
        margin: 20px auto;
    }

    .results-text {
        font-size: 16px;
        margin: 20px auto;
    }

    .results-container {
        display: grid;
        grid-template-columns: repeat(2, 0.23fr);
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    .result-box {
        position: relative;
        text-align: center;
    }

    .result-box img {
        width: 182px;
        height: auto;
        justify-self: center;
    }

    .result-box .percent {
        font-size: 46px;
        margin-top: 8%;
    }

    .result-box p {
        font-size: 12px;
    }

    /* Contact Us */
    .contact-us {
        padding: 30px;
    }

    .contact-us form {
        max-width: 350px;
        padding: 20px;
    }

    .contact-us button {
        width: 155px;
        font-size: 14px;
    }

    /* Footer */
    .footer-logo img {
        width: 120px;
        margin-left: 15%;
    }

    .footer-links img {
        width: 100px;
    }
}

/** Mobile Support */
/* This media query targets devices with a maximum width of 480px */
@media (max-width: 480px) {

    /* General */
    body {
        font-size: 14px;
    }

    /* Header */
    header {
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        display: none;
        /* Hide menu by default */
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 50px;
        left: 0;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 12px;
        font-size: 14px;
    }

    .menu-icon {
        display: block;
        font-size: 28px;
        cursor: pointer;
        position: fixed;
        top: 20px;
        left: 25px;
        z-index: 1001;
        color: white;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease-in-out;
    }

    .menu-toggle:checked+.menu-icon+.mobile-nav {
        left: 10%;
        background-color: rgba(0, 0, 0, 0);
        top: -25%;
    }

    .menu-toggle {
        display: none;
    }

    .menu-open nav {
        display: flex;
    }

    /* Hero Section */
    .hero {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        background-size: cover;
        background-position: center;
    }

    .description {
        font-size: smaller;
    }

    .content {
        width: 90%;
        margin: auto;
    }

    .content h1 {
        font-size: 32px;
        position: relative;
        left: -5%;
    }

    .cta-button {
        font-size: 14px;
        padding: 12px 18px;
        width: 100%;
        max-width: 280px;
        border-radius: 30px;
    }

    /* What We Do Section */
    .what-we-do {
        padding: 20px;
        text-align: center;
        height: auto;
        position: relative;
        right: 15px;
    }

    .what-we-do .stuff {
        max-width: 90%;
        margin: 0 auto;
        font-size: 14px;
        line-height: 1.5;
    }

    .icon-container {
        display: flex;
        flex-direction: column;
        /* Stack icons in a column */
        align-items: center;
        gap: 30px;
        /* Adjust vertical spacing */
        margin-top: 20px;
    }

    .icon-box1,
    .icon-box {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .icon-box1 i,
    .icon-box i {
        font-size: 40px;
        color: #ff6666;
        margin-bottom: 10px;
    }

    .icon-box p {
        font-size: 14px;
        color: #333;
    }

    /* Our Results */
    .our-results {
        height: auto;
        padding: 40px 15px;
        text-align: center;
        position: relative;
        right: 10px;
    }

    .our-results h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .results-text {
        font-size: 14px;
        line-height: 1.5;
        max-width: 90%;
        margin-bottom: 0 auto 30px;
    }

    .results-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0 auto;
        padding-bottom: 40px;
    }

    .result-box {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        max-width: 180px;
    }

    .result-box img {
        width: 100%;
        max-width: 150px;
        height: auto;
        margin-top: 35px;
    }

    .result-box .percent {
        font-size: 46px;
        margin-top: 21%;
    }

    .result-box p {
        font-size: 14px;
        margin-top: 10px;
    }

    /* Contact Us */
    .contact-us {
        padding: 30px 15px;
    }

    .contact-us form {
        max-width: 65%;
        padding: 20px;
    }

    .contact-us button {
        max-width: 280px;
        width: auto;
    }

    /* Footer */
    .footer-links img {
        width: 100px;
        height: auto;
        margin: 0 auto;
    }

    .footer-logo img {
        width: 150px;
        margin: 20px auto;
        transform: translate(1px, -8px);
    }
}