/* assets/style.css - FİNAL MODERN VERSİYON */

/* --- 1. GENEL DEĞİŞKENLER VE TİPOGRAFİ --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Renk Paleti */
    --primary-color: #2563eb;       /* Modern Mavi */
    --primary-hover: #1d4ed8;       /* Hover Mavisi */
    --secondary-color: #0f172a;     /* Koyu Lacivert (Footer vb.) */
    --accent-color: #3b82f6;        
    
    --body-bg: #f8fafc;             /* Soğuk alt tonlu beyaz */
    --text-main: #1e293b;           /* Ana metin rengi */
    --text-muted: #64748b;          /* Pasif metin rengi */
    
    /* Gölgeler */
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

a { text-decoration: none; }

/* --- 2. NAVBAR (HEADER) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px); /* Buzlu cam efekti */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

/* Menü Hizalama ve Linkler */
.navbar-nav {
    align-items: center; /* Buton ve linkleri dikeyde ortalar */
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    margin: 0 10px;
    padding: 8px 0; /* Tıklama alanını rahatlat */
    position: relative;
    transition: color 0.3s ease;
}

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

/* Aktif Sayfa Stili */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}
/* Aktif sayfa altı nokta işareti */
.navbar-nav .nav-link.active::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 4px auto 0 auto;
}

/* Navbar içindeki Teklif Al Butonu */
.navbar .btn-primary {
    margin-left: 20px;
    padding: 0.6rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-radius: 50rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

/* --- 3. HERO SLIDER --- */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 650px;
    overflow: hidden;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 10s ease; /* Yavaş zoom efekti */
}
.hero-section:hover .hero-slide {
    transform: scale(1.05);
}

/* Modern Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(37, 99, 235, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 5vh;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

/* --- 4. ÖZELLİKLER (3'lü Kart Alanı) --- */
.features-wrapper {
    margin-top: -6rem; /* Hero'nun üzerine binme miktarı */
    position: relative;
    z-index: 20;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.feature-box {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Yumuşak gölge */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.icon-circle {
    width: 70px; height: 70px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.feature-box:hover .icon-circle {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(-10deg) scale(1.1);
}

.feature-box h3 {
    font-size: 1.35rem; 
    margin-bottom: 1rem;
}
.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- 5. ÜRÜN VE HABER KARTLARI --- */
.product-card, .news-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.product-card:hover, .news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

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

.product-card:hover .card-img-custom, 
.news-card:hover .card-img-custom {
    transform: scale(1.05);
}

/* --- 6. GENEL BUTON STİLLERİ --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50rem;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-outline-dark {
    border-radius: 0.5rem;
    font-weight: 600;
	background: #2563eb;
	color: #ffffff;
	border: 0;
	padding: 10px;
}

/* --- 7. FOOTER --- */
footer {
    margin-top: auto;
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    position: relative;
}
footer h5::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 3px;
    background-color: var(--primary-color);
}

footer a {
    color: #94a3b8;
    transition: all 0.2s ease;
}
footer a:hover {
    color: #fff;
    padding-left: 5px;
}

footer .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 0.8rem;
}
footer .form-control:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    border-color: var(--primary-color);
}
footer .btn-primary {
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.8rem 1.5rem;
}

/* --- 8. HOVER DROPDOWN MENÜ (Masaüstü) --- */
@media (min-width: 992px) {
    /* Hover ile açılma */
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        
        border: none;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        padding: 10px;
        margin-top: 0;
        min-width: 240px;
    }

    .navbar .dropdown-item {
        padding: 10px 20px;
        border-radius: 0.5rem;
        color: var(--text-muted);
        transition: all 0.2s ease;
        position: relative;
    }

    .navbar .dropdown-item:hover {
        background-color: rgba(37, 99, 235, 0.08);
        color: var(--primary-color);
        padding-left: 25px;
    }

    /* Hover'da çıkan nokta işareti */
    .navbar .dropdown-item::before {
        content: '•';
        position: absolute;
        left: 12px;
        color: var(--primary-color);
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    .navbar .dropdown-item:hover::before {
        opacity: 1;
    }
}

/* Dropdown ok işaretini gizle */
.dropdown-toggle::after { display: none; }

/* --- 9. MOBİL UYUMLULUK --- */
@media (max-width: 991px) {
    .navbar-nav { align-items: flex-start; margin-top: 1rem; }
    .navbar .btn-primary { margin-left: 0; margin-top: 10px; width: 100%; justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-section { height: auto; min-height: 500px; }
    .features-wrapper { margin-top: -3rem; }
    .feature-box { margin-bottom: 1rem; padding: 2rem; }
}

/* --- ÜRÜN GÖRSEL AYARLARI (KARE 1x1) --- */

/* 1. Anasayfa Ürün Kartları */
.card-img-custom {
    width: 100%;
    /* Yükseklik ayarını iptal edip Aspect Ratio kullanıyoruz */
    height: auto; 
    aspect-ratio: 1 / 1; /* Tam Kare Oranı */
    object-fit: cover;   /* Resmi kırparak kutuyu doldurur, sündürmez */
    object-position: center;
}

/* 2. Ürün Detay Sayfası Görseli */
.product-detail-img {
    width: 75%;
    height: auto;
    aspect-ratio: 1 / 1; /* Tam Kare Oranı */
    object-fit: cover;
    object-position: center;
    border-radius: 1rem; /* Modern yuvarlak köşeler */
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Küçük bir ipucu: Eğer detay sayfasında resim çok büyük gelirse */
@media (min-width: 992px) {
    .product-detail-img {
        max-width: 75%; /* Gerekirse %80-90 yapabilirsiniz */
    }
}

/* --- FOOTER INPUT ALANI DÜZENLEMESİ --- */
footer .form-control {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Şeffaf Beyaz */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important; /* Yazarken yazı Rengi BEYAZ */
}

/* Placeholder (İpucu yazısı) Rengi */
footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important; /* Soluk beyaz */
    opacity: 1;
}

/* Tıklayınca (Focus) oluşan mavi çerçeve ve arka plan */
footer .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

/* --- PREMIUM ÜRÜN KARTLARI (2026 Style) --- */

.product-card {
    background: transparent; /* Arkaplan şeffaf, sadece görsel ve yazı konuşsun */
    border: none;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

/* Resim Çerçevesi (Kutu) */
.product-image-wrapper {
    background-color: #f1f5f9; /* Çok açık gri/mavi tonlu zemin */
    border-radius: 1.5rem; /* İyice yuvarlatılmış köşeler */
    padding: 2rem; /* Ürüne nefes aldırır */
    position: relative;
    overflow: hidden; /* Taşmaları gizle */
    aspect-ratio: 1 / 1; /* Tam kare */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

/* Ürün Resmi */
.product-card .card-img-custom {
    width: 100%;
    height: auto;
    object-fit: contain; /* Resmi kesme, sığdır (Kutu içinde bütün görünsün) */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05)); /* Ürüne hafif derinlik */
    mix-blend-mode: multiply; /* Beyaz arkaplanlı resimleri zemine yedirir */
}

/* Hover Efektleri */
.product-card:hover .product-image-wrapper {
    background-color: #e2e8f0; /* Hoverda zemin biraz koyulaşsın */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-card:hover .card-img-custom {
    transform: scale(1.1); /* Resim büyüsün */
}

/* "İncele" Butonu (Overlay) */
.product-action {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Başlangıçta aşağıda gizli */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 80%;
    text-align: center;
}

.product-card:hover .product-action {
    transform: translateX(-50%) translateY(0); /* Hoverda yukarı kay */
    opacity: 1;
}

.btn-product-view {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    width: 100%;
    display: block;
    backdrop-filter: blur(4px);
}

.btn-product-view:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Ürün Bilgileri (Alt Kısım) */
.product-info {
    padding-top: 1.25rem;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* --- MODERN HİZMET KARTLARI (SERVICE CARD) --- */

.service-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.6); /* Çok hafif gri sınır */
    border-radius: 1.25rem; /* Modern oval köşeler */
    overflow: hidden; /* Resim taşmasını engelle */
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); /* Hafif başlangıç gölgesi */
    display: flex;
    flex-direction: column;
}

/* Hover (Üzerine Gelince) Durumu */
.service-card:hover {
    transform: translateY(-10px); /* Yukarı kalkış */
    box-shadow: 0 20px 30px -5px rgba(37, 99, 235, 0.15); /* Mavi tonlu gölge */
    border-color: rgba(37, 99, 235, 0.4); /* Sınır rengi mavileşsin */
}

/* Resim Alanı */
.service-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya doldur */
    transition: transform 0.6s ease;
}

/* Hoverda resim büyüsün */
.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

/* İçerik Alanı */
.service-body {
    padding: 2rem;
    flex-grow: 1; /* İçeriği aşağı kadar it */
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.service-card:hover .service-title {
    color: var(--primary-color);
}

.service-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Butonu en alta itmek için */
}

/* Buton Düzenlemesi */
.service-btn {
    width: fit-content; /* Buton yazı kadar olsun, tam genişlik değil */
    padding: 0.6rem 2rem;
    font-weight: 600;
    margin-top: auto; /* En altta dursun */
}