/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0F172A;
    color: #FFFFFF;
}

.gradient-text {
    background: linear-gradient(135deg, #00E5A8, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

img,
iframe {
    max-width: 100%;
}

/* ================= CONTACT HERO ================= */

.contact-hero {
    padding: 160px 60px 100px;
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #0F172A, #122D35);
}

/* RIGHT GLOW */

.contact-hero::before {
    content: "";
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(
        circle,
        rgba(0, 229, 168, 0.22) 0%,
        rgba(0, 229, 168, 0.08) 40%,
        transparent 75%
    );
    top: -350px;
    right: -350px;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

/* LEFT GLOW */

.contact-hero::after {
    content: "";
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(
        circle,
        rgba(0, 229, 168, 0.18) 0%,
        rgba(0, 229, 168, 0.06) 40%,
        transparent 75%
    );
    bottom: -450px;
    left: -350px;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
}

/* HERO TEXT */

.contact-hero-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-hero-text h5 {
    color: #00E5A8;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.contact-hero h1 {
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.25;
    color: #FFFFFF;
    overflow-wrap: break-word;
    margin: 0 0 20px;
}

.contact-hero p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #FFFFFF;
}

/* ================= GLASS CARD ================= */

.glass-card {
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* ================= CONTACT SECTION ================= */

.contact {
    padding: 100px 60px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #0F172A, #102A34);
}

/* RIGHT GLOW */

.contact::before {
    content: "";
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(
        circle,
        rgba(0, 229, 168, 0.20) 0%,
        rgba(0, 229, 168, 0.07) 40%,
        transparent 75%
    );
    top: -350px;
    right: -350px;
    filter: blur(130px);
    pointer-events: none;
    z-index: -1;
}

/* LEFT GLOW */

.contact::after {
    content: "";
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(
        circle,
        rgba(0, 229, 168, 0.18) 0%,
        rgba(0, 229, 168, 0.06) 40%,
        transparent 75%
    );
    bottom: -350px;
    left: -350px;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
}

/* CONTACT CONTAINER */

.contact-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ================= CONTACT INFO ================= */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.info-card {
    width: 100%;
}

.info-card i {
    display: inline-block;
    font-size: 24px;
    color: #00E5A8;
    margin-bottom: 12px;
}

.info-card h3 {
    color: #FFFFFF;
    font-size: 20px;
    margin: 0 0 10px;
}

.info-card p {
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    margin: 0;
}

/* ================= CONTACT FORM ================= */

.contact-form {
    width: 100%;
    min-width: 0;
}

.contact-form h2 {
    margin: 0 0 25px;
    color: #FFFFFF;
    font-size: 28px;
    line-height: 1.3;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

/* INPUT GROUP */

.input-group {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* INPUT AND TEXTAREA */

.input-group input,
.input-group textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

/* INPUT HEIGHT */

.input-group input {
    min-height: 55px;
}

/* TEXTAREA */

.input-group textarea {
    min-height: 130px;
    resize: vertical;
}

/* PLACEHOLDER */

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: transparent;
}

/* FOCUS */

.input-group input:focus,
.input-group textarea:focus {
    border-color: #00E5A8;
    box-shadow: 0 0 15px rgba(0, 229, 168, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* FLOATING LABEL */

.input-group label {
    position: absolute;
    left: 16px;
    top: 17px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    transition:
        top 0.2s ease,
        font-size 0.2s ease,
        color 0.2s ease;
}

/* LABEL WHEN ACTIVE OR FILLED */

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -9px;
    left: 12px;
    padding: 0 6px;
    background: #0F172A;
    color: #00E5A8;
    font-size: 11px;
}

/* ================= SUBMIT BUTTON ================= */

.contact-form .btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 52px;
    margin-top: 5px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #00E5A8, #FFFFFF);
    color: #0F172A;
    border-radius: 50px;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 229, 168, 0.25);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-form .btn-primary:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

/* ================= MAP ================= */

.map {
    width: 100%;
    overflow: hidden;
    background: #0F172A;
    line-height: 0;
}

.map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* ================= DESKTOP HOVER ================= */

@media (hover: hover) and (pointer: fine) {
    .glass-card:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 229, 168, 0.3);
        box-shadow: 0 25px 60px rgba(0, 229, 168, 0.12);
    }

    .contact-form .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(0, 229, 168, 0.35);
    }
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {
    .contact {
        padding: 80px 35px;
    }

    .contact-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .info-card {
        padding: 25px 20px;
    }

    .contact-form {
        width: 100%;
    }

    .map iframe {
        height: 350px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .contact-hero {
        padding: 130px 24px 75px;
    }

    .contact-hero h1 {
        font-size: clamp(30px, 6vw, 40px);
    }

    .contact-hero p {
        font-size: 16px;
    }

    .contact {
        padding: 65px 24px;
    }

    .contact-info {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .info-card {
        padding: 25px;
    }

    .contact-form {
        padding: 28px 24px;
    }

    .contact-form h2 {
        font-size: 25px;
    }

    .contact-form form {
        gap: 20px;
    }

    .map iframe {
        height: 320px;
    }

    .contact-hero::before,
    .contact-hero::after,
    .contact::before,
    .contact::after {
        filter: blur(90px);
    }
}

/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {
    .contact-hero {
        padding: 115px 18px 60px;
    }

    .contact-hero-text {
        padding: 25px 18px;
    }

    .contact-hero-text h5 {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .contact-hero h1 {
        font-size: clamp(28px, 8vw, 35px);
        line-height: 1.25;
    }

    .contact-hero p {
        font-size: 14px;
        line-height: 1.8;
    }

    .contact {
        padding: 55px 18px;
    }

    .contact-container {
        gap: 25px;
    }

    .glass-card {
        border-radius: 18px;
    }

    .info-card {
        padding: 23px 20px;
    }

    .info-card h3 {
        font-size: 18px;
    }

    .info-card p {
        font-size: 14px;
    }

    .contact-form {
        padding: 25px 18px;
    }

    .contact-form h2 {
        font-size: 23px;
    }

    .input-group input,
    .input-group textarea {
        padding: 14px;
        font-size: 14px;
    }

    .input-group label {
        left: 14px;
        top: 15px;
        font-size: 13px;
    }

    .input-group input:focus + label,
    .input-group input:not(:placeholder-shown) + label,
    .input-group textarea:focus + label,
    .input-group textarea:not(:placeholder-shown) + label {
        left: 10px;
        top: -8px;
        font-size: 11px;
    }

    .contact-form .btn-primary {
        font-size: 15px;
    }

    .map iframe {
        height: 280px;
    }

    .contact-hero::before,
    .contact-hero::after,
    .contact::before,
    .contact::after {
        filter: blur(70px);
    }
}

/* ================= EXTRA SMALL MOBILE ================= */

@media (max-width: 360px) {
    .contact-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .contact-hero-text {
        padding: 22px 14px;
    }

    .contact-hero h1 {
        font-size: 27px;
    }

    .contact-hero p {
        font-size: 13px;
    }

    .contact {
        padding-left: 14px;
        padding-right: 14px;
    }

    .contact-form {
        padding: 22px 14px;
    }

    .info-card {
        padding: 20px 16px;
    }

    .input-group input,
    .input-group textarea {
        padding: 13px 12px;
    }

    .input-group label {
        left: 12px;
    }
}


/* CONTACT EMAIL LINK */
.info-card p a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease;
}


/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
