@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg-1: #0f0f1e;
    --bg-2: #1f1f3a;
    --accent: #00f7ff;
    --accent-2: #0066ff;
    --text: #ffffff;
    --text-soft: #b8b8d0;
    --card: rgba(31, 31, 58, 0.72);
    --border: rgba(0, 247, 255, 0.2);
    --danger: #ff5f7a;
    --success: #5dffbf;
}

body {
    font-family: "Montserrat", sans-serif;
    background: radial-gradient(circle at 20% 10%, rgba(0, 247, 255, 0.15), transparent 35%),
                linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    color: var(--text);
    min-height: 100vh;
    opacity: 0;
    animation: pageFade 0.9s ease forwards;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    position: fixed;
    width: 90vw;
    top: 0;
    padding: 20px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 15;
}

.logo {
    text-decoration: none;
    color: var(--text);
    font-size: 2rem;
    font-weight: 900;
    font-family: "Orbitron", sans-serif;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 48px;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.25s ease;
}


nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.6s ease;
}

nav a:hover::after {
    width: 100%;
}

.container-contact {
    min-height: 100vh;
    width: min(1200px, 92%);
    margin: 0px auto 40px;
    padding: 100px 0 20px;
    display: grid;
    gap: 28px;
}

.hero {
    text-align: center;
    padding: 26px 14px;
}

.hero-tag {
    display: inline-block;
    color: var(--accent);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2rem, 4.8vw, 3.3rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-soft);
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 28px rgba(0, 247, 255, 0.12);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--accent);
}

.contact-card h2 {
    font-family: "Orbitron", sans-serif;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-card p {
    margin-bottom: 6px;
}

.contact-card small {
    color: var(--text-soft);
}

.form-section {
    background: rgba(10, 10, 23, 0.76);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
}

.form-section h2 {
    font-family: "Orbitron", sans-serif;
    margin-bottom: 18px;
    font-size: 1.3rem;
}

#contactForm {
    display: grid;
    gap: 14px;
}

.input-group {
    display: grid;
    gap: 6px;
}

label {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-soft);
}

.form-input,
.form-textarea {
    width: 100%;
    border: 1px solid rgba(0, 247, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 95, 122, 0.12);
}

.error-message {
    min-height: 16px;
    color: var(--danger);
    font-size: 0.78rem;
}

.btn-submit {
    margin-top: 4px;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    color: #00131a;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-submit:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 10px 24px rgba(0, 247, 255, 0.28);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    min-height: 20px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--danger);
}

footer {
    width: min(1200px, 92%);
    margin: 0 auto 24px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9rem;
}

footer span {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 940px) {
    header {
        width: 94vw;
        padding: 16px 24px;
        flex-direction: column;
        gap: 10px;
    }

    nav {
        gap: 16px;
    }

    .container {
        margin-top: 150px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .form-section {
        padding: 18px;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.92rem;
    }
}
