/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.sr-only:focus {
    position: fixed;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: #2563eb;
    color: white;
    z-index: 9999;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
}

/* Enhanced focus indicators for accessibility */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Button focus states */
.btn-primary:focus,
.btn-outline:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Form loading state */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

/* Animation for hover effects */
.transition-300 {
    transition: all 0.3s ease;
}

/* Custom button styles */
.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Responsive typography */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
        line-height: 1.2;
    }
}

/* Section spacing */
section {
    padding: 5rem 0;
}

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 0.5rem;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top.visible:hover {
    background-color: #1e40af;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}