html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Dongle', sans-serif;
    min-height: 100vh;
    color: white;
}

header {
    width: 100%;
    background: linear-gradient(157deg, #0057BF 0%, #0057BF 50%, #0067d0 50%, #0067d0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0;
    min-height: 100vh;
}

nav {
    display: flex;
    justify-content: space-around;
    width: 40%;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 2.2em;
}

.container {
    display: flex;
    justify-content: space-around;
    width: 80%;
    margin-top: 18px;
    position: relative;
    z-index: 10;
}

.left-section {
    text-align: center;
    position: relative;
}

.logo {
    width: 23rem;
    height: auto;
    margin: 5rem auto 0 auto;
}

.title {
    padding: 0rem;
    margin: 0rem;
    font-size: 3.4em;
}
.subtitle {
    font-size: 2.8rem;
    font-weight: normal;
}

p {
    font-size: 1.5rem;
}

.center-section .iphone {
    width: 22rem;
    height: auto;
    margin-left: 4rem;
    margin-top: 1.5rem;
}

.right-section {
    margin-top: 3rem;
    margin-left: 2rem;
    text-align: center;
}

.qr-code {
    width: 18rem;
    height: 18rem;
    background: white;
    color: #1E3A8A;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    margin-top: 5rem;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 15px;
}

.qr-code-caption {
    font-size: 2.6em;
    margin-top: 0px;
    margin-bottom: 20px;
    font-weight: normal;
}

.download-btn {
    width: 17rem;
    height: auto;
    border-radius: 15px;
}

footer {
    margin-top: 150px;
    padding: 20px 0;
    text-align: center;
    color: white;
    width: 100%;
    position: relative;
    z-index: 10;
    /* background: #252A30; */
    background: url(./decorations/circuits-bottom-left.svg) #252a30 no-repeat 100px 100px;
    box-sizing: border-box;
}

footer p {
    font-size: 2.2em;
}

.footer-note {
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.social-links img{
    filter: grayscale(100%);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    /* border-radius: 10px; */
    width: 35px;
    height: 35px;

    &:hover {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }
}

.legal-links {
    margin: 20px 0;
    text-align: center;
}

.legal-links a {
    color: #E6F3FF;
    text-decoration: none;
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
    text-decoration: underline;
}

.legal-links span {
    color: #E6F3FF;
    margin: 0 10px;
    font-size: 1.8em;
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0057BF, #0067d0);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 87, 191, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 0.5;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #0067d0, #0077e0);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 87, 191, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

/* Medium Screen Responsive Styles (9.5 inches and under) */
@media (max-width: 1300px) {
    /* Header elements decrease in size slightly */
    .logo {
        width: 17rem;
    }

    .title {
        font-size: 1.8em;
        margin-bottom: 0;
    }

    .subtitle {
        font-size: 1.6rem;
        margin-top: 15px;
        margin-bottom: 0;
    }

    p {
        font-size: 1.3rem;
    }

    .center-section .iphone {
        width: 13rem;
    }

    .qr-code {
        width: 8.5rem;
        height: 8.5rem;
        font-size: 1.3em;
    }

    .qr-code-caption {
        font-size: 1.4em;
    }

    .download-btn {
        width: 8.5rem;
    }
}

@media (max-device-width : 1024px) and (orientation : portrait) {
    header {
        min-height: 60vh;
    }
}

/* Mobile Responsive Styles for Header */
@media (max-width: 768px) {
    header {
        min-height: 100vh;
        padding: 20px;
        box-sizing: border-box;
        padding-bottom: 100px;
    }

    .title {
        font-size: 4.5em;
        line-height: 3.5rem;
        margin-bottom: 0;
    }

    .subtitle {
        font-size: 3rem;
        margin-top: 15px;
        margin-bottom: 0;
    }

    nav {
        display: none;
    }

    .container {
        flex-direction: column;
        width: 100%;
        margin-top: 30px;
        gap: 30px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .left-section,
    .center-section,
    .right-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-left: 0;
    }

    /* Reorder header elements */
    .left-section {
        order: 1;
    }

    .right-section {
        order: 2;
    }

    .center-section {
        order: 3;
    }

    .logo {
        width: 20rem;
        max-width: 80vw;
        margin-top: 3rem;
        /* margin: 0 auto; */
        display: block;
    }

    h1 {
        font-size: 2.8em;
        text-align: center;
        margin: 10px auto;
    }

    p {
        font-size: 1.75em;
        text-align: center;
        margin: 0 auto;
    }

    .center-section .iphone {
        width: 22rem;
        margin: 0 auto;
        max-width: 85vw;
        display: block;
    }

    .qr-code {
        display: none;
    }

    .qr-code-caption {
        display: none;
    }

    .download-btn {
        width: 14rem;
        max-width: 80vw;
        margin: 0 auto;
        display: block;
    }

    /* Footer mobile styles */
    footer {
        margin-top: 50px;
        padding: 30px 20px;
        text-align: center;
        background: #252a30;
    }

    .social-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a img {
        width: 40px;
        height: 40px;
    }

    .scroll-to-top {
        width: 50px;
        height: 50px;
        right: 25px;
        bottom: 25px;
    }
}
