/* Contact Page Styles */

/* Main Content Adjustments */
.contact-main {
    margin-top: 80px; /* Account for fixed header */
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

/* Contact Container */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Content Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 600px;
    padding: 3rem 2rem;
}

/* Contact Info Column */
.contact-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.contact-title {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-description {
    margin-bottom: 3rem;
    max-width: 500px;
}

.contact-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
    margin: 0;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #3498db;
    text-decoration: none;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.contact-button:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    text-decoration: none;
}

.contact-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.contact-icon {
    font-size: 1.2rem;
}

/* Contact Image Column */
.contact-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.contact-image:hover img {
    transform: scale(1.02);
}

/* Active Navigation Link */
.nav-link.active {
    color: #3498db;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-main {
        margin-top: 70px;
        padding: 1rem 0;
        min-height: calc(100vh - 70px);
    }
    
    .contact-container {
        margin: 0 1rem;
        padding: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .contact-info-column {
        padding: 1rem 0;
    }
    
    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-description {
        margin-bottom: 2rem;
    }
    
    .contact-description p {
        font-size: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .contact-button {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-image {
        height: 300px;
        order: -1; /* Show image first on mobile */
    }
}

@media (max-width: 480px) {
    .contact-main {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-description p {
        font-size: 0.9rem;
    }
    
    .contact-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .contact-image {
        height: 250px;
    }
    
    .contact-content {
        padding: 1.5rem 1rem;
    }
}

/* Loading States */
.contact-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Accessibility */
.contact-button:focus,
.contact-image:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .contact-main {
        margin-top: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-image {
        height: 300px;
    }
}

/* Animation for contact buttons */
.contact-button {
    position: relative;
    overflow: hidden;
}

.contact-button::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;
}

.contact-button:hover::before {
    left: 100%;
}

/* Hover effect for contact image */
.contact-image {
    position: relative;
}

.contact-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.contact-image:hover::after {
    opacity: 1;
}
