/* Genel Stiller */
:root {
    --primary-yellow: #F5D547;
    --primary-green: #7BAE4F;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}

/* Performans Optimizasyonları */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    padding-top: 56px;
    color: var(--text-dark);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Lazy Loading Görseller */
img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Görsel Optimizasyonu */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    min-height: calc(100vh - 56px);
    margin-top: -56px;
    display: flex;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    z-index: 1;
    pointer-events: none;
    filter: blur(2px);
}

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

/* CSS Animasyonları için Performans Optimizasyonu */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Font Optimizasyonu */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Nunito Regular'), local('Nunito-Regular'),
         url('https://fonts.gstatic.com/s/nunito/v16/XRXV3I6Li01BKofINeaBTMnFcQ.woff2') format('woff2');
}

/* CSS Minification için Öneriler */
/* 1. Gereksiz boşlukları kaldırın */
/* 2. Tekrar eden stilleri birleştirin */
/* 3. Kısa CSS özelliklerini kullanın */
/* 4. Gereksiz vendor prefix'leri kaldırın */

/* Örnek: */
/* Kötü */
.box {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 10px;
    margin-left: 20px;
}

/* İyi */
.box {
    border-radius: 5px;
    margin: 10px 20px;
}

/* Animasyon Sınıfları */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Sayfa Geçiş Efektleri */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Navbar */
.navbar {
    background-color: var(--text-light) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar .btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}

.navbar .btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Ürün Kartları */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,.1);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    background-color: var(--bg-light);
}

/* Dağıtım Ağı Bölümü */
.distribution-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    position: relative;
}

.distribution-route {
    position: relative;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.distribution-point {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0 1rem;
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.distribution-point:hover {
    transform: translateY(-5px);
}

.distribution-point img {
    max-width: 120px;
    height: auto;
    margin: 0 auto 1rem;
}

.distribution-arrow {
    margin-top: 1rem;
    color: var(--primary-green);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
}

.distribution-arrow i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.distribution-section h4 {
    color: var(--primary-green);
    margin-top: 20px;
    font-weight: 600;
}

.distribution-section p {
    color: var(--text-dark);
    margin-top: 5px;
}

.distribution-section .lead {
    color: var(--text-dark);
    text-align: center;
    margin-top: 30px;
    font-weight: 500;
}

/* Referanslar */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 1rem;
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* İletişim Formu */
.contact-info i {
    margin-right: 10px;
    color: var(--primary-green);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--text-light);
}

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

footer a:hover {
    color: var(--primary-yellow) !important;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .btn {
        margin-top: 20px;
    }
    
    .contact-info {
        margin-top: 30px;
    }
    
    .distribution-route::before {
        display: none;
    }
    
    .distribution-point {
        margin: 1rem auto;
    }
}

/* Partner Logoları */
.partners-section {
    background-color: white;
    padding: 40px 0;
    overflow: hidden;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
    padding: 20px 0;
    border-radius: 8px;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.partner-item {
    flex: 0 0 auto;
    padding: 1rem;
    text-align: center;
    min-width: 200px;
}

.partner-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-item h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    transition: all 0.5s ease;
    opacity: 0.8;
}

.partner-item:hover h4 {
    color: var(--primary-green);
    transform: scale(1.05);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Sertifikalar Bölümü Stilleri */
.certificate-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-placeholder {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.certificate-placeholder i {
    color: #6c757d;
    margin-bottom: 15px;
}

.certificate-placeholder p {
    color: #6c757d;
    margin: 0;
}

.certificate-info {
    text-align: center;
}

.certificate-info h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.certificate-info p {
    color: #6c757d;
    margin: 0;
}

/* Mobil Menü */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        background: var(--text-light);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 1rem;
    }

    .navbar-toggler {
        padding: 0.5rem;
        border: none;
        outline: none;
    }

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

/* Mobil Ürün Kartları */
@media (max-width: 767.98px) {
    .product-card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .product-card img {
        height: 160px;
        object-fit: cover;
    }

    .product-card .card-body {
        padding: 0.8rem;
    }

    .product-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .product-card .card-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Mobil İletişim Formu */
@media (max-width: 767.98px) {
    .contact-form {
        padding: 0.8rem;
    }

    .contact-form .form-control {
        margin-bottom: 0.8rem;
        padding: 0.8rem;
        border-radius: 8px;
        font-size: 1rem;
        -webkit-appearance: none;
    }

    .contact-form textarea {
        min-height: 100px;
    }

    .contact-form .btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
    }

    .contact-info {
        margin-top: 1.5rem;
        padding: 0.8rem;
    }

    .contact-info p {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }

    .contact-info i {
        width: 24px;
    }
}

/* Mobil Hero Section */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
        padding: 1.5rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Mobil Dağıtım Bölümü */
@media (max-width: 767.98px) {
    .distribution-section {
        padding: 2rem 0;
    }

    .distribution-route {
        flex-direction: column;
    }

    .distribution-point {
        margin: 1rem 0;
        width: 100%;
        max-width: 250px;
    }

    .distribution-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

/* Mobil Sertifikalar */
@media (max-width: 767.98px) {
    .certificate-card {
        margin-bottom: 1rem;
    }

    .certificate-placeholder {
        min-height: 120px;
        padding: 1rem;
    }

    .certificate-info h5 {
        font-size: 1rem;
    }

    .certificate-info p {
        font-size: 0.85rem;
    }
}

/* Mobil Footer */
@media (max-width: 767.98px) {
    footer {
        padding: 1.5rem 1rem;
    }

    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }

    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    footer ul li {
        margin-bottom: 0.4rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* Touch-friendly Butonlar */
.btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.98);
}

/* Mobil için Optimize Edilmiş Scroll */
@media (max-width: 767.98px) {
    html {
        scroll-padding-top: 56px;
    }

    section[id] {
        scroll-margin-top: 56px;
    }
}

/* Mobil için Optimize Edilmiş Form Elementleri */
input, textarea, select {
    font-size: 16px !important; /* iOS zoom sorununu önler */
    -webkit-appearance: none;
    appearance: none;
}

/* Mobil için Optimize Edilmiş Linkler */
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Mobil için Optimize Edilmiş Container */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Yukarı Çıkma Butonu */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4ECDC4 0%, #25D366 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 6px 24px rgba(78,205,196,0.18), 0 1.5px 6px rgba(37,211,102,0.12);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    font-size: 2rem;
    border: none;
    outline: none;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #25D366 0%, #4ECDC4 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(78,205,196,0.25), 0 3px 12px rgba(37,211,102,0.18);
    transform: translateY(-4px) scale(1.08);
}

/* Mobil için düzenlemeler */
@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
    }
}

/* Mobil için düzenlemeler */
@media (max-width: 767.98px) {
    .navbar-brand img {
        max-height: 56px;
        height: 44px;
    }

    .whatsapp-float {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        bottom: 16px;
        right: 16px;
    }
}

/* Sayfa içi navigasyon için scroll offset */
section[id] {
    scroll-margin-top: 80px;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-light {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.btn-outline-light {
    border-width: 2px;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.text-white-50 a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.9) !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #000 !important;
}

/* Form Geri Bildirim Mesajları */
.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.feedback-message.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-message.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobil için düzenlemeler */
@media (max-width: 767.98px) {
    .feedback-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    text-decoration: none !important;
}
.whatsapp-float:hover {
    background: #128C7E;
    color: #fff;
    text-decoration: none !important;
} 