/* ============================================
   RENK USTA BOYA HİZMETLERİ - Custom Styles
   ============================================ */

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

/* Hero gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient {
    background: linear-gradient(135deg, #ea580c, #f97316, #2563eb, #ea580c);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

/* Paint drip effect */
.paint-drip {
    position: relative;
}
.paint-drip::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: #ea580c;
    border-radius: 0 0 4px 4px;
    animation: drip 2s ease-in-out infinite;
}

@keyframes drip {
    0%, 100% { height: 20px; opacity: 1; }
    50% { height: 30px; opacity: 0.7; }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-up-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Color swatch hover */
.color-swatch {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.color-swatch:hover {
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Service card hover */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.15);
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: #ea580c;
    color: white;
}

.service-icon {
    transition: all 0.4s ease;
}

/* Gallery card */
.gallery-card {
    overflow: hidden;
    transition: transform 0.4s ease;
}
.gallery-card:hover {
    transform: scale(1.02);
}
.gallery-card img,
.gallery-card .gallery-placeholder {
    transition: transform 0.6s ease;
}
.gallery-card:hover img,
.gallery-card:hover .gallery-placeholder {
    transform: scale(1.1);
}
.gallery-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonial card */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Pricing card */
.pricing-card {
    transition: all 0.4s ease;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.2);
}
.pricing-card.popular {
    border: 2px solid #ea580c;
}

/* Stats counter */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Section title underline */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #ea580c, #f97316);
    border-radius: 2px;
}

/* Paint brush stroke divider */
.brush-divider {
    height: 6px;
    background: linear-gradient(90deg, transparent, #ea580c, #f97316, #2563eb, transparent);
    border-radius: 3px;
    opacity: 0.6;
}

/* Input focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* Before/After slider */
.ba-container {
    position: relative;
    overflow: hidden;
    cursor: col-resize;
}

/* Smooth image placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 50%, #fdba74 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
    font-size: 2rem;
}

/* Team member card */
.team-card {
    transition: all 0.3s ease;
}
.team-card:hover {
    transform: translateY(-8px);
}
.team-card:hover .team-img {
    border-color: #ea580c;
}

/* CTA pulse */
@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(234, 88, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}
.pulse-cta {
    animation: pulse-orange 2s infinite;
}

/* Navbar scroll effect (controlled by JS if needed) */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fff7ed;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ea580c, #f97316);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c2410c;
}

/* Timeline styles for about page */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #ea580c;
    border-radius: 50%;
    border: 3px solid #fff7ed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: 500px;
    }
}


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

*, *::before, *::after {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

p, li, td, th, a, span, h1, h2, h3, h4, h5, h6, label, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
