/* Main Footer Styles */
#main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--text-light-gray);
    position: relative;
    overflow: hidden;
}

#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--shadow-light) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--border-light) 0%, transparent 40%);
    pointer-events: none;
}

/* Footer Top Section */
.footer-top {
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

/* Footer Brand Column */
.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(1.1);
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Emergency Call Section */
.footer-emergency {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-emergency:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-green-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.emergency-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.emergency-content {
    display: flex;
    flex-direction: column;
}

.emergency-label {
    font-size: 12px;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.emergency-phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.emergency-phone:hover {
    color: var(--text-white);
}

/* Footer Column Titles */
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-green-light);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green-light);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.footer-links a:hover::before {
    width: 10px;
}

/* Office Info Styles */
.office-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.office-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.office-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.office-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
    box-shadow: 0 3px 10px var(--shadow-medium);
}

.office-details h4 {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.office-details p {
    color: #b0b0b0;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.office-details a {
    color: var(--primary-green-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.office-details a:hover {
    color: var(--text-white);
}

/* Business Hours */
.business-hours {
    margin-bottom: 30px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item:last-child {
    border-bottom: none;
}

.day {
    color: #b0b0b0;
    font-size: 14px;
}

.time {
    color: var(--primary-green-light);
    font-size: 14px;
    font-weight: 600;
}

/* Visitor Counter */
.visitor-counter {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.visitor-counter:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-green-light);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.counter-title {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.counter-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green-light);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #b0b0b0;
    font-size: 14px;
}

.footer-copyright a {
    color: var(--primary-green-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--text-white);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
}

#main-footer .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#main-footer .social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#main-footer .social-link:nth-child(1):hover {
    background: #3b5998;
    border-color: #3b5998;
    color: var(--text-white);
}

#main-footer .social-link:nth-child(2):hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: var(--text-white);
}

#main-footer .social-link:nth-child(3):hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: var(--text-white);
}

#main-footer .social-link:nth-child(4):hover {
    background: #e1306c;
    border-color: #e1306c;
    color: var(--text-white);
}

/* Loading Animation for Visitor Counter */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* Hover Effects for Entire Footer */
.footer-column {
    transition: all 0.3s ease;
}

.footer-column:hover .footer-title::after {
    width: 60px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-emergency {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .counter-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .office-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .hours-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .footer-social {
        justify-content: center;
    }
}
