/* ================================
   ANIMATED CONTACT SECTION
================================ */

.contact-section {
    position: relative;
    width: 100%;
    padding: 90px 20px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 206, 190, 0.12), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(0, 206, 190, 0.08), transparent 32%),
        linear-gradient(135deg, #1e1f20 0%, #242424 55%, #18191a 100%);
}

.contact-section *,
.contact-section *::before,
.contact-section *::after {
    box-sizing: border-box;
}

.contact-section .contact-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Background motion */

.contact-section .contact-bg-motion {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.contact-section .contact-bg-motion span {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(0, 231, 210, 0.12);
    background: radial-gradient(circle, rgba(0, 231, 210, 0.12), transparent 65%);
    animation: contactFloat 13s ease-in-out infinite;
}

.contact-section .contact-bg-motion span:nth-child(1) {
    top: 8%;
    left: 8%;
}

.contact-section .contact-bg-motion span:nth-child(2) {
    top: 62%;
    left: 48%;
    width: 260px;
    height: 260px;
    animation-duration: 18s;
}

.contact-section .contact-bg-motion span:nth-child(3) {
    top: 20%;
    right: 8%;
    width: 140px;
    height: 140px;
    animation-duration: 15s;
}

@keyframes contactFloat {
    0% {
        opacity: 0.22;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.68;
        transform: translateY(-36px) scale(1.08);
    }

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

/* Header */

.contact-section .contact-head {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.contact-section.in-view .contact-head {
    opacity: 1;
    transform: translateY(0);
}

.contact-section .eyebrow {
    margin: 0 0 10px;
    color: #00e7d2;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-section h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.contact-section h2::first-letter {
    color: #00e7d2;
}

.contact-section .contact-head > p {
    max-width: 620px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.7;
}

/* Layout */

.contact-section .contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
    gap: 70px;
    align-items: center;
}

/* Contact info */

.contact-section .contact-info {
    display: grid;
    gap: 28px;
    opacity: 0;
    transform: translateX(-34px);
    transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.contact-section.in-view .contact-info {
    opacity: 1;
    transform: translateX(0);
}

.contact-section .contact-info-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.contact-section .contact-info-item:hover {
    transform: translateX(8px);
}

.contact-section .contact-icon {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #111;
    background: #00e7d2;
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(0, 231, 210, 0.25);
}

.contact-section .contact-icon::before,
.contact-section .contact-icon::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-color: #00e7d2;
    border-style: solid;
    transition: transform 0.3s ease;
}

.contact-section .contact-icon::before {
    left: -7px;
    top: -7px;
    border-width: 2px 0 0 2px;
}

.contact-section .contact-icon::after {
    right: -7px;
    bottom: -7px;
    border-width: 0 2px 2px 0;
}

.contact-section .contact-info-item:hover .contact-icon::before {
    transform: translate(-3px, -3px);
}

.contact-section .contact-info-item:hover .contact-icon::after {
    transform: translate(3px, 3px);
}

.contact-section .contact-info-item h3 {
    margin: 0 0 6px;
    color: #00e7d2;
    font-size: 15px;
}

.contact-section .contact-info-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.55;
}

/* Social */

.contact-section .contact-social {
    width: fit-content;
    margin-top: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 231, 210, 0.25);
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.contact-section .contact-social:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 231, 210, 0.7);
    background: rgba(0, 231, 210, 0.055);
}

.contact-section .contact-social strong {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.contact-section .contact-social strong::before {
    content: "";
    display: inline-block;
    width: 42px;
    height: 16px;
    background: #00e7d2;
}

.contact-section .contact-social-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.contact-section .contact-social-links a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    border-radius: 50%;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.contact-section .contact-social-links a:hover {
    color: #071313;
    background: #00e7d2;
    transform: translateY(-4px);
}

/* Form */

.contact-section .contact-form {
    position: relative;
    width: 100%;
    max-width: 470px;
    margin-left: auto;
    padding: 42px;
    background: rgba(48, 48, 48, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    opacity: 0;
    transform: translateX(34px);
    transition:
        opacity 0.8s ease 0.18s,
        transform 0.8s ease 0.18s,
        box-shadow 0.35s ease;
}

.contact-section.in-view .contact-form {
    opacity: 1;
    transform: translateX(0);
}

.contact-section .contact-form:hover {
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(0, 231, 210, 0.08),
        inset 0 0 0 1px rgba(0, 231, 210, 0.12);
}

.contact-section .contact-form h3 {
    margin: 0 0 30px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

/* Corner borders */

.contact-section .corner {
    position: absolute;
    width: 88px;
    height: 88px;
    pointer-events: none;
    border-color: #00e7d2;
    border-style: solid;
    transition: transform 0.35s ease;
}

.contact-section .corner-top-left {
    left: -18px;
    top: -18px;
    border-width: 2px 0 0 2px;
}

.contact-section .corner-top-right {
    right: -18px;
    top: -18px;
    border-width: 2px 2px 0 0;
}

.contact-section .corner-bottom-left {
    left: -18px;
    bottom: -18px;
    border-width: 0 0 2px 2px;
}

.contact-section .corner-bottom-right {
    right: -18px;
    bottom: -18px;
    border-width: 0 2px 2px 0;
}

.contact-section .contact-form:hover .corner-top-left {
    transform: translate(-5px, -5px);
}

.contact-section .contact-form:hover .corner-top-right {
    transform: translate(5px, -5px);
}

.contact-section .contact-form:hover .corner-bottom-left {
    transform: translate(-5px, 5px);
}

.contact-section .contact-form:hover .corner-bottom-right {
    transform: translate(5px, 5px);
}

/* Form fields */

.contact-section .form-field {
    position: relative;
    margin-bottom: 22px;
}

.contact-section .form-field input,
.contact-section .form-field select,
.contact-section .form-field textarea {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-bottom: 1px solid rgba(0, 231, 210, 0.75);
    outline: none;
    padding: 0 2px 10px;
    color: #ffffff;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 0;
    box-shadow: none;
}

.contact-section .form-field textarea {
    min-height: 100px;
    padding-top: 8px;
    resize: none;
}

.contact-section .form-field select {
    appearance: auto;
    color: rgba(255, 255, 255, 0.78);
}

.contact-section .form-field select option {
    color: #111;
    background: #ffffff;
}

.contact-section .form-field input::placeholder,
.contact-section .form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section .form-field span {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #00e7d2;
    box-shadow: 0 0 16px rgba(0, 231, 210, 0.7);
    transition: width 0.35s ease;
}

.contact-section .form-field input:focus + span,
.contact-section .form-field select:focus + span,
.contact-section .form-field textarea:focus + span {
    width: 100%;
}

.contact-section .form-field input:focus,
.contact-section .form-field select:focus,
.contact-section .form-field textarea:focus {
    border-bottom-color: #00e7d2;
    background: transparent;
}

.contact-section .form-field input:-webkit-autofill,
.contact-section .form-field input:-webkit-autofill:hover,
.contact-section .form-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s;
}

/* Button */

.contact-section .contact-btn {
    position: relative;
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    color: #071313;
    background: #00e7d2;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.contact-section .contact-btn::before {
    content: "";
    position: absolute;
    top: -45%;
    left: -70%;
    width: 55%;
    height: 190%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: rotate(22deg);
    transition: left 0.65s ease;
}

.contact-section .contact-btn span {
    position: relative;
    z-index: 2;
}

.contact-section .contact-btn:hover {
    transform: translateY(-3px);
    background: #20ffe9;
    box-shadow: 0 18px 40px rgba(0, 231, 210, 0.22);
}

.contact-section .contact-btn:hover::before {
    left: 120%;
}

.contact-section .contact-form-status {
    min-height: 20px;
    margin: 14px 0 0;
    color: #00e7d2;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 900px) {
    .contact-section {
        padding: 78px 18px;
    }

    .contact-section .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-section .contact-form {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .contact-section {
        padding: 66px 14px;
    }

    .contact-section h2 {
        font-size: 34px;
    }

    .contact-section .contact-head {
        margin-bottom: 40px;
    }

    .contact-section .contact-info {
        gap: 24px;
    }

    .contact-section .contact-info-item {
        grid-template-columns: 48px 1fr;
        gap: 14px;
    }

    .contact-section .contact-form {
        padding: 30px 22px;
    }

    .contact-section .contact-form h3 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .contact-section .form-field {
        margin-bottom: 20px;
    }

    .contact-section .corner {
        width: 62px;
        height: 62px;
    }

    .contact-section .contact-social {
        width: 100%;
    }

    .contact-section .contact-social-links a {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-section *,
    .contact-section *::before,
    .contact-section *::after {
        animation: none !important;
        transition: none !important;
    }

    .contact-section .contact-head,
    .contact-section .contact-info,
    .contact-section .contact-form {
        opacity: 1;
        transform: none;
    }
}