/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Animations */
@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes fade-in-step {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes chat-bubble-in {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ping-sequence {
    0%, 33% { transform: scale(1); opacity: 0.2; }
    17% { transform: scale(2); opacity: 0; }
    100% { transform: scale(1); opacity: 0.2; }
}

/* Animation Classes */
.animate-slide { animation: slide 30s linear infinite; }
.animate-fade-in-step { animation: fade-in-step 0.5s ease-out forwards; }
.animate-chat-bubble { animation: chat-bubble-in 0.5s ease-out forwards; }
.animate-ping-sequence { animation: ping-sequence 3s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* Component Styles */
.hero-slider .slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.group[open] .group-open\:rotate-180 {
    transform: rotate(180deg);
}

/* Text Colors */
.text-strong { color: #171717; }
.dark .text-strong { color: #f8f8f5; }
.text-muted { color: #525252; }
.dark .text-muted { color: #a3a3a3; }

/* Link Hover Effects */
a:hover {
    text-decoration: none;
}

/* Card Hover Effects */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Transform Effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Border Colors */
.border-subtle { border-color: #e5e5e5; }
.dark .border-subtle { border-color: #404040; }

/* Demo Frame Styles */
.demo-frame-container {
    position: relative;
    max-width: 375px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.demo-frame {
    width: 100%;
    border: none;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Device Frame Styles */
@media (min-width: 768px) {
    .demo-frame-container {
        padding: 40px 15px;
        background: #1a1a1a;
        border-radius: 40px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
    
    .demo-frame {
        border-radius: 15px;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    }
    
    /* Phone notch */
    .demo-frame-container::before {
        content: "";
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 6px;
        background: #333;
        border-radius: 20px;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }
    
    /* Home button */
    .demo-frame-container::after {
        content: "";
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        border: 2px solid #333;
        border-radius: 50%;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: inherit;
    z-index: 1000;
}

.dark .loading-overlay {
    background: rgba(23, 23, 23, 0.9);
}

/* Button Active States */
.active {
    background-color: currentColor !important;
    color: white !important;
}

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

/* Focus States */
.focus\:ring-2:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px currentColor;
}

/* Mobile Menu Styles */
#mobile-menu {
    background: inherit;
    z-index: 50;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu:not(.hidden) {
    display: block;
}

/* Mobile Menu Button */
#mobile-menu-button {
    z-index: 51;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-4xl { font-size: 2.25rem; }
    .text-5xl { font-size: 3rem; }
    .text-6xl { font-size: 3.75rem; }
    .text-9xl { font-size: 6rem; }
}