/* Modern Variables */
:root {
    /* Brand Colors */
    --primary: #E60012;
    --primary-dark: #CC0010;
    --secondary: #1A1A1A;
    --dark: #000000;
    --light: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    
    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-padding: clamp(1rem, 3vw, 2rem);
    
    /* Typography */
    --h1-size: clamp(2.5rem, 5vw, 4rem);
    --h2-size: clamp(2rem, 4vw, 3rem);
    --h3-size: clamp(1.5rem, 3vw, 2rem);
    --body-size: clamp(1rem, 1.5vw, 1.125rem);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: var(--dark);
    overflow-x: hidden;
}

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

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

p { margin-bottom: 1rem; }

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: var(--dark);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Saydam Navbar (Scroll edilmemiş hali) */
.navbar:not(.scrolled) {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Scroll edilmiş hali - Kırmızı arka plan */
.navbar.scrolled {
    background-color: #a51100;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition-fast);
}

.navbar-brand .logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand .logo {
    width: 180px; /* Scroll edildiğinde logo küçülsün */
}

.nav-link {
    color: var(--light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100vh;
}

.hero-content {
    padding: clamp(2rem, 5vw, 4rem);
    max-width: 800px;
}

.hero-content h2 {
    font-size: var(--h1-size);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: var(--body-size);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border: 2px solid var(--light);
}

.btn-outline-light:hover {
    background-color: white;
    color: #e74c3c;
}

/* About Section */
.about {
    padding: var(--section-padding) 0;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Yumuşak gölge */
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.173), rgba(0, 0, 0, 0.441)); /* Gradient ekle */
    border-radius: var(--radius-lg);
    z-index: 1; /* Gradienti resmin üstüne yerleştir */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease; /* Geçiş efektleri */
    border-radius: var(--radius-lg); /* Resim kenarlarını yumuşat */
    z-index: 0; /* Resmi gradientin altına yerleştir */
}

.about-image:hover img {
    transform: scale(1.05); /* Hover efekti */
    filter: brightness(0.9); /* Hover sırasında parlaklığı azalt */
}

.about-content {
    padding: clamp(2rem, 5vw, 4rem);
}

.section-title h2 {
    color: var(--primary); /* Başlık rengi */
}

.section-title p {
    color: var(--text-muted); /* Metin rengi */
    line-height: 1.6; /* Daha iyi okunabilirlik için satır yüksekliği */
}

/* Yenilikçi Tasarım */
.about-content p {
    position: relative;
    padding-left: 1.5rem;
}

.about-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: var(--primary); /* Vurgulayıcı renk */
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background: var(--dark);
}

.info-box {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.info-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.contact-form {
    background: rgba(255,255,255,0.05);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
}

.form-control, .form-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--light);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary);
    box-shadow: none;
    color: var(--light);
}

/* Footer */
.footer {
    background-color: #343a40; /* Koyu arka plan */
    color: #ffffff; /* Beyaz metin rengi */
    padding: 40px 0;
}

.footer-logo img {
    max-width: 100%; /* Responsive logo */
}

.footer h4 {
    font-size: 1.25rem; /* Başlık boyutu */
    margin-bottom: 1rem; /* Başlık altı boşluk */
}

.footer p {
    line-height: 1.6; /* Daha iyi okunabilirlik için satır yüksekliği */
    margin-top: 1rem; /* Paragraf üst boşluğu */
}

.footer-links ul {
    padding-left: 0; /* Sol boşluğu kaldır */
}

.footer-links ul li {
    margin-bottom: 0.5rem; /* Bağlantılar arasında boşluk */
}

.footer-links a {
    color: #ffffff; /* Bağlantı rengi */
    text-decoration: none; /* Alt çizgi kaldır */
    transition: color 0.3s; /* Geçiş efekti */
}

.footer-links a:hover {
    color: #c0392b; /* Hover rengi */
}

.footer-bottom {
    margin-top: 20px; /* Alt kısım için boşluk */
    font-size: 0.9rem; /* Küçük yazı boyutu */
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .footer {
        padding: 30px 15px; /* Mobil görünümde daha az padding */
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--dark);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .info-box {
        padding: 1.5rem;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-links {
        margin: 2rem 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: var(--transition-smooth);
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Ürün Kartları Stilleri */
.product-card {
    transition: transform 0.3s; /* Hover efekti için geçiş */
}

.product-card:hover {
    transform: scale(1.05); /* Hover sırasında kartı büyüt */
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 aspect ratio */
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-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;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.highlight-line {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bs-primary);
    z-index: 1;
}

.text-muted {
    color: #6c757d; /* Daha iyi bir görünüm için */
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 20px; /* Mobil görünümde daha fazla boşluk */
    }
}

.product-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.mb-6 {
    margin-bottom: 4rem;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Header Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

/* Saydam Navbar (Scroll edilmemiş hali) */
.navbar:not(.scrolled) {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Scroll edilmiş hali - Kırmızı arka plan */
.navbar.scrolled {
    background-color: #000000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo Styles */
.navbar-brand .logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand .logo {
    width: 180px; /* Scroll edildiğinde logo küçülsün */
}

/* Navigation Links */
.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar .nav-link:hover:after,
.navbar .nav-link.active:after {
    transform: scaleX(1);
}

/* Mobile Menu Button */
.navbar-toggler {
    padding: 0.25rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Teklif Al Button */
.btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: #e74c3c;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .navbar .nav-item {
        margin: 0.25rem 0;
    }
    
    .btn-outline-light {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .about {
        padding: 30px 15px; /* Mobil görünümde daha az padding */
    }
}

/* Navbar Stilleri */
.navbar {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.navbar-brand .logo {
    height: 40x;
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.navbar-toggler {
    padding: 0.25rem;
}

/* Aktif link için stil */
.nav-link.active {
    font-weight: bold;
}

/* Yukarı Çıkar Butonu Stilleri */
.scroll-to-top {
    position: fixed;
    bottom: 30px; /* Sayfanın altından 30px yukarıda */
    right: 30px; /* Sayfanın sağından 30px içeride */
    background-color: #c0392b; /* Buton rengi */
    color: #ffffff; /* İkon rengi */
    border: none;
    border-radius: 50%; /* Yuvarlak buton */
    width: 50px; /* Buton genişliği */
    height: 50px; /* Buton yüksekliği */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Gölge efekti */
    transition: background-color 0.3s, transform 0.3s; /* Geçiş efektleri */
    z-index: 1000; /* Diğer öğelerin üstünde görünmesi için */
}

.scroll-to-top:hover {
    background-color: #e74c3c; /* Hover rengi */
    transform: scale(1.1); /* Hover sırasında büyütme efekti */
}

.scroll-to-top i {
    font-size: 20px; /* İkon boyutu */
}

/* İletişim Bölümü Stilleri */

.footer-title {
    font-size: 1.5rem; /* Başlık boyutu */
    color: #ffffff; /* Başlık rengi */
    margin-bottom: 0.5rem; /* Alt boşluk */
}

.footer-subtitle {
    font-size: 1.2rem; /* Alt başlık boyutu */
    color: #ffffff; /* Beyaz renk */
    margin-bottom: 1rem; /* Alt boşluk */
}

.footer-contact p {
    color: #ffffff; /* Metin rengi */
    line-height: 1.6; /* Satır yüksekliği */
}

.footer-contact a {
    color: #c0392b; /* Bağlantı rengi */
    text-decoration: none; /* Alt çizgi kaldır */
}

.footer-contact a:hover {
    text-decoration: underline; /* Hover sırasında alt çizgi ekle */
}

/* Modal Tasarımı */
.modal-content {
    border-radius: 10px; /* Yuvarlatılmış köşeler */
}

.modal-header {
    border-bottom: none; /* Alt kenar çizgisini kaldır */
}

.table {
    margin-top: 20px; /* Üst boşluk */
}

.table th, .table td {
    vertical-align: middle; /* Dikey hizalama */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa; /* Alternatif satır rengi */
}

.table-danger {
    background-color: #f5c6cb; /* Başlık arka plan rengi */
    color: #721c24; /* Başlık metin rengi */
}

.text-danger {
    color: #c0392b; /* Başlık rengi */
}

.text-muted {
    color: #6c757d; /* Açık gri metin rengi */
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 90%; /* Mobil görünümde genişlik */
    }
}

/* Modal Genişliği Ayarı */
.modal-dialog {
    max-width: 90%; /* Modalın maksimum genişliğini %90 yap */
    width: auto; /* Genişliği otomatik ayarla */
}

/* Modal Tablosu için Stil Ayarları */
.table {
    table-layout: auto; /* Otomatik tablo düzeni */
    width: 100%; /* Tablonun genişliğini %100 yap */
}

.table th, .table td {
    overflow: hidden; /* Taşmayı gizle */
    text-overflow: ellipsis; /* Taşma durumunda üç nokta göster */
    white-space: nowrap; /* Tek satırda göster */
    max-width: 200px; /* Maksimum genişlik ayarla */
}

.table th {
    text-align: center; /* Başlıkları ortala */
}

.table td {
    text-align: center; /* Hücre içeriğini ortala */
}

/* Modal Resmi için Stil Ayarları */
.modal-body {
    display: flex;
    flex-direction: column; /* Dikey hizalama */
    align-items: center; /* Ortala */
}

.modal-body img {
    max-width: 100%; /* Resmin maksimum genişliğini %100 yap */
    height: auto; /* Yüksekliği otomatik ayarla */
}

.table-responsive {
    width: 100%; /* Tablo genişliğini %100 yap */
    margin-top: 15px; /* Resim ile tablo arasında boşluk bırak */
}

.table th, .table td {
    font-size: 14px; /* Tablo yazı boyutunu ayarla */
}

@media (max-width: 576px) {
    #productTitle {
        font-size: 18px; /* Başlık yazı boyutunu küçült */
    }

    #productDetailText {
        font-size: 14px; /* Detay yazı boyutunu küçült */
    }

    .table th, .table td {
        font-size: 12px; /* Mobilde tablo yazı boyutunu küçült */
    }
}

.hero-content .btn {
    padding: 10px 20px; /* Butonun iç boşluklarını ayarla */
    font-size: 16px; /* Buton yazı boyutunu ayarla */
}

@media (max-width: 576px) {
    .hero-content .btn {
        width: 100%; /* Mobilde butonları tam genişlikte yap */
        margin-bottom: 10px; /* Butonlar arasında boşluk bırak */
    }
}

.product-content .btn {
    padding: 10px 15px; /* Butonun iç boşluklarını ayarla */
    font-size: 14px; /* Buton yazı boyutunu ayarla */
}

@media (max-width: 576px) {
    .product-card {
        margin-bottom: 20px; /* Kartlar arasında boşluk bırak */
    }

    .product-content .btn {
        width: 100%; /* Mobilde butonları tam genişlikte yap */
        margin-bottom: 10px; /* Butonlar arasında boşluk bırak */
    }
}

@media (max-width: 576px) {
    #productTitle {
        font-size: 18px; /* Başlık yazı boyutunu küçült */
    }

    #productDetailText {
        font-size: 14px; /* Detay yazı boyutunu küçült */
    }

    .table-responsive {
        max-width: 100%;
        overflow-x: auto;
    }
    .table th, .table td {
        padding: 5px; /* Daha küçük padding */
    }
}


