/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(52, 211, 153, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(52, 211, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(10, 22, 40, 1) 0%, rgba(5, 13, 26, 1) 100%);
}

/* ── Navbar ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile Menu ── */
.mobile-link {
    font-size: 1.125rem;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for reduced-motion or no-JS — always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}

/* ── Selection ── */
::selection {
    background: rgba(52, 211, 153, 0.2);
    color: #0a1628;
}

/* ── Focus ── */
:focus-visible {
    outline: 1px solid rgba(52, 211, 153, 0.5);
    outline-offset: 4px;
}

/* ── Form Inputs ── */
input::placeholder,
textarea::placeholder {
    font-weight: 200;
}

input:focus,
textarea:focus {
    border-color: rgba(52, 211, 153, 0.6) !important;
}

/* ── Smooth image loading ── */
img {
    background-color: rgba(10, 22, 40, 0.05);
}

/* ── Thin decorative lines ── */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(10, 22, 40, 0.1), transparent);
}
