*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: 'googleSansRegular';
    src: url(../assets/fonts/GoogleSans-Regular.ttf);
}

@font-face {
    font-family: 'googleSansBold';
    src: url(../assets/fonts/GoogleSans-Bold.ttf);
}

:root {
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --accent: #98e2cd;
}

html {
    font-size: 100%;
    color: black;
    background-color: var(--light);
    font-family: 'googleSansRegular', sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'googleSansRegular', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
strong,
.btn,
.nav-card h3 {
    font-family: 'googleSansBold', sans-serif;
}

a {
    text-decoration: none;
    cursor: url('../assets/images/my-pointer.png'), pointer;
}

.main-header {
    background: var(--dark);
    color: white;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    text-align: center;
    font-family: 'Helvetica', sans-serif;
    border-bottom: #98e2cd 2px solid;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 40;
}

.header-content {
    max-width: 68.75rem;
    margin: 0 auto;
}

.header-logo-container {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-img-logo {
    max-height: 4rem;
    width: auto;
    transition: transform 0.3s ease;
}

.header-img-logo:hover {
    transform: scale(1.05);
}

.header-tagline {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.125rem;
    opacity: 0.7;
    margin-top: -3rem;
    margin-left: 12rem;
    margin-bottom: 2rem;
}

.slogan {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.125rem;
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 1rem;
    margin-inline: 6rem;
}

.btn {
    margin-top: 1.25rem;
    padding: 0.75rem 1.875rem;
    background: var(--dark);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3.125rem;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.1);
}

/* Dropdown Positioning Container */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
}

/* Hidden state for menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark);
    border: 0.125rem solid #000;
    list-style: none;
    padding: 0;
    margin-top: 0.25rem;
    min-width: 12.5rem;
    z-index: 100;
    box-shadow: 0.5rem 0.5rem 0rem rgba(0, 0, 0, 0.15);
}

/* Display class triggered via JS */
.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

/* Styling links/buttons inside the dropdown */
.dropdown-menu li button {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.0625rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

/* Hover effect inside menu */
.dropdown-menu li button:hover {
    background: var(--accent);
    color: var(--dark);
}

/* Keep arrow indicator behavior clean if you want to add text indicators later */
.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.7rem;
}

.about {
    padding: 3.25rem 1.25rem;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url(../assets/images/main-background.jpg);
    background-size: cover;
    color: white;
    text-align: left;
}

.about h2 {
    text-align: center;
    font-size: 1.8rem;

}

.bio {
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: #98e2cd;
    font-size: 1.2rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.875rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.nav-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.875rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    text-align: center;
}

.nav-card h3 {
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    margin-top: 0;
    color: var(--accent);
}

.nav-card p {
    margin-block: 2rem;
    font-size: 2rem;
}

.nav-point {
    list-style: none;
    padding: 0;
}

.nav-point li {
    text-align: left;
    margin-bottom: 0.625rem;
    font-size: 0.9rem;
    border-bottom: 0.125rem solid var(--dark);
}

.nav-card.portfolio-cta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.portfolio-cta img {
    max-width: 7.5rem;
    margin-inline: auto;
    margin-block: 1rem;
    height: auto;
    transition: transform 0.3s ease;
}

.portfolio-cta:hover img {
    transform: scale(1.1);
}

.btn-small,
.btn-outline {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-small {
    background: none;
    color: var(--light);
    border: 0.125rem white solid;

}

.btn-outline {
    border: 0.125rem white solid;
    color: white;
}

@keyframes arrow-slide {
    0% {
        transform: translateX(0);
        opacity: 0.2;
    }

    50% {
        transform: translateX(1.5rem);
        opacity: 1;
    }

    100% {
        transform: translateX(3rem);
        opacity: 0;
    }
}

.right-arrow {
    display: inline-block;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover .right-arrow {
    animation: arrow-slide 1s infinite linear;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.0625rem;
}

.right-arrow {
    margin-left: 2rem;
    display: inline-block;
    transition: transform 2.3s ease-in-out;
}

.right-arrow:hover {
    transform: translateX(8rem);
}

.container {
    max-width: 50rem;
    margin: 0 auto;
}

.portfolio-slider {
    position: relative;
    max-width: 68.75rem;
    margin: 3.125rem auto;
    padding: 1.25rem 3.75rem;
}

.slider-track {
    display: flex;
    gap: 5rem;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 2.5rem;
}

.example-section {
    position: relative;
    flex: 0 0 16rem;
    height: 9rem;
    cursor: url('../assets/images/my-pointer.png'), pointer;
}

.example-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.image-border-accent {
    position: absolute;
    top: 0.9375rem;
    left: -0.9375rem;
    width: 100%;
    height: 100%;
    border: 0.125rem solid #000;
    z-index: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    cursor: url('../assets/images/my-pointer.png'), pointer;
}

.slider-arrow:hover {
    background: var(--accent);
}

.left-btn {
    left: 0;
}

.right-btn {
    right: 0;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.25rem;
    padding: 3.125rem;
    margin-bottom: 4rem;
}

.services h3 {
    margin-bottom: 1rem;
}

.card {
    background: white;
    padding: 1.875rem;
    border-left: 0.3125rem solid var(--dark);
    box-shadow: 0.625rem 0.625rem 0rem rgba(0, 0, 0, 0.05);
}

.or-highlight {
    color: #a7f3d0;
    font-weight: bold;
}

.all-highlight {
    text-decoration: underline white;
}

.controls {
    width: 100%;
    background-color: var(--light);
    padding-block: 2rem;
    margin-top: 11rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    /* Adds the perfect centering fix */
    z-index: 45;
    border-bottom: #00000030 2px solid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}

.filter-btn {
    padding: 0.75rem 1.875rem;
    border: 0.0625rem solid var(--white);
    background: transparent;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.09375rem;
    font-size: 0.6rem;
    color: var(--white);
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 0.25rem 0.625rem var(--clay-shadow);
}

.portfolio-grid-container {
    background-color: var(--light);
    padding: 3rem 3rem;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.75rem 2.5rem;
    max-width: 75rem;
    margin: 19rem auto 0rem auto;
}

.grid-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    cursor: url('../assets/images/my-pointer.png'), pointer;
}

.port-border-accent {
    position: absolute;
    top: 0.9375rem;
    left: -0.9375rem;
    width: 100%;
    height: 100%;
    border: 0.125rem solid #000;
    z-index: 1;
}

.portfolio-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
    background: #fff;
    border: 0.0625rem solid #000;
}

.grid-item:hover .portfolio-img {
    transform: translate(-0.25rem, -0.25rem);
    transition: transform 0.2s ease-out;
}

.grid-item:hover .port-border-accent {
    transform: translate(0.25rem, 0.25rem);
    transition: transform 0.2s ease-out;
}

.btn-view {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    color: var(--dark);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    border-bottom: 0.125rem solid var(--dark);
    transition: all 0.3s ease;
}

.btn-view .arrow {
    display: inline-block;
    margin-left: 0.3125rem;
    transition: transform 0.3s ease;
}

.btn-view:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.btn-view:hover .arrow {
    transform: translateX(0.3125rem);
}

.port-desc {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.port-desc p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.main-footer {
    background: var(--dark);
    color: white;
    padding: 3.75rem 1.25rem 1.25rem 1.25rem;
    text-align: center;
    font-family: 'Helvetica', sans-serif;
}

.footer-content {
    max-width: 68.75rem;
    margin: 0 auto;
}

.footer-logo-container {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-img-logo {
    max-height: 5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-img-logo:hover {
    transform: scale(1.05);
}

.footer-tagline {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.125rem;
    opacity: 0.7;
    margin-top: 0.625rem;
    margin-bottom: 1.875rem;
}

.footer-links {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.875rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 0.125rem solid transparent;
    transition: 0.3s;
    padding-bottom: 0.3125rem;
}

.footer-links a:hover {
    border-color: var(--accent);
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    word-spacing: 0.3rem;
}

.restaurant-project-video {
    width: 60%;
    max-width: 60rem;
    display: block;
    margin: 14rem auto 4rem auto;
    height: auto;
    min-height: 18rem;
    border-radius: 1.5rem;
    object-fit: cover;
}


@media (max-width: 48rem) {

    .btn {
        padding: 0.5rem 0.9375rem;
        font-size: 0.8rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .slider-track {
        gap: 3rem;
    }

    .portfolio-grid-container {
        padding: 3rem 3rem;
    }

    .port-border-accent {
        left: -0.625rem;
        top: 0.625rem;
    }

    .portfolio-slider {
        padding: 1.25rem 2.5rem;
    }

    .services {
        padding: 1.25rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.9375rem;
    }

    .footer-img-logo {
        max-height: 3.75rem;
    }
}

@media (max-width: 36rem) {

    header {
        padding-inline: 2rem;
    }

    .slogan {
        margin-inline: 4rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
        margin: 23rem auto 0rem auto;
    }
}

@media (max-width: 26rem) {

    .slogan {
        margin-inline: 2rem;
    }
}