/* ==========================================
   Knapp Properties NC — Custom Styles
   ========================================== */

/* --- Base & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #d4af37;
    color: #0a192f;
}

/* --- Hero Animations --- */
.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-title {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-desc {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Navbar Transition --- */
#navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- Mobile Menu --- */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* --- Smooth Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* --- Focus Styles --- */
input:focus,
textarea:focus {
    outline: none;
}

/* --- Subtle Hover Effects --- */
a {
    text-decoration: none;
}

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

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

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

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

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title span {
        display: block;
        margin-top: 0.25rem;
    }
}

/* --- Form Success Animation --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-success.show {
    animation: slideIn 0.4s ease forwards;
}
