/* ============================================================
   contact.css  —  Contact section, social links, form, footer
   ============================================================ */

/* ── Section wrapper ── */
.contact-recreated {
    position: relative;
    padding: 7rem 1.5rem;
    background: linear-gradient(135deg, transparent 0%, rgba(138,43,226,0.02) 100%);
}

.contact-container {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Two-column layout ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: repeat(5, 1fr); }
    .contact-info-col  { grid-column: span 2; }
    .contact-form-col  { grid-column: span 3; }
}

/* ── Left column: description ── */
.contact-description h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}
.contact-description p {
    color: #9ca3af;
    margin-bottom: 2.2rem;
    line-height: 1.65;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
}

/* ── Connect label ── */
.connect-label-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #4b5563;
    letter-spacing: 0.125em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

/* ── Social links grid ── */
.social-links {
    display: flex;
    gap: 2.2rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}
.social-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0;
    width: fit-content;
    background: transparent;
    border: none;
    color: #9ca3af;
    text-decoration: none;
    transition: all 300ms ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
}
.social-link:hover { color: #ffffff; }

/* ── Icon box ── */
.sl-icon-box {
    width: 2.38rem; height: 2.38rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 300ms ease;
}
.social-link:hover .sl-icon-box { border-color: rgba(255,255,255,0.4); }

.social-icon { width: 16px; height: 16px; transition: all 300ms ease; }

/* ── Social icon brand colours on hover ── */
.social-link.sl-whatsapp    .social-icon { color: #25d366; }
.social-link.sl-linkedin-alt .social-icon { color: #0077b5; }
.social-link.sl-facebook    .social-icon { color: #1877f2; }
.social-link.sl-twitter-alt .social-icon { color: #1da1f2; }
.social-link.sl-github      .social-icon { color: #e2e8f0; }
.social-link.sl-youtube     .social-icon { color: #ff0000; }
.social-link.sl-instagram   .social-icon { color: #e1306c; }
.social-link.sl-email       .social-icon { color: #00f5ff; }

.social-link.sl-whatsapp:hover    .social-icon { transform: scale(1.1); }
.social-link.sl-linkedin-alt:hover .social-icon { transform: scale(1.1); }
.social-link.sl-facebook:hover    .social-icon { transform: scale(1.1); }
.social-link.sl-twitter-alt:hover  .social-icon { transform: scale(1.1); }
.social-link.sl-youtube:hover     .social-icon { transform: scale(1.1); }
.social-link.sl-instagram:hover   .social-icon { transform: scale(1.1); }
.social-link.sl-github:hover      .social-icon { transform: scale(1.1); }
.social-link.sl-email:hover       .social-icon { transform: scale(1.1); }

/* ── Contact form ── */
.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: flex; gap: 1.3rem; align-items: end; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.form-input, .form-textarea {
    padding: 0.97rem;
    background: rgba(0,217,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 6.3px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(0,217,255,0.1);
    box-shadow: 0 0 20px rgba(0,217,255,0.2);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ── Submit button ── */
.submit-btn {
    width: 100%;
    padding: 0.97rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    border-radius: 6.3px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.submit-btn:hover { box-shadow: 0 0 40px rgba(0,217,255,0.5); transform: translateY(-3px); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Contact form wrapper (prevents layout shift during state transitions) ── */
.contact-form-wrapper {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}
#contact-form.hidden { display: none; }
.contact-form-col { position: relative; }

/* ── Spinning loader ── */
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loader { animation: spin 1s linear infinite; }

/* ── Success state ── */
.form-success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 2.5rem 0;
    animation: successFadeIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes successFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.success-icon-box {
    width: 4rem; height: 4rem;
    background: rgba(0,245,255,0.05);
    border: 2px solid #00f5ff;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 30px rgba(0,245,255,0.3);
    color: #00f5ff;
}
.success-send-icon { width: 14px; height: 14px; }

.success-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.success-description {
    color: #9ca3af;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    max-width: 300px;
    line-height: 1.5;
}
.send-another-btn {
    margin-top: 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,245,255,0.4);
    color: #00f5ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding-bottom: 2px;
    cursor: pointer;
    transition: all 300ms ease;
}
.send-another-btn:hover {
    border-bottom-color: #00f5ff;
    text-shadow: 0 0 8px rgba(0,245,255,0.4);
}

/* ── Footer ── */
footer {
    position: relative;
    padding: 1.75rem 5%;
    text-align: center;
    background: transparent;
    border-top: none;
    overflow: hidden;
}
footer p {
    position: relative;
    color: #8b97a8;
    font-size: 0.84rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.4px;
    font-weight: 400;
    opacity: 0.78;
}

/* ── Responsive ── */
@media (max-width: 968px) {
    .contact-recreated  { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .social-links { flex-direction: row !important; gap: 0.65rem; }
    .social-link  { font-size: 0.85rem !important; }
    .sl-icon-box  { width: 2rem !important; height: 2rem !important; }
    .form-row { flex-direction: column; gap: 1rem; align-items: stretch; }
}
