/* ========================================
   MODERN FOOTER 2025
   Premium & Elegant Design
   ======================================== */

:root {
    --footer-navy: #0a1628;
    --footer-navy-light: #152238;
    --footer-orange: #ff5e15;
    --footer-orange-light: #ff8a4d;
}

/* Main Footer */
.modern-footer {
    background: linear-gradient(180deg, #0d1b2a 0%, #1b263b 100%);
    position: relative;
    overflow: hidden;
}

/* Remove all underlines from footer links */
.modern-footer a,
.modern-footer a:hover,
.modern-footer a:focus,
.modern-footer a:active,
.modern-footer a:visited {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Decorative Background Elements */
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 94, 21, 0.5) 50%, transparent 100%);
}

.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 94, 21, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 32, 82, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer-main-content {
    padding: 70px 0 50px;
    position: relative;
    z-index: 1;
}

/* Footer Brand Section */
.footer-brand {
    margin-bottom: 0;
}

.modern-footer .footer-main-content .container .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

.modern-footer .footer-main-content .row > [class*="col-"] {
    align-self: flex-start !important;
    vertical-align: top !important;
}

.modern-footer .footer-main-content [class*="col-xl-"],
.modern-footer .footer-main-content [class*="col-lg-"],
.modern-footer .footer-main-content [class*="col-md-"] {
    align-self: flex-start !important;
}

.modern-footer .footer-brand,
.modern-footer .footer-widget {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer-logo {
    margin-bottom: 24px;
    display: inline-block;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(255, 94, 21, 0.6));
    transform: translateY(-3px) scale(1.02);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 28px 0;
    max-width: 380px;
    font-weight: 400;
}

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

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 19px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* LinkedIn */
.social-link[aria-label="LinkedIn"]:hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: #0077b5;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 119, 181, 0.5);
}

.social-link[aria-label="LinkedIn"]:hover::before {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

/* WhatsApp */
.social-link[aria-label="WhatsApp"]:hover {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    border-color: #25D366;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.social-link[aria-label="WhatsApp"]:hover::before {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

/* Telefon */
.social-link[aria-label="Telefon"]:hover {
    background: linear-gradient(135deg, #ff5e15 0%, #e54d0a 100%);
    border-color: var(--footer-orange);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(255, 94, 21, 0.5);
}

.social-link[aria-label="Telefon"]:hover::before {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

/* YouTube */
.social-link[aria-label="YouTube"]:hover {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
    border-color: #FF0000;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(255, 0, 0, 0.5);
}

.social-link[aria-label="YouTube"]:hover::before {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

/* E-posta */
.social-link[aria-label="E-posta"]:hover {
    background: linear-gradient(135deg, #EA4335 0%, #c5362d 100%);
    border-color: #EA4335;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(234, 67, 53, 0.5);
}

.social-link[aria-label="E-posta"]:hover::before {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

/* Footer Widget */
.footer-widget {
    margin-bottom: 0;
    max-width: 100%;
}

/* Contact Widget Specific */
.footer-widget:has(.footer-contact-list) {
    max-width: 350px;
}

.footer-widget-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
    margin: 0 0 28px 0;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-orange) 0%, transparent 100%);
    border-radius: 3px;
}

.footer-widget-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--footer-orange);
    border-radius: 3px;
    filter: blur(4px);
    opacity: 0.5;
}

/* Contact Info */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.footer-contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--footer-orange);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 94, 21, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(255, 94, 21, 0.15);
}

.footer-contact-item:hover::before {
    transform: scaleY(1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 94, 21, 0.12) 0%, rgba(255, 94, 21, 0.08) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-orange);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--footer-orange), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--footer-orange) 0%, #e54d0a 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px rgba(255, 94, 21, 0.4);
}

.footer-contact-item:hover .contact-icon::before {
    opacity: 1;
}

.contact-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    overflow: hidden;
}

.contact-info h5 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 4px 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left !important;
    display: block;
    width: auto;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    line-height: 1.4;
    text-align: left !important;
    width: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-bottom: none !important;
}

.contact-info a:hover {
    color: var(--footer-orange);
    text-decoration: none !important;
    border-bottom: none !important;
}

.contact-info a:focus,
.contact-info a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

/* Footer Links */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
}

.footer-links-list li {
    width: fit-content;
    max-width: 100%;
}

.footer-links-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: none !important;
    width: fit-content;
    max-width: 100%;
}

.footer-links-list li a::before {
    content: '→';
    font-size: 12px;
    color: var(--footer-orange);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.footer-links-list li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 16px;
    text-decoration: none !important;
    border-bottom: none !important;
}

.footer-links-list li a:focus,
.footer-links-list li a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

/* Footer Bottom - SEO Links */
.footer-seo-section {
    background: rgba(0, 0, 0, 0.25);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.footer-seo-section * {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-seo-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-seo-section a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.footer-seo-section a:hover,
.footer-seo-section a:focus,
.footer-seo-section a:active {
    color: white !important;
    background: rgba(255, 94, 21, 0.1);
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.footer-seo-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    margin: 0 8px;
    font-size: 14px;
}

/* Copyright Section */
.footer-copyright {
    background: rgba(0, 0, 0, 0.35);
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.copyright-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

.copyright-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.copyright-text b {
    color: white;
    font-weight: 700;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.footer-badge i {
    color: var(--footer-orange);
    font-size: 14px;
    transition: all 0.4s ease;
}

.footer-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 94, 21, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 21, 0.2);
}

.footer-badge:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 94, 21, 0.6));
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .footer-main-content {
        padding: 60px 0 40px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main-content {
        padding: 50px 0 30px;
    }
    
    .footer-brand {
        margin-bottom: 40px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
    
    .footer-widget-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .footer-seo-section {
        padding: 16px 0;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main-content {
        padding: 40px 0 20px;
    }
    
    .footer-logo img {
        max-width: 140px;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-widget-title {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .footer-contact-item {
        padding: 14px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .contact-info {
        min-width: 0;
        flex: 1;
    }
    
    .contact-info h5 {
        font-size: 10px;
    }
    
    .contact-info a {
        font-size: 13px;
        word-break: break-word;
    }
    
    .footer-links-list li a {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .footer-seo-section {
        padding: 14px 0;
    }
    
    .footer-seo-links {
        flex-direction: column;
        gap: 2px;
    }
    
    .footer-seo-links .separator {
        display: none;
    }
    
    .footer-copyright {
        padding: 16px 0;
    }
    
    .copyright-text {
        font-size: 11px;
    }
    
    .footer-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
}


/* Force remove all underlines from SEO section */
.footer-seo-section a,
.footer-seo-section a:link,
.footer-seo-section a:visited,
.footer-seo-section a:hover,
.footer-seo-section a:active,
.footer-seo-section a:focus {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    text-underline-offset: 0 !important;
}


/* Force top alignment for all footer columns */
.modern-footer .row.align-items-start {
    align-items: flex-start !important;
}

.modern-footer .row.align-items-start > * {
    align-self: flex-start !important;
}


/* Back to Top Button - Modern Design */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff5e15 0%, #e54d0a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 94, 21, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    border: none;
    outline: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 94, 21, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 94, 21, 0.6);
    }
}

.back-to-top:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 94, 21, 0.7);
}

.back-to-top:active {
    transform: scale(1.05);
}

.back-to-top i {
    animation: arrowFloat 2s ease-in-out infinite;
}

@keyframes arrowFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.back-to-top:hover i {
    animation: arrowJump 0.6s ease-in-out infinite;
}

@keyframes arrowJump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}


/* Contact Items - Compact Design */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    max-width: 100%;
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 94, 21, 0.3);
    transform: translateX(5px);
}


/* Force Left Alignment for Contact Info */
.modern-footer .footer-contact-list {
    width: 100%;
    max-width: 100%;
}

.modern-footer .footer-contact-item {
    width: 100%;
    max-width: 100%;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px 18px !important;
}

.modern-footer .contact-icon {
    flex-shrink: 0 !important;
    width: 48px !important;
    height: 48px !important;
    margin-right: 0 !important;
}

.modern-footer .contact-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 62px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    overflow: hidden;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.modern-footer .contact-info h5 {
    width: auto !important;
    text-align: left !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}

.modern-footer .contact-info a {
    width: auto !important;
    max-width: 100% !important;
    text-align: left !important;
    display: block !important;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 0 !important;
    margin: 0 !important;
}

/* Desktop specific - tighter spacing */
@media (min-width: 992px) {
    .modern-footer .col-xl-3:has(.footer-contact-list) {
        max-width: 350px;
        flex: 0 0 350px;
    }
    
    .modern-footer .footer-contact-item {
        gap: 12px !important;
        padding: 16px 16px !important;
    }
}

/* Footer Grid Layout Fix */
@media (min-width: 1200px) {
    .modern-footer .footer-main-content .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 20px;
    }
    
    .modern-footer .footer-main-content .col-xl-4 {
        flex: 0 0 auto;
        width: auto;
        max-width: 380px;
    }
    
    .modern-footer .footer-main-content .col-xl-3:has(.footer-contact-list) {
        flex: 0 0 auto;
        width: 350px;
        max-width: 350px;
    }
    
    .modern-footer .footer-main-content .col-xl-5 {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }
}
