/* === Base & Typography === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(127, 191, 175, 0.25);
    color: #0A1628;
}

/* === Hero Animations === */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-reveal-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-float {
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === Scroll Reveal === */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Navbar === */
.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(226, 232, 229, 0.6);
}

/* === Service Card Hover === */
.service-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

/* === Button Focus States === */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #7FBFAF;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

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

::-webkit-scrollbar-track {
    background: #FAFAF8;
}

::-webkit-scrollbar-thumb {
    background: #1A2D4A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #132240;
}

/* === Mobile Menu Transition === */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Image Hover Zoom === */
img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
