/*1. GENEL SIFIRLAMA VE TEMEL STİLLER*/

body {
    font-family: "Roboto", Arial, sans-serif;
    color: #2e2f42;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
}

h1,
h2,
h3,
p {
    margin: 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/*2. LOGO STİLLERİ*/

.logo,
.footer-logo {
    font-weight: 700;
    font-family: "Raleway", sans-serif;
    text-decoration: none;
    font-size: 18px;
}

.logo span:first-child,
.footer-logo span:first-child {
    color: #4d5ae5;
}

.logo span:last-child {
    color: #2e2f42;
}

.footer-logo span:last-child {
    color: #f4f4fd;
}

/*3. HEADER (Başlık) ve NAVİGASYON STİLLERİ*/

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #e7e9fc;
    padding: 24px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus {
    color: #404bbf;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 4px;
    background-color: #404bbf;
    border-radius: 2px;
}

.nav-link.active {
    color: #404bbf;
}

.contact {
    display: flex;
    gap: 40px;
}

.contact a {
    font-size: 16px;
    color: #434455;
    text-decoration: none;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact a:hover,
.contact a:focus {
    color: #404bbf;
}

/*4. HERO (Ana Başlık) VE BUTON STİLLERİ*/

.head {
    background: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url("../images/people-office.jpg");
    max-width: 1440px;
    height: 600px;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.head h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.07;
    margin-bottom: 30px;
}

.button,
.modal-button-input {
    background-color: #4d5ae5;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover,
.button:focus,
.modal-button-input:hover,
.modal-button-input:focus {
    background-color: #404bbf;
}


/*5. STUDIO (ÖZELLİKLER) BÖLÜMÜ STİLLERİ*/

.Studio.Section {
    padding: 120px 0;
}

.Studio-list {
    display: flex;
    gap: 24px;
}

.Studio-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.studio-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 264px;
    height: 112px;
    background-color: #f4f4fd;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 2px solid black;
}

.studio-icon svg {
    width: 64px;
    height: 64px;
    fill: #4d5ae5;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.Studio-item h3 {
    font-size: 20px;
    font-weight: 500;
}

.Studio-item p {
    font-size: 16px;
    color: #434455;
}


/*6. TEAM (EKİP) BÖLÜMÜ STİLLERİ*/

.team {
    background-color: #f4f4fd;
    padding: 120px 0;
}

.team h2,
.portfolio h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.11;
    margin-bottom: 72px;
}

.teams {
    display: flex;
    gap: 24px;
}

.teamss {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08),
        0 1px 3px rgba(46, 47, 66, 0.16),
        0 1px 6px rgba(46, 47, 66, 0.08);
    text-align: center;
    padding-bottom: 32px;
    flex: 1;
}

.teamss h3 {
    margin-top: 16px;
    font-size: 20px;
    font-weight: 500;
}

.teamss p {
    font-size: 16px;
    color: #434455;
    margin-bottom: 16px;
}


.social-list {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4D5AE5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-list a:hover,
.social-list a:focus {
    background: #31D0AA;
}

.social-list svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* 7. PORTFOLIO (ÇALIŞMALAR) BÖLÜMÜ STİLLERİ*/

.portfolio {
    padding: 120px 0;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.portfolio-item {
    width: 360px;
    background: #fff;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08),
        0 1px 3px rgba(46, 47, 66, 0.16),
        0 1px 6px rgba(46, 47, 66, 0.08);
}

.portfolio-item .text-box {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(77, 90, 229, 0.9);
    color: #f4f4fd;
    padding: 40px 32px;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .overlay {
    transform: translateY(0);
}

.portfolio-item h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

/*8. FOOTER (Alt Bilgi) STİLLERİ*/

.footer {
    background: #2e2f42;
    padding: 100px 0;
}

.footer-social h3,
.footer-form h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 16px;
    display: block;
}

.footer-container {
    display: flex;
    align-items: baseline;
    gap: 72px;
}

.footer-logo {
    width: 264px;
}

.footer p {
    max-width: 264px;
    font-size: 16px;
    color: #f4f4fd;
    margin-top: 16px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-social-list {
    display: flex;
    gap: 16px;
    margin-top: 0;
}

.footer-social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4d5ae5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-list a:hover,
.footer-social-list a:focus {
    background: #31d0aa;
}

.footer-social-list svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    color: #f4f4fd;
}

.footer-form-container {
    display: flex;
    gap: 24px;
    position: relative;
}

.footer-button-input {
    display: flex;
    padding: 8px 64px 8px 24px;
    background-color: #4d5ae5;
    outline: none;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.button-icon {
    position: absolute;
    top: 10px;
    right: 24px;
}

.footer-form-input {
    border: 1px solid #ffffff;
    width: 264px;
    height: 40px;
    padding-left: 16px;
    border-radius: 4px;
    outline: none;
    background-color: #2e2f42;
}

.footer-form-input::placeholder {
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #ffffff;
}

/*9. MODAL VE FORM STİLLERİ*/

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: #fcfcfc;
    width: 408px;
    min-height: 584px;
    padding: 72px 24px 24px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12),
        0 2px 1px 0 rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    position: relative;

}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    background-color: #e7e9fc;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    fill: #2e2f42;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    background-color: #404bbf;
    border-color: #404bbf;
}

.modal-close-btn svg {
    fill: #2e2f42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn:hover svg,
.modal-close-btn:focus svg {
    fill: #ffffff;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.form-title {
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}

.modal-form-input,
.modal-form-textarea {
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    outline: none;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input {
    height: 40px;
    padding-left: 38px;
}

.form-icon {
    position: absolute;
    top: 32px;
    left: 19px;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-form-input-wrapper,
.modal-form-textarea-container {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 4px;
}

.form-label,
.modal-form-textarea::placeholder,
.modal-form-label,
.modal-form-input::placeholder {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
}

.modal-form-textarea-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-form-textarea {
    width: 360px;
    height: 120px;
    padding-left: 16px;
    padding-top: 8px;
}

.modal-form-input:focus,
.modal-form-textarea:focus {
    border-color: #4d5ae5;
}

.modal-form-input:focus+.form-icon {
    fill: #4d5ae5;
}

.terms-link {
    text-decoration: underline;
    color: #4d5ae5;
}

.checkbox-container,
.modal-form-label {
    margin-top: 16px;
    align-items: center;
    display: flex;
    gap: 8px;
}

.modal-form-input-checkbox {
    display: none;
}

.modal-form-input-checkbox+.modal-form-label {
    display: flex;
    position: relative;
    cursor: pointer;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
}

.modal-form-input-checkbox:checked+.modal-form-label {
    background-color: #4d5ae5;
    border-color: #4d5ae5;
}

.checkbox-icon {
    fill: transparent;
}

.modal-form-input-checkbox+.modal-form-label .checkbox-icon {
    display: flex;
    position: absolute;
    inset: 3px 2px;
    width: 10px;
    height: 8px;
    fill: white;
}

.modal-button-input {
    width: 169px;
    height: 56px;
    padding: 16px 32px;
    margin: 24px 95px;
    margin-bottom: 0;
    cursor: pointer;
}

/*10. MEDIA QUERIES - MOBİL STİLLER (0px - 767px)*/

@media screen and (max-width: 767px) {

    .nav,
    .contact {
        display: none;
    }

    .Studio-list {
        flex-direction: column;
        gap: 72px;
        justify-content: center;
    }

    .Studio-item {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .studio-icon {
        display: none;
    }

    .Studio-item h3 {
        font-size: 36px;
        font-weight: 700;
        line-height: 1.11;
        margin-bottom: 8px;
    }

    .Studio-item p {
        font-weight: 500;
    }

    .teams {
        flex-direction: column;
        gap: 64px;
        align-items: center;
    }

    .teamss {
        width: 100%;
        max-width: 264px;
    }

    .social-list {
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 72px;
    }

    .footer-social {
        align-items: center;
    }

    .footer-social h3,
    .footer-form h3 {
        text-align: center;
    }

    .footer-form {
        align-items: center;
        padding: 0;
    }

    .footer-form-container {
        flex-direction: column;
        gap: 16px;
        justify-content: center;
    }

    .footer-form-input {
        width: 288px;
        margin: 0 auto;
    }

    .footer-button-input {
        width: 165px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 32px;
    }

    .button-icon {
        position: static;
        width: 24px;
        height: 24px;
        margin-left: 8px;
        top: auto;
        right: auto;
    }
}

@media screen and (max-width: 767px) and (min-width: 320px) {

    .modal-content {
        width: 408px;
        min-height: 584px;
        padding: 72px 24px 24px;
    }

    .modal-form-textarea {
        width: 100%;
    }

    .modal-button-input {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .mobile-menu-button {
        display: block;
        cursor: pointer;
    }

    .mobile-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 24px 24px 16px 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #mobile-menu-toggle:checked~.mobile-modal {
        opacity: 1;
        visibility: visible;
    }

    #mobile-menu-toggle:checked~.mobile-modal .mobile-menu {
        transform: translateX(0);
    }

    .mobile-nav-menu li a {
        display: block;
        padding: 5px 0;
        font-size: 36px;
        line-height: 40px;
        letter-spacing: 2%;
        color: #212121;
        text-decoration: none;
        top: 72px;
        left: 16px;
        gap: 40px;
    }

    .contact-mobile {
        padding-top: 200px;
        width: 193px;
        height: 72px;
    }

    .contact-mobile a {
        display: block;
        text-decoration: none;
        font-size: 20px;
        line-height: 24px;
        letter-spacing: 2%;
        color: #757575;
    }

    .contact-mobile a:first-child {
        color: #2196F3;
        font-size: 20px;
    }

    .close-menu {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .form-title {
        align-items: center;
    }

    .modal-form-input-container {
        align-items: center;
    }

    .modal-form-input-wrapper,
    .modal-form-textarea-container {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .head {
        background: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url("../images/Dark-bg-mob-2x.jpg");
    }
}


/*11. MEDIA QUERIES - TABLET VE MASAÜSTÜ STİLLERİ 768px*/

@media screen and (min-width: 768px) {

    .mobile-menu-button,
    #mobile-menu-toggle,
    .mobile-modal {
        display: none;
    }

    .nav,
    .contact {
        display: flex;
        align-items: center;
    }

    .header-container {
        justify-content: flex-start;
        gap: 120px;
    }

    .nav-menu {
        gap: 40px;
    }

    .contact {
        margin-left: auto;
        gap: 40px;
    }

    .body {
        max-width: 768px;
    }

    .head {
        background: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url("../images/people-office.jpg");

    }
}


/*12. MEDIA QUERIES - TABLET ÖZEL STİLLERİ (768px - 1000px)*/

@media screen and (min-width: 768px) and (max-width: 1000px) {
    .teamss img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .container {
        max-width: 800px;
        padding: 0 16px;
    }

    .section {
        padding: 120px 0;
    }

    .contact {
        margin-left: auto;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .head {
        background: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url("../images/Dark-bg-tablet.jpg");
        height: 432px;
    }

   
    .Studio-list {
        flex-wrap: wrap;
        gap: 72px 24px;
        justify-content: center;
    }

    .Studio-item {
        width: calc((100% - 24px) / 2);
        align-items: flex-start;
        text-align: left;
    }

    .Studio-item h3 {
        font-size: 20px;
        font-weight: 500;
    }

    .studio-icon {
        display: none;
    }

    .teams {
        align-items: center;
        gap: 64px 24px;
        flex-direction: row;
        flex-wrap: wrap;
        width: 608px;
        margin: 0 auto;
    }

    .portfolio-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 72px 24px;
    }

    .portfolio-item {
        width: calc((100% - 24px) / 2);
    }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        gap: 72px 24px;
        padding-left: 108px;
    }

    .footer-social h3,
    .footer-form h3 {
        text-align: left;
    }

    .footer-form-container {
        flex-direction: row;
        gap: 24px;
        justify-content: flex-start;
    }

    @media screen and (min-resolution: 192dpi),
    screen and (min-resolution: 2dppx),
    screen and (min-device-pixel-ratio: 2) {
        .head {
            background: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
                url("../images/Dark-bg-tablet.jpg");
        }
    }
}