/* Custom styles supplementing Tailwind */

/* Base font smoothing */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure hero text is readable - white on dark gradient */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #042f2e 100%);
}

/* Subtle pattern for sections */
.pattern-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f766e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Custom selection color */
::selection {
    background-color: #0f766e;
    color: white;
}

/* Smooth focus for inputs */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* Print styles */
@media print {
    nav, #contact-form, .fade-in { display: none; }
    body { color: #000; background: #fff; }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .hover-lift {
        border: 2px solid currentColor;
    }
}

/* Very tall screens - center hero content better */
@media (min-height: 900px) {
    #top {
        align-items: center;
    }
}
