/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Exo+2:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
    --primary-color: #D70006; /* Mekcar Kırmızısı */
    --dark-bg: #111111;
    --card-bg: #1a1a1a;
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted-light: #b3b3b3;
    --text-muted-dark: #6c757d;
    --border-color: #333;
    --whatsapp-color: #25d366;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 60px; /* Mobil bar için boşluk */
}

/* LOGO TASARIMI */
.brand-logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.brand-logo .karmec {
    color: #fff;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.brand-logo .auto {
    color: var(--primary-color);
    font-style: italic;
    margin-left: 2px;
}

.brand-logo i {
    font-size: 1.6rem;
    margin-right: 8px;
    color: var(--primary-color);
    transform: skewX(-15deg);
}

/* Koyu Temalı Sayfalar/Bölümler İçin Override */
body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar Customization */
.navbar {
    padding: 15px 0;
    transition: all 0.4s ease;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.nav-link {
    font-weight: 600;
    color: #fff !important;
    margin: 0 15px;
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    background: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    text-shadow: 0 4px 8px rgba(0,0,0,0.9);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff !important;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

/* Services Section */
#services {
    background-color: #f8f9fa;
    color: var(--text-dark);
}

.service-box {
    background-color: #fff;
    border: 1px solid #e9ecef;
    padding: 45px 30px;
    transition: all 0.4s ease;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon {
    color: #fff;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-box:hover .service-title {
    color: #fff;
}

.service-box p {
    color: var(--text-muted-dark);
}

.service-box:hover p {
    color: rgba(255,255,255,0.8);
}

/* Features Strip */
.features-strip {
    background-color: var(--primary-color);
    padding: 40px 0;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #fff;
}

/* Brands Section */
.bg-darker {
    background-color: #111;
    color: #fff;
}

.brand-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.brand-logo {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.filter-white {
    filter: brightness(0) invert(1) opacity(0.7);
}

.brand-item:hover .filter-white {
    filter: brightness(0) invert(1) opacity(1);
}

/* Gallery Section */
#gallery {
    background-color: #111;
    color: #fff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* About Section & Page */
#about {
    background-color: #fff;
    color: var(--text-dark);
}

/* References Page */
.reference-card {
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.reference-card .card-title {
    color: var(--text-dark);
}

.reference-card .card-text {
    color: var(--text-muted-dark);
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    color: white;
    transform: scale(1.1);
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px;
}

.mobile-sticky-bar a {
    flex: 1;
    margin: 0 5px;
    border-radius: 5px;
    padding: 10px 0;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .features-strip {
        margin-top: 0;
        border-radius: 0;
    }
    /* Mobilde WhatsApp ikonunu yukarı kaldır (barın üstüne) */
    .whatsapp-btn {
        bottom: 80px; 
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    /* Mobilde alt barı göster */
    .mobile-sticky-bar {
        display: flex;
    }
}
