/* Custom styles that complement Tailwind */

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

/* Selection color */
::selection {
    background: rgba(46, 170, 106, 0.2);
    color: #0A1628;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7ED4AA;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle grain texture on hero */
.hero-grain {
    position: relative;
}

.hero-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Mint gradient text utility */
.text-mint-gradient {
    background: linear-gradient(135deg, #7ED4AA, #2EAA6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #1B3A6B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2A5298;
}

/* Page transition for form */
#contact-form {
    transition: opacity 0.3s ease;
}
#contact-form.hidden {
    opacity: 0;
    pointer-events: none;
}

#form-success {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .btn-mint::after { display: none !important; }
    body { color: #000; background: #fff; }
    .hero-img, section img { max-height: 200px; object-fit: contain; }
}
