/**
 * MSC İnşaat - Ana Stil Dosyası
 * Sade, kurumsal, görselsiz tasarım
 */

/* BBH Bogle Font - Kullanıcı font dosyasını eklediğinde aktif olacak */
/* Şimdilik Inter fontu kullanılıyor */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}




/* Header - Üst Bar */
header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 20px 0px 40px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 1px; /* Üstten boşluk */
}


/* Üst Satır - Sol (SINCE), Orta (Logo), Sağ (Telefon) */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Sol Bilgi Kutusu (SINCE XXXX gibi) */
.header-info {
    display: flex;
    align-items: center;
    min-width: 150px;
}

.info-box {
    background: linear-gradient(135deg, #0a142f 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(10, 20, 47, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    transform: skewX(-5deg);
    transition: all 0.3s ease;
    display: inline-block;
}

.info-box:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: skewX(-5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(10, 20, 47, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Logo Alanı (Ortada) */
.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin-top: 10px; /* Logo 3x aşağı */
}

.logo-area img {
    max-height: 155px;
    max-width: 505px;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: logoEntrance 1.2s ease-out;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.logo-area a {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Logo Animasyonu - Profesyonel Giriş */
@keyframes logoEntrance {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Logo Hover Efekti - Büyüme */
.logo-area a:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.15));
}

/* Sağ Taraf - Sosyal Medya İkonları */
.header-right {
    display: flex;
    align-items: center;
    min-width: 200px;
    justify-content: flex-end;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #000000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.15);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Instagram hover rengi */
.social-icon:nth-child(1):hover {
    color: #E4405F;
}

/* LinkedIn hover rengi */
.social-icon:nth-child(2):hover {
    color: #0077B5;
}

/* WhatsApp hover rengi */
.social-icon:nth-child(3):hover {
    color: #25D366;
}

/* Alt Satır - Menü (Logo Altında, Ortada) */
.header-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: -10px;
}

/* Menü (Yatay) */
.menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    padding: 0;
    margin: 0;
}

.menu li {
    position: relative;
    padding: 0 105px;
}

.menu li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    color: #cccccc;
    font-weight: 300;
    font-family: Arial, sans-serif;
}

.menu li {
    display: inline-block;
}

.menu a {
    text-decoration: none;
    color: #686868;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu a:hover {
    color: #0b0936;
}

/* Telefon Numaraları */
.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-contact .phone {
    color: #333333;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.header-contact .phone:hover {
    color: #061028;
}

/* Ana İçerik Alanı */
main {
    margin-top: 0; /* Slider header'ın altından başlayacak */
    padding: 0;
    min-height: calc(100vh - 130px);
    animation: slideUpFadeIn 0.8s ease-out;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero/Slider Alanı (Ana Sayfa için) */
.hero-section {
    width: 130vw;
    max-width: 100%;
    height: 720px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    background-color: #e5e7eb;
    margin: 40px 0 0 0;
    padding: 0;
    left: 0;
    right: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; /* Sağda görünen parçayı gizler */
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
    margin: 0;
    padding: 0;
}

/* Her slide grubu (3 resim içerir) */
.slide-group {
    width: 100%;
    min-width: 100%; /* Her slide tam genişlikte */
    height: 100%;
    display: flex;
    flex-shrink: 0;
    gap: 0; /* Boşluk yok - resimler kenarlara sıfır */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    align-items: stretch; /* Resimleri yüksekliğe sıfırla */
    justify-content: flex-start; /* Resimler sıfıra sıfır, boşluk yok */
}

.slider-wrapper img {
    height: 100%; /* Yükseklik %100 - slider'a sıfır */
    width: 100%; /* Genişlik %100 - alanı kapla */
    object-fit: cover; /* Resimler büyütülerek alanı kaplar, boşluk görünmez */
    object-position: center; /* Resimler ortadan hizalanır */
    flex-shrink: 0;
    display: block;
    margin: 0;
    padding: 0;
}

/* Sol resim - sol kenara sıfır */
.slide-group img:first-child {
    width: 33.333%; /* Sol resim genişliği - sıfıra sıfır */
    flex-shrink: 0;
}

/* Orta resim */
.slide-group img:nth-child(2) {
    width: 33.333%; /* Orta resim genişliği - sıfıra sıfır */
    flex-shrink: 0;
}

/* Sağ resim - sağ kenara sıfır */
.slide-group img:last-child {
    width: 33.334%; /* Sağ resim genişliği - sıfıra sıfır (toplam %100) */
    flex-shrink: 0;
}

/* Eğer sadece 2 resim varsa */
.slide-group img:only-child,
.slide-group img:nth-child(2):last-child {
    width: 50%;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    color: #3358c4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100; /* Butonların üstte olması için */
    position: relative;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.content-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    scroll-margin-top: 250px; /* Header yüksekliği için offset */
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hizmetler {
    scroll-margin-top: 250px; /* Hizmetler bölümü için özel offset */
}

.content-section h1 {
    font-size: 32px;
    color: #333333;
    margin-bottom: 50px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'BBH Bogle', 'Inter', Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.content-section h1::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, rgba(37, 99, 235, 0.3) 100%);
    position: relative;
    animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% {
        transform: scaleX(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.services-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .services-grid-home {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Alt Bar */
.bottom-bar {
    background-color: #0a142f;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 60px;
    width: 100%;
}

.bottom-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.bottom-bar-content p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.service-item {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-item h2 {
    font-size: 22px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'BBH Bogle', 'Inter', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    position: relative;
}

.service-item h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.3) 0%, #2563eb 50%, rgba(37, 99, 235, 0.3) 100%);
    animation: lineExpand 2s ease-in-out infinite;
}

.service-item p {
    color: #666666;
    line-height: 1.8;
    font-size: 15px;
}

/* Hakkımızda Sayfası İçerik Bloğu */
.about-content-block {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.about-content-block p {
    color: #333333;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-content-block p:last-child {
    margin-bottom: 0;
}

.service-image-container {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    margin: 0 auto 60px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image-container:hover img {
    transform: scale(1.05);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    gap: 10px;
}

.image-placeholder svg {
    width: 60px;
    height: 60px;
}

.image-placeholder span {
    font-size: 14px;
    color: #999;
}

/* Hizmetler Grid 2x2 */
.services-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-block {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-block h2 {
    font-size: 22px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'BBH Bogle', 'Inter', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 10px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 18px;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-item h2 {
    font-size: 20px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.6;
    font-family: 'BBH Bogle', 'Inter', Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-item p {
    font-size: 16px;
    color: #333333;
    line-height: 2;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

/* Referanslar Bölümü */
.references-section {
    width: 100%;
    padding: 80px 40px;
    background-color: #ffffff;
    margin-top: 0;
}

.references-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'BBH Bogle', 'Inter', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.references-title::before,
.references-title::after {
    content: '';
    flex: 1;
    max-width: 200px;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.3) 0%, #2563eb 50%, rgba(37, 99, 235, 0.3) 100%);
    position: relative;
    animation: lineExpand 2s ease-in-out infinite;
}

.references-title::before {
    animation-delay: 0s;
}

.references-title::after {
    animation-delay: 0.5s;
}

.references-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
}

.reference-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    position: relative;
}

.reference-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
}

.reference-item img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    header {
        padding: 12px 20px 8px 20px;
    }

    .header-right {
        min-width: auto;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .menu li {
        padding: 0 8px;
    }

    .menu a {
        font-size: 12px;
    }

    .header-contact .phone {
        font-size: 11px;
    }

    .info-box {
        font-size: 14px;
        padding: 10px 20px;
    }

    main {
        margin-top: 120px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px 8px 15px;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .header-info {
        min-width: auto;
        order: 1;
    }

    .logo-area {
        order: 2;
        flex: 1;
        justify-content: center;
    }

    .logo-area img {
        max-height: 40px;
        max-width: 150px;
    }

    .header-right {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        min-width: auto;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 26px;
        height: 26px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .header-bottom {
        margin-top: 8px;
    }

    .menu li {
        padding: 0 5px;
    }

    .menu a {
        font-size: 11px;
    }

    .header-contact {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .header-contact .phone {
        font-size: 10px;
    }

    main {
        margin-top: 140px;
    }

    .hero-section {
        height: 400px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .menu li {
        padding: 0 3px;
    }

    .menu a {
        font-size: 10px;
    }

    .info-box {
        font-size: 12px;
        padding: 8px 16px;
    }
}

