/* MH Teknik Yapı İnşaat - Modern Header Stili */

/* Eski logo stillerini geçersiz kıl */
.logo, .header .logo, .header-inner .logo, #main-logo, .main-header-logo {
    max-width: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
    position: relative !important;
    z-index: 999 !important;
}

.logo img, .header .logo img, .header-inner .logo img, #main-logo img, .main-header-logo img {
    width: auto !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

/* Logo spesifik stil (en yüksek öncelik) */
#main-logo.logo.main-header-logo {
    display: inline-block !important;
    height: auto !important;
    max-height: 55px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#main-logo.logo.main-header-logo a {
    display: inline-block !important;
    line-height: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#main-logo.logo.main-header-logo img {
    height: 55px !important;
    width: auto !important;
    display: block !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Logo rengini beyaza çevirme sistemi - Farklı tarayıcılar için uyumlu */
.header-transparent:not(.sticky) .logo-img {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
    transition: all 0.3s ease !important;
}

/* Sticky modunda normal logo rengi */
.header-transparent.sticky .logo-img {
    filter: none !important;
    -webkit-filter: none !important;
    transition: all 0.3s ease !important;
}

/* Header Ana Yapı */
.header {
    position: fixed;
    width: 100%;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 80px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* Tam Sayfa Slider için Şeffaf Header */
.header-transparent {
    background-color: rgba(255, 255, 255, 0);
    box-shadow: none;
    position: absolute;
}

.header-transparent .header-projects {
    background-color: rgba(249, 249, 249, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-transparent .header-projects a {
    color: #fff;
}

.header-transparent .header-projects i,
.header-transparent .header-projects span.highlight {
    color: #e67e22;
}

.header-transparent .sidebar-toggle {
    background-color: rgba(248, 248, 248, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-transparent .sidebar-toggle i {
    color: #fff;
}

/* Tam sayfa slider sayfasında kaydırma yapıldığında, şeffaf header'ı opak yap */
.header-transparent.sticky {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
}

.header-transparent.sticky .header-projects {
    background-color: #f9f9f9;
    border: none;
}

.header-transparent.sticky .header-projects a {
    color: #333;
}

.header-transparent.sticky .sidebar-toggle {
    background-color: #f8f8f8;
    border: none;
}

.header-transparent.sticky .sidebar-toggle i {
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    position: relative;
}

/* Logo Alanı - Tamamen Yeniden Yazıldı */
header.header .logo {
    display: inline-block;
    height: auto;
    max-height: 55px;
    margin: 0;
    padding: 0;
    line-height: 0;
    position: relative;
    z-index: 999;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

header.header .logo a {
    display: inline-block;
    line-height: 0;
    background: none !important;
}

header.header .logo img {
    height: 55px;
    width: auto;
    max-width: 100%;
    display: block;
    border: none;
    background: transparent;
    box-shadow: none !important;
    object-fit: contain;
    padding: 0;
    margin: 0;
}

/* Header Proje Yönlendirme Alanı */
.header-projects {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 30px;
    padding: 8px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-projects:hover {
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.15);
    transform: translateX(-50%) translateY(-2px);
}

.header-projects a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.header-projects i {
    color: #e67e22;
    margin-right: 10px;
    font-size: 20px;
}

.header-projects span.highlight {
    color: #e67e22;
    font-weight: 600;
    margin: 0 4px;
}

/* Hamburger Menü Butonu */
.sidebar-toggle {
    width: 50px;
    height: 50px;
    background-color: #f8f8f8;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-right: 0;
    flex-shrink: 0;
}

.sidebar-toggle i {
    font-size: 30px;
    color: #333;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #e67e22;
    box-shadow: 0 5px 12px rgba(230, 126, 34, 0.3);
    transform: translateY(-2px);
}

.sidebar-toggle:hover i {
    color: #fff;
}

/* Sticky Header */
.header.sticky {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header.sticky #main-logo.logo.main-header-logo img {
    height: 48px !important;
}

.header.sticky .header-projects {
    padding: 6px 18px;
}

.header.sticky .header-projects i {
    font-size: 18px;
}

/* Sidebar Stili */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-header img {
    max-width: 110px;
    height: auto;
    box-shadow: none !important;
    background: none !important;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #333;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 50%;
}

.sidebar-close:hover {
    color: #e67e22;
    transform: rotate(90deg);
    background-color: rgba(230, 126, 34, 0.1);
}

/* Sidebar Menü */
.sidebar-menu {
    padding: 15px 0;
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-list li {
    margin: 3px 0;
}

.sidebar-menu-list li a {
    display: flex;
    align-items: center;
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    border-radius: 8px;
    margin: 0 10px;
    font-size: 14px;
}

.sidebar-menu-list li a:hover,
.sidebar-menu-list li a.active {
    color: #e67e22;
    background-color: rgba(230, 126, 34, 0.08);
}

.sidebar-menu-list li a i:first-child {
    margin-right: 10px;
    font-size: 18px;
    min-width: 20px;
    text-align: center;
    color: #e67e22;
}

.sidebar-dropdown > a i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 16px;
}

.sidebar-dropdown.active > a i:last-child {
    transform: rotate(90deg);
}

.sidebar-submenu {
    display: none;
    padding: 2px 0 2px 15px;
    margin: 0 20px;
    border-left: 2px dashed rgba(230, 126, 34, 0.2);
}

.sidebar-submenu li {
    margin: 0;
}

.sidebar-submenu li a {
    padding: 8px 12px;
    font-weight: 400;
    color: #555;
    display: block;
    font-size: 13px;
    border-radius: 6px;
    margin: 1px 0;
}

.sidebar-submenu li a:hover,
.sidebar-submenu li a.active {
    color: #e67e22;
    background-color: rgba(230, 126, 34, 0.05);
}

/* Sidebar Sosyal Medya */
.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.sidebar-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-social a:hover {
    background-color: #e67e22;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(230, 126, 34, 0.3);
}

/* Sidebar Alt Kısmı - İletişim Kartı */
.sidebar-contact-card {
    padding: 20px 15px;
    background-color: #f8f8f8;
    margin: 15px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #e67e22, #f39c12);
}

.sidebar-contact-card h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 16px;
    position: relative;
    padding-bottom: 8px;
    font-weight: 600;
}

.sidebar-contact-card h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: #e67e22;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-info p {
    margin: 0 0 10px;
    display: flex;
    align-items: flex-start;
    color: #555;
    font-size: 13px;
}

.contact-info p i {
    margin-right: 10px;
    color: #e67e22;
    font-size: 16px;
    min-width: 18px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to right, #e67e22, #f39c12);
    color: #fff;
    text-align: center;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.2);
}

.contact-btn i {
    font-size: 16px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ana İçerik - Boşluk Kaldırıldı */
.main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Header altındaki içerik için, slider olmayan sayfalarda padding ekleme */
.no-slider .main-content {
    padding-top: 100px !important;
}

/* Tam ekran slider kullanıldığında boşluk olmaması için */
.fullscreen-slider + .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Responsive Ayarlar */
@media screen and (max-width: 1200px) {
    #main-logo.logo.main-header-logo img {
        height: 50px !important;
    }
    
    .header-projects {
        padding: 7px 18px;
    }
    
    .header-projects a {
        font-size: 14px;
    }
    
    .header-projects i {
        font-size: 18px;
    }
}

@media screen and (max-width: 992px) {
    .header {
        height: 75px;
    }
    
    #main-logo.logo.main-header-logo img {
        height: 48px !important;
    }
    
    .main-content {
        margin-top: 75px;
    }
    
    .sidebar {
        width: 300px;
        left: -300px;
    }
    
    .header-projects {
        padding: 6px 15px;
    }
    
    .header-projects a {
        font-size: 13px;
    }
    
    .header-projects i {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .sidebar-toggle {
        width: 45px;
        height: 45px;
    }
    
    .sidebar-toggle i {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .header-inner {
        justify-content: space-between;
    }
    
    #main-logo.logo.main-header-logo img {
        height: 45px !important;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .sidebar-contact-card {
        padding: 20px 15px;
        margin: 12px;
    }
    
    .sidebar-header img {
        max-width: 100px;
    }
    
    .sidebar-toggle {
        width: 42px;
        height: 42px;
    }
    
    .sidebar-toggle i {
        font-size: 26px;
    }
    
    .header-projects {
        display: none;
    }
    
    /* Mobil cihazlarda her zaman normal logo rengi */
    .header-transparent .logo-img {
        filter: none !important;
        -webkit-filter: none !important;
    }
}

@media screen and (max-width: 576px) {
    .header {
        height: 60px;
    }
    
    .logo {
        height: 40px;
    }
    
    .logo img {
        max-width: 110px;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar-header {
        padding: 18px 20px;
    }
    
    .sidebar-menu-list li a {
        padding: 10px 15px;
        margin: 0 5px;
    }
    
    .sidebar-submenu {
        margin: 0 10px;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .sidebar-social a {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
    
    .sidebar-contact-card {
        padding: 18px 15px;
        margin: 10px;
    }
    
    .sidebar-toggle {
        width: 36px;
        height: 36px;
    }
    
    .sidebar-toggle i {
        font-size: 22px;
    }
}

/* Animasyonlar */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInLeft {
    animation: fadeInLeft 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
} 