:root {
    --primary: #2E75B6;
    --accent: #4A90B8;
    --dark: #1A1A1A;
    --light: #F8F9FA;
}

.bg-grid {
    background-image: radial-gradient(circle, #2E75B6 1px, transparent 1px);
    background-size: 30px 30px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-in-up-visible {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Visualization Animations */
@keyframes floating {
    0% { transform: translateY(0px) rotate(-6deg); }
    50% { transform: translateY(-15px) rotate(-4deg); }
    100% { transform: translateY(0px) rotate(-6deg); }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floatingDelayed {
    0% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(3deg); }
}

.floating-delayed {
    animation: floatingDelayed 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes floatingFast {
    0% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(15deg); }
    100% { transform: translateY(0px) rotate(12deg); }
}

.floating-fast {
    animation: floatingFast 3s ease-in-out infinite;
}

@keyframes blob {
    0% { border-radius: 20% 30% 20% 40%; }
    50% { border-radius: 40% 20% 40% 20%; }
    100% { border-radius: 20% 30% 20% 40%; }
}

.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

/* Responsive adjustments for the visualization */
@media (max-width: 1024px) {
    .visualization-container {
        margin-top: 4rem;
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    .visualization-container {
        max-width: 300px;
    }
}

/* Form Styles - Safari & UX Improvements */
#contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232E75B6' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.5rem;
    padding-right: 3.5rem;
}

#contact-form input, 
#contact-form select, 
#contact-form textarea {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

#contact-form input:hover, 
#contact-form select:hover, 
#contact-form textarea:hover {
    background-color: #fff;
    border-color: rgba(46, 117, 182, 0.2);
}

#contact-form input:focus, 
#contact-form select:focus, 
#contact-form textarea:focus {
    background-color: #fff;
    box-shadow: 0 10px 20px -5px rgba(46, 117, 182, 0.1);
    transform: translateY(-1px);
}

/* Fix for Safari select text alignment */
#contact-form select {
    line-height: normal;
}
