/* Custom Dark Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #262638; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3b3b54; }

/* Custom Pointer Cursor Handling */
@media (pointer: fine) {
    body, a, button, input, textarea, select, [role="button"], [role="option"] {
        cursor: none !important;
    }
}

/* Align SVG pointer tip (not center) with the actual click hotspot */
.custom-cursor {
    transform-origin: 44.3% 3.1%;
    transform: rotate(-35deg);
    transition: transform 0.1s ease-out;
}
.custom-cursor.is-hover {
    transform: rotate(-20deg) scale(1.15);
}

/* Scroll Progress Bar */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #35a7ff, #8338ec, #ff0000);
    z-index: 10000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(18, 18, 26, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gradient-accent {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced Global Button Hover Micro-interactions */
button, a, input[type="submit"] {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button:active, a:active {
    transform: scale(0.96) !important;
}

/* Gradient Accent Hover Glow */
.gradient-accent-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.gradient-accent-btn:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.55), 0 0 12px rgba(6, 182, 212, 0.35);
    transform: translateY(-2px) scale(1.03);
}

/* Glass Panel Button Hover Glow */
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
}

/* Header nav link hover */
.nav-link {
    position: relative;
    display: inline-block;
    color: #d1d5db;
    padding: 0.35rem 0;
    letter-spacing: 0.01em;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #6366f1, #a855f7);
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 0;
    height: 100%;
    border-radius: 0.5rem;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.12), transparent 70%);
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    z-index: -1;
}
.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    transform: translateY(-1px);
}
.nav-link:hover::before,
.nav-link.is-active::before {
    width: 100%;
}
.nav-link:hover::after {
    width: 140%;
    opacity: 1;
}
.nav-link:active {
    transform: translateY(0) scale(0.98) !important;
}

@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-link::before,
    .nav-link::after {
        transition: none;
    }
    .nav-link:hover,
    .nav-link.is-active {
        transform: none;
    }
}

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

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

/* Infinite Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.brand-logo-slot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    height: 2.5rem;
    padding-inline: 0.5rem;
}

.brand-logo-slot img {
    max-height: 2.25rem;
    max-width: 8.75rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 28rem;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Custom Swiper Pagination Styling */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
    background: #6366f1 !important;
    width: 24px !important;
    border-radius: 6px !important;
    opacity: 1 !important;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 3px;
}

/* Directional reveal */
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal.active { transform: none; }

/* Service accordion: stacked on mobile, always open on desktop */
.service-panel {
    display: none;
}
.service-panel.is-open {
    display: block;
}
@media (min-width: 768px) {
    .service-panel {
        display: block;
    }
}

.form-control[aria-invalid="true"] {
    border-color: #f43f5e;
}

/* Custom select (replaces native OS dropdown for custom cursor) */
.custom-select {
    position: relative;
}
.custom-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
}
.custom-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.custom-select-label.is-placeholder {
    color: #6b7280;
}
.custom-select-icon {
    font-size: 0.65rem;
    color: #9ca3af;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-select.is-open .custom-select-icon {
    transform: rotate(180deg);
}
.custom-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 60;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 0.75rem;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    max-height: 14rem;
    overflow-y: auto;
}
.custom-select-option {
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.custom-select-option:hover,
.custom-select-option.is-focused {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}
.custom-select-option.is-selected {
    color: #06b6d4;
}
.custom-select-option.is-disabled {
    display: none;
}
.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:focus-visible {
    border-color: #6366f1;
    outline: none;
}
.custom-select.is-invalid .custom-select-trigger {
    border-color: #f43f5e;
}

select.form-control {
    color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-marquee {
        animation: none;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }
    .gradient-accent-btn:hover,
    .glass-btn:hover {
        transform: none;
    }
}
