.accent-bg-gradient {
    background: linear-gradient(135deg, #00D4FF 0%, #1D4ED8 100%);
}
.text-glow {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Premium Services Cards */
.service-card {
    background: rgba(14, 19, 32, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 212, 255, 0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.25);
    background: rgba(22, 31, 51, 0.55);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-icon-box {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.service-card:hover .service-icon-box {
    background: rgba(0, 212, 255, 0.1);
    color: #00D4FF;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.mesh-gradient {
    background-image: radial-gradient(at 0% 0%, rgba(0, 212, 255, 0.08) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(29, 78, 216, 0.1) 0, transparent 50%);
}

/* Diagonal Grid Overlay Mask */
#diagonal-grid path {
    stroke: rgba(255, 255, 255, 0.04);
}


/* Minimal Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.anim-delay-100 {
    animation-delay: 150ms;
}
.anim-delay-200 {
    animation-delay: 300ms;
}
.anim-delay-300 {
    animation-delay: 450ms;
}

/* Scrolled Header Style */
.header-scrolled {
    background-color: #0A0F1C !important;
    /* solid body background color, non-transparent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Custom Scrollbar Styles */
html {
    scrollbar-color: #ffffff #0A0F1C;
    scrollbar-width: thin;
}
::-webkit-scrollbar {
    width: 8px;
    border: none;
}
::-webkit-scrollbar-track {
    background: #0A0F1C;
    border: none;
    /* matches body background */
}
::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 9999px;
    border: none;
}
.is-scrolling::-webkit-scrollbar-thumb {
    background: #ffffff;
    border: none;
}
.is-scrolling::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    border: none;
}

/* Navbar Hover Reveal Mechanism */
.menu-links-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-icon {
    position: absolute;
    right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    #main-header:hover .menu-links-container {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    #main-header:hover .hamburger-icon {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.8);
    }
}

/* Project Images Grayscale to Color */
#work .group img {
    filter: grayscale(100%);
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#work .group:hover img {
    filter: grayscale(0%);
}