/* === Base Styles === */
*, *::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: #F4845F;
    color: white;
}

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

.nav-link {
    position: relative;
}

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

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

/* === Mobile Menu === */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

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

/* === Form Styles === */
input:focus,
textarea:focus {
    outline: none;
}

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

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

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

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

/* === Responsive adjustments === */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}

/* === Print styles === */
@media print {
    nav, #contact-form, #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
