/* Genel Stiller ve Koyu Tema */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: #e0ac69;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #e0ac69;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 60px;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    font-weight: 500;
    font-size: 1.1em;
}

.iletisim-hizli .telefon-buton {
    background-color: #e0ac69;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.iletisim-hizli .telefon-buton:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Header - Mobil için eklemeler (BURGER MENÜ) */
.burger-menu {
    display: none; /* Varsayılan olarak gizli (masaüstünde) */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Navigasyonun üzerinde olması için */
    margin-left: 15px;
}

.burger-menu .burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e0ac69;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Mobil Navigasyon Stilleri (BURGER MENÜ İÇİN) */
header nav {
    transition: transform 0.3s ease-in-out;
}


/* Hero Section (Ana Sayfa) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./src/mbdiamond-background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: scrollBackground 50s linear infinite;
}

@keyframes scrollBackground {
    0% { background-position: 0 0; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0 0; }
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    animation: fadeInDown 1s ease-out;
}

.hero h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease-out 0.5s;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 1s;
}

.cta-button {
    background-color: #e0ac69;
    color: #1a1a1a;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #222222;
}

.services h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.service-item:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(224, 172, 105, 0.2);
}

.service-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #e0ac69;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.image-compare {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.image-compare img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.image-compare img:last-child {
    opacity: 0;
}

.gallery-item:hover .image-compare img:first-child {
    opacity: 0;
}

.gallery-item:hover .image-compare img:last-child {
    opacity: 1;
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    color: #e0ac69;
    padding: 10px;
    margin: 0;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover p {
    opacity: 1;
}

/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: #222222;
}

.about-us h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.about-text ul li::before {
    content: '✓';
    color: #e0ac69;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-image {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.about-image img {
    border-radius: 10px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-image: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.9)), url('contact-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.contact h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form form label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: 500;
}

.contact-form form input[type="text"],
.contact-form form input[type="tel"],
.contact-form form select,
.contact-form form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #f0f0f0;
    box-sizing: border-box;
}

.contact-form form input[type="text"]:focus,
.contact-form form input[type="tel"]:focus,
.contact-form form select:focus,
.contact-form form textarea:focus {
    outline: none;
    border-color: #e0ac69;
    box-shadow: 0 0 8px rgba(224, 172, 105, 0.5);
}

.contact-form form button[type="submit"] {
    background-color: #e0ac69;
    color: #1a1a1a;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form form button[type="submit"]:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    filter: invert(70%) sepia(50%) saturate(500%) hue-rotate(350deg) brightness(95%) contrast(90%);
}

.map {
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    overflow: hidden; /* Taşan içeriği gizle */
}

.map iframe {
    width: 100%;
    height: 450px; /* Yüksekliği koru veya ayarla */
    border: 0; /* Kenarlığı kaldır */
    display: block; /* Blok element yap */
}

/* Footer */
footer {
    background-color: #111111;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer a {
    color: #e0ac69;
    margin: 0 10px;
}

footer a:hover {
    color: #ffffff;
}

/* Kaydırma Animasyonları */
.service-item, .gallery-item, .about-text, .about-image, .contact-form, .contact-info {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-item.visible, .gallery-item.visible, .about-text.visible, .about-image.visible, .contact-form.visible, .contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scroll Stili (Opsiyonel) */
header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 10px 0;
}
header.scrolled .logo img {
    height: 50px; /* Küçültülmüş logo */
}


/* Responsive Tasarım & Burger Menü */
@media (max-width: 992px) {
    header .container {
        justify-content: space-between;
        align-items: center;
    }

    header nav#main-nav { /* ID ile daha belirgin seçici */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(8px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%); /* Başlangıçta ekranın sağında gizli */
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: 80px; /* Header yüksekliği kadar boşluk veya isteğe bağlı */
        z-index: 999;
    }

    header nav#main-nav.active {
        transform: translateX(0); /* Aktif olduğunda görünür hale getir */
    }

    header nav#main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    header nav#main-nav ul li {
        margin: 20px 0;
    }

    header nav#main-nav ul li a {
        font-size: 1.8em;
        color: #f0f0f0;
    }
    header nav#main-nav ul li a:hover {
        color: #e0ac69;
    }

    .burger-menu {
        display: block; /* Mobil görünümde burger butonunu göster */
    }

    /* Burger Butonu Aktif (X) Hali */
    .burger-menu.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active .burger-bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Diğer mobil düzenlemeler */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-content {
        flex-direction: column;
    }
    .about-image {
        margin-top: 30px;
    }

    header.scrolled nav#main-nav {
        /* Eğer header küçülüyorsa, mobil nav'ın top pozisyonunu ayarlamanız gerekebilir */
        /* Örneğin header.scrolled yüksekliği 70px ise, padding-top: 70px; olabilir. */
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3em;
    }
    .hero h2 {
        font-size: 1.5em;
    }
    .service-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .iletisim-hizli {
        /* Mobil menü açıkken hızlı iletişim butonunu gizleyebilir veya farklı konumlandırabilirsiniz. */
        /* Örnek: header nav#main-nav.active ~ .iletisim-hizli { display: none; } */
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5em;
    }
    .hero h2 {
        font-size: 1.2em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .iletisim-hizli .telefon-buton {
        display: block;
        text-align: center;
        margin-top: 10px; /* Burger menüden ayrı bir satırda gibi görünmesi için */
        /* Eğer burger menü ile yanyana kalması isteniyorsa farklı bir düzenleme gerekir. */
        /* Şimdiki düzende burger sağda, bu ortada gibi kalır. */
    }

    /* Belki en küçük ekranlarda hızlı iletişim butonunu gizlemek daha iyi olabilir */
    /* .iletisim-hizli { display: none; } */
}