/* Varlı Zeytin ve Zeytinyağları - Özel Stiller */

/* Font Ayarları */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Parallax Scrolling Efektleri - Optimized */
.parallax-hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.parallax-bg {
    background-image: inherit;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
    will-change: transform;
}

.parallax-content {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-title {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-subtitle {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-button {
    transform: translateZ(0);
    will-change: transform;
}

/* About Section Parallax */
.parallax-about {
    position: relative;
    overflow: hidden;
}

.parallax-about-bg {
    background-image: url('assets/images/about-olive-grove.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
    will-change: transform;
}

.parallax-about-image {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-about-content {
    transform: translateZ(0);
    will-change: transform;
}

/* Products Section Removed */

/* Parallax Performance Optimizations */
.parallax-hero,
.parallax-about,
.parallax-products {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Parallax Elements Animation */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Gelişmiş Parallax Efektleri */
.parallax-hero {
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
    will-change: transform;
}

.parallax-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transform: translateZ(-1px) scale(1.1);
    will-change: transform;
}

/* Parallax Layer Effects */
.parallax-layer-1 {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-layer-2 {
    transform: translateZ(-1px);
    will-change: transform;
}

.parallax-layer-3 {
    transform: translateZ(-2px);
    will-change: transform;
}

/* Parallax Text Effects */
.parallax-title {
    text-shadow: 0 0 20px rgba(0,0,0,0.3);
    transform: translateZ(0);
    will-change: transform;
}

.parallax-subtitle {
    text-shadow: 0 0 10px rgba(0,0,0,0.2);
    transform: translateZ(0);
    will-change: transform;
}

/* Parallax Button Effects */
.parallax-button {
    transform: translateZ(0);
    will-change: transform;
    transition: all 0.3s ease;
}

.parallax-button:hover {
    transform: translateZ(0) scale(1.05);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Parallax Image Effects */
.parallax-about-image img {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease;
}

.parallax-about-image:hover img {
    transform: translateZ(0) scale(1.02);
}

/* Parallax Background Blur Effect */
.parallax-about-bg,
.parallax-products-bg {
    filter: blur(1px);
    transform: translateZ(0);
    will-change: transform;
}

/* Parallax Scroll Indicators */
.parallax-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
    overflow: hidden;
}

.parallax-scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 1px;
    animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
    0%, 100% { transform: translateY(-20px); }
    50% { transform: translateY(30px); }
}

/* Parallax Performance Optimizations - Enhanced */
@media (prefers-reduced-motion: reduce) {
    .parallax-hero,
    .parallax-about,
    .parallax-products,
    .parallax-content,
    .parallax-title,
    .parallax-subtitle,
    .parallax-button {
        transform: none !important;
        will-change: auto !important;
        background-attachment: scroll !important;
    }
}

/* Parallax Smooth Performance */
.parallax-hero,
.parallax-about,
.parallax-products {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* Parallax Content Optimization */
.parallax-content,
.parallax-title,
.parallax-subtitle,
.parallax-button {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Mobile Parallax Optimizations */
@media (max-width: 768px) {
    .parallax-hero,
    .parallax-about,
    .parallax-products {
        background-attachment: scroll;
    }
    
    .parallax-bg,
    .parallax-about-bg,
    .parallax-products-bg {
        background-attachment: scroll;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobil Menü Animasyonları */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.show {
    transform: translateX(0);
}

/* Hero Section Özel Efektler */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

/* Ürün Kartları Hover Efektleri */
.product-card {
    transition: all 0.3s ease;
}

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

/* Buton Animasyonları */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Form Stilleri */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Loading Animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade In Animasyonları */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive Görsel Optimizasyonu */
img {
    max-width: 100%;
    height: auto;
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* Print Stilleri */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Yüksek Kontrast Modu */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000 !important;
    }
    
    .bg-gray-50 {
        background-color: #fff !important;
    }
}

/* Animasyon Azaltma Tercihi */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobil Optimizasyonları */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Tablet Optimizasyonları */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Optimizasyonları */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
}
