/* ==========================================================================
   CONTACT.CSS - Futuristic Glassmorphism Contact Form Elements
   ========================================================================== */

#contact {
    position: relative;
    z-index: 10;
}

.contact-glass-panel {
    background: rgba(8, 10, 24, 0.65);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 18px;
    padding: 2.2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    max-width: 750px;
    margin: 0 auto;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Pulsing background corner glows in the contact container */
.contact-glass-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.contact-glass-panel::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Floating Input Group */
.form-input-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input-field {
    width: 100%;
    padding: 0.95rem 1.1rem;
    background: rgba(4, 5, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 8px rgba(0, 210, 255, 0.05);
    background: rgba(4, 5, 12, 0.8);
}

/* Floating labels dynamic behaviors */
.form-input-label {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-input-group.textarea .form-input-label {
    top: 1.5rem;
    transform: none;
}

/* Float logic on active focus or value present */
.form-input-field:focus ~ .form-input-label,
.form-input-field:not(:placeholder-shown) ~ .form-input-label {
    top: -10px;
    left: 0.75rem;
    font-size: 0.78rem;
    color: var(--primary);
    background: #05050b;
    padding: 0 0.4rem;
    transform: translateY(0);
}

.form-input-group.textarea .form-input-field:focus ~ .form-input-label,
.form-input-group.textarea .form-input-field:not(:placeholder-shown) ~ .form-input-label {
    top: -10px;
    transform: none;
}

/* Real-time Validation States */
.form-input-field.invalid {
    border-color: #ff3333 !important;
    box-shadow: 0 0 12px rgba(255, 51, 51, 0.25) !important;
}

.form-input-field.valid {
    border-color: var(--success) !important;
    box-shadow: 0 0 12px rgba(0, 255, 179, 0.25) !important;
}

/* Social link magnetic & liquid animation support */
.social-liquid-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-liquid-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    text-decoration: none;
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-liquid-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    transition: all 0.4s ease;
}

.social-liquid-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.15) translateY(-3px);
}

.social-liquid-btn.github:hover::before {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.social-liquid-btn.linkedin:hover::before {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.social-liquid-btn.email:hover::before {
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
}

/* === COMPACT GOOGLE MAPS LOCATION CARD === */
.compact-map-card {
    margin-top: 1.4rem;
    background: rgba(10, 15, 30, 0.75);
    border: 1.5px solid rgba(0, 247, 255, 0.3);
    border-radius: 18px;
    padding: 0.85rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 247, 255, 0.05);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.compact-map-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(0, 247, 255, 0.25), inset 0 0 20px rgba(0, 247, 255, 0.1);
}

.map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--light);
    margin-bottom: 0.6rem;
    padding: 0 0.3rem;
}

.map-card-header .location-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: #ffffff;
}

.map-card-header .location-title i {
    color: var(--accent);
    font-size: 0.95rem;
}

.map-open-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid rgba(0, 247, 255, 0.35);
    border-radius: 20px;
    transition: all 0.25s ease;
}

.map-open-btn:hover {
    background: var(--primary);
    color: #020205;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
    transform: translateY(-2px);
}

.map-iframe-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.map-iframe-wrap iframe {
    width: 100%;
    height: 145px;
    border: 0;
    border-radius: 12px;
    filter: contrast(1.05) saturate(1.1);
}

/* Light mode overrides for compact map card */
body.light-mode .compact-map-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .map-card-header .location-title {
    color: #0f172a !important;
}

body.light-mode .map-open-btn {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.4) !important;
    color: #0284c7 !important;
}

body.light-mode .map-open-btn:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
}

/* === ANIMATED CYBER FORM STATUS NOTIFICATION === */
.form-status-alert {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    animation: statusSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    margin-top: 1rem;
}

.form-status-alert.success {
    background: rgba(0, 255, 65, 0.12);
    border: 1px solid rgba(0, 255, 65, 0.4);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.form-status-alert.error {
    background: rgba(255, 51, 85, 0.12);
    border: 1px solid rgba(255, 51, 85, 0.4);
    color: #ff3355;
    box-shadow: 0 0 15px rgba(255, 51, 85, 0.2);
}

.form-status-alert.loading {
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid rgba(0, 247, 255, 0.35);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
}

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

