/* =========================================================
   SERKAN ŞİMŞEK // DIGITAL EXPERIENCE
   CONTACT
   FINAL
========================================================= */

.contact {
    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding:
        170px 0 150px;

    overflow: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.contact-background {
    position: absolute;

    inset: 0;

    z-index: -1;

    overflow: hidden;

    pointer-events: none;
}


.contact-background::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 1400px;
    height: 1400px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(199, 154, 61, .055),
            transparent 70%
        );

    filter:
        blur(120px);
}


/* =========================================================
   ORBIT
========================================================= */

.contact-orbit {
    position: absolute;

    right: -250px;
    top: 50%;

    width: 900px;
    height: 900px;

    transform:
        translateY(-50%)
        rotate(25deg);

    border:
        1px solid
        rgba(255, 255, 255, .035);

    border-radius: 50%;

    animation:
        contactOrbit
        42s linear
        infinite;
}


.contact-orbit::before {
    content: "";

    position: absolute;

    left: 50%;
    top: -5px;

    width: 10px;
    height: 10px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        var(--gold-light);

    box-shadow:
        0 0 24px
        rgba(199, 154, 61, .7);
}


.contact-orbit::after {
    content: "";

    position: absolute;

    inset: 90px;

    border:
        1px dashed
        rgba(199, 154, 61, .065);

    border-radius: 50%;
}


@keyframes contactOrbit {

    from {
        transform:
            translateY(-50%)
            rotate(25deg);
    }

    to {
        transform:
            translateY(-50%)
            rotate(385deg);
    }

}


/* =========================================================
   LIGHT
========================================================= */

.contact-light {
    position: absolute;

    right: 6%;
    top: 50%;

    width: 620px;
    height: 620px;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(199, 154, 61, .10),
            rgba(199, 154, 61, .025) 35%,
            transparent 70%
        );

    filter:
        blur(90px);

    animation:
        contactLightPulse
        7s ease-in-out
        infinite;
}


@keyframes contactLightPulse {

    0%,
    100% {
        opacity: .55;

        transform:
            translateY(-50%)
            scale(.9);
    }

    50% {
        opacity: 1;

        transform:
            translateY(-50%)
            scale(1.08);
    }

}


/* =========================================================
   SHELL
========================================================= */

.contact-shell {
    position: relative;

    z-index: 5;
}


/* =========================================================
   LAYOUT
========================================================= */

.contact-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(380px, .85fr);

    align-items: center;

    gap:
        clamp(
            60px,
            8vw,
            140px
        );
}


/* =========================================================
   HEADING WRAP
========================================================= */

.contact-heading-wrap {
    position: relative;
}


/* =========================================================
   SMALL TEXT
========================================================= */

.contact-small {
    margin-bottom: 26px;

    color:
        var(--gold);

    font-family:
        "Outfit",
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* =========================================================
   MAIN HEADING
========================================================= */

.contact-heading {
    margin: 0;

    max-width: 850px;

    font-family:
        "Outfit",
        sans-serif;

    font-size:
        clamp(
            70px,
            8vw,
            150px
        );

    font-weight: 800;

    line-height: .82;

    letter-spacing:
        clamp(
            -7px,
            -.4vw,
            -3px
        );

    text-transform: uppercase;

    color:
        #eeeeee;
}


.contact-heading span,
.contact-heading em {
    display: block;
}


.contact-heading span {
    color: transparent;

    -webkit-text-stroke:
        1px
        rgba(255, 255, 255, .48);
}


.contact-heading em {
    position: relative;

    font-style: normal;

    background:
        linear-gradient(
            90deg,
            #8e6426,
            #f0d18b,
            #c49339,
            #efcf86,
            #79531f
        );

    background-size:
        220% auto;

    -webkit-background-clip:
        text;

    background-clip:
        text;

    -webkit-text-fill-color:
        transparent;

    animation:
        contactGoldText
        9s linear
        infinite;
}


@keyframes contactGoldText {

    from {
        background-position:
            0 center;
    }

    to {
        background-position:
            220% center;
    }

}


/* =========================================================
   HEADING DECORATION
========================================================= */

.contact-heading-wrap::before {
    content: "";

    position: absolute;

    left: -48px;
    top: 8%;

    width: 1px;
    height: 78%;

    opacity: .2;

    background:
        linear-gradient(
            transparent,
            var(--gold),
            transparent
        );
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-content {
    position: relative;

    padding:
        55px;

    border:
        1px solid
        rgba(255, 255, 255, .065);

    border-radius:
        30px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .035),
            rgba(255, 255, 255, .012)
        );

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    box-shadow:
        0 35px 110px
        rgba(0, 0, 0, .5),

        inset 0 1px 0
        rgba(255, 255, 255, .04);

    overflow: hidden;
}


/* =========================================================
   CARD LIGHT
========================================================= */

.contact-content::before {
    content: "";

    position: absolute;

    right: -130px;
    top: -130px;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    background:
        rgba(199, 154, 61, .07);

    filter:
        blur(75px);

    pointer-events: none;
}


/* =========================================================
   CARD SWEEP
========================================================= */

.contact-content::after {
    content: "";

    position: absolute;

    left: -40%;
    top: -30%;

    width: 28%;
    height: 170%;

    transform:
        rotate(20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .045),
            transparent
        );

    opacity: .35;

    animation:
        contactCardSweep
        9s ease-in-out
        infinite;
}


@keyframes contactCardSweep {

    0%,
    70% {
        left: -40%;
    }

    100% {
        left: 140%;
    }

}


/* =========================================================
   TEXT
========================================================= */

.contact-content > p {
    position: relative;

    z-index: 2;

    margin-bottom: 38px;

    color:
        #919191;

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   EMAIL
========================================================= */

.contact-mail {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 84px;

    margin-bottom: 28px;

    padding:
        0 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, .07);

    border-bottom:
        1px solid
        rgba(255, 255, 255, .07);

    transition:
        border-color .4s ease,
        padding .5s var(--ease),
        background .4s ease;
}


.contact-mail span {
    color:
        #d8d8d8;

    font-family:
        "Outfit",
        sans-serif;

    font-size:
        clamp(
            20px,
            2vw,
            30px
        );

    font-weight: 500;

    letter-spacing: -1px;

    transition:
        color .4s ease;
}


.contact-mail strong {
    width: 46px;
    height: 46px;

    flex:
        0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 50%;

    color:
        #686868;

    transition:
        transform .45s var(--ease),
        color .4s ease,
        border-color .4s ease,
        background .4s ease;
}


.contact-mail:hover {
    padding:
        0 12px 0 30px;

    border-color:
        rgba(199, 154, 61, .18);

    background:
        rgba(199, 154, 61, .025);
}


.contact-mail:hover span {
    color:
        var(--gold-light);
}


.contact-mail:hover strong {
    transform:
        rotate(45deg);

    color:
        #070707;

    border-color:
        var(--gold);

    background:
        var(--gold);
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.contact-links {
    position: relative;

    z-index: 2;

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin:
        22px 0 42px;
}


.contact-links a {
    display: inline-flex;

    align-items: center;

    min-height: 44px;

    padding:
        0 17px;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    border-radius:
        100px;

    color:
        #737373;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1.3px;

    transition:
        color .35s ease,
        border-color .35s ease,
        background .35s ease,
        transform .4s var(--ease);
}


.contact-links a:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(199, 154, 61, .30);

    background:
        rgba(199, 154, 61, .045);

    color:
        var(--gold-light);
}


/* =========================================================
   PROJECT BUTTON
========================================================= */

.project-button {
    position: relative;

    z-index: 3;

    width: 180px;
    height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        35px 0 0 auto;

    border-radius: 50%;

    background:
        transparent;

    color:
        var(--white);

    cursor: pointer;

    isolation: isolate;

    transition:
        transform .5s var(--ease);
}


.project-button:hover {
    transform:
        scale(1.07);
}


/* =========================================================
   PROJECT BUTTON RING
========================================================= */

.project-button-ring {
    position: absolute;

    inset: 0;

    z-index: -1;

    border:
        1px solid
        rgba(199, 154, 61, .32);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(199, 154, 61, .10),
            rgba(199, 154, 61, .025) 50%,
            transparent 70%
        );

    box-shadow:
        inset 0 0 35px
        rgba(199, 154, 61, .03);

    transition:
        transform .55s var(--ease),
        border-color .4s ease,
        background .4s ease;
}


.project-button-ring::before {
    content: "";

    position: absolute;

    inset: 13px;

    border:
        1px dashed
        rgba(199, 154, 61, .18);

    border-radius: 50%;

    animation:
        projectRingSpin
        16s linear
        infinite;
}


.project-button-ring::after {
    content: "";

    position: absolute;

    left: 50%;
    top: -4px;

    width: 8px;
    height: 8px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        var(--gold-light);

    box-shadow:
        0 0 18px
        rgba(199, 154, 61, .8);
}


@keyframes projectRingSpin {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }

}


.project-button:hover
.project-button-ring {
    transform:
        scale(.92);

    border-color:
        rgba(199, 154, 61, .75);

    background:
        radial-gradient(
            circle,
            rgba(199, 154, 61, .17),
            rgba(199, 154, 61, .045) 55%,
            transparent 75%
        );
}


/* =========================================================
   PROJECT BUTTON TEXT
========================================================= */

.project-button-text {
    display: flex;

    flex-direction: column;

    align-items: center;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;

    line-height: 1.65;

    color:
        #777;
}


.project-button-text strong {
    color:
        #e6e6e6;

    font-size: 12px;
}


.project-button-arrow {
    position: absolute;

    right: 31px;
    top: 28px;

    color:
        var(--gold);

    font-size: 20px;

    transition:
        transform .45s var(--ease);
}


.project-button:hover
.project-button-arrow {
    transform:
        translate(5px, -5px)
        rotate(45deg);
}


/* =========================================================
   CORNER DETAIL
========================================================= */

.contact-content
.contact-links::before {
    content: "";

    position: absolute;

    left: -34px;
    bottom: -25px;

    width: 30px;
    height: 30px;

    border-left:
        1px solid
        rgba(199, 154, 61, .28);

    border-bottom:
        1px solid
        rgba(199, 154, 61, .28);

    opacity: .45;
}


/* =========================================================
   BOTTOM FADE
========================================================= */

.contact::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 130px;

    pointer-events: none;

    background:
        linear-gradient(
            transparent,
            #030303
        );
}


/* =========================================================
   LAPTOP
========================================================= */

@media
(max-width: 1350px) {

    .contact {
        padding:
            140px 0;
    }

    .contact-layout {
        grid-template-columns:
            1.1fr .9fr;

        gap: 70px;
    }

    .contact-content {
        padding: 42px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 1050px) {

    .contact {
        min-height: auto;

        padding:
            120px 0;
    }

    .contact-layout {
        grid-template-columns:
            1fr;

        gap: 70px;
    }

    .contact-heading {
        max-width: 900px;
    }

    .contact-content {
        max-width: 720px;
    }

    .contact-heading-wrap::before {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media
(max-width: 700px) {

    .contact {
        padding:
            95px 0 100px;
    }

    .contact-layout {
        gap: 45px;
    }

    .contact-heading {
        font-size:
            clamp(
                58px,
                18vw,
                86px
            );

        letter-spacing:
            -4px;
    }

    .contact-content {
        padding:
            30px 23px;

        border-radius:
            23px;
    }

    .contact-content > p {
        margin-bottom: 30px;

        font-size: 14px;

        line-height: 1.75;
    }

    .contact-mail {
        min-height: 72px;

        padding:
            0 5px;
    }

    .contact-mail span {
        max-width:
            calc(100% - 55px);

        overflow-wrap:
            anywhere;

        font-size: 18px;
    }

    .contact-mail strong {
        width: 40px;
        height: 40px;
    }

    .contact-mail:hover {
        padding:
            0 5px;
    }

    .contact-links {
        gap: 8px;

        margin:
            18px 0 30px;
    }

    .contact-links a {
        min-height: 40px;

        padding:
            0 13px;

        font-size: 9px;
    }

    .project-button {
        width: 150px;
        height: 150px;
    }

    .project-button-text {
        font-size: 8px;
    }

    .project-button-text strong {
        font-size: 10px;
    }

    .project-button-arrow {
        right: 25px;
        top: 23px;

        font-size: 17px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media
(prefers-reduced-motion: reduce) {

    .contact-orbit,
    .contact-light,
    .contact-heading em,
    .contact-content::after,
    .project-button-ring::before {
        animation: none !important;
    }

}