/* ============================================
   Yalçınkaya Hafriyat - Custom Styles
   ============================================ */

/* Color Variables */
:root {
    --primary-color: #0B1F3B;      /* Lacivert */
    --secondary-color: #1E3A5F;    /* Koyu lacivert */
    --accent-color: #2E86AB;       /* Açık mavi/teal */
    --light-accent: #A8DADC;       /* Çok açık mavi */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --success: #28A745;
    --shadow: rgba(11, 31, 59, 0.1);
    --shadow-hover: rgba(11, 31, 59, 0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 80px; /* Navbar height */
    overflow-x: hidden; /* Yatay kaymayı engelle */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.brand-text {
    color: var(--primary-color);
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.btn-teklif {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-teklif:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 31, 59, 0.9) 0%, rgba(30, 58, 95, 0.8) 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0;
    margin-top: -80px;
}

.page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 130px 0 90px;
    margin-top: -80px;
    color: var(--white);
    background:
        radial-gradient(900px 420px at 70% 35%, rgba(168, 218, 220, 0.22), rgba(168, 218, 220, 0) 60%),
        radial-gradient(700px 320px at 25% 75%, rgba(46, 134, 171, 0.18), rgba(46, 134, 171, 0) 62%),
        linear-gradient(135deg, rgba(11, 31, 59, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%);
    overflow: hidden;
}

/* Subtle grid pattern */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.18;
    pointer-events: none;
}

/* Soft bottom fade */
.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(248, 249, 250, 1));
    pointer-events: none;
}

.page-hero__title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 820px;
    margin: 0 auto;
}

.breadcrumb-wrap .breadcrumb-item,
.breadcrumb-wrap .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-wrap .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.breadcrumb-wrap .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.92);
}

.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.hero-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center; /* Dikey ortalama */
    justify-content: center;
    padding: 0;
    margin-top: 20px; /* Hero içindeki görsel bloğunu biraz aşağı kaydır */
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: scale(1.15);
    margin-top: 0; /* Üst-alt boşlukları eşitlemek için margin-top sıfırlandı */
    animation: slideInFromRight 1.4s ease-out; /* Bir tık daha yavaş */
}

@keyframes slideInFromRight {
    from {
        transform: translateX(140px) scale(1.15); /* Biraz daha sağdan gelsin */
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1.15);
        opacity: 1;
    }
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Project Gallery */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

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

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 31, 59, 0.9), transparent);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Why Choose Us */
/* Why Choose Us - Slider */
.why-choose-slider {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1.4rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

/* Alt gri çizgi - tüm cihazlarda görünür */
.why-choose-slider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.3rem;
    height: 3px; /* mobilde daha belirgin görünsün diye kalınlaştırıldı */
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    pointer-events: none;
}

.why-choose-slider::-webkit-scrollbar {
    height: 6px;
}

.why-choose-slider::-webkit-scrollbar-track {
    background: transparent;
}

.why-choose-slider::-webkit-scrollbar-thumb {
    background: rgba(11, 31, 59, 0.2);
    border-radius: 3px;
}

.why-choose-track {
    display: flex;
    gap: 1.5rem;
}

.why-choose-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

@media (min-width: 992px) {
    .why-choose-item {
        flex: 0 0 22%;
    }
}

.why-choose-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px var(--shadow);
}

.why-choose-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px var(--shadow-hover);
    transform: translateY(-5px);
}

.why-choose-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Trust Section */
.trust-section {
    background: var(--light-gray);
    padding: 60px 0;
}

.trust-item {
    text-align: center;
    padding: 2rem;
}

.trust-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.trust-label {
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 576px) {
    /* İstatistik alanını mobilde yan yana göstermek için */
    .trust-section .col-lg-3,
    .trust-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Mobilde içerikleri hafif sola kaydır (yaklaşık 20px) */
    .trust-section .trust-item {
        transform: translateX(-10px);
    }
}

/* Contact CTA Band */
.cta-band {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-band .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.cta-band .btn:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.form-control,
.form-select {
    border: 2px solid #E9ECEF;
    border-radius: 5px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(11, 31, 59, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

/* Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    margin-top: 80px;
}

.footer-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    margin-bottom: 1rem;
    color: var(--gray);
}

.footer-contact a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    animation: fadeIn 0.3s;
}

.lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.5rem 1rem;
}

.lightbox-content {
    max-width: 70%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    animation: zoomIn 0.3s;
}

#lightbox-caption {
    margin-top: 1rem;
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 90px 0 60px;
        margin-top: 0; /* mobilde navbar ile çakışmayı engelle */
    }
    
    .hero-image {
        margin-top: 30px;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .page-hero {
        min-height: 360px;
        padding: 110px 0 70px;
        margin-top: 0; /* mobilde navbar ile çakışmayı engelle */
    }

    .page-hero__title {
        font-size: 2.1rem;
    }

    .page-hero__subtitle {
        font-size: 1rem;
    }
    
    .hero-image img {
        transform: scale(1.05);
    }

    /* Lightbox - tablet ve mobilde daha tam ekran görünüm */
    .lightbox-content {
        max-width: 90%;
        max-height: 65vh;
        border-radius: 12px;
    }

    #lightbox-caption {
        font-size: 0.95rem;
    }

    /* Mobilde 'Neden Bizi Seçmelisiniz' slider kartlarını küçült */
    .why-choose-track {
        gap: 0.75rem;
    }

    .why-choose-item {
        flex: 0 0 210px;
    }

    .why-choose-card {
        padding: 1.4rem;
    }

    .why-choose-icon {
        font-size: 2.3rem;
        margin-bottom: 0.75rem;
    }

    @keyframes slideInFromRight {
        from {
            transform: translateX(50px) scale(1.05);
            opacity: 0;
        }
        to {
            transform: translateX(0) scale(1.05);
            opacity: 1;
        }
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 80px;
        right: 20px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .service-detail-card {
        padding: 2rem 1.5rem;
    }
    
    .service-detail-image img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding: 90px 0 50px;
        margin-top: 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }

    /* Mobilde hero CTA butonlarını yan yana hizala */
    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .page-hero {
        min-height: 320px;
        padding: 110px 0 60px;
        margin-top: 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    /* CTA band - mobilde butonları yan yana ve daha küçük göster */
    .cta-band .mt-4 {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .cta-band .mt-4 .btn {
        margin: 0;
        padding: 0.55rem 0.9rem;
        font-size: 0.9rem;
        flex: 1 1 50%;
        white-space: nowrap;
    }
}

/* Service Detail Cards (Hizmetler Sayfası) */
.service-detail-card {
    background: var(--white);
    padding: 2rem; /* daha kompakt */
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 3rem;
}

.service-icon-large {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.25rem;
}

.service-detail-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.service-detail-content .lead {
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

.service-features li {
    padding: 0.35rem 0;
    font-size: 0.98rem;
}

.service-detail-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* Value Cards (Hakkımızda Sayfası) */
.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow) !important;
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.machine-grid {
    margin-top: 1.5rem;
}

.machine-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 31, 59, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.machine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 31, 59, 0.18);
}

.machine-thumb {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.machine-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 31, 59, 0.55), transparent 60%);
    opacity: 0.8;
}

.machine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.machine-card:hover .machine-thumb img {
    transform: scale(1.08);
}

.machine-body {
    padding: 1.25rem 1.3rem 1.4rem;
    text-align: left;
}

.machine-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(11, 31, 59, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.machine-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.machine-count {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.35rem;
}

.machine-text {
    font-size: 0.93rem;
    color: var(--gray);
    margin-bottom: 0;
}

.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow) !important;
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Proje detay istatistikleri - mobilde yan yana görünüm */
@media (max-width: 576px) {
    .project-detail-stats .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
        display: flex;
        align-items: stretch;
    }

    .project-detail-stats .stat-box h3 {
        font-size: 1.6rem;
    }

    .project-detail-stats .stat-box {
        padding: 1rem;
        width: 100%;
    }
}

/* About page main image */
.about-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(11, 31, 59, 0.25);
    height: 100%;
    min-height: 360px;
}

.about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Info Items */
.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-item a {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

/* Form Messages */
#form-message {
    display: none;
}

#form-message.show {
    display: block;
}

#form-message.success {
    color: var(--success);
    background: #d4edda;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    color: #dc3545;
    background: #f8d7da;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 5px 20px var(--shadow) !important;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}
