/* Additional custom styles for better mobile experience */

/* Ensure smooth transitions */
* {
    box-sizing: border-box;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    button, a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve slider controls on mobile */
    .slider-dot {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slider-dot::before {
        content: '';
        width: 12px;
        height: 12px;
        background: currentColor;
        border-radius: 50%;
        opacity: inherit;
    }
}

/* Improve form accessibility */
input:focus, textarea:focus, button:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Better hover states for touch devices */
@media (hover: hover) {
    .hover\:shadow-xl:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Better spacing for mobile */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Enhanced Footer Styles */
footer {
    position: relative;
}

/* Animated background elements */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Social media hover effects */
footer .social-icon {
    position: relative;
    overflow: hidden;
}

footer .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

footer .social-icon:hover::before {
    left: 100%;
}

/* Newsletter input focus effect */
footer input[type="email"]:focus {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

footer .floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

footer .gradient-text {
    background: linear-gradient(-45deg, #3b82f6, #06b6d4, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Section Enhancements */
#contact {
    position: relative;
}

/* Contact form input focus effects */
#contact input:focus,
#contact textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Contact card hover effects */
#contact .contact-card {
    transition: all 0.3s ease;
}

#contact .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Icon hover animations */
#contact .icon-container {
    position: relative;
    overflow: hidden;
}

#contact .icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

#contact .icon-container:hover::before {
    left: 100%;
}

/* Button pulse animation */
#contact button[type="submit"] {
    position: relative;
    overflow: hidden;
}

#contact button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#contact button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Stats animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#contact .stats-item {
    animation: countUp 0.6s ease-out forwards;
}

#contact .stats-item:nth-child(1) { animation-delay: 0.1s; }
#contact .stats-item:nth-child(2) { animation-delay: 0.2s; }
#contact .stats-item:nth-child(3) { animation-delay: 0.3s; }
#contact .stats-item:nth-child(4) { animation-delay: 0.4s; }

/* Simple equal height cards */
@media (min-width: 768px) {
    #contact .grid.md\\:grid-cols-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}