/* ========================================
   MEGA PRINT MATBAACILIK - Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #b91c1c;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #991b1b;
}

/* Selection color */
::selection {
    background: #b91c1c;
    color: #fff;
}

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(17,17,17,0.92) 0%, rgba(185,28,28,0.8) 100%);
}

/* Hero pattern */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #facc15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(185,28,28,0.15);
}
.service-card:hover .service-icon {
    background-color: #b91c1c;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}
.service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Portfolio card */
.portfolio-card {
    transition: all 0.4s ease;
    overflow: hidden;
}
.portfolio-card:hover {
    transform: translateY(-5px);
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}
.portfolio-overlay {
    opacity: 0;
    transition: all 0.4s ease;
}
.portfolio-img {
    transition: transform 0.6s ease;
}

/* Product row hover */
.product-row {
    transition: all 0.3s ease;
}
.product-row:hover {
    background-color: #fef2f2 !important;
    transform: scale(1.01);
}

/* Animated underline */
.animated-underline {
    position: relative;
    display: inline-block;
}
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: #b91c1c;
    transition: width 0.3s ease;
}
.animated-underline:hover::after {
    width: 100%;
}

/* Stat counter animation */
.stat-item {
    transition: all 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
}

/* Section separator */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #b91c1c, #facc15);
    border-radius: 2px;
}

/* Client logo grayscale */
.client-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}
.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Filter button active state */
.filter-btn {
    transition: all 0.3s ease;
}
.filter-btn.active {
    background-color: #b91c1c;
    color: #fff;
    box-shadow: 0 4px 15px rgba(185,28,28,0.3);
}

/* Pulse animation for CTA */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid #b91c1c;
    animation: pulse-ring 2s ease-out infinite;
}

/* Form focus states */
.form-input:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
    outline: none;
}

/* Timeline line */
.timeline-line {
    position: relative;
}
.timeline-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #b91c1c, #facc15);
    transform: translateX(-50%);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 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 forwards;
}

/* Print button */
@media print {
    nav, footer, .no-print, #scrollTop, .fab.fa-whatsapp {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2.5rem !important;
    }
}

/* ---------- 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;
}
