/* --- PREMIUM FONT VE GENEL AYARLAR --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --primary: #1b2a4e; /* Derin Lacivert (Logo Rengi) */
    --accent: #d32f2f;  /* Baykar Kırmızısı / Aksiyon Rengi */
    --tech-blue: #2980b9;
    --dark: #0a0e17;
    --light: #f4f4f4;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Rajdhani', sans-serif; /* Tekno-Endüstriyel Font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a { text-decoration: none; transition: 0.3s; }

/* --- AKILLI NAVBAR (Baykar Tarzı) --- */
.navbar {
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar-brand img { height: 60px; filter: brightness(0) invert(1); } /* Logo Beyaz */

.navbar-transparent {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-scrolled {
    background: rgba(10, 14, 23, 0.95); /* Koyu Arka Plan */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 0 15px !important;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
    margin-top: 5px;
}
.nav-link:hover::after { width: 100%; }

/* Buton: Teklif Al (Parlayan Efekt) */
.btn-glow {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%); /* Hafif kesik köşe */
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-glow:hover::before { left: 100%; }
.btn-glow:hover { color: #fff; box-shadow: 0 0 20px rgba(211, 47, 47, 0.6); }

/* --- HERO SECTION (Tam ekran + karartma + tıklanabilir butonlar) --- */
.hero-slider .carousel-item {
    height: 100vh;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

/* Tam ekran karartma – tıklamayı engellemesin */
.hero-slider .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); /* Karartma seviyesi */
    z-index: 1;
    pointer-events: none; /* ÖNEMLİ: Buton tıklamasını engellemez */
}

/* Arka plan görseli */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    animation: zoomEffect 20s infinite alternate;
    pointer-events: none; /* Görsel de tıklamayı almasın */
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Yazılar ve butonlar */
.carousel-caption {
    position: relative;
    z-index: 2; /* Overlay ve görselin üstünde */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 5%;
    background: none; /* Buradaki eski karartmayı kaldırıyoruz */
}


.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

/* --- İSTATİSTİK BÖLÜMÜ (Koyu) --- */
.stats-section {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
    position: relative;
    margin-top: -60px; /* Hero'nun üzerine hafif biner */
    z-index: 10;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--tech-blue);
    margin-bottom: 0;
}

/* --- KARTLAR & HİZMETLER --- */
.section-header {
    margin-bottom: 60px;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--primary);
}

.section-header h5 { color: var(--accent); letter-spacing: 2px; }
.section-header h2 { font-size: 3rem; color: var(--primary); }

.tech-card {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: #000;
    group: hover;
}

.tech-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
    opacity: 0.7;
}

.tech-card:hover img {
    transform: scale(1.1);
    opacity: 0.3;
}

.tech-card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    transition: 0.4s;
}

.tech-card h3 { color: #fff; font-size: 1.8rem; }
.tech-card .icon-box {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
    color: var(--accent);
    font-size: 2rem;
}

.tech-card:hover .icon-box { opacity: 1; transform: translateY(0); }

/* --- FOOTER --- */
footer { background: #0b0d11; color: #888; }
footer h4 { color: #fff; margin-bottom: 25px; }
footer a { color: #888; }
footer a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { background: #050608; border-top: 1px solid #222; }

/* Mobil Uyum */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .navbar-brand img { height: 40px; }
    .stats-section { margin-top: 0; text-align: center; }
}

/* --- ALT SAYFA BAŞLIKLARI (SUB-PAGE HEADER) --- */
.page-header-bg {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    padding: 180px 0 100px 0;
    position: relative;
    color: #fff;
    margin-bottom: 50px;
}


.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.9), rgba(10, 14, 23, 0.7)); /* Koyu Perde */
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.breadcrumb {
    position: relative;
    z-index: 2;
    justify-content: center;
}

.breadcrumb-item a { color: var(--accent); text-decoration: none; font-weight: 600; }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); }
/* --- EKİPMAN & YAZILIM KARTLARI --- */
.equip-section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.equip-card,
.software-card {
    background: radial-gradient(circle at top left, rgba(41, 128, 185, 0.3), rgba(10, 14, 23, 0.98));
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Hover’da hafif yukarı ve yana kayma efekti */
.equip-card:hover,
.software-card:hover {
    transform: translateY(-8px) translateX(4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    border-color: rgba(211, 47, 47, 0.7);
}

/* İçeriden kayan highlight efekti */
.equip-card::before,
.software-card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -120%;
    width: 60%;
    height: 180%;
    background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent);
    opacity: 0;
    transform: skewX(-15deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.equip-card:hover::before,
.software-card:hover::before {
    left: 120%;
    opacity: 1;
}

.equip-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.35);
}

.equip-card h5,
.software-card h5 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.equip-card p,
.software-card p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* Mobilde hafif sadeleştirme */
@media (max-width: 768px) {
    .equip-card,
    .software-card {
        padding: 16px 18px;
    }
}

/* --- MAKİNE PARKURU PREMIUM KARTLARI --- */

.machine-category-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.machine-card-pro {
    background: radial-gradient(circle at top left, rgba(41, 128, 185, 0.25), rgba(10, 14, 23, 0.98));
    border-radius: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 35px rgba(0,0,0,0.55);
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Hover animasyonu: hafif yukarı + yana kayma */
.machine-card-pro:hover {
    transform: translateY(-10px) translateX(4px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.7);
    border-color: rgba(211, 47, 47, 0.7);
}

/* İçeriden kayan parlama efekti */
.machine-card-pro::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -130%;
    width: 65%;
    height: 190%;
    background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent);
    opacity: 0;
    transform: skewX(-18deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.machine-card-pro:hover::before {
    left: 130%;
    opacity: 1;
}

.machine-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.machine-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    background: rgba(0,0,0,0.4);
}

.machine-card-header h5 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    font-size: 1.05rem;
}

.machine-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}

.machine-specs {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.machine-specs li + li {
    margin-top: 3px;
}

.machine-badge-year {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.18);
    display: inline-block;
    margin-left: auto;
    color: rgba(255,255,255,0.85);
}

/* Mobil uyum */
@media (max-width: 768px) {
    .machine-card-pro {
        padding: 16px 18px;
    }
}

/* Makine ikonları yerine küçük fotoğraf kutusu */
.machine-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.machine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fotoğrafı kutuya kırparak oturtur */
}

/* ============================
   REFERANS SLIDER
   ============================ */

.ref-slider {
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
    padding-top: 18px !important;   /* şeridi biraz kalınlaştır */
    padding-bottom: 18px !important;
}

/* Container içi boşlukları sıfırla */
.ref-slider .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* İki track yan yana – sonsuz şerit */
.ref-slider-inner {
    display: flex;
    flex-wrap: nowrap;
    animation: refScroll 24s linear infinite;  /* hızı buradan ayarlayabilirsin */
}

/* Her track mutlaka ekran genişliği kadar olsun
   ve logolar ekranın içine yayılmış olsun -> boşluk oluşmaz */
.ref-track {
    display: flex;
    align-items: center;
    justify-content: space-around;  /* logoları eşit yayar */
    min-width: 100%;                /* her set en az 1 ekran genişliği */
    flex-shrink: 0;
}

/* Logo kutusu */
.ref-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;                /* logolar arası yatay boşluk */
}

/* LOGO BOYUTLARI – biraz daha büyük */
.ref-item img {
    display: block;
    height: auto;
    max-height: 70px;   /* önceki halinden daha büyük */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: transparent !important;
    transition: transform 0.3s ease;
}

/* Hafif hover */
.ref-item img:hover {
    transform: scale(1.04);
}

/* Hover’da kayma dursun, mouse gidince devam etsin */
.ref-slider:hover .ref-slider-inner {
    animation-play-state: paused;
}

/* KESİNTİSİZ SCROLL – 2 set = %50 kaydır */
@keyframes refScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobil uyum – biraz küçültelim */
@media (max-width: 768px) {
    .ref-slider {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .ref-item {
        padding: 0 16px;
    }

    .ref-item img {
        max-height: 36px;
        max-width: 140px;
    }
}