/* Custom styles for HomeCloud Landing */

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #f9fafb;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button hover effects */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

.btn-primary:hover {
    @apply bg-blue-700 transform scale-105 shadow-lg;
}

/* Card hover effects */
.feature-card {
    @apply transition-all duration-300;
}

.feature-card:hover {
    @apply transform scale-105 shadow-xl;
}

/* Code block styling */
.code-block {
    @apply bg-gray-900 text-green-400 p-6 rounded-lg font-mono text-sm overflow-x-auto;
}

/* Navigation transparency effect */
.nav-transparent {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Language switcher styles */
.lang-btn {
    @apply transition-all duration-300;
}

.lang-btn:hover {
    @apply bg-blue-100 text-blue-600;
}

/* Demo form styles */
.demo-form-container {
    @apply transition-all duration-300;
}

.demo-form-container:hover {
    @apply shadow-3xl;
}

/* Form loading state */
.form-loading {
    @apply opacity-70 pointer-events-none;
}

/* Success/Error message animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-slide-in {
    animation: slideInDown 0.4s ease-out;
}

/* Carousel styles */
.carousel-item {
    display: none;
    transition: all 0.5s ease-in-out;
}

.carousel-item.active {
    display: grid;
}

.carousel-dot {
    cursor: pointer;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

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

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .grid.md\\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .lang-btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    /* Mobile carousel adjustments */
    .carousel-item {
        padding: 1.5rem !important;
    }

    .carousel-item .order-1,
    .carousel-item .order-2 {
        order: unset !important;
    }

    .carousel-item .md\\:order-1 {
        order: 1 !important;
    }

    .carousel-item .md\\:order-2 {
        order: 2 !important;
    }

    /* Hide carousel arrows on mobile */
    .absolute.left-4,
    .absolute.right-4 {
        display: none;
    }

    /* Mobile navigation improvements */
    nav {
        padding: 0 1rem;
    }

    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}