/* Custom styles for HomeTech Bedford */

:root {
    --midnight-900: #0a1628;
    --midnight-800: #0f2137;
    --midnight-700: #152d4a;
    --midnight-600: #1a3656;
    --midnight-100: #e8eef5;
    --midnight-200: #d0dbe8;
    --mint-400: #34d399;
    --mint-500: #10b981;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navigation */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: var(--midnight-900) !important;
}

#navbar.scrolled .nav-link {
    color: var(--midnight-700) !important;
}

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

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: var(--mint-400);
    color: var(--midnight-900);
}

/* Subtle card grid pattern for services */
#services .group:hover .relative {
    border-color: rgba(52, 211, 153, 0.2);
}

/* Smooth image loading */
img {
    image-rendering: auto;
}

/* Ensure high contrast on all text */
@media (prefers-contrast: high) {
    .text-blue-200\/60 {
        color: rgba(191, 219, 254, 1);
    }
    
    .text-midnight-600 {
        color: var(--midnight-700);
    }
}
