body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F5F7FA;
    margin: 0;
    padding: 0;
}


/* main styles */

.main {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* main-content */

.main-content {
    background-color: #fff;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
    padding: 50px;
    flex: 1;
    min-width: 300px;
}

.title {
    display: inline;
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    line-height: 27px;
    color: #1B1D1F;
    margin-bottom: 10px;
    cursor: pointer;
    margin-left: 0;
}


/* about styles */

.about {
    margin-bottom: 40px;
    animation: fade 1s ease-in;
}

.about-position {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    color: #1B1D1F;
    margin-bottom: 20px;
}

.about-name {
    font-style: normal;
    font-weight: 700;
    font-size: 45px;
    line-height: 55px;
    color: #1B1D1F;
    margin-bottom: 25px;
    margin-right: 230px;
}

.about-description {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #595959;
    width: 500px;
}


/* project styles */

.projects {
    margin-bottom: 50px;
    margin-left: 0;
    animation: fade 1s ease-in;
}

.projects-list {
    padding: 0;
    margin-left: 25px;
}

.project-item,
.project-bracket {
    font-style: normal;
    font-weight: 800;
    font-size: 14px;
    line-height: 24px;
    color: #1B1D1F;
}

.project,
.project-link,
.href {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #595959;
}

.href {
    display: inline-block;
    width: 300px;
}

.project-link {
    margin-left: 10px;
}


/* work styles */

.work {
    margin-bottom: 45px;
    display: flex;
}

.work-position {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #1B1D1F;
    margin-bottom: 10px;
}

.organization {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #FB6D3A;
}

.period {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #A8A8A8;
    margin-bottom: 10px;
}

.line {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #1B1D1F;
}

.work-list {
    padding: 0;
    margin-left: 15px;
}

.work-list-item {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #595959;
    width: 525px;
}

.work-project {
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #1B1D1F;
    text-decoration: none;
}


/* education styles */

.education {
    margin-bottom: 20px;
}

.education .title,
.form-section .title {
    cursor: text;
}

.education-university {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #FB6D3A;
}

.education-position {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    color: #1B1D1F;
}


/* form sections stile */

.form-section {
    padding-top: 0px;
    position: relative;
}

.form-conteiner {
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 32px;
    padding-bottom: 60px;
    width: 600px;
    margin: auto;
    text-align: center;
    box-sizing: border-box;
}

.form-field-email,
.form-field-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-field-email {
    margin-bottom: 48px;
    margin-top: 24px;
}

.form-field-text {
    margin-bottom: 24px;
}

.form-field-label {
    position: absolute;
    pointer-events: none;
    padding-left: 10px;
    padding-top: 4px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #1B1D1F;
    margin-bottom: 8px;
    transform: translateY(1rem);
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.form-field-input,
.form-field-textarea {
    width: 453px;
    padding-left: 8px;
    padding-right: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    border: none;
    outline: none;
    border-radius: 15px;
    padding: 1em;
    background-color: #ccc;
    box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
    transition: 300ms ease-in-out;
}

.form-field-input{
    height: 60px;
}

.form-field-textarea{
    height: 250px;
    resize: none;
}

.form-field-input:focus,
.form-field-textarea:focus {
    background-color: white;
    transform: scale(1.05);
    box-shadow: 13px 13px 100px #969696,
               -13px -13px 100px #ffffff;
}

.form-button {
    background: #F5F7FA;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    line-height: 24px;
    color: #1B1D1F;
    border: none;
    outline: none;
    padding-top: 12px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 12px;
    transition: box-shadow .15s, transform .15s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 6px 6px 12px #c5c5c5,
        -6px -6px 12px #ffffff;
}

.form-button::before {
    content: '';
    width: 0;
    height: 48px;
    left: 0;
    top: 0;
    position: absolute;
    background-image: linear-gradient(to right, #FB6D3A 0%, #d5a797 100%);
    transition: .5s ease;
    display: flex;
    z-index: -1;
}

.form-button:hover::before {
    width: 144px;
}

.form-button:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

/* sidebar styles */

.sidebar {
    background-color: rgba(30, 41, 57, 1);
    padding: 0px;
    margin-left: 0px;
    width: 100%;
    max-width: 370px;
    flex-shrink: 0;
    overflow-y: auto; /* Дозволяємо прокрутку всередині */
    z-index: 1001;
}

.photo {
    width: 100%;
    max-width: 370px;
    margin-bottom: 50px;
    animation: fade .5s ease-in;
}

.sidebar-title {
    color: #FFFFFF;
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    line-height: 27px;
    margin-bottom: 10px;
}


.tech-skills,
.soft-skills,
.contacts-link {
    margin-left: 40px;
}

.tech-skills,
.soft-skills {
    padding-bottom: 45px;
}

.contact-type {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #FFFFFF;
    margin-right: 10px;
}

.contact-link {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #8b8b8b;
}

.tech-skills-list,
.soft-skills-list {
    color: #FFFFFF;
    padding: 0;
    margin-left: 17px;
}

.tech-skills-item,
.soft-skills-item {
    color: #FB6D3A;
}

.tech-skills-text,
.soft-skills-text {
    color: #FFFFFF;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
}
  
  /* Contacts link */

.contacts-link {
    padding-bottom: 50px;
    position: relative;
    width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
.contacts-button {
    width: 50px;
    height: 50px;
    border: none;
    background-color: #313638;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
  }
  
.icon {
    width: 26px;
    height: 26px;
    padding-left: 12px;
    padding-top: 10px;
    fill: #fff;
  }

.contacts-button:nth-child(1):hover {
    background-color: #0A66C2;
  }
  
.contacts-button:nth-child(2):hover {
    background-color: #181616;
  }
  
 .contacts-button:nth-child(3):hover {
    background-color: #0866FF;
  }
  
.contacts-button:nth-child(4):hover {
    background: linear-gradient(45deg, #833AB4, #FD1D1D, #F56040);
  }

  .contacts-button:nth-child(5):hover {
    background: linear-gradient(45deg,#27A7E7,#229ED9);
  }

/* drop-down list */

details summary {
    list-style: none;
}

details summary::before {
    content: '\21AC';
    transition: transform .4s ease, content .4s ease;
}

details[open] summary::before {
    content: '\21AC';
    transform: scaleX(-1) rotate(90deg);
    display: inline-block;
}

details:not([open]) summary::before {
    transform: scaleX(1) rotate(0deg);
    content: '\21AC';
    display: inline-block;
}

details.desc summary::after {
    content: attr(data-close);
}

details.desc[open] summary::after {
    content: attr(data-open);
}


/* animation */

.reveal {
    position: relative;
    opacity: 0;
}

.reveal.active {
    opacity: 1;
}

.active.company,
.active.education {
    animation: fade-right 1s ease-in;
}

.active.contacts,
.active.tech-skills,
.active.soft-skills,
.active.contacts-link {
    animation: fade-left 1s ease-in;
}

.active.form-section {
    animation: fade 2s ease-in;
}


@keyframes fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-top {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-bottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-left {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

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

@keyframes fade-right {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

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

@media (max-width: 480px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        background: #1E2939;
        color: white;
        padding: 10px 15px;
        cursor: pointer;
        z-index: 1100;
    }
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
        z-index: 900;
    }
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }


    .form-conteiner{
        padding-left: 0;
        width: 350px;
        left: 0px;
    }
    .form-button {
        padding-left: 0px;
    }
    .about-name {
        font-size: 30px;
        line-height: 40px;
        margin-right: 0;
    }
    .about-description {
        width: 100%;
    }
    .projects-list {
        margin-left: 10px;
    }
    .work-list-item {
        width: 100%;
    }
    .form-field-input,
    .form-field-textarea {
        width: 300px;
    }
    .form-button {
        width: 120px;
        padding-left: 0px;
    }

    .reveal.tech-skills,
    .reveal.soft-skills,
    .reveal.contacts-link,
    .reveal.contacts {
        opacity: 1 !important;
        animation: none !important;
    }
    .title {
        font-size: 18px;
    }
    .about-name {
        font-size: 24px;
    }
    .form-button {
        padding-left: 0px;
    }
} 

