/* ========================================
   Dj Realty Solutions — Custom Styles
   ======================================== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Navigation transitions */
.nav-logo-text {
    transition: color 0.5s ease;
}
.nav-logo-sub {
    transition: color 0.5s ease;
}

/* Hero section - dark background, light text */
#hero {
    background: linear-gradient(135deg, #060d1f 0%, #0a1628 50%, #0f2140 100%);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered reveal delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Mobile menu */
#mobileMenu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hamburger animation */
#bar1 {
    transform-origin: center;
}
#bar2 {
    transform-origin: center;
}
#bar3 {
    transform-origin: center;
}
body.menu-open #bar1 {
    transform: translateY(4px) rotate(45deg);
}
body.menu-open #bar2 {
    opacity: 0;
}
body.menu-open #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* Service card hover - text color transitions handled by group */
.group:hover .group-hover\:text-white {
    color: #ffffff;
}
.group:hover .group-hover\:text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

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

/* Image loading placeholder */
img {
    background-color: #f1f5f9;
}

/* Selection color */
::selection {
    background-color: #4ade80;
    color: #0a1628;
}

/* Print styles */
@media print {
    nav, #contactForm, #successMessage {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
