body {
    display: flex;
    flex-direction: column;
    background-color: #5d5d5d; 
    background-image: url('../images/backg1.webp'), url('../images/backg2.webp');
    background-position: left, right;
    background-repeat: no-repeat, no-repeat;
    background-size: cover;
    background-size: contain;
    background-attachment: fixed;
    margin: 0;
    font-family: Arial, sans-serif;
}
header {
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-bottom: 20px;
}

.logo h1 {
    margin: 0;
    font-size: 36px; 
    font-weight: bold; 
    text-shadow: 1px 1px 1px rgba(147, 246, 255, 0.5);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    position: absolute;
    font-weight: bold;
    top: 20px;
    left: 20px;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: lightgrey;
}

main {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.work {
    width: 100%;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    margin-bottom: 20px;
}

.work img {
    width: 100%;
    max-width: 48%; 
    border-radius: 5px; 
    border: 3px solid rgb(194, 194, 194); 
}

.contact-form,
.appointment-form {
    width: 100%;
    margin-bottom: 20px;
}

.contact-form h2,
.appointment-form h2 {
    margin-top: 0;
}

.contact-form form,
.appointment-form form {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
}

.contact-form label,
.appointment-form label {
    display: block;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea,
.appointment-form input {
    width: calc(100% - 22px);
    padding: 5px;
    margin-bottom: 10px;
}

.contact-form button,
.appointment-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover,
.appointment-form button:hover {
    background-color: #45a049;
}

           
footer a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
    line-height: 2;
  }
  
  footer a:first-child {
    margin-right: auto;
  }
  
  footer a[href^="javascript"] {
    position: relative;
    color: #000;
    background-color: #fff1f1;
    border-radius: 3px;
    padding: 0 10px;
  }

@media (min-width: 400px) {
    .cards {
        display: flex;
        width: 90%;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
    }
    
    .cards .card {
        flex: 0 0 calc(90% - 10px);
        display: flex;
        margin: 40px 0 0 40px;
        min-width: 0;
        background: rgb(201,141,66);
        background: linear-gradient(90deg, rgba(201,141,66,1) 4%, rgba(163,109,44,1) 26%, rgba(139,88,27,1) 51%, rgba(62,119,164,1) 68%, rgba(130,137,184,1) 89%);
    }
    
    .cards .card-link {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        flex: 0 0 100%;
    }
    
    .cards .card-figure {
        position: relative;
        margin: 0;
        line-height: 0;
        overflow: hidden;
    }
    
    .cards .card-figure-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transform-origin: 80% 12%;
        transform: rotate(0) scale(1);
        transition: all 1s;
    }
    
    .cards .card-figure-caption {
        padding: 0 10px;
    }
    
    .cards .card-link:hover .card-figure-image {
        transform: rotate(6deg) scale(2);
        filter: grayscale(0);
    }
    
    .cards .card-figure-caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0px;
        background: hsla(228, 3%, 34%, 0.5);
        color: hsla(0, 0%, 100%, 1);
        backdrop-filter: blur(5px);
        line-height: 2;
        font-style: italic;
    }
    
    .cards .card-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        padding: 10px;
        background: rgb(67,79,115);
        background: linear-gradient(0deg, rgb(55, 82, 164) 0%, rgb(160, 81, 2) 100%);
    }
    
    .cards .card-section-title {
        margin-bottom: 0;
        border-bottom: 1px solid;
    }
    
    .cards .card-section-meta {
        display: flex;
        flex-wrap: wrap;
    }
    
    .cards .card-section-meta * {
        flex: 0 0 50%;
        font-size: .8em;
        line-height: 2;
    }
    
    .cards .card-section-meta :nth-child(even) {
        text-align: right;
    }
    
    .cards .card-section-excerpt {
        flex-grow: 1;
    }
    
    .cards .card-section-button {
        align-self: flex-end;
        margin: 10px;
        padding: 0 1em;
        border-radius: .5em;
        border: 1px solid;
        line-height: 2;
    }
    .wrapper {
        position: relative;
        width: 85%;
        margin: 0 auto;
        border-radius: 15px;
        box-sizing: border-box;
        background: linear-gradient(to bottom, #5d5d5d, #6c513e);
    }

    nav {
        position: relative; 
        font-size: 12px; 
        padding: 10px 0; 
        margin-left: 20px;
        background-color: rgba(0, 0, 0, 0.5); 
        width: 25%; 
        border-radius: 15px;
        text-align: center;
        left: unset; 
        top: unset; 
    }

    nav ul {
        display: flex;
        flex-direction: column; 
        align-items: center; 
    }
    nav ul li:hover {
        background-color: rgba(211, 211, 211, 0.289); 
    }
    

    nav ul li {
        margin: 5px 0; 
    }

    header {
        width: 100%;
        display: flex;
        justify-content: center; 
        align-items: center;
        margin-bottom: 20px;
    }

    .logo h1 {
        margin: 0;
        font-size: 36px; 
        font-weight: bold; 
        text-shadow: 1px 1px 1px rgba(147, 246, 255, 0.5);
    }
    
}

@media (min-width: 768px) {
    .cards {
        display: flex;
        width: 50%;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
    }
    
    .cards .card {
        flex: 0 0 calc(90% - 20px);
        display: flex;
        margin: 30px;
        min-width: 0;
        background: lightblue;
    }
    
    .cards .card-link {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        flex: 0 0 100%;
    }
    
    .cards .card-figure {
        position: relative;
        margin: 0;
        line-height: 0;
        overflow: hidden;
    }
    
    .cards .card-figure-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transform-origin: 80% 12%;
        transform: rotate(0) scale(1);
        transition: all 2s;
    }
    
    .cards .card-figure-caption {
        padding: 0 10px;
    }
    
    .cards .card-link:hover .card-figure-image {
        transform: rotate(6deg) scale(2);
        filter: grayscale(0);
    }
    
    .cards .card-figure-caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0px;
        background: hsla(228, 3%, 34%, 0.5);
        color: hsla(0, 0%, 100%, 1);
        backdrop-filter: blur(5px);
        line-height: 2;
        font-style: italic;
    }
    
    .cards .card-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        padding: 10px;
        background-color: lightcoral;
    }
    
    .cards .card-section-title {
        margin-bottom: 0;
        border-bottom: 1px solid;
    }
    
    .cards .card-section-meta {
        display: flex;
        flex-wrap: wrap;
    }
    
    .cards .card-section-meta * {
        flex: 0 0 50%;
        font-size: .8em;
        line-height: 2;
    }
    
    .cards .card-section-meta :nth-child(even) {
        text-align: right;
    }
    
    .cards .card-section-excerpt {
        flex-grow: 1;
    }
    
    .cards .card-section-button {
        align-self: flex-end;
        margin: 10px;
        padding: 0 1em;
        border-radius: .5em;
        border: 1px solid;
        line-height: 2;
    }
    .wrapper {
        position: relative;
        width: 80%;
        margin: 0 auto;
        border-radius: 15px;
        box-sizing: border-box;
        background: linear-gradient(to bottom, #5d5d5d, #6c513e);
    }
    
    nav {
        position: relative; 
        font-size: 12px; 
        padding: 10px 0; 
        margin-left: 280px;
        background-color: rgba(0, 0, 0, 0.5); 
        width: 25%; 
        border-radius: 15px;
        text-align: center;
        left: unset; 
        top: unset; 
    }

    nav ul {
        display: flex;
        flex-direction: column; 
        align-items: center; 
    }
    nav ul li:hover {
        background-color: rgba(211, 211, 211, 0.289); 
    }
    

    nav ul li {
        margin: 5px 0; 
    }

    header {
        width: 100%;
        display: flex;
        justify-content: center; 
        align-items: center;
        margin-bottom: 20px;
    }

    .logo h1 {
        margin: 0;
        font-size: 36px; 
        font-weight: bold; 
        text-shadow: 1px 1px 1px rgba(147, 246, 255, 0.5);
    }
    
}

@media (min-width: 1024px) {
    .cards {
        display: flex;
        width: 50%;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
    }
    
    .cards .card {
        flex: 0 0 calc(80% - 10px);
        display: flex;
        margin: 50px;
        min-width: 0;
        background: lightblue;
    }
    
    .cards .card-link {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        flex: 0 0 100%;
    }
    
    .cards .card-figure {
        position: relative;
        margin: 0;
        line-height: 0;
        overflow: hidden;
    }
    
    .cards .card-figure-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transform-origin: 80% 12%;
        transform: rotate(0) scale(1);
        transition: all 2s;
        filter: grayscale(100);
    }
    
    .cards .card-figure-caption {
        padding: 0 10px;
    }
    
    .cards .card-link:hover .card-figure-image {
        transform: rotate(6deg) scale(2);
        filter: grayscale(0);
    }
    
    .cards .card-figure-caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0px;
        background: hsla(228, 3%, 34%, 0.5);
        color: hsla(0, 0%, 100%, 1);
        backdrop-filter: blur(5px);
        line-height: 2;
        font-style: italic;
    }
    
    .cards .card-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        padding: 10px;
        background-color: lightcoral;
    }
    
    .cards .card-section-title {
        margin-bottom: 0;
        border-bottom: 1px solid;
    }
    
    .cards .card-section-meta {
        display: flex;
        flex-wrap: wrap;
    }
    
    .cards .card-section-meta * {
        flex: 0 0 50%;
        font-size: .8em;
        line-height: 2;
    }
    
    .cards .card-section-meta :nth-child(even) {
        text-align: right;
    }
    
    .cards .card-section-excerpt {
        flex-grow: 1;
    }
    
    .cards .card-section-button {
        align-self: flex-end;
        margin: 10px;
        padding: 0 1em;
        border-radius: .5em;
        border: 1px solid;
        line-height: 2;
    }
    
    .wrapper {
        position: relative;
        width: 80%;
        margin: 0 auto;
        border-radius: 15px;
        box-sizing: border-box;
        background: linear-gradient(to bottom, #5d5d5d, #6c513e);
    }
    nav {
        position: relative; 
        font-size: 12px; 
        padding: 10px 0; 
        margin-left: 280px;
        background-color: rgba(0, 0, 0, 0.5); 
        width: 25%; 
        border-radius: 15px;
        text-align: center;
        left: unset; 
        top: unset; 
    }

    nav ul {
        display: flex;
        flex-direction: column; 
        align-items: center; 
    }
    nav ul li:hover {
        background-color: rgba(211, 211, 211, 0.289); 
    }
    

    nav ul li {
        margin: 5px 0; 
    }

    header {
        width: 100%;
        display: flex;
        justify-content: center; 
        align-items: center;
        margin-bottom: 20px;
    }

    .logo h1 {
        margin: 0;
        font-size: 36px; 
        font-weight: bold; 
        text-shadow: 1px 1px 1px rgba(147, 246, 255, 0.5);
    }
    
}
