/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero .contact-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(30, 144, 255, 0.1));
    filter: blur(40px);
}

.contact-hero .contact-bg-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.contact-hero .contact-bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.contact-hero .contact-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Contact Form Styles */
.modern-contact-form-container {
    position: relative;
}

.modern-contact-form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(30, 144, 255, 0.3));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-contact-form-container:hover::before {
    opacity: 1;
}

/* Form Success/Error Messages */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Enhanced Social Links */
.modern-contact-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modern-contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(30, 144, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-contact-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.modern-contact-social-link:hover::before {
    left: 100%;
}

.modern-contact-social-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.3);
}

/* Contact Detail Links */
.modern-contact-detail-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-contact-detail-value a:hover {
    color: var(--accent-color-1);
}

/* Loading State for Form */
.modern-contact-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modern-contact-submit.loading i {
    animation: spin 1s linear infinite;
}

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

/* Enhanced Map Container */
.modern-contact-map {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modern-contact-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(30, 144, 255, 0.1));
    z-index: 1;
    pointer-events: none;
}

.modern-contact-map iframe {
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.modern-contact-map:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
        min-height: 50vh;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .modern-contact-social-links {
        justify-content: center;
    }
    
    .modern-contact-social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Active Navigation Link */
.nav-list a.active {
    color: var(--accent-color-1);
    position: relative;
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 1px;
}

/* Enhanced Contact Info Section */
.modern-contact-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-contact-detail {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.modern-contact-detail:last-child {
    border-bottom: none;
}

.modern-contact-detail:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 20px 15px;
    margin: 0 -15px;
}

.modern-contact-detail-icon {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(30, 144, 255, 0.2));
    transition: all 0.3s ease;
}

.modern-contact-detail:hover .modern-contact-detail-icon {
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    transform: scale(1.1);
}

/* Form Validation Styles */
.modern-form-group input:invalid,
.modern-form-group textarea:invalid {
    border-color: rgba(239, 68, 68, 0.3);
}

.modern-form-group input:valid,
.modern-form-group textarea:valid {
    border-color: rgba(34, 197, 94, 0.3);
}

/* Custom Scrollbar for Textarea */
.modern-form-group textarea::-webkit-scrollbar {
    width: 6px;
}

.modern-form-group textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modern-form-group textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 3px;
}

.modern-form-group textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color-2), var(--accent-color-1));
}