/* Custom Styles for Davida Darbnica */

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

/* Text shadow for hero sections */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(17, 24, 39, 1) !important;
    backdrop-filter: none !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Safe area padding for iOS devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pb-safe {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Active language button */
.lang-btn.active,
.lang-btn-mobile.active {
    background-color: #FFB800;
    color: #111827;
}

.lang-btn:not(.active),
.lang-btn-mobile:not(.active) {
    background-color: transparent;
    color: #9CA3AF;
}

.lang-btn:not(.active):hover,
.lang-btn-mobile:not(.active):hover {
    color: #FFFFFF;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Service card hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* WhatsApp button pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: flex;
}

/* Hero image zoom on scroll */
.hero-image {
    transition: transform 0.7s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #FFB800;
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #FFB800;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #FFB800;
    color: #111827;
}

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

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: #FFB800;
    border-radius: 5px;
}

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

/* Loading state for WhatsApp button */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

    /* Ensure touch targets are large enough on mobile */
    .mobile-touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print styles */
@media print {
    .no-print,
    #mobile-menu,
    .sticky-bottom,
    nav {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        text-decoration: underline;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .text-gray-300,
    .text-gray-400,
    .text-gray-500,
    .text-gray-600 {
        color: #FFFFFF !important;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Already a dark theme, no changes needed */
}
