/* ============================================================ */
/* GAZ BH — Custom Styles                                       */
/* Dark gaming/tech aesthetic with gradient accents             */
/* ============================================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050508;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00A8FF, #7B2FFF, #FF6B35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #33BBFF, #995CFF, #FF8C5A);
}

/* Smooth scroll for the entire page */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(0, 168, 255, 0.3);
    color: white;
}

/* ============================================================ */
/* HEADER STYLES                                                */
/* ============================================================ */

/* Header state when scrolled */
#header.scrolled {
    background: rgba(2, 2, 3, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#header.scrolled .backdrop-blur-xl {
    background: rgba(2, 2, 3, 0.8);
}

/* Nav link active state */
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================================ */
/* HERO SECTION ENHANCEMENTS                                    */
/* ============================================================ */

/* Shimmer effect for gradient text */
.shimmer-text {
    background: linear-gradient(
        90deg,
        #00A8FF 0%,
        #7B2FFF 25%,
        #FF6B35 50%,
        #7B2FFF 75%,
        #00A8FF 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* ============================================================ */
/* SERVICE CARDS                                                */
/* ============================================================ */

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.3), rgba(123, 47, 255, 0.3), rgba(255, 107, 53, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* ============================================================ */
/* PORTFOLIO CARDS                                              */
/* ============================================================ */

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.05), rgba(123, 47, 255, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.portfolio-card:hover::after {
    opacity: 1;
}

.portfolio-card .dot-pattern {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* ============================================================ */
/* FORM STYLES                                                  */
/* ============================================================ */

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Form input focus glow */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.15);
}

/* ============================================================ */
/* WHATSAPP FLOATING BUTTON                                     */
/* ============================================================ */

#whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A8FF, #7B2FFF, #FF6B35);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

#whatsapp-float:hover::before {
    opacity: 0.5;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* ============================================================ */
/* REVEAL ON SCROLL ANIMATION                                   */
/* ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================ */
/* MOBILE MENU TRANSITIONS                                      */
/* ============================================================ */

#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* ============================================================ */
/* LOADING SPINNER                                              */
/* ============================================================ */

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================ */
/* GRADIENT BORDER UTILITY                                      */
/* ============================================================ */

.gradient-border {
    position: relative;
    background: #0a0a12;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, #00A8FF, #7B2FFF, #FF6B35);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ============================================================ */
/* RESPONSIVE ADJUSTMENTS                                       */
/* ============================================================ */

@media (max-width: 640px) {
    .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
