/* ========================================
   CONTACT PAGE - ADDITIONAL STYLES
   Optimized for Mobile & Desktop
   ======================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body Background Animation */
body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation Improvements */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form Enhancements */
.input-field:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.input-field:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Select Dropdown Styling */
select.input-field option {
    background: #1e293b;
    color: white;
    padding: 10px;
}

/* Button Loading State */
.btn-gradient:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-gradient:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Success/Error Message Animations */
.success-message,
.error-message {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Cards Hover Effects */
.glass-effect {
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Social Media Links */
.glass-effect a[href^="http"] {
    text-decoration: none;
}

/* Floating Animation Delay */
.floating-animation {
    animation-delay: 0.5s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Reduce padding on mobile */
    body {
        padding-top: 80px;
    }
    
    /* Stack form fields */
    .grid.sm\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    /* Adjust font sizes */
    .hero-title {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    /* Improve touch targets */
    .input-field,
    .btn-gradient {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing */
    .contact-card {
        padding: 1.25rem;
    }
    
    /* Optimize modal spacing */
    .glass-effect {
        padding: 1.5rem;
    }
    
    /* Social media grid */
    .grid.grid-cols-2 {
        gap: 0.75rem;
    }
    
    /* Navigation adjustments */
    nav .flex {
        padding: 0 1rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
}

/* Desktop Enhancements */
@media (min-width: 1025px) {
    /* Parallax effect on scroll */
    .floating-animation {
        transition: transform 0.3s ease;
    }
    
    /* Better hover states */
    .input-field:focus {
        transform: scale(1.01);
    }
    
    /* Smooth transitions */
    .glass-effect {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .floating-animation,
    .btn-gradient {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .glass-effect {
        background: white;
        border: 1px solid #ccc;
    }
    
    .input-field {
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
.input-field:focus-visible,
.btn-gradient:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-animation {
        animation: none;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme even in light mode preference */
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    }
}

/* Loading Spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Pulse Animation for Success */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.success-message {
    animation: slideIn 0.5s ease-out, pulse 2s ease-in-out infinite;
}

/* Shake Animation for Errors */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.error-message {
    animation: slideIn 0.5s ease-out, shake 0.5s ease-in-out;
}

/* Form Validation States */
.input-field:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
}

.input-field:valid:not(:placeholder-shown) {
    border-color: rgba(34, 197, 94, 0.5);
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* Scroll to Top Button (if added) */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

