/* Apiary Platform - Main Stylesheet */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

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

.glass-strong {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6, #14b8a6);
    padding: 1px;
    border-radius: 12px;
}

.gradient-border-inner {
    background: #0f172a;
    border-radius: 11px;
    height: calc(100% - 2px);
    width: calc(100% - 2px);
    margin: 1px;
}

/* Animated background */
.animated-bg {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #1e1b4b);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Code block styling */
.code-block {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Syntax highlighting colors */
.syntax-keyword { color: #c678dd; }
.syntax-string { color: #98c379; }
.syntax-function { color: #61afef; }
.syntax-comment { color: #5c6370; }
.syntax-variable { color: #e06c75; }
.syntax-number { color: #d19a66; }
.syntax-operator { color: #56b6c2; }

/* Node animation */
.node {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Hover effects */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.1);
}

/* Button glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-glow:hover::before {
    left: 100%;
}

/* Fade in animations - persistent state */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements */
.fade-in-section .delay-100 { transition-delay: 0.1s; }
.fade-in-section .delay-200 { transition-delay: 0.2s; }
.fade-in-section .delay-300 { transition-delay: 0.3s; }
.fade-in-section .delay-400 { transition-delay: 0.4s; }

/* Hero section elements should be visible immediately */
.hero-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-input::placeholder {
    color: #64748b;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fade-in-up {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2rem;
    }
}

/* Auth pages specific */
.auth-background {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #1e1b4b);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow: hidden;
}

.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
}

.auth-bg-nodes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Legal pages */
.legal-content {
    max-width: 48rem;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.legal-content p {
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #38bdf8;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #8b5cf6;
}
