/* Custom styles for Infra Commander landing page */

/* Remove default margins and ensure smooth scrolling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Typography improvements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure Tailwind gray colors work properly */
.tw-bg-gray-50 {
    background-color: #f9fafb;
}

.tw-bg-gray-100 {
    background-color: #f3f4f6;
}

.tw-bg-gray-900 {
    background-color: #111827;
}

.tw-text-gray-400 {
    color: #9ca3af;
}

.tw-text-gray-500 {
    color: #6b7280;
}

.tw-text-gray-600 {
    color: #4b5563;
}

.tw-text-gray-700 {
    color: #374151;
}

.tw-text-gray-900 {
    color: #111827;
}

/* Header styles */
header {
    transition: all 0.3s ease;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Form input focus styles */
input:focus {
    outline: none;
}

/* Animation for loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.tw-animate-spin {
    animation: spin 1s linear infinite;
}

/* Gradient text effect for hero if needed */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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

/* Mobile menu styles (for future implementation) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 50;
}

.mobile-menu.active {
    right: 0;
}

/* Ensure proper spacing for sections */
section {
    position: relative;
}

/* Card hover effects */
.tw-shadow-lg {
    transition: all 0.3s ease;
}

.tw-shadow-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Success message animation */
#signup-success {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure buttons don't shrink on mobile */
button, a {
    white-space: nowrap;
}

/* Better focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Additional brand styling */
.tw-bg-primary {
    background-color: #2563eb;
}

.tw-bg-secondary {
    background-color: #ec4899;
}

.tw-text-primary {
    color: #2563eb;
}

.tw-text-secondary {
    color: #ec4899;
}

/* Print styles */
@media print {
    header, footer, #signup {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}