/* ============================================
   Hightech Wireless — Custom Styles
   Classic & Elegant | Plum + Amber Palette
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0F24;
}
::-webkit-scrollbar-thumb {
    background: #4A2A6E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6B3FA0;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #F5F0F8;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(15, 9, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(107, 63, 160, 0.2), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

/* Floating card animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js .absolute.-top-4.-left-8 {
        animation: float-slow 4s ease-in-out infinite;
    }
    .js .absolute.-bottom-4.-left-4 {
        animation: float-medium 3.5s ease-in-out infinite;
    }
    .js .absolute.top-1\/2.-right-4 {
        animation: float-fast 3s ease-in-out infinite;
    }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    /* Default state: visible (no JS required) */
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JS-enhanced reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .js .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal:nth-child(1) { transition-delay: 0.05s; }
    .js .reveal:nth-child(2) { transition-delay: 0.1s; }
    .js .reveal:nth-child(3) { transition-delay: 0.15s; }
    .js .reveal:nth-child(4) { transition-delay: 0.2s; }
    .js .reveal:nth-child(5) { transition-delay: 0.25s; }
    .js .reveal:nth-child(6) { transition-delay: 0.3s; }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107, 63, 160, 0.2);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Testimonial Cards
   ============================================ */
/* Subtle gradient border effect on hover */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* ============================================
   Form Inputs
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
    #hero {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .font-serif.text-5xl {
        font-size: 2.5rem;
    }

    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #contactForm,
    iframe {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
    }
}
