/* Ninja Web - Custom CSS */

/* Wave Dividers */
.wave-white-bottom {
    position: relative;
    overflow: hidden;
}
.wave-white-bottom::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C180,80 360,0 540,40 C720,80 900,0 1080,40 C1260,80 1350,20 1440,40 L1440,80 L0,80 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #1A1A2E 0%, #3D1515 40%, #D32F2F 100%);
    min-height: 65vh;
    display: flex;
    align-items: center;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #EF5350, #D32F2F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.12);
}

/* Blog card */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

/* Tech logo pills (light bg context) */
.tech-badge {
    transition: background-color 0.2s, transform 0.2s;
}
.tech-badge:hover {
    background-color: #f9fafb;
    transform: scale(1.04);
}

/* Cloud provider cards (dark bg context) */
.cloud-card {
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.cloud-card:hover {
    background-color: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Animate on scroll (via JS) */
.aos-init { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.aos-animate { opacity: 1; transform: translateY(0); }

/* Quill editor overrides */
.ql-editor { min-height: 300px; font-size: 15px; line-height: 1.7; }
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; border-color: #e5e7eb; }
.ql-container.ql-snow { border-radius: 0 0 8px 8px; border-color: #e5e7eb; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #D32F2F; border-radius: 3px; }

/* Blog post content */
.post-content h1, .post-content h2, .post-content h3 { font-weight: 700; margin: 1.5rem 0 0.75rem; }
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content p { margin-bottom: 1rem; line-height: 1.75; }
.post-content ul, .post-content ol { margin: 1rem 0 1rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a { color: #D32F2F; text-decoration: underline; }
.post-content code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-content pre { background: #1e1e1e; color: #d4d4d4; padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0; }
.post-content blockquote { border-left: 4px solid #D32F2F; padding-left: 1rem; color: #555; margin: 1.5rem 0; font-style: italic; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }

/* Focus outline for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #D32F2F;
    outline-offset: 2px;
}

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Section label */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D32F2F;
    margin-bottom: 0.75rem;
}
.section-label::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: #D32F2F;
    flex-shrink: 0;
}
