@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Playfair+Display:wght@700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 4.5rem;

    /*========== Colors ==========*/
    --first-color: #26b9b8; /* Muted Teal */
    --first-color-alt: #1a9a99;
    --first-color-light: #e0f7f7;
    --title-color: #9b6ccf; /* Deeper Lavender/Purple */
    --text-color: #2a2a2a;
    --text-color-light: #4a4a4a;
    --body-color: #fcfcfc;
    --container-color: #ffffff;
    --border-color: #f1f3f5;
    --section-bg: #f5faf9;

    /*========== Font and typography ==========*/
    --body-font: 'Open Sans', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --biggest-font-size: 3rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;

    /*========== Font weight ==========*/
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== Shadows ==========*/
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(38, 185, 184, 0.08), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12), 0 5px 15px rgba(0,0,0,0.05);

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--title-color);
    font-weight: var(--font-medium);
}

h1, .section__title, .hero__title {
    font-weight: var(--font-bold);
}

h2 {
    font-weight: var(--font-semi-bold);
}

.nav__logo,
.service__title, .portfolio__title, .testimonial__name, .contact__card-title, .footer__title {
    font-family: var(--heading-font);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.nav__logo {
    font-weight: var(--font-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

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

/*=============== SPECIFIC CLASSES ===============*/
.section {
    padding: 6rem 0 2rem;
}

.section:nth-child(even) {
    background-color: var(--section-bg);
}

.section__title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: 3rem;
}

.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-weight: var(--font-semi-bold);
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(38, 185, 184, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: .6s;
    z-index: -1;
}

.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(38, 185, 184, 0.35);
}

.button:hover::after {
    left: 100%;
}

/*=============== HEADER & NAV ===============*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    transition: .3s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: var(--h2-font-size);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__logo-img {
    height: 3rem;
    width: auto;
    vertical-align: middle;
}

.nav__logo-text-container {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
}

.nav__logo-line1 {
    font-family: var(--heading-font);
    font-weight: var(--font-bold);
    color: var(--title-color);
    font-size: var(--h3-font-size);
}

.nav__logo-line2 {
    font-family: var(--body-font);
    font-weight: var(--font-regular);
    color: var(--title-color);
    font-size: var(--small-font-size);
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: .3s;
    position: relative;
}

.nav__link:hover {
    color: var(--first-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--first-color);
    transition: .3s;
}

.nav__link:hover::after,
.active-link::after {
    width: 100%;
}

.active-link {
    color: var(--first-color) !important;
}

.nav__close,
.nav__toggle {
    display: none;
}

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--container-color);
    padding: 4rem 0 2rem;
}

.footer__logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
}

.footer__logo-img {
    height: 3rem;
    width: auto;
    vertical-align: middle;
}

.footer__logo-container span {
    font-family: var(--heading-font);
    font-weight: var(--font-bold);
    color: var(--title-color);
    font-size: var(--h3-font-size);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer__title {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    background-color: var(--first-color);
    color: #fff;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    display: inline-flex;
    transition: .3s;
}

.footer__social-link:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-0.25rem);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer__copy {
    font-size: var(--small-font-size);
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__link {
    font-size: var(--small-font-size);
    transition: .3s;
}

.footer__link:hover {
    color: var(--first-color);
}

/*=============== HERO ===============*/
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/images/home-b1m.jpg') no-repeat center/cover;
}

/* For medium devices and up, use a landscape background */
@media screen and (min-width: 768px) {
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/images/home-b1d.jpg');
    }
}

.hero__container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__content {
    text-align: center;
    z-index: 2;    
    color: #fff;
    padding: 3.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero__title {
    font-size: var(--biggest-font-size);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero__description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-size: var(--h3-font-size);
    font-weight: var(--font-light);
    line-height: 1.4;
}

/* Scroll Down Indicator */
.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    transition: .3s;
    z-index: 2;
    opacity: 0.8;
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll-text {
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero__scroll-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/*=============== SERVICES & FEATURES ===============*/
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service__card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service__card:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--first-color-light);
}

.service__icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--first-color-light);
    border-radius: 50%;
    transition: .4s;
}

.service__card:hover .service__icon {
    background-color: var(--first-color);
    color: #fff;
    transform: rotateY(360deg);
}

.service__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.service__description {
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

.service-hero {
    padding: calc(var(--header-height) + 6rem) 0 6rem;
    background: linear-gradient(180deg, var(--section-bg) 0%, var(--body-color) 100%);
}

.service-hero__container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.service-hero__title {
    font-size: var(--biggest-font-size);
    color: var(--title-color);
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.service-hero__description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: var(--normal-font-size);
}

.service-hero__description p {
    margin-bottom: 1.5rem;
}

.service-features__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3.5rem 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--first-color-light);
}

.feature-item__icon {
    font-size: 2.25rem;
    color: var(--first-color);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    background-color: var(--first-color-light);
    border-radius: 50%;
    transition: .4s;
}

.feature-item:hover .feature-item__icon {
    background-color: var(--first-color);
    color: #fff;
    transform: rotateY(360deg);
}

.feature-item__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    color: var(--title-color);
}

.feature-item__description {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    line-height: 1.6;
}

/*=============== PORTFOLIO & GALLERY ===============*/
.portfolio__filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.portfolio__item {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-medium);
    transition: .3s;
    border: 1px solid transparent;
}

.portfolio__item:hover, .active-portfolio {
    background-color: var(--first-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(38, 185, 184, 0.3);
}

/* Unified Grid Styles */
.portfolio__container,
.gallery__grid {
    display: grid;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 0;
}

.portfolio__container {
    grid-template-columns: repeat(auto-fit, 320px);
}

.gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.portfolio__card,
.gallery-item {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio__card {
    display: none;
}

.portfolio__card.show {
    display: block;
}

.portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__card:hover,
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio__card:hover .portfolio__img {
    transform: scale(1.1);
}

.portfolio__data {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    transition: .4s;
}

.portfolio__title {
    color: var(--title-color);
    font-family: var(--heading-font);
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}

.portfolio__description {
    color: #fff;
    font-family: var(--body-font);
    font-size: 0.875rem;
    opacity: 0.9;
}


/* STYLES FOR GALLERY ON SERVICE PAGES */
.gallery__item {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2rem;
    overflow: hidden;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery__item:hover {
   transform: none;
   box-shadow: none;
}

.gallery__item img {
    max-width: 100%;
    max-height: 100%;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .4s;
}

.gallery__item:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery__navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.gallery__page-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--first-color);
    background: transparent;
    color: var(--first-color);
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.gallery__page-button:hover,
.gallery__page-button.active {
    background: var(--first-color);
    color: var(--container-color);
}

/*=============== TESTIMONIALS ===============*/
.testimonials__container {
    overflow: hidden;
    padding: 3rem 0;
    max-width: 800px;
}

.testimonials__wrapper {
    display: flex;
    transition: .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial__card {
    flex: 0 0 100%;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.testimonial__card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--first-color-light);
    opacity: 0.4;
}

.testimonial__img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--first-color-light);
    box-shadow: var(--shadow-sm);
}

.testimonial__description {
    font-size: var(--h3-font-size);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-color-light);
}

.testimonial__name {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.testimonial__event {
    color: var(--first-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.testimonials__navigation {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.testimonial__prev,
.testimonial__next {
    cursor: pointer;
    font-size: 1.25rem;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--container-color);
    box-shadow: var(--shadow-sm);
    color: var(--first-color);
    transition: .3s;
    border: 1px solid var(--border-color);
}

.testimonial__prev:hover,
.testimonial__next:hover {
    background-color: var(--first-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/*=============== CONTACT ===============*/
.contact {
    background-color: var(--section-bg);
}

.contact__container {
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__content {
    display: grid;
    gap: 2rem;
}

.contact__info {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    justify-content: center;
}

.contact__card {
    flex: 1 1 0;
    min-width: 280px;
    max-width: 400px;
    background: linear-gradient(145deg, #ffffff, var(--section-bg));
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.08);
}

.contact__card-icon {
    font-size: 1.5rem;
    color: var(--first-color);
    margin-bottom: 0.5rem;
}

.contact__form {
    display: grid;
    gap: 1.5rem;
}

.contact__form-div {
    position: relative;
}

.contact__form-tag {
    position: absolute;
    top: -0.75rem;
    left: 1.25rem;
    z-index: 1;
    background-color: var(--body-color);
    padding: 0 0.5rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.contact__form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
    outline: none;
    transition: .3s;
}

.contact__form-input:focus {
    border-color: var(--first-color);
}

.contact__form-area {
    height: 11rem;
}

.contact__form-area textarea {
    resize: none;
    height: 100%;
}

.email-link {
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--first-color);
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--first-color);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    color: #fff;
    font-size: 1.25rem;
    z-index: var(--z-tooltip);
    transition: .3s;
    opacity: 0.8;
}

.scrollup:hover {
    transform: translateY(-0.25rem);
    opacity: 1;
}

/* Show Scroll Up */
.show-scroll {
    bottom: 3rem;
}

/*=============== LIGHTBOX ===============*/
.lb-data .lb-caption {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.lb-data .lb-number {
    font-family: var(--body-font);
    font-size: var(--small-font-size);
}

.gallery__lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__content.zoomed {
    overflow: auto;
}

.lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__image.zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    display: block;
    cursor: zoom-out;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

.lightbox__close {
    position: absolute;
    top: -2rem;
    right: -2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox__prev {
    left: 1rem;
}

.lightbox__next {
    right: 1rem;
}

.lightbox__zoom {
    position: absolute;
    top: 1rem;
    right: 4rem;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    border: none;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s;
}

.lightbox__zoom:hover {
    background: rgba(119, 21, 224, 1);
}

/*=============== RESPONSIVE STYLES ===============*/
/* For large devices */
@media screen and (max-width: 991px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: 0.938rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }

    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .nav__menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(280px, 80vw);
        max-height: 90vh;
        overflow-y: auto;
        background-color: var(--container-color);
        padding: var(--header-height) 1.5rem 1.5rem;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
        transition: .4s;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 1rem;
    }

    .nav__item {
        width: 100%;
        text-align: center;
    }

    .nav__link {
        display: block;
        padding: 0.5rem 0;
        font-size: var(--h3-font-size);
    }

    .nav__toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--title-color);
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--title-color);
    }

    .show-menu {
        display: block;
    }

    .show-menu::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .hero__title {
        font-size: var(--biggest-font-size);
    }

    .footer__content {
        flex-direction: column;
        row-gap: 2rem;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        row-gap: 1.5rem;
        text-align: center;
    }
}

/* For medium devices */
@media screen and (max-width: 768px) {
    .contact__info {
        flex-direction: column;
    }

    .contact__card {
        max-width: 100%;
    }

    .service-hero {
        padding: calc(var(--header-height) + 2rem) 0 2rem;
    }

    .service-hero__title {
        font-size: var(--h1-font-size);
    }

    .portfolio__container,
    .gallery__grid {
        justify-content: center;
        gap: 1rem;
    }
    .portfolio__container{
        grid-template-columns: repeat(auto-fill, 180px);
    }
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, 180px);
    }

    .lightbox__prev,
    .lightbox__next {
        padding: 0.75rem;
        font-size: 1.25rem;
    }

    .lightbox__close {
        top: -1.5rem;
        right: -1.5rem;
        font-size: 1.5rem;
    }

    .services__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial__card {
        padding: 1.5rem;
    }
}

/* For small devices */
@media screen and (max-width: 576px) {
    .nav__logo-text-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .nav__logo-line1,
    .nav__logo-line2 {
        text-align: center;
    }
    
    .services__container {
        grid-template-columns: 1fr;
    }

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

    .portfolio__filters {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.5rem;
    }

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

    .contact__form {
        padding: 1.5rem;
    }

    .footer__links {
        flex-direction: column;
        row-gap: 1rem;
        align-items: center;
    }
}

/* For smaller devices */
@media screen and (max-width: 350px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__description {
        font-size: var(--normal-font-size);
    }

    .service__card {
        padding: 2rem 1.5rem;
    }
}

/*=============== LEGAL PAGES ===============*/
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    margin: 2.5rem 0 1.25rem;
    color: var(--title-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: var(--h3-font-size);
}

.legal-content p {
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.legal-content strong {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.legal-content .sub-section {
    margin-top: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--first-color-light);
}

.legal-content a {
    color: var(--first-color);
    text-decoration: underline;
    transition: color 0.3s;
}

.legal-content a:hover {
    color: var(--first-color-alt);
}

.placeholder {
    background-color: #fff9c4;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: var(--font-medium);
    border: 1px dashed #fbc02d;
    color: #5d4037;
}

/*=============== COOKIE BANNER ===============*/
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
    z-index: var(--z-fixed);
    padding: 1rem 0;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner__text {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--first-color);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.button--small {
    padding: 0.75rem 1.5rem;
    font-size: var(--smaller-font-size);
}

.button--outline {
    background-color: transparent;
    color: var(--first-color);
    border: 2px solid var(--first-color);
    box-shadow: none;
}

.button--outline:hover {
    background-color: var(--first-color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media screen and (max-width: 576px) {
    .cookie-banner__actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-banner__button {
        width: 100%;
    }
}

/*=============== CONTACT FORM MESSAGES ===============*/
#form-result {
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: var(--font-semi-bold);
  display: none; /* Initially hidden */
}

#form-result.success {
  background-color: var(--first-color-light);
  color: var(--title-color);
  border: 1px solid var(--first-color);
}

#form-result.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.button.loading {
  opacity: 0.7;
  pointer-events: none;
}
