/* ===== ELEGANT PROFESSIONAL FOOTER ===== */
/* Modern, clean, and professional footer design */

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle animated background pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Top accent line */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
    background-size: 200% 100%;
    animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Footer container with proper structure */
footer .footer-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Footer top section */
.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modern grid layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

/* Footer brand section */
.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.footer-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #ffffff;
    line-height: 1.3;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
}

/* Social media icons - elegant design */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

/* Footer columns */
.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    border-radius: 2px;
}

.footer-column h4 i {
    color: #d4af37;
    font-size: 16px;
}

/* Footer links - elegant styling */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.footer-links a i {
    margin-right: 12px;
    font-size: 12px;
    color: #d4af37;
    transition: all 0.3s ease;
    width: 16px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-links a:hover i {
    color: #f4d03f;
    transform: translateX(4px);
}

/* Contact information - professional layout */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-contact li i {
    margin-right: 14px;
    margin-top: 2px;
    color: #d4af37;
    font-size: 16px;
    min-width: 20px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-contact a:hover {
    color: #f4d03f;
    border-bottom-color: #f4d03f;
}

/* Map container styling */
.map-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    filter: grayscale(20%) contrast(1.1);
    transition: all 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.map-link:hover {
    color: #f4d03f;
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: translateY(-2px);
}

/* Footer bottom - clean and professional */
.footer-bottom {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-bottom-links a:hover {
    color: #f4d03f;
    background: rgba(255, 255, 255, 0.05);
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* Floating particles - subtle animation */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 40%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 40%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Responsive design - Mobile First */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    footer {
        margin-top: 60px;
        margin-bottom: 140px; /* Extra space for mobile scroll elements */
        padding-bottom: 20px; /* Additional padding for mobile elements */
    }
    
    .footer-top {
        padding: 50px 0 35px;
    }
    
    .footer-content-wrapper {
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        text-align: center;
        padding-bottom: 25px;
        margin-bottom: 15px;
    }
    
    .footer-logo {
        width: 70px;
        height: 70px;
        margin: 0 auto 20px;
    }
    
    .footer-brand h3 {
        font-size: 22px;
    }
    
    .footer-brand p {
        font-size: 14px;
        max-width: 400px;
        margin: 0 auto 20px;
    }
    
    .footer-social {
        justify-content: center;
        gap: 12px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .footer-column {
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-column h4 {
        justify-content: center;
        font-size: 17px;
        margin-bottom: 20px;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a,
    .footer-contact li {
        justify-content: center;
        text-align: center;
    }
    
    .footer-contact li {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .footer-contact li i {
        margin: 0 0 4px 0;
    }
    
    .footer-bottom {
        padding: 25px 0 40px; /* Extra bottom padding for mobile scroll */
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-left {
        order: 2;
    }
    
    .footer-bottom-links {
        order: 1;
        justify-content: center;
    }
    
    .footer-bottom p {
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 8px;
    }
    
    .map-container {
        margin: 16px 0;
    }
    
    .map-container iframe {
        height: 180px;
    }
}

@media (max-width: 480px) {
    footer {
        margin-bottom: 160px; /* Extra space for mobile scroll elements on small screens */
    }
    
    .footer-content-wrapper {
        padding: 0 16px;
    }
    
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .footer-brand h3 {
        font-size: 20px;
    }
    
    .footer-brand p {
        font-size: 13px;
    }
    
    .footer-logo {
        width: 60px;
        height: 60px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding: 20px 0 50px; /* Extra bottom padding for small screens */
    }
    
    .footer-bottom-content {
        padding: 0 10px;
        gap: 12px;
    }
    
    .footer-bottom p {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-bottom-links a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .map-container iframe {
        height: 160px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    footer {
        background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%) !important;
    }
    
    .social-icon:hover {
        background: linear-gradient(135deg, #f4d03f, #d4af37);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    footer {
        border-top: 3px solid #ffffff;
    }
    
    .footer-links a,
    .footer-contact a {
        border: 1px solid transparent;
    }
    
    .footer-links a:hover,
    .footer-contact a:hover {
        border-color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    footer::after,
    .particle,
    .social-icon::before {
        animation: none;
    }
    
    .footer-logo,
    .social-icon,
    .footer-links a {
        transition: none;
    }
}

/* Print styles */
@media print {
    footer {
        background: white !important;
        color: black !important;
        margin-bottom: 0 !important;
    }
    
    .footer-particles,
    .social-icon::before {
        display: none;
    }
    
    .footer-links a,
    .footer-contact a {
        color: black !important;
    }
}