:root {
    --orange: #FF8200;
    --red: #EB0F3B;
    --dark-bg: #232931;
    --light-gray: #A9B2BC;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
}

.button,
nav a.contact,
#careers a,
#contact button,
#top a {
    display: inline-block;
    background-color: var(--white);
    color: var(--red);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.button:hover,
nav a.contact:hover,
#careers a:hover,
#contact button:hover,
#top a:hover {
    background-color: #FFEEEE;
    transform: translateY(-2px);
    color: var(--red);
}


/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(24px);
    background-color: rgba(34, 42, 53, 0.4);
}

header .container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: relative;
}

header .container:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--orange), var(--red));
}

#menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--red);
}

nav a.contact {
    border: 1px solid var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: transparent;
}

nav a.contact:hover {
    background-color: var(--red);
    color: var(--white);
}

/* Hero Section */
#top {
    text-align: left;
    padding: 13rem 2rem 6rem;
    background: url('assets/heroBG.png') bottom/cover no-repeat, var(--dark-bg);
}

#top h1 {
    font-size: 7rem;
    line-height: 0.9;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
    color: var(--white);
}

#top h1 span {
    padding-right: 6px;
    background: linear-gradient(to right, var(--orange), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
#about {
    background-color: var(--dark-bg);
    padding: 5rem 2rem;
}

#about .container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

#about h2 {
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    color: var(--red);
    margin: 0;
    position: relative;
}

#about h2 img {
    margin-left: 1rem;
    height: 5rem;
    vertical-align: middle;
}

.contentAbout {
    flex: 1 1 500px;
}

#about p {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

#about p.white {
    font-weight: 100;
    color: var(--white);
}

#about p.gray {
    font-weight: 100;
    color: var(--light-gray);
}

/* Services Section */
#services {
    background: url('assets/playBookBackground.svg') bottom/cover no-repeat, linear-gradient(to bottom, var(--red), var(--orange), var(--white));
    padding: 4rem 2rem;
    position: relative;
    margin: 0 0 -1px;
}

#services .container {
    max-width: 1320px;
    margin: 0 auto;
}

#services .arrowDecoration {
    position: absolute;
    top: 0;
    right: 0;
}

#services h2 {
    font-size: 3rem;
    font-style: italic;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--white);
    text-transform: uppercase;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.service-card {
    background: var(--dark-bg);
    padding: 1.5rem;
    width: 27%;
    min-width: 280px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%);
}

.service-card h3 {
    font-size: 2rem;
    font-style: italic;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: var(--white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.75rem;
    color: var(--light-gray);
    font-weight: 100;
}

/* GameDay Section */
#gameday {
    background: url('assets/gameDayBG.svg') top/cover no-repeat, var(--white);
    color: #0a0f1b;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.mockups.full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.mockups.full-width img {
    width: 100%;
    height: auto;
    display: block;
}

#gameday .container {
    max-width: 1320px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}

#gameday h2 {
    font-size: 3rem;
    font-style: italic;
    font-weight: 900;
    color: var(--red);
    text-transform: uppercase;
    margin: 0;
}

#gameday .arrowDecoration {
    position: absolute;
    top: 3rem;
    left: 0;
}

.mockups {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.mockups img {
    max-width: 100%;
    height: auto;
}

.gameDayCopy {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.buttonGroup {
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.buttonGroup a img {
    width: 140px;
    height: auto;
}

.hero-contact-btn {
    margin-top: 2rem;
    /* larger text */
    font-size: 1.25rem;
    /* bigger button */
    padding: 1.25rem 2.5rem;
}

/* Careers Section */
#careers {
    background: linear-gradient(to right, var(--red), var(--orange));
    padding: 4rem 2rem;
    text-align: center;
}

#careers h2 {
    font-size: 3rem;
    font-style: italic;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

#careers p {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

#careers a {
    display: inline-block;
    background-color: var(--white);
    color: var(--red);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 2px solid var(--red);
    transition: background 0.3s;
}

#careers a:hover {
    background-color: #FFEEEE;
}

/* Contact Section */
#contact {
    background: url('assets/heroBG.png') center/cover no-repeat, var(--dark-bg);
    color: #0a0f1b;
    padding: 4rem 2rem;
    position: relative;
}

#contact .arrowDecoration {
    position: absolute;
    top: 0;
    right: 0;
}

#contact .container {
    max-width: 900px;
    margin: 0 auto;
}

#contact h2 {
    font-size: 3rem;
    font-style: italic;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

#contact p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    color: var(--white);
}

form {
    display: grid;
    gap: 1rem;
}

form input,
form textarea {
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.25rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus {
    outline: 2px solid var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(235, 15, 59, 0.2);
}

form button {
    background-color: var(--red);
    color: var(--white);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid var(--red);
    transition: background 0.3s;
    font-size: 1rem;
}

form button:hover {
    background-color: var(--orange);
    border-color: var(--orange);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-gray);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    #top h1 {
        font-size: 5rem;
    }

    .service-card {
        width: 50%;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(34, 42, 53, 0.95);
        backdrop-filter: blur(24px);
        padding: 1rem;
        position: absolute;
        /* Place nav directly below the header container */
        top: 100%;
        left: 0;
        z-index: 100;
    }

    header .container {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        /* optional: adds space between burger and logo */
        gap: 2rem;
    }

    #gameday .arrowDecoration img {
        width: 2rem;
    }


    #menu-toggle {
        display: block;
    }


    nav.show {
        display: flex;
    }

    nav .button {
        max-width: 180px;
        width: 100%;
        white-space: normal;
        /* allow wrapping if needed */
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    nav a {
        margin: 1rem 0;
        margin-left: 1rem;
    }

    #top h1 {
        font-size: 3.5rem;
    }

    .service-card {
        width: 100%;

    }

    #services .arrowDecoration {
        display: none;
    }

    #about {
        padding: 2rem 2rem 5rem 2rem;
    }

    .contentAbout {
        padding: 0;
    }

    .hero-contact-btn {
        margin-top: 2rem;
        font-size: 1rem;
        /* bigger button */
        padding: 1rem 2rem;
    }

    #gameday .arrowDecoration {
        display: none;
    }

    #gameday h2 {
        text-align: left;
    }

    #contact .arrowDecoration {
        display: none;
    }
}