/* Custom styles for the official website */

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

/* Hero section gradient animation */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Fade in animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* FAQ accordion animation */
.faq-answer {
    transition: all 0.3s ease-in-out;
}

.faq-item .fa-chevron-down {
    transition: transform 0.3s ease-in-out;
}

.faq-item.open .fa-chevron-down {
    transform: rotate(-180deg);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Card hover effect */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Button hover effect */
.btn-gradient {
    background-size: 200% auto;
    transition: background-position 0.5s;
}

.btn-gradient:hover {
    background-position: right center;
}

/* Image placeholder styling */
.image-placeholder {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #e5e7eb;
}

.dark .image-placeholder {
    background: linear-gradient(45deg, #374151 25%, transparent 25%),
                linear-gradient(-45deg, #374151 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #374151 75%),
                linear-gradient(-45deg, transparent 75%, #374151 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #1f2937;
}

/* Form input focus ring customization */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3B82F6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2563EB;
}

/* Fade-in animation for sections */
.fade-ready {
    opacity: 0;
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Show content when JS is disabled */
noscript .fade-ready {
    opacity: 1;
}

/* Carousel styles */
.carousel-indicator.active {
    background-color: #3B82F6;
}

.carousel-indicator:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Phone frame responsive */
@media (max-width: 640px) {
    #carousel-prev, #carousel-next {
        width: 2.5rem;
        height: 2.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
}
