*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(45, 212, 191, 0.2);
    color: #0f172a;
}

/* Navbar */
.nav-link {
    position: relative;
    color: rgba(15, 23, 42, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #0f172a;
}

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

.nav-brand-text {
    color: #0f172a;
}

#navbar.scrolled .nav-brand-text {
    color: #0f172a;
}

#navbar.scrolled .nav-link {
    color: rgba(15, 23, 42, 0.7);
}

#navbar.scrolled .nav-link:hover {
    color: #0f172a;
}

/* Mobile menu */
.mobile-nav-link {
    text-decoration: none;
    color: #0f172a;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #14b8a6;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Form styles */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

select option {
    background-color: #0a1628;
    color: #e2e8f0;
}

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal.reveal-active {
        opacity: 1;
        transform: none;
    }
    img:hover {
        transform: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.5);
}
