/* ============================================================================
   MOBILE CONTACT PAGE STYLES
   Theme: Red, Black, White Engineering - Consistent with A3KM Studio
   Enhanced with white splash separators and modern glassmorphism
   ============================================================================ */

/* Engineering Grid Background - Fixed Layer */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(139, 0, 0, 0.06) 19px, rgba(139, 0, 0, 0.06) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(139, 0, 0, 0.06) 19px, rgba(139, 0, 0, 0.06) 20px);
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

.mobile-page-wrapper {
    position: relative;
    z-index: 1;
}

/* ============================================================================
   HERO SECTION - Enhanced Engineering Style
   ============================================================================ */

.contact-hero {
    position: relative;
    padding: 60px 0 40px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.90),
        rgba(0, 0, 0, 0.95)
    );
    border-bottom: 3px solid rgba(139, 0, 0, 0.4);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 0, 0, 0.03) 2px, rgba(139, 0, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 0, 0, 0.03) 2px, rgba(139, 0, 0, 0.03) 4px),
        radial-gradient(circle at 30% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 0, 0, 0.08) 0%, transparent 60%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.3), 
        rgba(139, 0, 0, 0.2)
    );
    border: 2px solid rgba(204, 0, 0, 0.5);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 20px rgba(204, 0, 0, 0.3);
}

.hero-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 70%, 
        transparent 100%);
    border-radius: 20px 20px 0 0;
}

.hero-icon i {
    font-size: 40px;
    color: #8B0000;
    filter: drop-shadow(0 3px 8px rgba(139, 0, 0, 0.5));
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 15px;
    color: rgba(210, 210, 210, 0.95);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   SECTION TITLES - White Splash Enhanced
   ============================================================================ */

.mobile-section {
    position: relative;
    padding-top: 32px;
    margin-bottom: 24px;
}

.mobile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 70%, 
        transparent 100%);
    box-shadow: 0 2px 15px rgba(204, 0, 0, 0.6);
}

.mobile-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    position: relative;
}

.mobile-section-title::before {
    content: '';
    width: 6px;
    height: 30px;
    background: linear-gradient(180deg, #8B0000, rgba(139, 0, 0, 0.5));
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(139, 0, 0, 0.6);
}

.mobile-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        #8B0000, 
        rgba(139, 0, 0, 0.5),
        transparent
    );
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.4);
}

.mobile-section-title i {
    color: #8B0000;
    font-size: 1.125rem;
    filter: drop-shadow(0 2px 6px rgba(139, 0, 0, 0.5));
}

.title-badge {
    margin-left: auto;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.15));
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8B0000;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(139, 0, 0, 0.3);
}

/* ============================================================================
   QUICK CONTACT CARDS
   ============================================================================ */

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.quick-contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95), 
        rgba(20, 0, 0, 0.85)
    );
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 70%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(139, 0, 0, 0.02) 15px,
            rgba(139, 0, 0, 0.02) 16px
        );
    pointer-events: none;
}

.quick-contact-card:active {
    transform: scale(0.96);
    border-color: rgba(139, 0, 0, 0.6);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(139, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.quick-contact-card:active::before {
    opacity: 1;
    box-shadow: 0 2px 15px rgba(139, 0, 0, 0.6);
}

.contact-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
}

.contact-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 18px;
}

.contact-icon.phone {
    background: linear-gradient(135deg, 
        rgba(16, 135, 89, 0.15), 
        rgba(10, 100, 65, 0.1)
    );
    border: 2px solid rgba(16, 135, 89, 0.25);
}

.contact-icon.phone i {
    font-size: 28px;
    color: rgba(16, 185, 129, 0.65);
    filter: drop-shadow(0 3px 8px rgba(16, 135, 89, 0.3));
}

.contact-icon.email {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.3), 
        rgba(139, 0, 0, 0.2)
    );
    border: 2px solid rgba(139, 0, 0, 0.5);
}

.contact-icon.email i {
    font-size: 28px;
    color: #8B0000;
    filter: drop-shadow(0 3px 8px rgba(139, 0, 0, 0.5));
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, 
        rgba(37, 161, 102, 0.15), 
        rgba(25, 135, 84, 0.1)
    );
    border: 2px solid rgba(37, 161, 102, 0.25);
}

.contact-icon.whatsapp i {
    font-size: 28px;
    color: rgba(37, 211, 102, 0.65);
    filter: drop-shadow(0 3px 8px rgba(37, 161, 102, 0.3));
}

.contact-icon.telegram {
    background: linear-gradient(135deg, 
        rgba(41, 138, 184, 0.15), 
        rgba(30, 110, 160, 0.1)
    );
    border: 2px solid rgba(41, 138, 184, 0.25);
}

.contact-icon.telegram i {
    font-size: 28px;
    color: rgba(41, 168, 224, 0.65);
    filter: drop-shadow(0 3px 8px rgba(41, 138, 184, 0.3));
}

.quick-contact-card:active .contact-icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-contact-card h3 {
    position: relative;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #FFFFFF;
    z-index: 1;
}

.quick-contact-card p {
    position: relative;
    font-size: 13px;
    color: rgba(180, 180, 180, 0.8);
    margin: 0;
    line-height: 1.4;
    z-index: 1;
}

/* ============================================================================
   CONTACT FORM - PREMIUM MODERN DESIGN
   ============================================================================ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Status Messages */
.form-status {
    padding: 18px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-status.success {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.2), 
        rgba(34, 197, 94, 0.1)
    );
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.form-status.success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    color: #fff;
    border-radius: 50%;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.form-status.error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.2), 
        rgba(239, 68, 68, 0.1)
    );
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.form-status.error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #F87171, #EF4444);
    color: #fff;
    border-radius: 50%;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Form Groups with Staggered Animation */
.form-group {
    position: relative;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.form-group:nth-child(2) { animation-delay: 0.05s; }
.form-group:nth-child(3) { animation-delay: 0.1s; }
.form-group:nth-child(4) { animation-delay: 0.15s; }
.form-group:nth-child(5) { animation-delay: 0.2s; }
.form-group:nth-child(6) { animation-delay: 0.25s; }

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

/* Input Wrapper - Modern Container */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8B0000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
}

.textarea-wrapper .input-icon {
    top: 22px;
    transform: translateY(0);
}

/* Floating Labels - Premium Effect */
.floating-label {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 600;
    color: rgba(180, 180, 180, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.9) 90%, 
        transparent 100%
    );
    padding: 0 8px 0 0;
}

.textarea-wrapper .floating-label {
    top: 22px;
    transform: translateY(0);
}

/* Floating Label Active State */
.input-wrapper input:focus ~ .floating-label,
.input-wrapper input:not(:placeholder-shown) ~ .floating-label,
.input-wrapper textarea:focus ~ .floating-label,
.input-wrapper textarea:not(:placeholder-shown) ~ .floating-label {
    top: -10px;
    left: 48px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 700;
    color: #8B0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6),
                 0 0 8px rgba(139, 0, 0, 0.5);
}

/* Form Inputs - Enhanced Glassmorphism */
.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 18px 20px 18px 52px;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.9), 
        rgba(20, 0, 0, 0.8)
    );
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.6;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Hover State */
.input-wrapper input:hover,
.input-wrapper textarea:hover {
    border-color: rgba(139, 0, 0, 0.3);
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.5),
        0 2px 12px rgba(139, 0, 0, 0.15);
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 150px;
    padding-top: 20px;
}

/* Input Focus State - Enhanced Red Glow with Typing Effect */
.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: rgba(139, 0, 0, 0.8);
    background: linear-gradient(135deg, 
        rgba(15, 0, 0, 0.95), 
        rgba(25, 0, 0, 0.9)
    );
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        0 0 0 4px rgba(139, 0, 0, 0.25),
        0 8px 30px rgba(139, 0, 0, 0.35),
        inset 0 0 20px rgba(139, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Typing Animation Effect */
.input-wrapper input:focus:not(:placeholder-shown),
.input-wrapper textarea:focus:not(:placeholder-shown) {
    animation: typingGlow 2s ease-in-out infinite;
}

@keyframes typingGlow {
    0%, 100% {
        box-shadow: 
            inset 0 2px 8px rgba(0, 0, 0, 0.6),
            0 0 0 4px rgba(139, 0, 0, 0.25),
            0 8px 30px rgba(139, 0, 0, 0.35),
            inset 0 0 20px rgba(139, 0, 0, 0.08);
    }
    50% {
        box-shadow: 
            inset 0 2px 8px rgba(0, 0, 0, 0.6),
            0 0 0 4px rgba(139, 0, 0, 0.3),
            0 10px 40px rgba(139, 0, 0, 0.45),
            inset 0 0 25px rgba(139, 0, 0, 0.12);
    }
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper textarea:focus ~ .input-icon {
    color: #8B0000;
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(0 2px 6px rgba(139, 0, 0, 0.6));
}

.textarea-wrapper textarea:focus ~ .input-icon {
    transform: translateY(0) scale(1.1);
}

/* Animated Border Effect */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #8B0000, 
        #A52A2A,
        #8B0000
    );
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
    z-index: 3;
}

.input-wrapper input:focus ~ .input-border,
.input-wrapper textarea:focus ~ .input-border {
    width: 100%;
}

/* Placeholder Styling */
.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    opacity: 0;
}

/* Invalid Field Styling */
.input-wrapper.invalid .input-icon {
    color: #F87171;
}

.input-wrapper.invalid .floating-label {
    color: #F87171;
}

.input-wrapper.invalid input,
.input-wrapper.invalid textarea {
    border-color: rgba(248, 113, 113, 0.5);
}

.input-wrapper.invalid .input-border {
    background: linear-gradient(
        90deg,
        #F87171,
        #EF4444
    );
}

/* Character Counter */
.char-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(140, 140, 140, 0.6);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    z-index: 2;
    transition: all 0.3s ease;
}

.input-wrapper textarea:focus ~ .char-counter {
    color: #8B0000;
    border: 1px solid rgba(139, 0, 0, 0.4);
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.3);
}

#charCount.warning {
    color: #FFA500;
}

#charCount.danger {
    color: #F87171;
    font-weight: 900;
}

/* Submit Button - Premium Red Design */
.btn-submit {
    position: relative;
    width: 100%;
    padding: 20px 28px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.9), 
        rgba(139, 0, 0, 0.8)
    );
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 0, 0, 0.9);
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 25px rgba(139, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards,
               buttonPulse 3s ease-in-out 1s infinite;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Pulse Animation */
@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 8px 25px rgba(139, 0, 0, 0.5),
            0 4px 12px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 10px 35px rgba(139, 0, 0, 0.6),
            0 6px 18px rgba(139, 0, 0, 0.4),
            0 0 0 4px rgba(139, 0, 0, 0.15);
    }
}

/* Button Hover */
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 12px 35px rgba(139, 0, 0, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.6);
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 30%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0.5) 70%, 
        transparent 100%);
    border-radius: 14px 14px 0 0;
}

/* Button Glow Effect */
.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        transparent,
        rgba(255, 255, 255, 0.05)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:active .btn-glow {
    opacity: 1;
}

/* Button Ripple Effect */
.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.4), 
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:active::before {
    width: 400px;
    height: 400px;
}

.btn-submit:active {
    transform: scale(0.98);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 10px 35px rgba(139, 0, 0, 0.5),
        0 6px 20px rgba(139, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.12);
    border-color: rgba(139, 0, 0, 1);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    background: linear-gradient(135deg, 
        rgba(80, 80, 80, 0.5), 
        rgba(60, 60, 60, 0.5)
    );
    border-color: rgba(80, 80, 80, 0.3);
}

.btn-text,
.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.btn-text i {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.btn-spinner i {
    font-size: 18px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   SOCIAL MEDIA CARDS
   ============================================================================ */

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.social-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95), 
        rgba(20, 0, 0, 0.85)
    );
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: #E8E8E8;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 70%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 12px,
            rgba(139, 0, 0, 0.02) 12px,
            rgba(139, 0, 0, 0.02) 13px
        );
    pointer-events: none;
}

.social-card:active {
    transform: scale(0.96);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.social-card:active::before {
    opacity: 1;
}

/* Individual Brand Border Glow on Active */
.social-card.github:active {
    border-color: rgba(240, 246, 252, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(240, 246, 252, 0.2),
        inset 0 0 30px rgba(240, 246, 252, 0.08);
}

.social-card.linkedin:active {
    border-color: rgba(10, 102, 194, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(10, 102, 194, 0.3),
        inset 0 0 30px rgba(10, 102, 194, 0.08);
}

.social-card.facebook:active {
    border-color: rgba(24, 119, 242, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(24, 119, 242, 0.3),
        inset 0 0 30px rgba(24, 119, 242, 0.08);
}

.social-card.instagram:active {
    border-color: rgba(131, 58, 180, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(131, 58, 180, 0.3),
        inset 0 0 30px rgba(253, 29, 29, 0.08);
}

.social-card.youtube:active {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(255, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 0, 0, 0.08);
}

.social-card.twitter:active {
    border-color: rgba(29, 161, 242, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(29, 161, 242, 0.3),
        inset 0 0 30px rgba(29, 161, 242, 0.08);
}

.social-card i {
    position: relative;
    font-size: 36px;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
    z-index: 1;
}

.social-card span {
    position: relative;
    z-index: 1;
}

.social-card:active i {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

/* Individual Social Media Brand Colors - Smooth & Premium */
.social-card.github i { 
    color: rgba(240, 246, 252, 0.85); 
    text-shadow: 0 0 20px rgba(240, 246, 252, 0.3);
}

.social-card.linkedin i { 
    color: rgba(10, 102, 194, 0.85);
    text-shadow: 0 0 20px rgba(10, 102, 194, 0.3);
}

.social-card.facebook i { 
    color: rgba(24, 119, 242, 0.85);
    text-shadow: 0 0 20px rgba(24, 119, 242, 0.3);
}

.social-card.instagram i { 
    background: linear-gradient(135deg, 
        rgba(131, 58, 180, 0.85) 0%, 
        rgba(253, 29, 29, 0.85) 50%, 
        rgba(252, 176, 69, 0.85) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 8px rgba(131, 58, 180, 0.4));
}

.social-card.youtube i { 
    color: rgba(255, 0, 0, 0.85);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.social-card.twitter i { 
    color: rgba(29, 161, 242, 0.85);
    text-shadow: 0 0 20px rgba(29, 161, 242, 0.3);
}

/* Active/Pressed State - Enhanced Glow */
.social-card.github:active i { 
    color: rgba(255, 255, 255, 0.95); 
    text-shadow: 0 0 25px rgba(240, 246, 252, 0.5);
}

.social-card.linkedin:active i { 
    color: rgba(10, 102, 194, 1);
    text-shadow: 0 0 25px rgba(10, 102, 194, 0.5);
}

.social-card.facebook:active i { 
    color: rgba(24, 119, 242, 1);
    text-shadow: 0 0 25px rgba(24, 119, 242, 0.5);
}

.social-card.instagram:active i { 
    filter: drop-shadow(0 4px 12px rgba(131, 58, 180, 0.6)) brightness(1.2);
}

.social-card.youtube:active i { 
    color: rgba(255, 0, 0, 1);
    text-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

.social-card.twitter:active i { 
    color: rgba(29, 161, 242, 1);
    text-shadow: 0 0 25px rgba(29, 161, 242, 0.5);
}

/* ============================================================================
   LOCATION CARDS
   ============================================================================ */

.location-cards {
    display: grid;
    gap: 16px;
}

.location-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95), 
        rgba(20, 0, 0, 0.9)
    );
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 
        inset 3px 0 0 rgba(139, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 70%, 
        transparent 100%);
    border-radius: 14px 14px 0 0;
}

.location-card:active {
    transform: scale(0.98);
    box-shadow: 
        inset 3px 0 0 rgba(139, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(139, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.location-icon {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.3), 
        rgba(139, 0, 0, 0.2)
    );
    border: 2px solid rgba(139, 0, 0, 0.5);
    border-radius: 12px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(139, 0, 0, 0.3);
    z-index: 1;
}

.location-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
    border-radius: 12px 12px 0 0;
}

.location-icon i {
    font-size: 26px;
    color: #8B0000;
    filter: drop-shadow(0 3px 8px rgba(139, 0, 0, 0.4));
}

.location-card h3 {
    position: relative;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #FFFFFF;
    z-index: 1;
}

.location-card p {
    position: relative;
    font-size: 14px;
    color: rgba(200, 200, 200, 0.9);
    margin: 0;
    line-height: 1.6;
    z-index: 1;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.mobile-footer {
    position: relative;
    text-align: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95), 
        rgba(20, 0, 0, 0.9),
        rgba(10, 10, 10, 0.95)
    );
    border-top: 3px solid rgba(139, 0, 0, 0.4);
    margin-top: 40px;
    overflow: hidden;
}

.mobile-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 70%, 
        transparent 100%);
    box-shadow: 0 2px 15px rgba(204, 0, 0, 0.6);
}

.mobile-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(139, 0, 0, 0.6), 
        #8B0000,
        rgba(139, 0, 0, 0.6)
    );
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(139, 0, 0, 0.6);
}

.footer-text {
    position: relative;
    font-size: 14px;
    color: rgba(200, 200, 200, 0.9);
    margin-bottom: 8px;
    font-weight: 600;
    z-index: 1;
}

.footer-credit {
    position: relative;
    font-size: 13px;
    color: rgba(170, 170, 170, 0.8);
    margin-bottom: 6px;
    z-index: 1;
}

.footer-credit strong {
    color: #8B0000;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.4);
}

.footer-tagline {
    position: relative;
    font-size: 12px;
    color: rgba(160, 160, 160, 0.7);
    font-style: italic;
    letter-spacing: 1px;
    z-index: 1;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 359px) {
    .quick-contact-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 480px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================================
   FORM VALIDATION STATES - ENHANCED
   ============================================================================ */

/* Valid Input State - Green Indicator */
.input-wrapper.valid input,
.input-wrapper.valid textarea {
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(16, 185, 129, 0.15),
        0 4px 15px rgba(16, 185, 129, 0.2) !important;
}

.input-wrapper.valid .input-icon {
    color: rgba(16, 185, 129, 0.8);
}

/* Invalid Input State - Red Indicator */
.input-wrapper.invalid input,
.input-wrapper.invalid textarea {
    border-color: rgba(255, 50, 50, 0.7) !important;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(255, 50, 50, 0.15),
        0 4px 15px rgba(255, 50, 50, 0.25) !important;
}

.input-wrapper.invalid .input-icon {
    color: rgba(255, 80, 80, 0.9);
}

/* Input Shake Animation on Error */
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Confetti Animation for Success */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Enhanced Validation Message Styles */
.form-status.success {
    background: linear-gradient(135deg, 
        rgba(16, 135, 89, 0.25),
        rgba(10, 100, 65, 0.2)
    );
    border-left: 4px solid rgba(16, 185, 129, 0.8);
    animation: statusSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.form-status.error {
    background: linear-gradient(135deg, 
        rgba(255, 50, 50, 0.25),
        rgba(200, 0, 0, 0.2)
    );
    border-left: 4px solid rgba(255, 80, 80, 0.8);
    animation: statusShake 0.4s cubic-bezier(.36,.07,.19,.97) forwards,
               statusSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statusShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Focused Input Enhanced Glow */
.input-wrapper.focused input,
.input-wrapper.focused textarea {
    animation: focusedPulse 2s ease-in-out infinite;
}

@keyframes focusedPulse {
    0%, 100% {
        border-color: rgba(139, 0, 0, 0.8);
    }
    50% {
        border-color: rgba(139, 0, 0, 1);
    }
}
