/* Modern Contact Page Styles */
:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --card-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shape-color-1: rgba(76, 110, 245, 0.4);
    --shape-color-2: rgba(111, 76, 245, 0.3);
    --shape-color-3: rgba(245, 76, 222, 0.2);
    --text-gradient: linear-gradient(135deg, #4c6ef5 0%, #6f4cf5 50%, #f54cde 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --hover-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modern Header */
.modern-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.header-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-text {
    margin-bottom: 2rem;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-contact-us {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--hover-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-text {
    margin-right: 1rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    transition: var(--hover-transition);
}

.btn-contact-us:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-contact-us:hover .btn-icon {
    background: var(--primary);
    color: white;
}

.header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--shape-color-1);
    filter: blur(30px);
}

.shape-2 {
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--shape-color-2);
    filter: blur(40px);
}

.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--shape-color-3);
    filter: blur(25px);
    opacity: 0.5;
}

/* Contact Cards */
.contact-cards-section {
    padding: 0;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.contact-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.contact-card {
    position: relative;
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    text-align: center;
    overflow: hidden;
    transition: var(--hover-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.2);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    z-index: 1;
    opacity: 0;
    transition: var(--hover-transition);
}

.contact-card:hover .card-bg {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--hover-transition);
}

.contact-card:hover .card-icon {
    transform: scale(1.2);
    color: var(--secondary);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: var(--hover-transition);
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-gradient);
    transition: var(--hover-transition);
}

.card-link:hover::after {
    width: 100%;
}

.directions-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(76, 110, 245, 0.1);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--hover-transition);
}

.directions-link i {
    margin-right: 0.5rem;
}

.directions-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Social Media Section */
.social-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.social-container {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--text-gradient);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333;
    text-decoration: none;
    transition: var(--hover-transition);
}

.social-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: var(--hover-transition);
}

.social-name {
    font-weight: 500;
}

.social-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.social-item:hover i {
    transform: scale(1.2);
}

.social-item:nth-child(1):hover i { color: #1877F2; } /* Facebook */
.social-item:nth-child(2):hover i { color: #1DA1F2; } /* Twitter */
.social-item:nth-child(3):hover i { color: #0A66C2; } /* LinkedIn */
.social-item:nth-child(4):hover i { color: #E4405F; } /* Instagram */

/* Back to Home */
.back-to-home {
    text-align: center;
    padding: 3rem 0;
}

.home-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    transition: var(--hover-transition);
}

.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.home-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
    color: white;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .modern-header {
        padding: 4rem 0 6rem;
    }
    
    .contact-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-header {
        padding: 3rem 0 5rem;
    }
    
    .contact-cards-container {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}
