:root {
    --neutral-white: #fff;
    --neutral-black: #000;
    --brand-inkBlue: #040e4d;
    --brand-cream: #f8f4f0;
    --brand-yellow: #fa9b43;
    --brand-orange: #f06738;
    --brand-brown: #8d3e35;
    --brand-azureBlue: #2e737e;
}

/* Color Classes */
.bg-darkBlue {
    background-color: var(--brand-inkBlue);
}
.bg-orange {
    background-color: var(--brand-orange);
}
.bg-blue {
    background-color: var(--brand-azureBlue);
}
.bg-brown {
    background-color: var(--brand-brown);
}
.bg-yellow {
    background-color: var(--brand-yellow);
}

/* Utility classes not in bootstrap */

.flex-grow-1 {
    flex-grow: 1;
}
.flex-wrap-wrap {
    flex-wrap: wrap;
}
.flex-wrap-no-wrap {
    flex-wrap: nowrap;
}
.object-fit-cover {
    object-fit: cover;
}

/*********/

* {
    box-sizing: border-box;
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
    line-height: 1.8;
}

html,
body {
    font-size: 1rem;
    color: var(--brand-inkBlue);
    height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem 0;
    font-weight: 300;
}

h1,
.h1 {
    font-size: 3rem;
}

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

h3,
.h3 {
    font-size: 2rem;
}

h4,
.h4 {
    font-size: 1.4rem;
}

h5,
.h5 {
    font-size: 1.1rem;
}

h6,
.h6 {
    font-size: 1rem;
}

p {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

a {
    font-size: 1.125rem;
    color: var(--brand-azureBlue);
    overflow-wrap: break-word;
}

a:focus,
a:active {
    outline: 5px auto Highlight;
    outline: 5px auto -webkit-focus-ring-color;
}

main {
    flex: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (min-width: 768px) {
    .navbar-nav .nav-link {
        position: relative;
        display: inline-block;
        text-decoration: none;
        color: var(--brand-inkBlue);
    }

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 3px;
        width: 0;
        background-color: var(--brand-brown);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #navbarCollapse .nav-item {
        opacity: 0;
        transform: translateX(100%);
        animation-fill-mode: forwards;
    }

    #navbarCollapse.show .nav-item {
        animation: slideInRight 0.6s ease forwards;
    }

    #navbarCollapse.show .nav-item:nth-child(1) {
        animation-delay: 0.1s;
        background-color: var(--brand-inkBlue);
    }
    #navbarCollapse.show .nav-item:nth-child(2) {
        animation-delay: 0.25s;
        background-color: var(--brand-azureBlue);
    }
    #navbarCollapse.show .nav-item:nth-child(3) {
        animation-delay: 0.4s;
        background-color: var(--brand-brown);
    }
    #navbarCollapse.show .nav-item:nth-child(4) {
        animation-delay: 0.55s;
        background-color: var(--brand-orange);
    }
    #navbarCollapse.show .nav-item:nth-child(5) {
        animation-delay: 0.7s;
        background-color: var(--brand-yellow);
    }

    #navbarCollapse.show .nav-item:nth-child(1) .nav-link,
    #navbarCollapse.show .nav-item:nth-child(2) .nav-link,
    #navbarCollapse.show .nav-item:nth-child(3) .nav-link {
        color: var(--neutral-white);
    }

    #navbarCollapse.show .nav-item:nth-child(4) .nav-link,
    #navbarCollapse.show .nav-item:nth-child(5) .nav-link {
        color: var(--brand-inkBlue);
    }
}

/* The hero image */
.hero {
    background-image: linear-gradient(
            rgba(46, 115, 126, 0.3),
            rgba(46, 115, 126, 0.3)
    ),
    url("./images/vhs.png");

    width: 100%;
    position: relative;
    height: 50vh;
    background-size: cover;
    background-position: center;
    margin-top: 100px;
}

.hero-circle-img {
    width: 650px;
    height: 500px;
    object-fit: cover;

    clip-path: shape(
            from 91.98% 42.98%,
            curve to 90.5% 56.49% with 95.37% 50%,
            curve to 84.91% 70.83% with 85.64% 62.97%,
            curve to 79.36% 85.6% with 84.18% 78.68%,
            curve to 66.19% 93.45% with 74.55% 92.52%,
            curve to 50.01% 94.35% with 57.83% 94.38%,
            curve to 34.93% 91.49% with 42.19% 94.32%,
            curve to 22.92% 82.69% with 27.67% 88.67%,
            curve to 11.37% 71.62% with 18.17% 76.71%,
            curve to 9.07% 58.27% with 4.56% 66.54%,
            curve to 14.89% 43.85% with 13.57% 50%,
            curve to 18.22% 31.36% with 16.21% 37.7%,
            curve to 25.97% 21.66% with 20.23% 25.02%,
            curve to 37.33% 14.16% with 31.7% 18.31%,
            curve to 50.31% 8.24% with 42.95% 10.02%,
            curve to 63.7% 11.14% with 57.68% 6.45%,
            curve to 77.58% 18.05% with 69.73% 15.83%,
            curve to 87.01% 28.11% with 85.42% 20.28%,
            curve to 91.98% 42.98% with 88.6% 35.95%
    );
}

.hero-text .title-stack {
    width: 100%;
    min-width: 300px;
    max-width: 360px;
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-size: 2.5rem;
    text-transform: uppercase;
}

@media (min-width: 769px) {
    .hero-text .title-stack {
        min-width: 400px;
        max-width: 650px;
        font-family: "Poppins", sans-serif;
        font-weight: 200;
        font-size: 4rem;
    }
}

.hero-text .title-stack .black-box-title {
    background-color: var(--neutral-black);
    color: var(--neutral-white);
    letter-spacing: 30px;
}

.hero-text .title-stack .clear-design-title {
    color: var(--neutral-black);
    letter-spacing: 38px;
}

@media (min-width: 769px) {
    .hero-text .title-stack .clear-design-title {
        color: var(--neutral-black);
        letter-spacing: 45px;
    }
}
.hero-text .title-stack .stripe-set {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.hero-text .title-stack .stripe-set .stripe {
    width: 100%;
}

.hero-text .title-stack .stripe-set .stripe.azure {
    background-color: var(--brand-azureBlue);
    height: 40px;
}
.hero-text .title-stack .stripe-set .stripe.brick {
    background-color: var(--brand-brown);
    height: 28px;
}
.hero-text .title-stack .stripe-set .stripe.orange {
    background-color: var(--brand-orange);
    height: 20px;
}
.hero-text .title-stack .stripe-set .stripe.amber {
    background-color: var(--brand-yellow);
    height: 8px;
}

.hero-text .lead-text {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-size: 3rem;
    text-transform: uppercase;
}

/** Top cards **/

.what-we-do .card-body {
    aspect-ratio: 3/2;
    clip-path: ellipse(85% 100% at 50% 100%);
    z-index: 2;
    margin-top: -60px;
    color: var(--neutral-black);
}

.what-we-do .col:nth-of-type(odd) .card .card-body {
    background-color: var(--brand-orange);
}

.what-we-do .col:nth-of-type(even) .card .card-body {
    background-color: var(--brand-yellow);
}

.what-we-do .card-body .card-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 1rem 0;
}

/* === Footer Section === */

footer ul li a a:hover {
    text-decoration: underline;
}

footer ul li a:hover {
    text-decoration: underline !important;
}

.overflow-visible {
    overflow: visible;
}
/* Optional: improve stacking order for the heading block */
.z-3 {
    z-index: 3;
}

.cta__image-wrapper {
    top: -50px;
}

.cta__heading {
    top: 100%;
    width: 75%;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.cta__right-col {
    border: 2px solid var(--brand-yellow);

    border-radius: 0 0 20px 20px;
}

@media (min-width: 768px) {
    .cta__heading {
        left: 80%;
        top: 10%;
    }
    .cta__right-col {
        border-left: 0;
        border-radius: 0 20px 20px 0;
    }
}

.button {
    background-color: var(--brand-yellow);
    color: var(--neutral-black);
    padding: 1rem;
    border-radius: 20px;
    text-decoration: none;
    width: fit-content;
}

.button:hover {
    background-color: var(--brand-brown);
    color: var(--neutral-white);
    transition: ease-in-out 0.5s;
}

/** Sidebar **/

.sidebar ul {
    text-align: center;
}
.sidebar .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sidebar .nav-item + .nav-item::before {
    content: "■";
    color: var(--brand-azureBlue);
    font-size: 1.5em;
}

.sidebar .nav-item .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: var(--brand-yellow);
    transition: width 0.5s ease;
}

.sidebar .nav-item .nav-link:hover::after {
    width: 100%;
}

.sidebar .nav-item[aria-current="page"] .nav-link {
    font-weight: 700;
}

.sidebar .nav-item[aria-current="page"]::before {
    content: "◆";
    color: var(--brand-azureBlue);
    font-size: 1.5em;
}

.sidebar .nav-item .nav-link {
    color: var(--brand-inkBlue);
    text-decoration: none;
}
