html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 10rem;

}

body {
    font-size: 1.6rem;
    padding-top: 10rem;
    font-family: 'Noto Serif', serif;

    h1 {
        font-size: 4.8rem;
    }

    h2 {
        font-size: 3.2rem;
    }
}

* {
    margin: 0;
    padding: 0;
    color: #212121;
    box-sizing: border-box;
}

.section-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 10rem);
    padding: 3.2rem 8rem;
}

.mainNavbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8rem 0 7rem;
    height: 10rem;
    background-color: #212121;
    box-shadow: 0 0 1.2rem 0.6rem rgba(0, 0, 0, 0.7);

    .logo {
        height: 100%;
    }

    a.mail {
        display: inline-block;
        width: 5rem;
        height: 5rem;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url(/images/mail.svg);
        transition: all 150ms ease-in-out;

        &:hover {
            background-image: url(/images/mail_hover.svg);
            transform: scale(1.1);
        }

        &.active {
            background-image: url(/images/mail_active.svg);
            transform: scale(1.1);
        }
    }

    .nav-links {
        margin-right: 3.6rem;
        display: flex;
        flex-direction: row;
        gap: 2rem;
        list-style: none;

        li {
            transition: all 150ms ease-in-out;

            a {
                text-decoration: none;
                color: white;
                transition: all 150ms ease-in-out;
                font-size: 2rem;

                &:hover {
                    color: #d4bd9d;
                }

                &.active {
                    color: #d4bd9d;
                }

                &:focus {
                    color: #9b8b73;
                }
            }
        }

        .contact-icon {
            display: none;

            .contact-link {
                display: none;
            }
        }
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    z-index: 1001;

    span {
        display: block;
        width: 2.5rem;
        height: 0.3rem;
        background-color: white;
        margin: 0.5rem 0;
        transition: all 0.3s ease;
    }

    &.active {
        span:nth-child(1) {
            transform: rotate(45deg) translate(0.8rem, 0.6rem);
        }

        span:nth-child(2) {
            opacity: 0;
        }

        span:nth-child(3) {
            transform: rotate(-45deg) translate(0.8rem, -0.6rem);
        }
    }
}

/* Tablet Styles (768px to 1024px) */
@media screen and (max-width: 1024px) {
    .section-container {
        padding: 3.2rem 4rem;
    }

    .mainNavbar {
        padding: 0 4rem;

        .nav-links {
            gap: 1.5rem;

            a {
                font-size: 1.8rem;
            }
        }
    }

    body {
        h1 {
            font-size: 4rem;
        }

        h2 {
            font-size: 2.8rem;
        }
    }
}

/* Mobile Styles (up to 767px) */
@media screen and (max-width: 794px) {
    .mainNavbar {
        padding: 0 2rem;
        height: 10rem;

        .mobile-menu-btn {
            display: block;
        }

        a.mail {
            display: none;
        }

        .nav-links {
            margin: 0;
            position: fixed;
            top: -10rem;
            left: 0;
            height: 10rem;
            width: 100%;
            background-color: #212121;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            gap: 1.6rem;

            &.active {
                top: 0;
                box-shadow: 0 0 1.2rem 0.6rem rgba(0, 0, 0, 0.7);
            }

            li {
                a {
                    font-size: 2.0rem;
                }
            }

            .contact-icon {
                display: inline;

                .contact-link {
                    display: inline;
                }
            }

        }

        .logo {
            height: 80%;
        }
    }

    .section-container {
        padding: 2.4rem 2rem;
        min-height: calc(100vh - 10rem);
    }

    body {

        h1 {
            font-size: 3.2rem;
        }

        h2 {
            font-size: 2.4rem;
        }
    }
}

@media screen and (max-width: 450px) {
    .mainNavbar {
        padding: 0 2rem;
        height: 10rem;

        .mobile-menu-btn {
            display: block;
            position: relative;
            z-index: 1002; /* Ensure button stays above nav menu */
        }

        a.mail {
            display: none;
        }

        .nav-links {
            position: fixed;
            top: 0;
            left: 100%; /* Start from right side of screen */
            height: 100vh;
            width: 50%; /* Increased width for better visibility */
            background-color: #212121;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease; /* Use transform instead of right */
            gap: 0.8rem;
            margin: 0;
            z-index: 1001;

            &.active {
                transform: translateX(-100%); /* Slide in from right */
            }

            li {
                width: 100%;
                text-align: center;

                a {
                    font-size: 2.0rem;
                    display: block;
                    padding: 1rem 0;
                }
            }
        }

        .logo {
            height: 80%;
        }
    }

    body {
        padding-top: 8rem;
    }

    .section-container {
        padding: 2.4rem 2rem;
        min-height: calc(100vh - 10rem);
    }
}


/* Section Divider Styles */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 8rem;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-divider.visible {
    opacity: 1;
    transform: translateY(0);
}

.divider-line {
    height: 0.4rem;
    background: linear-gradient(90deg, rgb(33, 33, 33) 0%, rgba(33, 33, 33, 0) 100%);
    flex-grow: 0;
    transition: flex-grow 1.2s ease-out;
    border-radius: 50rem; /* Right side has larger radius */
}

.divider-line.left {
    background: linear-gradient(90deg, rgba(33, 33, 33, 0) 0%, rgb(33, 33, 33) 100%);
}

.section-divider.visible .divider-line {
    flex-grow: 1;
}

.divider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: #212121;
    border-radius: 50%;
    margin: 0 1.6rem;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.775);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
}

.section-divider.visible .divider-icon {
    transform: scale(1);
}

.divider-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .section-divider {
        padding: 3rem 4rem;
    }
}

@media screen and (max-width: 779px) {
    .section-divider {
        padding: 2rem 2rem;
    }

    .divider-icon {
        width: 5rem;
        height: 5rem;
    }
}

@media screen and (max-width: 450px) {
    .divider-icon {
        width: 3rem;
        height: 3rem;
        margin: 0 1rem;
    }
}