@layer utilities {
    .bg-grid {
        background-image: radial-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px);
        background-size: 24px 24px;
        animation: gridMove 20s linear infinite;
    }

    .robot-glow {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
        animation: glowPulse 3s ease-in-out infinite;
    }

    .hover-lift {
        transition: all 0.3s ease;
    }

    .hover-lift:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .glass-effect {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background-color: rgba(17, 24, 39, 0.7);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 24px 24px;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.9);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@media (min-width: 768px) {
    .content-a {
        margin-top: 25rem;
    }
}

@media (max-width: 767px) {
    .content-a {
        margin-top: 15rem;
    }
    
    .bg-grid {
        background-size: 16px 16px;
    }
    
    /* Mobile-specific optimizations */
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
    }
    
    /* Ensure buttons and inputs are full width on mobile */
    button, input {
        width: 100% !important;
    }
    
    /* Adjust spacing for mobile */
    .space-y-4 > * + * {
        margin-top: 1rem !important;
    }
    
    .space-y-3 > * + * {
        margin-top: 0.75rem !important;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 100% !important;
        margin: 0 1rem !important;
    }
    
    /* Card adjustments */
    .card-hover {
        padding: 0.75rem !important;
    }
}

/* Button hover effects */
button:hover,
.btn:hover {
    transition: all 0.3s ease;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Input focus effects */
input:focus,
textarea:focus {
    transition: all 0.3s ease;
}

/* Modal animations */
.modal-enter {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
