/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #1a2744 0%, #2d4d96 40%, #1a3a6e 70%, #0e1626 100%);
}

/* ── Hero Dot Pattern ── */
.hero-pattern {
    background-image: radial-gradient(circle, rgba(212,168,75,0.6) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── Floating Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}
.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 10s ease-in-out infinite; }

/* ── Scroll Line ── */
@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navigation ── */
#site-header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(26,39,68,0.08), 0 8px 32px rgba(26,39,68,0.06);
}
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #d4a84b;
    margin-top: 2px;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26,39,68,0.06);
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-link:hover {
    color: #d4a84b;
    padding-left: 0.5rem;
}

/* ── Card hover glow ── */
.group:hover .w-14 {
    box-shadow: 0 0 0 4px rgba(212,168,75,0.15);
}

/* ── Custom select arrow ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Back to top ── */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Utility ── */
::selection {
    background: rgba(212,168,75,0.25);
    color: #1a2744;
}
</style>
