@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--family);
}

body {
    background-color: var(--bg-color);
    color: var(--main-text-color);
}

:root {
    /* color */
    --yellow-text-color: #FEFE00;
    --bg-color: #000;
    --main-text-color: #fff;

    /* typography */
    --family: "Montserrat";
    --fs-xx-small: 13px;
    --fs-x-small: 15px;
    --fs-small: 16px;
    --fs-medium: 20px;
    --fs-large: 25px;
    --fs-x-large: 32px;
    --fs-xx-large: 40px;

    /* borders */
    --radius: 1rem;
}

/* navigation */

.navbar {
    background: var(--bg-color);
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar_container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0;
    padding: 0 2rem;
}   

.logo {
    padding-top: 15px;
}

#navbar_logo {
    font-size: var(--fs-xx-large);
    font-weight: 700;
    color: var(--yellow-text-color);
    text-decoration: none;
}

#navbar_text {
    font-size: var(--fs-xx-small);
    color: var(--main-text-color);
    text-align: right;
    margin-top: -7px;
}

.navbar_menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar_links {
    color: var(--main-text-color);
    font-size: var(--fs-small);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar_links:hover {
    color: var(--yellow-text-color);
    transition: all 1.5s;
    cursor: pointer;
}

.line {
    width: 100%;
    height: 1.5px;
    background-color: var(--yellow-text-color);
}

@media screen and (max-width: 960px) {
    .navbar_container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
        background-color: var(--bg-color);
    }
    
    .navbar_menu {
        display: grid;
        grid-template-columns: auto;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0; 
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
        background: var(--bg-color);
    }

    .navbar_menu.active {
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 100%;
        gap: 0;
        font-size: 1.6rem;
    }

    #navbar_logo {
        padding-left: 1.5rem;
        font-size: var(--fs-x-large);
    }

    .navbar_toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: #fff;
    }

    .navbar_items {
        width: 100%;
    }

    .navbar_links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
        background-color: var(--bg-color);
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar_toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
       transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
     }

    .main_sections {
        margin: 5rem 1rem 2rem 1rem;
        display: grid;
        gap: 2rem;
    }

    .line {
        height: 1.5px;
        background-color: var(--yellow-text-color);
    }
    .section_name {
        font-size: 23px;
        font-weight: 500;
        color: var(--yellow-text-color);
    }

    .content_container{
        padding: 2rem 0;
        display: grid;
        gap: 6rem;
        
    }

    .video_block {
        display: grid;
        place-items: center;
    }

    .photo_block {
        display: grid;
        place-items: center;
    }

    .video_block-content {
        aspect-ratio: 16/9;
        width: 100%;
    }

    .video_block-inner {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .photo_block-inner {
        width: 100%;
        height: 100%;
    }

    .photo_item {
        width: 100%;
        aspect-ratio: 16/9;
    }
    .content_discription {
        padding-top: 1rem;
        display: grid;
        gap: 0.5rem;
    }

    .info {
        font-size: var(--fs-x-small);
    }
    .title {
        font-size: var(--fs-small);
        font-weight: 500;
    }

    .video_button {
        position: absolute;
        display: flex;
        width: 100%;
        height: 100%;
        background-image: url("/Collaba/img/icons/play_button_1.png");
        background-color: #0000005e;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        top: 0;
        left: 0;
        border: none;   
    }

    #yellow {
        color: var(--yellow-text-color);
    }

    .text_block {
        font-size: var(--fs-small);
    }
    .inner_section-text {
        display: grid;
        gap: 2rem;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: var(--fs-medium);
    }

    .inner_section-info {
        display: grid;
        gap: 2rem;
    }

    .contacts_text {
        font-size: var(--fs-medium);
    }

    #contacts {
        color: var(--yellow-text-color);
        font-weight: 500;
    }

    #address {
        font-size: var(--fs-medium);
        color: #fefe00b3;
    }

    #tg_button {
        width: 2.5rem;
        height: 2.5rem;
        background-image: url("/Collaba/img/icons/tg_button.png");
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
    }

    #wa_button {
        width: 2.5rem;
        height: 2.5rem;
        background-image: url("/Collaba/img/icons/wa_button.png");
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
    }

    #yt_button {
        width: 2.5rem;
        height: 2.5rem;
        background-image: url("/Collaba/img/icons/youtube_button.jpg");
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
    }

    #ig_button {
        width: 2.5rem;
        height: 2.5rem;
        background-image: url("/Collaba/img/icons/ig_button.jpg");
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
    }
    
    .links {
        display: flex;
        gap: 3rem;
        align-items: center;
        justify-content: center;
        margin-top: 2rem;
    }

    .footer_container {
        margin: 3rem 1rem 2rem 1rem;
        align-items: center;
        justify-content: center;
    }
    #footer_text {
        text-align: center;
        color: var(--yellow-text-color);
    }

    .modal-overlay {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.556);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50%;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }
    
    .modal_container {
        margin-top: 50vh;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.556);
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        
    
    }
    
    .modal_content {
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .modal_video {
        width: 100%;
        aspect-ratio: 16/9;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .iframe_video {
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    .close_btn {
        width: 100%;
        text-align: right;
        padding-top: 1rem;
    }
    
    #close_modal{
        background-color: transparent;
        background-image: url("/Collaba/img/icons/close_btn.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
        width: 2rem;
        height: 2rem;
        padding-right: 3rem;    
    }
    
    .modal--visible {
        display: flex;
    }
    
    .modal-overlay--visible {
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease-in-out;
    }
}

@media screen and (min-width: 960px) {
    
    .main_sections {
        margin: 6rem 3rem;
    }

    .section_name {
        color: var(--yellow-text-color);
        font-weight: 500;
        font-size: var(--fs-large);
    }

    .inner_section {
        align-items: center;
        justify-content: center;
        margin-bottom: 3rem;
        margin-top: 3rem;
    }
    .content {
        width: 200px;
    }

    .content_container {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(4, auto);
        row-gap: 3rem;
        margin-top: 3rem;
    }

    .title {
        font-weight: 550;
    }

    .info{
        font-size: var(--fs-small);
    }
    .content {
        width: 20rem;
    }

    .content_discription {
        display: grid;
        margin-top: 3rem;
        gap: 0.5rem;
    }
    .video_block-inner {
        position: relative;
    }
    .video_button {
        position: absolute;
        display: flex;
        width: 100%;
        height: 100%;
        background-image: url("/Collaba/img/icons/play_button_1.png");
        background-color: #0000005e;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        top: 0;
        left: 0;
        border: none;   
    }

    .video_block {
        width: 100%;
    }

    .photo_block {
        width: 100%;
    }

    .photo_item {
        width: 100%;
    }

    .video_block-content {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .inner_section-text {
        margin: 3rem 0;
        display: grid;
        gap: 2rem;
    }

    .text_block {
        font-size: var(--fs-medium);
        text-align: center;
    }

    #yellow {
        color: var(--yellow-text-color);
    }

    .inner_section-info {
        display: grid;
        gap: 2rem;
        margin-top: 3rem;
    }

    .contacts_text {
        padding-top: 2rem;
        font-size: var(--fs-medium);
        text-align: center;
    }

    #address {
        font-size: var(--fs-medium);
        text-align: center;
        color: #fefe00b3;
    }

    #contacts {
        color: var(--yellow-text-color);
        text-align: center;
        font-weight: 500;
    }

    #tg_button {
        width: 2.5rem;
        height: 2.5rem;
        background-image: url("/Collaba/img/icons/tg_button.png");
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
    }

    #wa_button {
        width: 2.5rem;
        height: 2.5rem;
        background-image: url("/Collaba/img/icons/wa_button.png");
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
    }

    #ig_button {
        width: 2.5rem;
        height: 2.5rem;
        background-image: url("/Collaba/img/icons/ig_button.jpg");
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
    }

    #yt_button {
        width: 2.5rem;
        height: 2.5rem;
        background-image: url("/Collaba/img/icons/youtube_button.jpg");
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
    }

    .links {
        display: flex;
        gap: 3rem;
        align-items: center;
        justify-content: center;
        margin-top: 2rem;
    }

    .footer_container {
        margin: 3rem 1rem 2rem 1rem;
        align-items: center;
        justify-content: center;
    }
    #footer_text {
        text-align: center;
        color: var(--yellow-text-color);
    }

    .modal_container {
        width: 100%;
        background-color: rgba(0, 0, 0, 0.556);
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        
    
    }

    .modal-overlay {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.556);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .modal_video {

        aspect-ratio: 16/9;
        align-items: center;
        justify-content: center;
        padding: 5rem 20rem;
    }

    .modal_content {
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        margin-top: 15rem;
    }
    
    .iframe_video {
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    .close_btn {
        width: 100%;
        text-align: right;
    }
    
    #close_modal{
        background-color: transparent;
        background-image: url("/Collaba/img/icons/close_btn.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
        width: 2rem;
        height: 2rem;
        padding-right: 10rem;    
    }

    .modal-overlay--visible {
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease-in-out;
    }
}

