/* contact.css */

:root {
    --primary-gradient: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    --primary-color: #2563eb;
    --accent-color: #10b981;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --background: #f8fafc;
    --surface: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
}

/* Animated background particles */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 120px; height: 120px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 60px; height: 60px; left: 60%; animation-delay: 4s; }
.particle:nth-child(4) { width: 100px; height: 100px; left: 80%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 140px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Main Content */
.main-content {
    padding: 100px 0;
    position: relative;
}

.contact-card {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 3rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.section-title {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* RTL adjustment for section title underline */
[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

/* Enhanced Form Styling */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.submit-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

/* WhatsApp Section */
.whatsapp-card {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-card:hover::before {
    opacity: 1;
}

.whatsapp-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.whatsapp-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.whatsapp-number {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

/* Map Section */
.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 450px;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .map-overlay {
    left: auto;
    right: 20px;
}

.map-overlay h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.map-overlay p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
}

/* Contact Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.info-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Success message styling */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    .hero-section {
        margin-top: -70px;
        padding-top: 130px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        padding-top: 130px;
    }

    .main-content {
        padding: 60px 0;
    }

    .contact-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }

    .map-overlay {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
    }

    [dir="rtl"] .map-overlay {
        right: 0;
    }


    /* RTL adjustments for contact page */
[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .map-overlay {
    left: auto;
    right: 20px;
}

[dir="rtl"] .submit-btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .info-card .info-text {
    direction: ltr;
    unicode-bidi: plaintext;
}
}