/* Custom styles that complement Tailwind */

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Image loading placeholder */
img {
    background-color: #f0f4f8;
}

/* Selection color */
::selection {
    background-color: #42b896;
    color: white;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #42b896;
    outline-offset: 2px;
}

/* Subtle parallax-like effect for hero decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Apply floating animation to decorative blobs */
.hero-blob {
    animation: float 6s ease-in-out infinite;
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, #mobile-overlay, #back-to-top, #progress-bar {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .hero-image-stack {
        margin-top: 2rem;
    }
}

/* Large desktop adjustments */
@media (min-width: 1280px) {
    #hero h1 {
        font-size: 5rem;
    }
}
