/* Zemzem Group - Enhanced Custom CSS Styles */
/* Premium tasarım öğeleri ve modern efektler */

/* CSS Variables (Renk sistemi) */
:root {
    --primary-color: #032263;
    --primary-light: #1e3a8a;
    --primary-dark: #1e1b4b;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e5e7eb;
    --shadow-color: rgba(3, 34, 99, 0.15);
    --gradient-primary: linear-gradient(135deg, #032263 0%, #1e3a8a 50%, #3b82f6 100%);
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Focus styles for accessibility */
*:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Custom scrollbar with gradient */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e1b4b 0%, #032263 100%);
}

/* Gradient Text Effect */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Premium Button Styles */
.btn-premium {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    border: 3px solid transparent;
    padding: 12px 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    transform: translateZ(0);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px var(--shadow-color);
}

/* Enhanced Card Styles */
.premium-card {
    position: relative;
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    transform: translateZ(0);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(3, 34, 99, 0.03), transparent);
    transition: left 0.8s;
    z-index: 1;
}

.premium-card:hover::before {
    left: 100%;
}

.premium-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(3, 34, 99, 0.2);
}

/* Animated Background Patterns */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(3, 34, 99, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Enhanced Loading Animation */
.premium-loading {
    position: relative;
    display: inline-block;
}

.premium-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: premiumSpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    transform: translate(-50%, -50%);
}

@keyframes premiumSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* Advanced Fade-in Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: fadeInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    animation: fadeInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animation delays */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

/* Premium Hover Effects */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.05) translateZ(0);
}

.hover-tilt {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

/* Glowing Effects */
.glow-on-hover {
    position: relative;
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 
        0 0 20px rgba(3, 34, 99, 0.3),
        0 0 40px rgba(3, 34, 99, 0.2),
        0 0 60px rgba(3, 34, 99, 0.1);
}

/* Text Shadow Effects */
.text-shadow-sm {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.text-shadow-lg {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

/* Enhanced Form Styles */
.premium-input {
    border: 2px solid #e5e7eb;
    background: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.premium-input:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(3, 34, 99, 0.1),
        0 8px 25px rgba(3, 34, 99, 0.15);
    transform: translateY(-2px);
}

/* Premium Alert Styles */
.alert-premium {
    padding: 16px 24px;
    border-left: 4px solid;
    border-radius: 0 8px 8px 0;
    position: relative;
    overflow: hidden;
}

.alert-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
    color: #166534;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #dc2626;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #d97706;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1d4ed8;
}

/* Enhanced Star Rating */
.star-rating-premium {
    display: inline-flex;
    gap: 4px;
}

.star-rating-premium .star {
    font-size: 20px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

.star-rating-premium .star.filled,
.star-rating-premium .star:hover {
    color: #fbbf24;
    transform: scale(1.2) rotate(5deg);
}

/* Premium WhatsApp Button */
.whatsapp-premium {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.whatsapp-premium::before {
    content: '💬';
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    font-size: 20px;
    transition: left 0.4s ease;
}

.whatsapp-premium:hover::before {
    left: 10px;
}

.whatsapp-premium:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    padding-left: 50px;
}

/* Parallax Effect */
.parallax-element {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .premium-card:hover {
        transform: translateY(-4px);
    }
    
    .hover-tilt:hover {
        transform: scale(1.02);
    }
    
    .btn-premium:hover {
        transform: translateY(-2px) scale(1.02);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f9fafb;
        --light-gray: #374151;
        --border-color: #4b5563;
        --shadow-color: rgba(255, 255, 255, 0.1);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .premium-card {
        border-width: 3px;
    }
    
    .btn-premium {
        border-width: 4px;
    }
}

/* Header Styles */
.header-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-transition {
    transition: max-height 0.3s ease-in-out;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Card Styles */
.service-card {
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 34, 99, 0.15);
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for multiple elements */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* Breadcrumb Styles */
.breadcrumb-separator {
    margin: 0 8px;
    color: #9ca3af;
}

/* Form Styles */
.form-input {
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 34, 99, 0.1);
}

.form-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 4px;
    margin-bottom: 16px;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fed7aa;
    color: #d97706;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Star Rating */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star-rating .star {
    font-size: 18px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating .star.filled,
.star-rating .star:hover {
    color: #fbbf24;
}

/* Price Display */
.price-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(3, 34, 99, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Service Badges */
.service-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25d366;
    color: white;
    border: 2px solid #25d366;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

/* Sticky Elements Enhanced */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Premium Scrollbar for Sidebar */
.sticky-sidebar::-webkit-scrollbar {
    width: 6px;
}

.sticky-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

.sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e1b4b 0%, #032263 100%);
}

/* Responsive Images */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-color: #000000;
        --border-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f9fafb;
        --light-gray: #374151;
        --border-color: #4b5563;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Larger tap targets for mobile */
    button,
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing on mobile */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Optimize text sizes */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

.transition-gpu {
    transform: translateZ(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Component-specific styles */
.service-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 640px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Accordion Styles */
.faq-item {
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.faq-question {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-answer {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Error Page Styles */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .error-code {
        font-size: 4rem;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}