.about-hero {
    min-height: 50vh;
    background-color: var(--dark-bg);
}

.about-hero .hero-title span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== Contact Page ==================== */
.contact-hero {
    position: relative;
    padding: 50px 0 10px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top, rgba(46, 109, 147, 0.25), transparent 65%),
        var(--dark-bg);
}

.contact-hero .section-badge,
.contact-hero .section-title,
.contact-hero .section-desc {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.contact-hero .section-title { animation-delay: 0.15s; }
.contact-hero .section-desc  { animation-delay: 0.3s; }

.contact-section {
    background: var(--dark-bg);
    padding: 20px 0 70px;
}

.contact-panel {
    background: var(--card-bg);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 36px;
    height: 100%;
}

.contact-panel h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-panel-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ---- Contact details ---- */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.05rem;
}

.contact-item-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.contact-item-value {
    color: var(--text-light);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a.contact-item-value:hover {
    color: var(--accent);
}

.contact-item-value:focus-visible,
.contact-submit:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.contact-social {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.contact-social p {
    margin-bottom: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.contact-social .social-links {
    margin-top: 0;
}

/* ---- Form ---- */
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
}

.contact-form .form-control,
.contact-form .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    color: #fff;
    padding: 12px 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
    color: #fff;
}

.contact-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.contact-form .form-select option {
    background-color: var(--card-bg);
    color: #fff;
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .has-error {
    border-color: #f87171;
}

.contact-submit {
    border: 0;
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin: 16px 0 0;
    min-height: 1.4em;
    font-size: 0.92rem;
}

.form-status.success { color: var(--accent); }
.form-status.error   { color: #f87171; }

/* ---- Light theme (dark styles above are untouched) ---- */
:root[data-theme="light"] .contact-hero {
    background:
        radial-gradient(ellipse at top, rgba(46, 109, 147, 0.12), transparent 65%),
        var(--dark-bg);
}

:root[data-theme="light"] .contact-panel {
    border-color: rgba(11, 25, 44, 0.1);
    box-shadow: 0 10px 30px rgba(11, 25, 44, 0.06);
}

:root[data-theme="light"] .contact-panel-desc {
    color: #4a5b6e;
}

:root[data-theme="light"] .contact-item-label,
:root[data-theme="light"] .contact-social p {
    color: #5b6b7d;
}

:root[data-theme="light"] a.contact-item-value:hover {
    color: #178246;
}

:root[data-theme="light"] .contact-social {
    border-top-color: rgba(11, 25, 44, 0.12);
}

:root[data-theme="light"] .contact-form label {
    color: #1e2f43;
}

:root[data-theme="light"] .contact-form .form-control,
:root[data-theme="light"] .contact-form .form-select {
    background-color: #f7fafd;
    border-color: rgba(11, 25, 44, 0.2);
    color: #0b192c;
}

:root[data-theme="light"] .contact-form .form-control::placeholder {
    color: rgba(11, 25, 44, 0.45);
}

:root[data-theme="light"] .contact-form .form-control:focus,
:root[data-theme="light"] .contact-form .form-select:focus {
    background-color: #ffffff;
    border-color: #178246;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.22);
    color: #0b192c;
}

:root[data-theme="light"] .contact-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230b192c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

:root[data-theme="light"] .contact-form .form-select option {
    background-color: #ffffff;
    color: #0b192c;
}

:root[data-theme="light"] .contact-form .has-error {
    border-color: #dc2626;
}

:root[data-theme="light"] .form-status.success { color: #178246; }
:root[data-theme="light"] .form-status.error   { color: #dc2626; }

/* ---- Responsive ---- */
@media (max-width: 575px) {
    .contact-hero  { padding: 35px 0 5px; }
    .contact-panel { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero .section-badge,
    .contact-hero .section-title,
    .contact-hero .section-desc {
        animation: none;
        opacity: 1;
    }
}