/* Premium Background Animation for Contact Page */
.contact-bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    overflow: hidden;
}

.contact-bg-animation .bg-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(25, 113, 194, 0.08), rgba(0, 150, 136, 0.05));
    animation: floatContact 20s infinite ease-in-out;
    filter: blur(40px);
}

.contact-bg-animation .element-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(25, 113, 194, 0.1), rgba(0, 150, 136, 0.06));
}

.contact-bg-animation .element-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.08), rgba(233, 30, 99, 0.05));
}

.contact-bg-animation .element-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 87, 34, 0.05));
}

.contact-bg-animation .element-4 {
    width: 350px;
    height: 350px;
    top: 30%;
    right: 20%;
    animation-delay: 7s;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(139, 195, 74, 0.05));
}

.contact-bg-animation .element-5 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 30%;
    animation-delay: 15s;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(3, 169, 244, 0.05));
}

@keyframes floatContact {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translate(-30px, -40px) rotate(90deg) scale(1.05); 
    }
    50% { 
        transform: translate(20px, -20px) rotate(180deg) scale(1.1); 
    }
    75% { 
        transform: translate(-20px, 30px) rotate(270deg) scale(1.05); 
    }
}

/* Contact Hero Section */
.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, 
        rgba(25, 113, 194, 0.95) 0%,
        rgba(0, 150, 136, 0.9) 50%,
        rgba(76, 175, 80, 0.85) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-hero-text {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
}

.hero-title .title-line {
    display: block;
}

.hero-title .highlight {
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.contact-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.contact-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-hero-image {
    position: relative;
}

.contact-hero-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.contact-hero-image .image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.contact-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(25, 113, 194, 0.3), rgba(0, 150, 136, 0.3));
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: floatShape 15s infinite ease-in-out;
}

.hero-shapes .shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-shapes .shape-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    right: 15%;
    animation-delay: 5s;
    background: rgba(255, 255, 255, 0.03);
}

.hero-shapes .shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 25%;
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Contact Info Section */
.contact-info-section {
    padding: 100px 0;
    position: relative;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-info-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}

.contact-info-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-card-inner {
    position: relative;
    z-index: 2;
}

.contact-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.icon-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1971c2, #009688);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.icon-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #1971c2;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulseRing 2s infinite;
}

.icon-sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s infinite;
}

.icon-sparkle:nth-child(3) {
    top: 10px;
    right: 10px;
    animation-delay: 0.5s;
}

.icon-sparkle:nth-child(4) {
    bottom: 10px;
    left: 10px;
    animation-delay: 1s;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    font-family: 'Roboto Slab', serif;
}

.contact-details {
    text-align: center;
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

.phone-number, .email-address {
    font-size: 1.1rem;
    color: #1971c2;
    font-weight: 600;
    margin: 10px 0;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item span:first-child {
    color: #666;
}

.hour-item span:last-child {
    color: #333;
    font-weight: 600;
}

.contact-action {
    text-align: center;
}

.contact-action .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
}

/* Card-specific styles */
.address-card {
    border-top: 4px solid #1971c2;
}

.phone-card {
    border-top: 4px solid #4CAF50;
}

.email-card {
    border-top: 4px solid #FF9800;
}

.hours-card {
    border-top: 4px solid #9C27B0;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(25, 113, 194, 0.8) 0%,
        rgba(0, 150, 136, 0.8) 50%,
        rgba(76, 175, 80, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover .card-glow {
    opacity: 1;
}

/* Card Particles */
.card-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.card-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #1971c2;
    border-radius: 50%;
    opacity: 0;
}

.contact-info-card:hover .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: particleFloat 2s ease-in-out 0.1s;
}

.contact-info-card:hover .particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation: particleFloat 2s ease-in-out 0.5s;
}

@keyframes particleFloat {
    0% { 
        opacity: 0; 
        transform: translateY(0) scale(0); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-20px) scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-40px) scale(0); 
    }
}

/* Contact Map Section */
.contact-map-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-container {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.map-overlay .btn {
    background: rgba(25, 113, 194, 0.9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.map-overlay .btn:hover {
    background: #1971c2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(25, 113, 194, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .contact-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-hero-image .image-wrapper {
        transform: none;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-wrapper {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .contact-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle {
        font-size: 1.5rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-hero-content,
.contact-info-grid,
.contact-map-section {
    animation: fadeInUp 0.8s ease-out;
}