/* OnCalm.io Landing Page - Custom Styles */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Terminal Styling */
.terminal-window {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: #1e1e2e;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

/* .terminal-window:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
} */

.terminal-header {
    background: linear-gradient(to bottom, #2d2d3d, #1e1e2e);
    border-bottom: 1px solid #3d3d4d;
}

.terminal-body {
    background: #1e1e2e;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: auto;
}

/* Typing Cursor Animation */
.typing-cursor {
    animation: blink 1s infinite;
    display: inline-block;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Terminal Text Colors */
.terminal-body .text-success {
    color: #4ade80;
}

.terminal-body .text-danger {
    color: #ff4444;
}

.terminal-body .text-gray-300 {
    color: #d1d5db;
}

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

.terminal-body .text-yellow-400 {
    color: #fbbf24;
}

/* Code/Command Styling */
code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: #1e1e2e;
    color: #e0e0e0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* Smooth Transitions */
a, button {
    transition: all 0.2s ease;
}

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

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

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

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

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Button Hover Effects */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Card Hover Effects */
/* .hover\:shadow-xl:hover {
    transform: translateY(-2px);
} */

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #1a1f3a 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Alert/Notification Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid #4ade80;
    color: #16a34a;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #dc2626;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #2563eb;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 107, 53, 0.1);
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pulse Animation for Status Indicators */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Form Validation States */
input:invalid:not(:placeholder-shown) {
    border-color: #ff4444;
}

input:valid:not(:placeholder-shown) {
    border-color: #4ade80;
}

/* Status Dots Animation */
@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.status-dot {
    animation: dot-pulse 2s ease-in-out infinite;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Terminal Syntax Highlighting */
.terminal-command {
    color: #4ade80;
}

.terminal-error {
    color: #ff4444;
}

.terminal-output {
    color: #d1d5db;
}

.terminal-prompt {
    color: #4ade80;
    font-weight: 500;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .terminal-body {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }

    body {
        background: white;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Smooth Color Transitions */
* {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Prevent transition on page load */
.preload * {
    transition: none !important;
}

/* Custom Selection Color */
::selection {
    background: rgba(255, 107, 53, 0.2);
    color: #1a1f3a;
}

::-moz-selection {
    background: rgba(255, 107, 53, 0.2);
    color: #1a1f3a;
}

/* Image Loading State */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-enabled {
        backdrop-filter: blur(10px);
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here when needed */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
