/* ============================================
   Computer & Cellphone Solutions — Custom Styles
   Premium Dark Luxury Theme
   Colors: Terracotta + Sand on Deep Dark
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4703f;
}

/* --- Selection --- */
::selection {
    background: rgba(196, 112, 63, 0.3);
    color: #fdf0e8;
}

/* --- Animations --- */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .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.35s; }
    .reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* --- Navbar --- */
#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 112, 63, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* --- Mobile Menu --- */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(244, 233, 211, 0.05);
}

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

/* --- Card Hover Glow --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Button Focus --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c4703f;
    outline-offset: 2px;
}

/* --- Input Autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1c1c1c inset !important;
    -webkit-text-fill-color: #f4e9d3 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Map Invert Fix --- */
iframe[title*="map"] {
    border-radius: 16px;
}

/* --- Smooth Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.2;
    }
}

/* --- Print Styles --- */
@media print {
    nav, #contactForm, .reveal { display: none !important; }
    body { background: white !important; color: black !important; }
}
