/* Sağ menü zorunlu arkaplan görünüm stilleri */
.right-menu {
    display: flex !important;
    flex-direction: column !important;
    width: 50% !important;
    margin-left: 50% !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.menu-item {
    flex: 1 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

.menu-item:before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: inherit !important;
    opacity: 0.65 !important;
    z-index: 1 !important;
}

.menu-item.about:before {
    background-color: rgba(30,42,58,1) !important;
}

.menu-item.services:before {
    background-color: rgba(196,18,48,1) !important;
}

.menu-item.product:before {
    background-color: rgba(0,104,56,1) !important;
}

.menu-item.contact:before {
    background-color: rgba(247,148,29,1) !important;
}

.menu-content {
    position: relative !important;
    z-index: 10 !important;
    text-align: center !important;
    color: white !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.menu-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    color: #fff;
}

.menu-content .menu-title {
    font-size: 2rem !important;
    font-weight: 300 !important;
    margin: 0 !important;
    color: #fff;
}

/* Dil değiştirme kontrolü için stiller */
.language-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.language-options {
    display: flex;
    background-color: rgba(30, 42, 58, 0.8);
    border-radius: 24px;
    padding: 6px 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin: 0 3px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.language-option.active {
    background-color: rgba(196, 18, 48, 0.9);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.language-option:hover {
    background-color: rgba(196, 18, 48, 0.7);
}

.lang-flag {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-option span {
    font-size: 13px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .language-switcher {
        bottom: 15px;
        left: 15px;
    }
    
    .lang-flag {
        width: 24px !important;
        height: 24px !important;
    }
    
    .right-menu {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .menu-item {
        height: 25vh !important;
    }
}

/* Menü Stilleri - inline stillerden taşınan kodlar */
.right-menu .menu-item {
    position: relative;
    overflow: hidden;
}

.right-menu .menu-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
    transition: transform 0.5s ease;
}

.right-menu .menu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.right-menu .menu-item.about::before {
    background-color: rgba(30,42,58,0.75);
}

.right-menu .menu-item.services::before {
    background-color: rgba(196,18,48,0.75);
}

.right-menu .menu-item.product::before {
    background-color: rgba(0,104,56,0.75);
}

.right-menu .menu-item.contact::before {
    background-color: rgba(247,148,29,0.75);
}

.right-menu .menu-item .menu-title {
    position: relative;
    z-index: 10;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

.right-menu .menu-item:hover img {
    transform: scale(1.05);
}

/* Performans için içerik yükleme optimizasyonları */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Kritik olmayan resimler için düşük kalite placeholder kullanımı */
.blur-up {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.blur-up.loaded {
    filter: blur(0);
}

/* Animasyon performansı iyileştirmeleri */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CSS animasyonlarında hardware acceleration kullanımı */
.slide-out {
    will-change: transform;
}

.active {
    will-change: opacity, transform;
}

/* Sayfa geçişleri için performans iyileştirmeleri */
.page-section {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Büyük blokların ve resimlerin boyut optimize edilmesi */
@media (max-width: 768px) {
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Responsive görüntü yönetimi */
@media (min-width: 992px) {
    .img-fluid.large-img {
        max-height: 450px;
        object-fit: cover;
    }
}

/* Preloader için iyileştirilmiş animasyon */
.preloader .spinner-border {
    animation-duration: 0.8s;
}

.fade-out {
    transition: opacity 0.3s ease;
}

/* Font rendering optimizasyonu */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
}

/* Pencere genişliğine göre görüntü önceliklendirme */
@media (max-width: 576px) {
    .d-sm-only {
        display: block !important;
    }
    
    .d-lg-only {
        display: none !important;
    }
}

@media (min-width: 577px) {
    .d-sm-only {
        display: none !important;
    }
    
    .d-lg-only {
        display: block !important;
    }
} 