﻿/* 
   CFEndüstriyel - Layout CSS - ULTIMATE VERSION
   Modern, Professional Design
   Kırmızı & Siyah Tema
   Tüm Sosyal Medya Butonları Orijinal Renklerde
   Footer İyileştirmeleri Dahil
*/

/* ==========================================
   NAVBAR - Modern Header
========================================== */
.navbar {
    padding: 0.5rem 0 !important;
    min-height: 100px;
    position: relative;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   LOGO - BÜYÜK VE DİKKAT ÇEKİCİ
========================================== */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 280px !important; /* Çok daha büyük logo! */
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    margin-top: -35px; /* Yukarı taşma */
    margin-bottom: -35px; /* Aşağı taşma */
    animation: logoEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    .logo-img:hover {
        transform: scale(1.08) translateY(-3px);
        filter: drop-shadow(0 8px 20px rgba(220, 0, 0, 0.25));
    }

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Navbar Scrolled - Logo küçülsün ama yine de büyük */
.navbar-scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

    .navbar-scrolled .logo-img {
        height: 150px !important;
        margin-top: -5px;
        margin-bottom: -5px;
    }

/* ==========================================
   NAVBAR MENU - Professional Styling
========================================== */
.navbar-collapse {
    align-items: center;
}

.navbar-nav {
    align-items: center;
}

    .navbar-nav .nav-item {
        margin: 0 0.25rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-weight: 600;
        font-size: 0.938rem;
        color: #333;
        transition: all 0.3s ease;
        position: relative;
    }

        .navbar-nav .nav-link:hover {
            color: #dc0000;
        }

.nav-link.active {
    color: #dc0000 !important;
    font-weight: 700;
}

    .nav-link.active i,
    .nav-link:hover i {
        color: #dc0000;
    }

/* ==========================================
   DROPDOWN MENUS
========================================== */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
}

    .dropdown-item i {
        width: 18px;
        color: #dc0000;
        font-size: 0.938rem;
    }

    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(220, 0, 0, 0.1) 0%, rgba(220, 0, 0, 0.05) 100%);
        color: #dc0000;
        padding-left: 2rem;
    }

    .dropdown-item.active {
        background: linear-gradient(135deg, #dc0000 0%, #a00000 100%);
        color: #fff;
    }

        .dropdown-item.active i {
            color: #fff;
        }

/* ==========================================
   SEARCH TRIGGER
========================================== */
.search-trigger {
    position: relative;
    transition: all 0.3s ease;
}

    .search-trigger i {
        font-size: 1.125rem;
        transition: all 0.3s ease;
    }

    .search-trigger:hover i {
        color: #dc0000;
        transform: scale(1.15);
    }

/* ==========================================
   CTA BUTTON
========================================== */
.btn-header-cta {
    padding: 0.75rem 1.75rem !important;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, #dc0000 0%, #a00000 100%);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 0, 0, 0.3);
    border: none;
}

    .btn-header-cta:hover {
        background: linear-gradient(135deg, #a00000 0%, #800000 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 0, 0, 0.4);
        color: #fff;
    }

    .btn-header-cta i {
        margin-right: 0.5rem;
    }

/* ==========================================
   TOP BAR - Modern Design
========================================== */
.top-bar {
    background: linear-gradient(135deg, #dc0000 0%, #b00000 100%);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* İletişim Linkleri */
.contact-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
}

    .contact-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }

    .contact-link i {
        margin-right: 8px;
        font-size: 0.938rem;
    }

/* ==========================================
   SOSYAL MEDYA İKONLARI - TOP BAR & FOOTER
   ORİJİNAL PLATFORM RENKLERİ
========================================== */
.social-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

    .social-icon-circle i {
        color: #fff;
        transition: all 0.3s ease;
        position: relative;
        z-index: 2;
    }

    /* WhatsApp - Yeşil */
    .social-icon-circle:has(.fa-whatsapp) {
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
        border-color: rgba(37, 211, 102, 0.3);
    }

        .social-icon-circle:has(.fa-whatsapp):hover {
            background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
            transform: translateY(-3px) scale(1.15);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
            border-color: #25D366;
        }

    /* Instagram - Gradient */
    .social-icon-circle:has(.fa-instagram) {
        background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
        border-color: rgba(253, 29, 29, 0.3);
    }

        .social-icon-circle:has(.fa-instagram):hover {
            background: linear-gradient(135deg, #5B2A86 0%, #C7161C 50%, #E68A00 100%);
            transform: translateY(-3px) scale(1.15);
            box-shadow: 0 6px 20px rgba(253, 29, 29, 0.6);
            border-color: #FD1D1D;
        }

    /* LinkedIn - Mavi */
    .social-icon-circle:has(.fa-linkedin-in),
    .social-icon-circle:has(.fa-linkedin) {
        background: linear-gradient(135deg, #0077B5 0%, #00669C 100%);
        border-color: rgba(0, 119, 181, 0.3);
    }

        .social-icon-circle:has(.fa-linkedin-in):hover,
        .social-icon-circle:has(.fa-linkedin):hover {
            background: linear-gradient(135deg, #00669C 0%, #004F7C 100%);
            transform: translateY(-3px) scale(1.15);
            box-shadow: 0 6px 20px rgba(0, 119, 181, 0.6);
            border-color: #0077B5;
        }

    /* Facebook - Mavi */
    .social-icon-circle:has(.fa-facebook-f),
    .social-icon-circle:has(.fa-facebook) {
        background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
        border-color: rgba(24, 119, 242, 0.3);
    }

        .social-icon-circle:has(.fa-facebook-f):hover,
        .social-icon-circle:has(.fa-facebook):hover {
            background: linear-gradient(135deg, #0C63D4 0%, #084298 100%);
            transform: translateY(-3px) scale(1.15);
            box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6);
            border-color: #1877F2;
        }

    /* Twitter/X - Siyah */
    .social-icon-circle:has(.fa-twitter),
    .social-icon-circle:has(.fa-x-twitter) {
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
        border-color: rgba(0, 0, 0, 0.3);
    }

        .social-icon-circle:has(.fa-twitter):hover,
        .social-icon-circle:has(.fa-x-twitter):hover {
            background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
            transform: translateY(-3px) scale(1.15);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
            border-color: #000;
        }

    /* Hover Glow Effect */
    .social-icon-circle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0);
        transition: transform 0.3s ease;
        z-index: 1;
    }

    .social-icon-circle:hover::before {
        transform: scale(1);
    }

/* Pulse Animation */
@keyframes socialPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 currentColor;
        opacity: 0.7;
    }

    50% {
        box-shadow: 0 0 0 8px currentColor;
        opacity: 0;
    }
}

.social-icon-circle:hover {
    animation: socialPulse 1.5s infinite;
}

/* ==========================================
   FLOATING SOCIAL BAR - ALT KONUMDA
   ORİJİNAL PLATFORM RENKLERİ
========================================== */
.floating-social-bar {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    /* WhatsApp - Orijinal Yeşil */
    .floating-social-btn.whatsapp {
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    }

        .floating-social-btn.whatsapp:hover {
            background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
            transform: translateX(-8px) scale(1.12);
            box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
        }

    /* Instagram - Orijinal Gradient */
    .floating-social-btn.instagram {
        background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
    }

        .floating-social-btn.instagram:hover {
            background: linear-gradient(135deg, #5B2A86 0%, #C7161C 50%, #E68A00 100%);
            transform: translateX(-8px) scale(1.12);
            box-shadow: 0 8px 25px rgba(253, 29, 29, 0.6);
        }

    /* LinkedIn - Orijinal Mavi */
    .floating-social-btn.linkedin {
        background: linear-gradient(135deg, #0077B5 0%, #00669C 100%);
    }

        .floating-social-btn.linkedin:hover {
            background: linear-gradient(135deg, #00669C 0%, #004F7C 100%);
            transform: translateX(-8px) scale(1.12);
            box-shadow: 0 8px 25px rgba(0, 119, 181, 0.6);
        }

    /* Facebook - Orijinal Mavi */
    .floating-social-btn.facebook {
        background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
    }

        .floating-social-btn.facebook:hover {
            background: linear-gradient(135deg, #0C63D4 0%, #084298 100%);
            transform: translateX(-8px) scale(1.12);
            box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
        }

    /* Twitter/X - Siyah */
    .floating-social-btn.twitter,
    .floating-social-btn.x-twitter {
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    }

        .floating-social-btn.twitter:hover,
        .floating-social-btn.x-twitter:hover {
            background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
            transform: translateX(-8px) scale(1.12);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
        }

    /* Phone - Kırmızı (Site Rengi) */
    .floating-social-btn.phone {
        background: linear-gradient(135deg, #dc0000 0%, #a00000 100%);
    }

        .floating-social-btn.phone:hover {
            background: linear-gradient(135deg, #a00000 0%, #800000 100%);
            transform: translateX(-8px) scale(1.12);
            box-shadow: 0 8px 25px rgba(220, 0, 0, 0.6);
        }

    /* Email - Mavi */
    .floating-social-btn.email {
        background: linear-gradient(135deg, #4285F4 0%, #1967D2 100%);
    }

        .floating-social-btn.email:hover {
            background: linear-gradient(135deg, #1967D2 0%, #0D47A1 100%);
            transform: translateX(-8px) scale(1.12);
            box-shadow: 0 8px 25px rgba(66, 133, 244, 0.6);
        }

    /* Hover Glow Efekti */
    .floating-social-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0);
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

    .floating-social-btn:hover::before {
        transform: scale(1);
    }

    .floating-social-btn i {
        font-size: 1.4rem;
        position: relative;
        z-index: 1;
        transition: transform 0.3s ease;
    }

    .floating-social-btn:hover i {
        transform: scale(1.2) rotate(5deg);
        animation: socialPulse 0.6s ease;
    }

@keyframes socialIconPulse {
    0%, 100% {
        transform: scale(1.2) rotate(5deg);
    }

    50% {
        transform: scale(1.3) rotate(-5deg);
    }
}

/* Slide-in Animasyonu */
.floating-social-btn {
    animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

    .floating-social-btn:nth-child(1) {
        animation-delay: 0.1s;
    }

    .floating-social-btn:nth-child(2) {
        animation-delay: 0.2s;
    }

    .floating-social-btn:nth-child(3) {
        animation-delay: 0.3s;
    }

    .floating-social-btn:nth-child(4) {
        animation-delay: 0.4s;
    }

    .floating-social-btn:nth-child(5) {
        animation-delay: 0.5s;
    }

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   SCROLL TO TOP BUTTON
========================================== */
.scroll-to-top,
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc0000 0%, #a00000 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(220, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .scroll-to-top.show,
    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .scroll-to-top:hover,
    .back-to-top:hover {
        background: linear-gradient(135deg, #a00000 0%, #800000 100%);
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(220, 0, 0, 0.4);
        color: #fff;
    }

    .scroll-to-top i,
    .back-to-top i {
        font-size: 1.25rem;
        animation: arrowBounce 1.5s ease-in-out infinite;
    }

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   FOOTER - LOGO VE İKONLAR İYİLEŞTİRMELERİ
========================================== */

/* Footer Logo - Orijinal Renk + Kırmızı Çerçeve */
.footer-dark .footer-logo img {
    max-height: 120px !important;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 4px solid #dc0000;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.footer-dark .footer-logo:hover img {
    transform: scale(1.05);
    background: rgba(220, 0, 0, 0.1);
    border-color: #ff1a1a;
    box-shadow: 0 4px 20px rgba(220, 0, 0, 0.4);
}

/* Footer İkonları - Kırmızı */
.footer-dark .footer-link i {
    color: #dc0000 !important;
    margin-right: 12px;
    width: 22px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-dark .footer-link:hover i {
    color: #ff1a1a !important;
    transform: scale(1.15);
}

/* Footer Text İkonları */
.footer-dark .footer-text i {
    color: #dc0000 !important;
    margin-right: 10px;
    font-size: 1rem;
}

/* Footer Heading Altındaki Kırmızı Çizgi */
.footer-dark .footer-heading::after {
    background: linear-gradient(135deg, #dc0000 0%, #a00000 100%);
}

/* Sosyal Medya İkonları Footer'da da Renkli */
.footer-dark .social-icon-circle i {
    color: #fff !important;
}

/* ==========================================
   RESPONSIVE - TABLET
========================================== */
@media (max-width: 1199px) {
    .logo-img {
        height: 220px !important;
        margin-top: -25px;
        margin-bottom: -25px;
    }

    .navbar-scrolled .logo-img {
        height: 130px !important;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */
@media (max-width: 991px) {
    .navbar {
        min-height: auto;
        padding: 0.5rem 0 !important;
    }

    .logo-img {
        height: 100px !important;
        margin-top: -10px;
        margin-bottom: -10px;
    }

    .navbar-scrolled .logo-img {
        height: 80px !important;
        margin-top: -5px;
        margin-bottom: -5px;
    }

    .navbar-nav .nav-item {
        margin: 0;
    }

    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-menu {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.02);
        margin-top: 0;
    }

    .dropdown-item {
        padding: 0.875rem 2rem;
    }

    .btn-header-cta {
        margin: 1rem 0.5rem;
        display: block;
        text-align: center;
    }

    /* Floating Social Bar - Mobile */
    .floating-social-bar {
        right: 15px;
        bottom: 80px;
        gap: 10px;
    }

    .floating-social-btn {
        width: 50px;
        height: 50px;
    }

        .floating-social-btn i {
            font-size: 1.2rem;
        }

        .floating-social-btn:hover {
            transform: translateX(-5px) scale(1.08);
        }

    .social-icon-circle {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .scroll-to-top,
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .logo-img {
        height: 80px !important;
        margin-top: -5px;
        margin-bottom: -5px;
    }

    .navbar-scrolled .logo-img {
        height: 65px !important;
        margin-top: 0;
        margin-bottom: 0;
    }

    .top-bar {
        padding: 8px 0;
    }

    .contact-link {
        font-size: 0.813rem;
    }

    .social-icon-circle {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }

    .floating-social-bar {
        right: 10px;
        bottom: 70px;
        gap: 8px;
    }

    .floating-social-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    /* Footer Logo Mobile */
    .footer-dark .footer-logo img {
        max-height: 90px !important;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .floating-social-btn {
        width: 44px;
        height: 44px;
    }

        .floating-social-btn i {
            font-size: 1rem;
        }
}

/* ==========================================
   ACCESSIBILITY
========================================== */
.floating-social-btn:focus,
.scroll-to-top:focus,
.back-to-top:focus,
.social-icon-circle:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-social-btn,
    .floating-social-btn i,
    .scroll-to-top,
    .back-to-top,
    .scroll-to-top i,
    .back-to-top i,
    .logo-img,
    .social-icon-circle {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================
   GENERAL STYLES
========================================== */
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #dc0000 0%, #a00000 100%);
    border-color: #dc0000;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #a00000 0%, #800000 100%);
        border-color: #a00000;
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(220, 0, 0, 0.3);
        color: #fff;
    }

a {
    color: #dc0000;
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        color: #a00000;
    }
