/* ===========================================
   Rzeczoznawca Samochodowy - Custom Styles
   Tailwind CSS v4 + custom overrides
   =========================================== */

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

/* Custom font stack */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Scrollbar hide for the horizontal nav */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hamburger animation states */
.hamburger-open #hamburger-1 {
    transform: translateY(10px) rotate(45deg);
}
.hamburger-open #hamburger-2 {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-open #hamburger-3 {
    transform: translateY(-10px) rotate(-45deg);
}

/* Ensure proper transform origin and smooth transitions for hamburger lines */
#mobile-menu-btn span {
    transform-origin: center;
    transition: transform 0.28s ease, opacity 0.18s ease;
}

/* Gallery image hover overlay */
[data-lightbox] {
    position: relative;
    cursor: pointer;
}
[data-lightbox]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}
[data-lightbox]:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

/* Certificate carousel smooth slide */
#cert-track {
    will-change: transform;
}

/* Certificate dots active state */
.cert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.cert-dot.active {
    background: #1e40af;
    width: 28px;
    border-radius: 5px;
}

/* Smooth animation for section reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Lightbox show state */
#lightbox.active {
    display: flex;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    main {
        padding-top: 0 !important;
    }
}
