:root {
    --primary-blue: #ffc919;
    --primary-purple: #d9a900;
    --primary-cyan: #ffd85b;
    --primary-pink: #cda11a;
    --primary-amber: #ffc919;
    --primary-emerald: #d1a318;
    --primary-rose: #bd8f12;
    --primary-indigo: #e0b21f;
    --primary-orange: #e5b216;
    --primary-teal: #ceb06a;
}

/* =========================================
   Ultra Liquid Glass System
   ========================================= */

.glass-card {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    z-index: 1;
}

/* Internal Grain/Noise Texture */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
}

/* Premium Hover State */
.glass-card:hover {
    background: rgba(30, 41, 59, 0.6) !important;
    box-shadow:
        0 20px 60px -10px rgba(59, 130, 246, 0.2),
        0 10px 30px -5px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
    border-top-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

/* =========================================
   3D Icon System
   ========================================= */

.service-icon {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-icon svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.service-card:hover .service-icon {
    transform: translateZ(20px) scale(1.1);
}

.service-card:hover .service-icon svg {
    transform: rotateY(15deg) rotateX(10deg);
    filter: drop-shadow(0 15px 30px rgba(var(--icon-color-rgb), 0.4));
}

/* Contextual Icon Glow Backgrounds */
.service-icon-bg {
    transition: opacity 0.4s ease;
    opacity: 0.6;
}

.service-card:hover .service-icon-bg {
    opacity: 1;
    filter: blur(20px);
}

/* =========================================
   Liquid Button System
   ========================================= */

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    background-size: 200% 200% !important;
    animation: gradientMove 6s ease infinite;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #2563eb) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #059669, #0d9488, #059669) !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3) !important;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    background-size: 150% 150% !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================================
   Mobile Menu System (Slide-Over)
   ========================================= */

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 50;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.mobile-menu-container.open {
    transform: translateX(0);
}

.mobile-nav-link {
    padding: 1rem 1.5rem;
    color: #94a3b8;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left: 3px solid var(--primary-blue);
    padding-left: calc(1.5rem - 3px);
}

.menu-toggle-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Utilities & Animations
   ========================================= */

/* Shimmer Text */
.gradient-text-premium {
    background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6, #60a5fa);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s linear infinite;
    font-weight: 800;
}

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

/* Service Card Borders */
.border-l-blue-500 {
    --icon-color-rgb: 59, 130, 246;
    border-left: 4px solid #3b82f6 !important;
}

.border-l-purple-500 {
    --icon-color-rgb: 168, 85, 247;
    border-left: 4px solid #a855f7 !important;
}

.border-l-amber-500 {
    --icon-color-rgb: 245, 158, 11;
    border-left: 4px solid #f59e0b !important;
}

.border-l-emerald-500 {
    --icon-color-rgb: 16, 185, 129;
    border-left: 4px solid #10b981 !important;
}

.border-l-pink-500 {
    --icon-color-rgb: 236, 72, 153;
    border-left: 4px solid #ec4899 !important;
}

.border-l-indigo-500 {
    --icon-color-rgb: 99, 102, 241;
    border-left: 4px solid #6366f1 !important;
}

.border-l-cyan-500 {
    --icon-color-rgb: 6, 182, 212;
    border-left: 4px solid #06b6d4 !important;
}

/* Grid Background */
.tech-grid {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-delay {
    animation-delay: 2s;
}

/* Particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: particleUp 15s linear infinite;
}

@keyframes particleUp {
    from {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    to {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* =========================================
   reCAPTCHA Customization
   ========================================= */
.grecaptcha-badge {
    transform: scale(0.8) !important;
    transform-origin: bottom right !important;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

/* Navigation Blur Effect */
.nav-blur {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.nav-blur.shadow-lg {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Responsive Stability Fixes
   ========================================= */
html,
body {
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .glass-card:hover,
    .liquid-glass:hover,
    .premium-glass:hover,
    .card-hover-premium:hover {
        transform: none !important;
    }

    .glow-blob,
    .glow-blob-perfect {
        opacity: 0.2 !important;
    }
}