/* Custom styles for Double A Construction */

/* Base */
html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal - progressive enhancement, hidden by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(15, 33, 64, 0.06);
}

.navbar-scrolled .nav-text,
.navbar-scrolled .nav-link {
    color: #0f2140 !important;
}

.navbar-scrolled .nav-btn {
    background-color: #0f2140 !important;
}

.navbar-scrolled .mobile-nav-link {
    color: #0f2140 !important;
}

/* Subtle line decorations */
.minimal-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(45, 212, 168, 0.4), transparent);
}

/* Gallery hover */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Selection color */
::selection {
    background-color: rgba(45, 212, 168, 0.2);
    color: #0a1628;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Thin scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Print styles */
@media print {
    nav, footer, #contact-form, .scroll-reveal {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
