/* ========================================
   EXPERT OTO SERVİS - Custom Styles
   ======================================== */

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, rgba(17,17,17,0.95) 0%, rgba(31,41,55,0.85) 50%, rgba(17,17,17,0.9) 100%);
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(234,179,8,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234,179,8,0.05) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23eab308' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Gear Animation */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.gear-spin {
    animation: spin-slow 20s linear infinite;
}

.gear-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
    animation: countUp 0.8s ease-out forwards;
}

/* Card Hover Effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-icon {
    transition: transform 0.6s ease;
}

/* Stripe Pattern */
.stripe-pattern {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(234,179,8,0.03) 10px,
        rgba(234,179,8,0.03) 20px
    );
}

/* Oil Drip Effect */
.oil-drip {
    position: relative;
}

.oil-drip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, #eab308, transparent);
    border-radius: 0 0 2px 2px;
}

/* Price Table Styles */
.price-row:hover {
    background: rgba(234,179,8,0.05);
}

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

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(234,179,8,0.2);
    border-color: #eab308;
}

/* Pulse Ring */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(234,179,8,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(234,179,8,0); }
    100% { box-shadow: 0 0 0 0 rgba(234,179,8,0); }
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

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

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

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

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

/* Selection */
::selection {
    background: rgba(234,179,8,0.3);
    color: #fff;
}

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

/* Wrench shake on hover */
@keyframes wrench-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.wrench-hover:hover i {
    animation: wrench-shake 0.4s ease-in-out;
}

/* Diagonal Separator */
.diagonal-top {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}

.diagonal-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-text {
    background: linear-gradient(90deg, #eab308 0%, #fde68a 50%, #eab308 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ---------- Overflow / Tasma Korumasi ---------- */
html, body {
    overflow-x: hidden;
}

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
