/* Custom styles that complement Tailwind CSS */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background-color: rgba(46, 168, 118, 0.3);
    color: #f0f4f8;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #52bf96;
    outline-offset: 2px;
}

/* Ensure all text meets contrast requirements */
.text-midnight-100 { color: #d1dbe8; }
.text-midnight-200 { color: #a8bcd3; }
.text-midnight-300 { color: #7e9dbe; }
.text-midnight-400 { color: #557ea9; }

/* Reduce motion for accessibility */
@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 {
    nav, #contactForm, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .font-display {
        font-size: 2rem;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
