/* Enhanced Footer Styles */

.footer {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    padding: 4rem 0 2rem;
}


.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #1e3a8a);
    border-radius: 2px;
}

.footer-social {
    margin-top: 2rem;
}

.footer-social h5 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Enhanced Social Links */
.social-links-enhanced {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(249, 115, 22, 1);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.social-link.github:hover { background: linear-gradient(135deg, #333, #000); }
.social-link.linkedin:hover { background: linear-gradient(135deg, #0077b5, #004182); }
.social-link.medium:hover { background: linear-gradient(135deg, #00ab6c, #008248); }
.social-link.twitter:hover { background: linear-gradient(135deg, #000000, #1a1a1a); }
.social-link.whatsapp:hover { background: linear-gradient(135deg, #25d366, #128c7e); }
.social-link.instagram:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* Enhanced Footer Links */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.footer-links a i {
    color: #f97316;
    width: 20px;
    text-align: center;
}

.footer-links a:hover {
    color: #f97316;
    transform: translateX(5px);
}

/* Enhanced Contact Info */
.footer-contact-enhanced {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact-enhanced li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon-footer {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #1e3a8a);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.125rem;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info-footer span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-footer a {
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-footer a:hover {
    color: #f97316;
}

/* Newsletter Section */
.footer-newsletter {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.newsletter-text i {
    font-size: 3rem;
    color: #f97316;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.5));
}

.newsletter-text h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Back to Top Button */
.footer-back-top {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.back-top-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f97316, #1e3a8a);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.back-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
}

.back-top-btn i {
    font-size: 1.125rem;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
    flex-direction: column;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-align: center;
}

.footer-policies {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-policies a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: #f97316;
}

.footer-policies span {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .newsletter-text {
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        grid-auto-flow: row;
    }
    
    /* İlk bölüm (Logo) tam genişlik */
    .footer-content > .footer-section:first-child {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    /* Hızlı Linkler ve Hizmetlerimiz yan yana - aynı satırda */
    .footer-quick-links {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-services {
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Son bölüm (İletişim) tam genişlik */
    .footer-content > .footer-section:last-child {
        grid-column: 1 / -1;
        grid-row: 3;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        list-style: none;
        gap: 0.5rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
        justify-content: flex-start;
        gap: 0.5rem;
        white-space: normal;
        word-break: break-word;
    }
    
    .footer-links a i {
        font-size: 0.875rem;
        width: 16px;
        flex-shrink: 0;
    }
    
    .footer-newsletter {
        padding: 1.5rem;
        text-align: left;
    }
    
    .newsletter-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: flex-start !important;
    }
    
    .newsletter-text {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 0.75rem !important;
    }
    
    .newsletter-text i {
        display: none;
    }
    
    .newsletter-text > div {
        width: 100%;
    }
    
    .newsletter-text h3 {
        font-size: 1.25rem;
        text-align: left;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-text p {
        font-size: 0.9rem;
        text-align: left;
        width: 100%;
        margin: 0;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
    }
    
    .newsletter-form input {
        width: 100%;
        min-width: 100%;
        font-size: 1rem;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        padding-top: 1.5rem;
        gap: 1rem;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
    }
    
    .footer-bottom p {
        text-align: center !important;
        width: 100%;
        margin: 0 auto;
    }
    
    .footer-policies {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        display: flex;
        align-items: center;
        margin: 0 auto;
    }
    
    .footer-policies a {
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .footer-policies span {
        font-size: 0.75rem;
        flex-shrink: 0;
        margin: 0 0.1rem;
    }
    
    .social-links-enhanced {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .back-top-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    /* Küçük ekranlarda da Hızlı Linkler ve Hizmetlerimiz yan yana */
    .footer-content > .footer-section:first-child {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .footer-quick-links {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-services {
        grid-column: 2;
        grid-row: 2;
    }
    
    .footer-content > .footer-section:last-child {
        grid-column: 1 / -1;
        grid-row: 3;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
    }
    
    .footer-links li {
        margin-bottom: 0.4rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        justify-content: flex-start;
        gap: 0.4rem;
        white-space: normal;
        word-break: break-word;
    }
    
    .footer-links a i {
        font-size: 0.8rem;
        width: 14px;
        flex-shrink: 0;
    }
    
    .footer-newsletter {
        padding: 1.25rem;
        text-align: left;
    }
    
    .newsletter-content {
        gap: 1.25rem !important;
    }
    
    .newsletter-text {
        gap: 0.875rem !important;
    }
    
    .newsletter-text i {
        display: none;
    }
    
    .newsletter-text h3 {
        font-size: 1.125rem;
    }
    
    .newsletter-text p {
        font-size: 0.85rem;
    }
    
    .newsletter-form input {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
    
    .newsletter-form .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .social-links-enhanced {
        justify-content: flex-start;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon-footer {
        width: 45px;
        height: 45px;
    }
    
    .footer-bottom {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        width: 100%;
    }
    
    .footer-bottom p {
        text-align: center !important;
        width: 100%;
        margin: 0 auto;
    }
    
    .footer-policies {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.4rem;
        width: 100%;
        display: flex;
        align-items: center;
        margin: 0 auto;
    }
    
    .footer-policies a {
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .footer-policies span {
        font-size: 0.7rem;
        flex-shrink: 0;
        margin: 0 0.05rem;
    }
}

/* Footer Decorative Image */
.footer-decoration {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent);
}

.footer-decorative-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    opacity: 0.8;
    filter: drop-shadow(0 10px 30px rgba(249, 115, 22, 0.2));
    transition: all 0.5s ease;
    animation: floatImage 6s ease-in-out infinite;
}

.footer-decorative-image:hover {
    opacity: 1;
    filter: drop-shadow(0 15px 40px rgba(249, 115, 22, 0.4));
    transform: translateY(-10px);
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .footer-decoration {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-decorative-image {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .footer-decoration {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-decorative-image {
        max-height: 150px;
    }
}