/* Glidefile Website - Custom Styles */

/* Hide Alpine.js elements before load */
[x-cloak] {
    display: none !important;
}

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

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #58A6FF;
    outline-offset: 2px;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .glass {
    background: rgba(13, 17, 23, 0.8);
}

/* Button hover effects */
.btn-hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
}

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

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #58A6FF 0%, #0969DA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Selection color */
::selection {
    background: rgba(88, 166, 255, 0.3);
}

/* Code blocks */
code {
    font-family: 'JetBrains Mono', monospace;
}

pre {
    overflow-x: auto;
}

/* Details/Summary FAQ styling */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.dark details[open] summary {
    border-bottom-color: #30363d;
}

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

/* Platform icons hover */
.platform-icon {
    transition: transform 0.2s ease, color 0.2s ease;
}

.platform-icon:hover {
    transform: scale(1.1);
    color: #58A6FF;
}

/* Screenshot container */
.screenshot-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.screenshot-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(255, 255, 255, 0.8)
    );
    pointer-events: none;
    z-index: 1;
}

.dark .screenshot-container::before {
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(13, 17, 23, 0.8)
    );
}

/* Pricing card highlight */
.pricing-highlight {
    position: relative;
}

.pricing-highlight::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #58A6FF, #0969DA);
    border-radius: inherit;
    z-index: -1;
}

/* Feature icon animation */
.feature-icon {
    transition: transform 0.3s ease;
}

.group:hover .feature-icon {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
