/* ===================================
   SEMAAR - Custom Styles
   =================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.animate-float-delayed {
    animation: float-delayed 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Form Status Messages */
#form-status.success {
    color: #059669;
    background-color: #ecfdf5;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #6ee7b7;
}

#form-status.error {
    color: #dc2626;
    background-color: #fef2f2;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fca5a5;
}

#form-status.info {
    color: #2563eb;
    background-color: #eff6ff;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #93c5fd;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navbar transparent effect on scroll */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    transform-origin: top;
}

#mobile-menu.hidden {
    display: none;
    opacity: 0;
    transform: scaleY(0);
}

#mobile-menu:not(.hidden) {
    display: block;
    opacity: 1;
    transform: scaleY(1);
}

/* WhatsApp Button Pulse */
.whatsapp-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Hover Effects */
.service-card:hover .icon-box {
    transform: scale(1.1);
}

/* Stats Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Input Focus Effects */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Hero Gradient Text */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection Color */
::selection {
    background-color: #0ea5e9;
    color: white;
}

/* Brand Logos Grayscale Effect */
.brand-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Quote styling */
.testimonial-quote {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid #0ea5e9;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Loading state for form button */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
