/* Modern Footer Container - Roofing Theme */
.modern-footer-container {
    width: 100%;
    padding: 100px 0 0 0; /* Extra padding for the slanted top */
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    background-color: #0f172a; /* Deep charcoal/navy base */
    background-image: 
        repeating-linear-gradient(90deg, rgba(255,255,255, 0.015) 0px, rgba(255,255,255, 0.015) 1px, transparent 1px, transparent 60px), /* Gutter/Seam pattern */
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

/* Orange Slanted Accent (The Gutter/Roof Edge) */
.modern-footer-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ff6b00, #ff9e00);
    clip-path: polygon(0 15%, 100% 0, 100% 0.8%, 0 15.8%);
    z-index: 2;
    pointer-events: none;
}

/* Shimmer Effect */
.shimmer-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255, 0.03) 38%, rgba(255,255,255, 0.03) 40%, transparent 48%);
    animation: shimmer 8s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.modern-footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 60px 40px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 5;
}

/* Footer Column */
.footer-column {
    color: #ffffff;
}

/* Logo Section */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo {
    max-width: 240px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 10px 15px rgba(255,107,0,0.2));
}

.footer-logo-text {
    font-size: 15px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
    font-weight: 400;
}

/* Footer Title */
.footer-title {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 30px 0;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff6b00;
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

.footer-menu li {
    margin-bottom: 14px;
}

.footer-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-menu a::before {
    content: '→';
    font-size: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #ff6b00;
}

.footer-menu a:hover {
    color: #ffffff;
    transform: translateX(8px);
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #ff6b00;
    transition: all 0.3s ease;
}

.contact-item:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.4));
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

/* Social Media Icons */
.footer-social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ffffff;
    text-decoration: none;
}

.social-icon:hover {
    background: #ff6b00;
    border-color: #ff6b00;
    transform: translateY(-8px) rotate(8deg);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 25px 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright-text {
    color: #64748b;
    font-size: 14px;
}

/* Footer altındaki boşluğu kaldır */
body {
    margin-bottom: 0 !important;
}

#page,
#content,
.site-content,
main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Responsive - Desktop L */
@media (max-width: 1200px) {
    .modern-footer-wrapper {
        gap: 40px;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .modern-footer-container {
        clip-path: polygon(0 8%, 100% 0, 100% 100%, 0% 100%);
        padding-top: 80px;
    }
    .modern-footer-container::after {
        clip-path: polygon(0 8%, 100% 0, 100% 0.6%, 0 8.6%);
    }
    .modern-footer-wrapper {
        grid-template-columns: 1fr 1fr;
        padding: 40px 30px;
    }
    .footer-logo-section {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
    .footer-social-media {
        justify-content: center;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .modern-footer-container {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
    }
    .modern-footer-container::after {
        clip-path: polygon(0 5%, 100% 0, 100% 0.5%, 0 5.5%);
    }
    .modern-footer-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-menu a {
        justify-content: center;
    }
    .contact-item {
        justify-content: center;
    }
}

/* Smooth Animations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modern-footer-container * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
