:root {
    /* 
        Colors
    */
    
    --cadet-blue-crayola: hsl(240, 10%, 70);
    --gold-web-golder: hsl(50, 100%, 54%);
    --vivid-sky-blue: hsl(196, 84%, 63%);
    --midnight-blue: hsl(231, 83%, 25%);
    --minion-yellow: hsl(50, 100%, 64%);
    --independence: hsl(225, 24%, 27%);
    --orange-soda: hsl(7, 96%, 61%);
    --space-cadet: hsl(243, 23%, 18%);
    --fiery-rose: hsl(353, 83%, 65%);
    --klein-blue: hsl(230, 80%, 39%);
    --bluetiful: hsl(222, 88%, 55%);
    --glaucous: hsl(230, 52%, 63%);
    --manatee: hsl(254, 7%, 65%);
    --rufous: hsl(2, 85%, 35%);
    --black: hsl(0, 0%, 0%);
    --white: hsl(0%, 0%, 100%);

    /* 
        typography
    */

    --ff-open-sans: 'Open Sans', sans-serif;
    --ff-barlow: 'Barlow', sans-serif;
    --ff-poppins: 'Poppins', sans-serif;

    --fs-1: 3.5rem;
    --fs-2: 3rem;
    --fs-3: 2.4rem;
    --fs-4: 2rem;
    --fs-5: 1.8rem;
    --fs-5: 1.3rem;

    --fw-600: 600;
    --fw-700: 700;


    /* 
        border radius
    */

    --radius-5: 5px;
    --radius-10: 10px;
    --radius-15: 15px;
    --radius-20: 20px;


    /* 
        spacing
    */

    --section-padding: 60px;

    /* 
    
        shadow
    */

    --shadow: 0 -5px 10px var(--manatee);


    /* 
        transition
    */

    --transition-1: 0.05s ease;
    --transition-2: 0.25s ease;
    --cubic-out: cubic-bezier(0.33, 0.85, 0.56, 1.02);
}


/* 
    RESET

*/

*, 
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li { list-style: none; }


a {
    text-decoration: none;
    color: inherit;
}

a,
img,
span,
input,
strong,
button,
textarea,
ion-icon { display: block; }


img { height: auto; }


ion-icon {
    pointer-events: none;
    color: var(--white);
}

button,
input,
textarea {
    background: none;
    border: none;
    font: inherit;
}

button { cursor: pointer; }

input,
textarea { width: 100% }

address { font-style: normal; }


html {
    font-size: 10px;
    font-family: var(--ff-open-sans);
    scroll-behavior: smooth;
}

body {
    background-color: var(--manatee);
    color: var(--cadet-blue-crayola);
    font-size: 1.6rem;
    line-height: 1.6;
    overflow-x: hidden;
}

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 15px; }

::-webkit-scrollbar-track { background-color: hsl(0, 0%, 95%); }

::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70); }


/* 
    REUSED STYLE
*/

.container { padding-inline: 20px; }

.btn {
    color: #fff;
    font-family: var(--ff-barlow);
    /* font-size: var(--fs-5); */
    font-weight: var(--fw-600);
    max-width: max-content;
    padding: var(--padding, 10px 40px);
    border-radius: 50px;
    transition: var(--transition-2);
}

.btn-primary.blue { background-color: #000; }

.btn-primary.blue:is(:hover, :focus) { background-color: var(--orange-soda); }

/* change my image  image-rotate*/

.img-rotate {
    width: 100%;
    height: 500px;
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    object-fit: cover;
} 


.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section { padding-block: var(--section-padding); }

.section-subtitle {
    color: var(--orange-soda);
    font-family: var(--ff-barlow);
    font-size: var(--fs-4);
    text-align: center;
}

.h2,
.h3 {
    color: var(--white);
    font-family: var(--ff-barlow);
    font-weight: var(--ff-600);
    line-height: 1.3;;
}

.h2 { font-size: var(--fs-2); }

.h3 { font-size: var(--fs-3); }

.section-title,
.section-text { text-align: center; }


/* 
    #HEADER
*/

.header {
    position: fixed;
    padding-block: 15px;
    width: 100%;
    background-color: var(--manatee);
    height: 65px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: 0.25s var(--cubic-out);
    z-index: 4;
}

.header.nav-active {
    height: 250px;
    transition-duration: 0.35s;
}

.header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-family: var(--ff-poppins);
    font-size: 2.4rem;
}

.nav-toggle-btn {
    font-size: 3rem;
}

.nav-toggle-btn .close-icon,
.nav-toggle-btn.active .menu-icon {
    display: none;
}

.nav-toggle-btn.active .close-icon,
.nav-toggle-btn .menu-icon {
    display: block;
}

.navbar {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding-inline: 20px;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-2);
}

.header.nav-active .navbar {
    visibility: visible;
    opacity: 1;
}

.navbar-link {
    color: var(--white);
    font-family: var(--ff-barlow);
    padding-block: 3px;
    transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus) {
    color: var(--orange-soda);
}

.navbar .btn {
    background-color: var(--orange-soda);
    margin-block-start: 15px;
}


/*  HOME  */


.elem,
.rotate-img {
    display: none;
}

.hero {
    background-color: #D2B48C;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-block: 100px var(--section-padding);
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.hero-banner {
    width: 150px;
    height: 172px;
    background-color: var(--independence);
    border-radius: var(--radius-10);
    margin-inline: auto;
    margin-block-end: 30px;
}

.hero-banner img {
    border-radius: inherit;
}

.hero-content {
    text-align: center;
    color: var(--white);
    margin-top: 200px;
}

.hero-title {
    font-family: var(--ff-barlow);
    font-size: var(--fs-5);
    font-weight: var(--fw-600);
    line-height: 1.3;
    margin-block-end: 14px;
}

.hero-title strong {
    font-size: var(--fs-1);
    font-weight: inherit;
    margin-block-end: 8px;
}

.hero-text {
    margin-block-end: 25px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}



/* 
    ABOUT

*/


.abs-img {
    display: none;
}

.about {
    padding-block-start: 120px;
}

.about-banner {
    background-color: var(--independence);
    border-radius: var(--radius-10);
    margin-block-end: 30px;
}

.about-banner > .img-cover {
    border-radius: inherit;
}

.about :is(.section-title, .section-subtitle, .section-text) {
    text-align: left;
}

.about :is(.section-title, .section-text) {
    margin-block-end: 30px;
}

/* 
    Modal section
*/


.modal, .modalGallery {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.modal-content, .modal-content-gallery {
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 70%;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image, .modal-gallery {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    transition: color 0.3s;
}

.close:hover {
    color: #f00;
}


/* 
    
    Services 

*/


.services-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.services-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.img-services {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    object-fit: cover;
}

.services-content:hover .img-services {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.img-services.active {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.services-title {
    margin-top: 20px;
    font-size: 2.2rem;
    font-weight: bold;
}

.services-text {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

/* 

Gallery 



*/

.section.gallery {
    background-color: #D2B48C;
    padding: 30px;
    margin: 50px 0;
}



.gallery-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.item-gallery {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    cursor: pointer;
}

.img-gallery {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}



.gallery-item-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.gallery-description {
    text-align: center;
    width: 50%;
    padding: 20px;
    text-align: left;
    
}


/* .gallery-item-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.gallery-item-text {
    font-size: 1rem;
    color: #666;
} */

.item img {
    width: 465px;
    height: 620px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.item img:hover{
    transform: scale(1.05);
}



/* 

    gallery-Modal 
    
*/


.close-gallery {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    transition: color 0.3s;
}

.close-gallery:hover {
    color: #f00;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}

button.prev { left: 20px; }
button.next { right: 20px; }





/* 
    CONTACT

*/

.contact-card {
    background-color: #D2B48C;
    padding: 50px 25px;
    border-radius: var(--radius-20);
}

.contact .section-title {
    text-align: left;
    margin-block-end: 30px;
}

.contact-form {
    margin-block-end: 50px;
}

.contact-input {
    background-color: #fff;
    color: var(--manatee);
    border-radius: var(--radius-5);
    padding: 15px 25px;
    font-size: var(--fs-5);
    margin-block-end: 15px;
}

.contact-input::placeholder {
    color: inherit;
}

textarea.contact-input {
    resize: vertical;
    min-height: 100px;
    height: 180px;
    max-height: 300px;
}

.btn-submit {
    background-color: var(--orange-soda);
    color: var(--white);
    font-family: var(--ff-barlow);
    /* font-size: var(--fs-5); */
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-5);
    transition: var(--transition-2)
}

.btn-submit:is(:hover, :focus) {
    background-color: #fff;
    color: var(--black);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item:not(:last-child) {
    margin-block-end: 20px;
}

.contact-icon {
    background-color: var(--glaucous);
    font-size: 2.4rem;
    padding: 20px;
    border-radius: 50%;
}

.contact-item-title {
    color: var(--white);
    font-family: var(--ff-barlow);
    font-size: var(--fs-4);
    font-weight: var(--fw-600);
}

.contact-item-link {
    transition: var(--transition-1);
}

.contact-item-link:not(address):is(:hover, :focus) {
    color: var(--white);
}


/* 
    FOOTER
*/

.footer {
    background-color: var(--independence);
    color: #fff;
    padding-block: 60px;
}

.copyright {
    max-width: max-content;
    margin-inline: auto;
    margin-block-end: 10px;
}

.copiright-link {
    display: inline-block;
    transition: var(--transition-2);
    font-weight: var(--fw-600);
}

.copyright-link:is(:hover, :focus) {
    color: #fff;
}

.footer-list {
    max-width: max-content;
    margin-inline: auto;
}

.footer-list * {
    display: inline-block;
}

.footer-list > li:not(:last-child) {
    margin-inline-end: 40px;
}

.footer-link {
    transition: var(--transition-2);
}

.footer-link:is(:hover, :focus) {
    color: #fff;
}



/* 
    BACK TO TOP
*/


.back-to-top {
    color: #fff;
    font-size: 1.3rem;
    position: fixed;
    bottom: 160px;
    right: -30px;
    transform: rotate(0.25turn);
    opacity: 0;
    visibility: var(--transition-2);
    z-index: 1;
}

.back-to-top.active {
    right: -5px;
    opacity: 1;
    visibility: visible;
}

.back-to-top::after {
    content: "";
    position: absolute;
    top: 10px;
    left: calc(100% + 7px);
    width: 100px;
    height: 1px;
    background-color: #fff;
}


/* 
    MEDIA QUERIES

*/

/*
  responsive for larger than 992px screen
 */


 @media(min-width: 992px) {

    /* 
        CUSTOM PROPERTY
    */

    :root {

        /* 
            TYPOGRAPHY
        */

        --fs-1: 6.4rem;
        --fs-2: 3.5rem;
        --fs-3: 3.6rem;

        /* 
            spacing
        
        */

        --section-padding: 80px;
    }


    /* REUSED STYLE */

    .container {
        max-width: 1050px;
        margin-inline: auto;
    }

    /* 
        HEADER
    */

    .nav-toggle-btn {
        display: none;
    }

    .header,
    .header.nav-active {
        background-color: transparent;
        box-shadow: none;
        height: unset;
        padding-block: 30px;
    }

    .header.active {
        background-color: var(--minion-yellow);
        box-shadow: var(--shadow);
        padding-block: 20px;
    }

    .navbar {
        all: unset;
    }

    .navbar-list {
        display: flex;
        align-items: center;
        gap: 30px;
    } 

    .navbar .btn {
        margin-block-start: 0;
        --padding: 7px 30px;
    }


    /* 
        HERO - HOME
    
    */

    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .hero-content {
        text-align: left;
    }

    .btn-group {
        justify-content: flex-start;
    }

    .hero-title span {
        font-size: 3rem;
    }

    .hero-title {
        --fs-5: 2.2rem;
        margin-block-end: 25px;
    }

    .hero-text {
        margin-block-end: 25px;
        font-size: var(--fs-5);
    }

    .hero-banner {
        position: relative;
        margin-block-end: 0;
        order: 1;
        width: 340px;
        height: 390px;
        margin-inline: 0;
        margin-inline-start: auto;
    }    


    .elem {
        position: absolute;
        display: flex;
        align-items: center;
        gap: 10px;
        background-color: var(--glaucous);
        border-radius: var(--radius-10);
        padding: 20px;
    }

    .elem-1 {
        top: 20px;
        left: -130px;
    }

    .elem-1 .elem-title {
        color: var(--independence);
    }

    .elem-2 {
        bottom: -20px;
        right: -80px;
    }

    .elem-2 .elem-title {
        color: var(--independence);
    }

    .elem-title {
        font-size: 4.5rem;
        line-height: 1.1;
    }

    .elem-text {
        max-width: 10ch;
        color: var(--black);
        font-weight: var(--fw-700);
        line-height: 1.1;
    }


    /* 
        ABOUT
    */

    .about {
        padding-block: 180px;
    }

    .about .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 80px;
    }

    .about-banner {
        position: relative;
        margin-block-end: 0;
    }

    .abs-img,
    .abs-icon {
        display: block;
        position: absolute;
    }

    .abs-img {
        width: 250px;
        height: 250px;
        object-fit: cover;
        border-radius: inherit;
        bottom: -150px;
        left: -100px;
    }

   
    /*
    
    modal
    
    */

    /* modal-image in modal change a height and width it's working*/

    .modal-content {
        max-width: 60%; 
        max-height: 80vh;   
    }

    .modal-image {
        max-width: 50%; 
        object-fit: contain; 
    }


    /* 
        CONTACT
    */


    .contact-card { 
        padding: 100px; 
    }

    .contact .wrapper {
        display: grid;
        grid-template-columns: 1fr  1fr;
        gap: 80px;
    }

    .contact-form {
        margin-block-end: 0;
    }

    .contact-item {
        gap: 25px;
    }

    .contact-icon {
        padding: 30px;
    }

    /* 
        FOOTER
    
    */


    .footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .copyright,
    .footer-list {
        margin-inline: 0;
    }
 }

 @media (max-width: 620px) {
    .item-gallery {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .img-gallery,
    .gallery-description {
        width: 100%;
    }


}

