/* Custom CSS for Shebang IT Consulting Website */

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

/* Custom focus styles for better accessibility */
*:focus {
    outline: 2px solid hsl(222.2 84% 4.9%);
    outline-offset: 2px;
}

/* Enhanced button hover effects */
.btn-primary {
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease-in-out;
}

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

/* Navigation active state */
.nav-link.active {
    color: hsl(222.2 47.4% 11.2%);
    font-weight: 500;
}

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

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: hsl(222.2 84% 4.9%);
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.1);
}

/* Logo animation */
.logo-container {
    transition: transform 0.2s ease-in-out;
}

.logo-container:hover {
    transform: scale(1.05);
}

/* Section padding adjustments for better spacing */
section {
    scroll-margin-top: 4rem;
}

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

::-webkit-scrollbar-track {
    background: hsl(210 40% 96%);
}

::-webkit-scrollbar-thumb {
    background: hsl(215.4 16.3% 46.9%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(222.2 47.4% 11.2%);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

/* Loading animation for form submission */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Enhanced accessibility for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print styles */
@media print {

    nav,
    footer,
    #contact {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }

    .service-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .border-border {
        border-color: #000;
    }

    .text-muted-foreground {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}