/* ===== CUSTOM STYLES ===== */

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

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-scrolled #nav-logo-text {
    color: #fff !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover */
.service-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    border-color: rgba(255, 107, 53, 0.2);
}

/* Gallery hover */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 53, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(255, 107, 53, 0.1);
}

/* Testimonial card hover */
.testimonial-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-card:hover {
    border-color: rgba(255, 107, 53, 0.2);
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .gallery-item img,
    .service-card img {
        transition: none !important;
    }
    
    .service-card:hover img,
    .gallery-item:hover img {
        transform: none;
    }
}

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

/* Selection color */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #1A1A1A;
}
