/*
Theme Name: Theme By Sojan T.S
Theme URI: https://theonwo.com
Author: Sojan TS
Author URI: https://theonwo.com
Description: A simple, clean WordPress theme by Sojan TS. Easy to customize and developer friendly.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theonwo-by-sojan-ts
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0a0a14;
}

a {
    text-decoration: none;
    color: #60a5fa;
}

a:hover {
    color: #93bbfc;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== NAVBAR (old dark - removed, using shared front-page navbar) ========== */

/* Blog listing grid (reuses fp-blog-card styles) */
.blog-cards-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 992px) {
    .blog-cards-listing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .blog-cards-listing { grid-template-columns: 1fr; }
}

/* ========== BLOG LIST PAGE ========== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.posts-count {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.posts-count strong {
    color: #e2e8f0;
}

/* ========== BLOG CARD - SEO PRO STYLE ========== */
.blog-card {
    background: rgba(15,20,35,.65);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,.08);
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.blog-card-title a {
    color: #e2e8f0;
}

.blog-card-title a:hover {
    color: #0066cc;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(226,232,240,.35);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-card-meta .meta-author {
    color: #0066cc;
}

.blog-card-meta .meta-sep {
    color: #ccc;
}

.blog-card-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-card-thumb {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-thumb .no-thumb {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 12px;
}

.blog-card-desc {
    flex: 1;
    font-size: 14px;
    color: rgba(226,232,240,.50);
    line-height: 1.7;
}

.blog-card-footer {
    margin-top: 12px;
}

.blog-card-category {
    display: inline-block;
    background: #e8f4fd;
    color: #0066cc;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-category:hover {
    background: #0066cc;
    color: #fff;
}

/* ========== LOAD MORE & POSTS COUNT ========== */
.load-more-wrapper {
    text-align: center;
    margin-top: 25px;
}

.load-more-btn {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 35px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.load-more-btn:hover {
    background: #0066cc;
    color: #fff;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========== SIDEBAR ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 85px;
}

.sidebar-widget {
    background: rgba(15,20,35,.65);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,.08);
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #e2e8f0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,.08);
}

.banner-space {
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 6px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

/* Sidebar Lists */
.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: rgba(226,232,240,.55);
    font-size: 14px;
}

.sidebar-widget ul li a:hover {
    color: #0066cc;
}

/* Sidebar: Popular/Recent Posts with thumbnail */
.sidebar-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar-post-item:last-child {
    border-bottom: none;
}

.sidebar-post-thumb {
    width: 70px;
    height: 55px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-thumb .no-thumb-sm {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #bbb;
}

.sidebar-post-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.sidebar-post-info h4 a {
    color: #e2e8f0;
}

.sidebar-post-info h4 a:hover {
    color: #0066cc;
}

/* Sidebar: Comments */
.sidebar-comment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar-comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img,
.comment-avatar .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.comment-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    display: block;
    margin-bottom: 2px;
}

.comment-info p {
    font-size: 13px;
    color: rgba(226,232,240,.40);
    margin: 0;
    line-height: 1.5;
}

/* Sidebar: Tags */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tags a {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(226,232,240,.55);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.sidebar-tags a:hover {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* ========== AD LABEL ========== */
.ad-label {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    padding: 15px 0;
    letter-spacing: 0.5px;
}

/* ========== SINGLE POST ========== */
.single-post-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.single-post-main {
    min-width: 0;
}

/* Breadcrumb */
.single-breadcrumb {
    font-size: 13px;
    color: rgba(226,232,240,.35);
    margin-bottom: 12px;
}

.single-breadcrumb a {
    color: #0066cc;
}

/* Content Card */
.single-post-content {
    background: rgba(15,20,35,.65);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,.08);
}

.single-post-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(226,232,240,.35);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-author-avatar {
    flex-shrink: 0;
}

.meta-author-avatar img,
.meta-author-avatar .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.meta-author-link {
    color: #0066cc;
    font-weight: 600;
}

.meta-dot {
    color: #ccc;
}

/* Featured Image */
.single-post-thumb {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.single-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Post Body */
.single-post-body {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(226,232,240,.60);
}

.single-post-body h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #e2e8f0;
}

.single-post-body h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: #e2e8f0;
}

.single-post-body p {
    margin-bottom: 18px;
}

.single-post-body img {
    border-radius: 8px;
    margin: 15px 0;
}

.single-post-body blockquote {
    border-left: 4px solid #1a1a2e;
    padding: 20px 25px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(226,232,240,.55);
    line-height: 1.7;
}

.single-post-body blockquote cite,
.single-post-body blockquote footer {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 14px;
}

.single-post-body ul, .single-post-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.single-post-body li {
    margin-bottom: 8px;
}

/* Tags */
.single-post-tags {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 14px;
    color: rgba(226,232,240,.55);
}

.single-post-tags strong {
    margin-right: 5px;
}

.single-post-tags a {
    color: #0066cc;
    margin: 0 2px;
}

.single-post-tags a:hover {
    text-decoration: underline;
}

/* Share Buttons */
.single-share {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-email { background: #555; }

/* ========== AUTHOR BOX ========== */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(15,20,35,.65);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,.08);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img,
.author-avatar .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 13px;
    color: rgba(226,232,240,.40);
    line-height: 1.5;
    margin: 0;
}

/* ========== RELATED POSTS ========== */
.related-posts {
    background: rgba(15,20,35,.65);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,.08);
}

.related-posts h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-post-card a {
    color: #e2e8f0;
}

.related-post-card a:hover {
    color: #0066cc;
}

.related-post-thumb {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    height: 120px;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-card h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* ========== COMMENTS SECTION ========== */
.comments-section {
    background: rgba(15,20,35,.65);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,.08);
}

.comments-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-list .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Single Comment Card */
.single-comment,
.comments-list > .comment {
    list-style: none;
}

.comment-card {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.comment-card:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-user-avatar {
    flex-shrink: 0;
}

.comment-user-avatar img,
.comment-user-avatar .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    display: block;
}

.comment-date {
    font-size: 12px;
    color: rgba(226,232,240,.35);
}

.comment-body-text {
    font-size: 14px;
    color: rgba(226,232,240,.55);
    line-height: 1.7;
    padding-left: 62px;
}

.comment-body-text p {
    margin: 0 0 10px;
}

.comment-reply-link {
    padding-left: 62px;
    margin-top: 5px;
}

.comment-reply-link a {
    color: #0066cc;
    font-size: 13px;
    font-weight: 600;
}

/* Nested comments */
.comments-list .children {
    list-style: none;
    padding-left: 40px;
    margin: 0;
}

/* Comment Form */
.comment-form-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.comment-note {
    font-size: 13px;
    color: rgba(226,232,240,.35);
    font-style: italic;
    margin-bottom: 15px;
}

.comment-form-field textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    background: rgba(255,255,255,.05);
    color: #e2e8f0;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-form-field textarea:focus {
    outline: none;
    border-color: rgba(96,165,250,.40);
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(226,232,240,.55);
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    background: rgba(255,255,255,.05);
    color: #e2e8f0;
    font-family: inherit;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: rgba(96,165,250,.40);
}

.comment-submit-btn {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    width: 100%;
}

.comment-submit-btn:hover {
    background: #0f172a;
}

/* ========== POST NAVIGATION BOTTOM ========== */
.post-nav-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px 25px;
    background: rgba(15,20,35,.65);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,.08);
}

.post-nav-bottom a {
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
}

.post-nav-bottom a:hover {
    color: #004499;
}

/* ========== FOOTER (old dark - removed, using shared front-page footer) ========== */

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 992px) {
    .blog-layout,
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-card {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 17px;
    }

    .blog-card-thumb {
        width: 120px;
        height: 90px;
    }

    .blog-card-desc {
        font-size: 13px;
    }

    .single-post-title {
        font-size: 22px;
    }

    .single-post-content {
        padding: 20px;
    }

    .single-post-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .comment-body-text,
    .comment-reply-link {
        padding-left: 0;
    }

    .single-share {
        flex-wrap: wrap;
    }

    .share-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .post-nav-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 15px;
    }

    .blog-card-body {
        flex-direction: column;
    }

    .blog-card-thumb {
        width: 100%;
        height: 160px;
    }

    .single-post-title {
        font-size: 20px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== CASE STUDIES LISTING PAGE ========== */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.case-study-card {
    background: rgba(15,20,35,.65);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}

.case-study-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.30);
    transform: translateY(-2px);
}

.case-study-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1220, #1e3a5f);
}

.case-study-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-study-thumb .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}

.case-study-body {
    padding: 16px 18px;
}

.case-study-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.case-study-title {
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.3;
}

.case-study-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(6,182,212,0.25);
    background: rgba(6,182,212,0.08);
    color: rgba(2,132,199,0.92);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.case-study-desc {
    font-size: 14px;
    color: rgba(226,232,240,.45);
    line-height: 1.6;
    margin: 8px 0 0;
}

.pagination-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-links a,
.pagination-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(226,232,240,.55);
    transition: all 0.2s;
}

.pagination-links a:hover {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

.pagination-links .current {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}


/* =================================================================
   FRONT PAGE STYLES
   Scoped to body.front-page so they don't collide with blog styles
   ================================================================= */

body.front-page {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
      radial-gradient(1200px 720px at 10% 0%, rgba(59, 130, 246, 0.06), transparent 60%),
      radial-gradient(1100px 680px at 90% 10%, rgba(99, 102, 241, 0.05), transparent 60%),
      radial-gradient(900px 520px at 50% 95%, rgba(6, 182, 212, 0.04), transparent 60%),
      #0a0a14;
    color: #e2e8f0;
    overflow-x: hidden;
}

:root,
body {
    --nav-bg:#0f1019;
    --nav-text:#e2e8f0;
    --nav-accent:#60a5fa;
    --nav-muted:#6b7280;
    --nav-border: rgba(15, 23, 42, 0.06);
    --card:#ffffff;
    --border: rgba(15,23,42,.10);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --header-h: 76px;
    --max: 1200px;
}

body.front-page section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* 3D Background Canvas */
#bgCanvas{
    position: fixed;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: .95;
}
.bg-glow-layer{
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    background:
      radial-gradient(900px 520px at 15% 18%, rgba(26,26,46,.10), transparent 60%),
      radial-gradient(900px 520px at 88% 22%, rgba(107,114,128,.08), transparent 60%),
      radial-gradient(900px 520px at 60% 92%, rgba(75,85,99,.08), transparent 60%);
    filter: blur(10px);
    opacity: .75;
}
.noise{
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events:none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    opacity: .14;
    mix-blend-mode: soft-light;
}

@media (prefers-reduced-motion: reduce){
    #bgCanvas, .bg-glow-layer, .noise { display:none; }
}

/* Page Wrapper */
body.front-page .page{
    max-width: var(--max);
    margin: 1.25rem auto 3rem;
    padding-inline: 1.25rem;
}

/* Front Page Navbar */
.site-header,
.fp-header{
    position: sticky;
    top:0;
    z-index: 100;
    background: rgba(10, 10, 20, .85);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0;
}
.fp-navbar{
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    height: auto;
}
.navbar-inner{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 1rem;
}
.navbar-logo{
    display:inline-flex;
    align-items:center;
    gap: .6rem;
    text-decoration:none;
    color: var(--nav-text);
}
.logo-mark{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0%, #4b5563, #1a1a2e);
    display: inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.30);
    flex: 0 0 auto;
}
img.logo-mark-img{
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: none;
    color: transparent;
    border-radius: 999px;
}
.logo-text{ font-weight: 800; letter-spacing: .03em; }

.navbar-links{
    display:none;
    list-style:none;
    margin:0;
    padding:0;
    align-items:center;
    gap: .65rem;
}
.navbar-links a{
    position: relative;
    display:inline-flex;
    align-items:center;
    padding: .38rem .75rem;
    border-radius: 999px;
    text-decoration:none;
    font-size: .92rem;
    color: var(--nav-muted);
    transition: color .18s ease, background .18s ease, transform .1s ease;
    white-space: nowrap;
}
.navbar-links a:hover{
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.navbar-links a.is-active{
    color: var(--nav-accent);
    background: rgba(96, 165, 250, 0.10);
    border: 1px solid rgba(96, 165, 250, 0.20);
}
.navbar-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255, 255, 255, 0.06);
    cursor:pointer;
    padding:0;
    transition: box-shadow .18s ease, transform .12s ease, opacity .18s ease;
}
.navbar-toggle:hover{ box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14); }
.navbar-toggle:active{ transform: scale(.96); }

.navbar-toggle-lines{ width: 20px; height: 16px; position: relative; }
.navbar-toggle-lines span{
    position:absolute; left:0; right:0;
    height:2px; border-radius:999px;
    background:#e2e8f0;
    transition: transform .18s ease, opacity .18s ease, top .18s ease, bottom .18s ease;
}
.navbar-toggle-lines span:nth-child(1){ top:0; }
.navbar-toggle-lines span:nth-child(2){ top:7px; }
.navbar-toggle-lines span:nth-child(3){ bottom:0; }

.sidebar-open .navbar-toggle-lines span:nth-child(1){ top:7px; transform: rotate(45deg); }
.sidebar-open .navbar-toggle-lines span:nth-child(2){ opacity:0; }
.sidebar-open .navbar-toggle-lines span:nth-child(3){ bottom:7px; transform: rotate(-45deg); }
.sidebar-open .navbar-toggle{ opacity:0; pointer-events:none; }

/* Sidebar */
.navbar-sidebar{
    position: fixed;
    inset-block: 0;
    left: 0;
    width: 290px;
    max-width: 86vw;
    background: radial-gradient(circle at top left, #020617, #020617 45%, #020617 100%);
    color:#e5e7eb;
    padding: 1.4rem 1.15rem;
    display:flex;
    flex-direction:column;
    gap: 1.2rem;
    transform: translateX(-100%);
    transition: transform .22s ease-out;
    box-shadow: 8px 0 25px rgba(15, 23, 42, 0.60);
    z-index: 120;
    height: 100vh;
}
.sidebar-open .navbar-sidebar{ transform: translateX(0); }

.sidebar-top{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: .75rem;
}
.sidebar-logo-text{
    font-weight:800;
    letter-spacing:.04em;
    font-size: 1.05rem;
}
.sidebar-close{
    width: 34px; height: 34px;
    border-radius:999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
}
.sidebar-close span{
    display:block;
    width: 14px;
    height: 2px;
    border-radius:999px;
    background:#e5e7eb;
    position: relative;
    transform: rotate(45deg);
}
.sidebar-close span::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:999px;
    background:#e5e7eb;
    transform: rotate(90deg);
}

.sidebar-links{
    list-style:none;
    padding:0; margin: .25rem 0 0;
    display:flex;
    flex-direction:column;
    gap: .2rem;
}
.sidebar-links a{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: .7rem .65rem;
    text-decoration:none;
    color:#e5e7eb;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2,6,23,.15);
    transition: background .15s ease, transform .08s ease;
}
.sidebar-links a:hover{
    background: rgba(37,99,235,.22);
    transform: translateX(2px);
}
.sidebar-footer{
    margin-top:auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 64, 175, 0.55);
    display:flex;
    flex-direction:column;
    gap: .75rem;
    color:#9ca3af;
    font-size: .82rem;
}
.sidebar-cta{
    display:flex;
    align-items:center;
    justify-content:center;
    padding: .72rem .95rem;
    border-radius:999px;
    text-decoration:none;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a2e, #0f172a);
    color:#fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.42);
}
.sidebar-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.50);
    opacity: 0;
    pointer-events:none;
    transition: opacity .22s ease-out;
    z-index: 110;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.sidebar-open .sidebar-backdrop{
    opacity: 1;
    pointer-events:auto;
}

/* HERO */
.hero{ padding-block: 1.8rem 2.1rem; }
.hero-grid{
    display:grid;
    align-items:center;
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.hero-left{ display:flex; flex-direction:column; gap: 1.2rem; }
.hero-kicker{
    display:inline-flex;
    align-items:center;
    gap:.75rem;
    font-size:.82rem;
    color: var(--nav-muted);
    flex-wrap: wrap;
}
.hero-kicker-pill{
    padding: .25rem .7rem;
    border-radius:999px;
    background: rgba(96,165,250,.10);
    color: var(--nav-accent);
    border: 1px solid rgba(96,165,250,.20);
    font-weight: 700;
}
.hero-title{
    margin:0;
    font-size: clamp(2.15rem, 4.6vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color:#f1f5f9;
}
.hero-title-gradient{
    display:inline-block;
    background: linear-gradient(135deg, #60a5fa, #818cf8, #22d3ee);
    -webkit-background-clip: text;
    background-clip:text;
    color: transparent;
}
.hero-subtitle{
    margin:0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(226,232,240,.50);
    max-width: 38rem;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap: .85rem; align-items: stretch; }

.btn-primary, .btn-ghost{
    appearance:none;
    border-radius: 999px;
    padding: .95rem 1.35rem;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    border: none;
    outline:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.45rem;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
    text-decoration: none;
    width: fit-content;
}
.btn-primary{
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color:#fff;
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.30);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 22px 52px rgba(59, 130, 246, 0.40); color:#fff; }
.btn-ghost{
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
}
.btn-ghost:hover{ transform: translateY(-1px); background:rgba(255,255,255,.10); }

.hero-meta{
    display:flex; align-items:center; gap: .9rem; margin-top: .25rem; flex-wrap: wrap;
}
.hero-meta-avatars{ display:flex; align-items:center; }
.avatar-pill{
    width: 28px; height: 28px; border-radius: 999px;
    background: radial-gradient(circle at 20% 0%, #4b5563, #1a1a2e);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
    border: 2px solid #f4f4f6;
}
.avatar-pill + .avatar-pill{ margin-left:-10px; }
img.avatar-pill-img{
    width: 28px; height: 28px; border-radius: 999px;
    object-fit: cover;
    border: 2px solid #f4f4f6;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
}
img.avatar-pill-img + img.avatar-pill-img,
img.avatar-pill-img + .avatar-pill,
.avatar-pill + img.avatar-pill-img{ margin-left:-10px; }
.avatar-pill-outline{ background:#0f172a; }
.hero-meta-text{
    display:flex; flex-direction:column; font-size: .86rem; color: rgba(226,232,240,.45);
}
.hero-meta-text span:first-child{ color:#f1f5f9; font-weight: 700; }

.hero-right{ display:flex; justify-content:flex-end; }
@media (max-width: 960px){
  .hero-right{ justify-content:center; }
}
.hero-media{ position:relative; width:100%; max-width: 440px; }
.hero-media-glow{
    position:absolute; inset: 12%;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.35), transparent 65%);
    filter: blur(8px);
    z-index:0;
}
.hero-media-card{
    position: relative;
    border-radius: 26px;
    background:#020617;
    padding: 2.5px;
    box-shadow: 0 24px 60px rgba(15,23,42,.72);
    overflow:hidden;
    z-index:1;
}
/* Rotating gradient border for hero image */
.hero-media-card::before{
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(0deg);
    background: conic-gradient(
        transparent 20%,
        #6366f1 35%,
        #06b6d4 45%,
        #ec4899 55%,
        #a78bfa 65%,
        transparent 80%
    );
    animation: hero-border-spin 5s linear infinite;
    opacity: .6;
}
.hero-media-card:hover::before{
    opacity: 1;
}
@keyframes hero-border-spin{
    to{ transform: translate(-50%,-50%) rotate(360deg); }
}
.hero-media-card img{
    border-radius: 24px;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

/* Scroll Strip */
.infinite-loop{
    margin-top: 2.1rem;
    border-radius: 999px;
    padding: .75rem 1.1rem;
    background: radial-gradient(circle at top left, #020617, #020617 55%);
    box-shadow: 0 18px 40px rgba(15,23,42,.75), 0 0 0 1px rgba(30, 64, 175, 0.40);
    overflow:hidden;
    position: relative;
    max-width: 100%;
}
.infinite-loop::before,
.infinite-loop::after{
    content:"";
    position:absolute;
    inset-block:0;
    width: 70px;
    pointer-events:none;
    z-index:2;
}
.infinite-loop::before{ left:0; background: linear-gradient(to right, #020617, transparent); }
.infinite-loop::after{ right:0; background: linear-gradient(to left, #020617, transparent); }

.loop-track{
    display:flex;
    align-items:center;
    gap: 1rem;
    width: max-content;
    will-change: transform;
    animation: loop-scroll 26s linear infinite;
}
.loop-item{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    padding: .4rem .9rem;
    border-radius:999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.50);
    color:#e5e7eb;
    font-size: .82rem;
    white-space: nowrap;
}
.loop-item-icon{
    width: 26px; height: 26px;
    border-radius:999px;
    background: radial-gradient(circle at 25% 0%, #4b5563, #1a1a2e);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex: 0 0 auto;
    overflow:hidden;
}
.loop-item-icon-img{
    background:none;
}
.loop-item-icon-img img{
    width:26px;
    height:26px;
    object-fit:contain;
    border-radius:999px;
    display:block;
}
@keyframes loop-scroll{
    0%{ transform: translateX(0); }
    100%{ transform: translateX(-50%); }
}

/* Sections */
body.front-page .section{ padding: 4.4rem 0; }
body.front-page .section.alt{
    position: relative;
    padding: 4.6rem 1.5rem;
}
body.front-page .section.alt::before{
    content:"";
    position:absolute;
    inset: 0;
    background:
      radial-gradient(900px 520px at 12% 10%, rgba(59, 130, 246, 0.04), transparent 60%),
      radial-gradient(900px 520px at 92% 0%, rgba(99, 102, 241, 0.03), transparent 60%),
      linear-gradient(to bottom, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border-radius: 28px;
    z-index: -1;
}

#services{ position: relative; }

.section-head{
    display:flex;
    align-items:flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}
.kicker{
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(226,232,240,.45);
    display:inline-flex;
    align-items:center;
    gap:.55rem;
}
.kicker-dot{
    width: 9px; height: 9px;
    border-radius:999px;
    background: linear-gradient(135deg, #1a1a2e, #4b5563);
    box-shadow: 0 10px 22px rgba(15,23,42,.20);
}
.section-title{
    margin:0;
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color:#f1f5f9;
}
.section-subtitle{
    margin: .55rem 0 0;
    color: rgba(226,232,240,.45);
    line-height: 1.8;
    max-width: 52rem;
    font-size: 1rem;
}

.pill{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    padding: .42rem .85rem;
    border-radius:999px;
    border: 1px solid rgba(96,165,250,.20);
    background: rgba(96,165,250,.08);
    color: rgba(96,165,250,.90);
    font-size: .84rem;
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
    font-weight: 650;
    white-space: nowrap;
}

/* Grids + Cards */
body.front-page .grid{ display:grid; gap: 14px; margin-top: 1.2rem; }
@media (min-width: 768px){
    body.front-page .grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
    body.front-page .grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
    .navbar-links{ display:flex; }
    .navbar-toggle{ display:none; }
}

body.front-page .card{
    background: rgba(15, 20, 35, .65);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(0,0,0,.25);
    padding: 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    overflow: hidden;
}
body.front-page .card::before{
    content:"";
    position:absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 20%, rgba(96,165,250,.08), transparent 60%);
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}
body.front-page .card:hover{
    transform: translateY(-3px);
    box-shadow: 0 26px 70px rgba(0,0,0,.35);
    border-color: rgba(96,165,250,.18);
}
body.front-page .card:hover::before{ opacity: 1; }
body.front-page .card h3{ margin: 0; font-size: 1.08rem; letter-spacing: -0.02em; color:#f1f5f9; }
body.front-page .card p{ margin: .55rem 0 0; color: rgba(226,232,240,.55); line-height: 1.75; font-size: .96rem; }

/* Stats Strip */
.stats-strip{
    margin-top: 2.2rem;
    background: rgba(15,20,35,.60);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(15,23,42,.10);
    padding: 16px;
    display:grid;
    gap: 12px;
}
@media (min-width: 768px){
    .stats-strip{ grid-template-columns: repeat(4, 1fr); }
}
.stat{
    border-radius: 20px;
    padding: 14px 14px;
    background: linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.06);
}
.stat b{
    display:block;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.stat span{
    display:block;
    margin-top: 4px;
    color: rgba(226,232,240,.45);
    font-size: .9rem;
    line-height: 1.5;
}

/* Services Cards */
#services .services-cards-grid{
    max-width: 1100px;
    margin: 1.4rem auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
/* ── Service card: outer shell (border glow container) ── */
#services .service-card{
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    padding: 2.5px;
    background: transparent;
    min-height: 140px;
}
/* Rotating gradient that becomes the visible border */
#services .service-card::before{
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(0deg);
    background: var(--card-gradient);
    animation: service-border-spin 4s linear infinite;
    opacity: .55;
    transition: opacity .3s;
}
#services .service-card:hover::before{
    opacity: 1;
}
/* Inner card: dark background that covers the center */
#services .service-card-inner{
    position: relative;
    z-index: 1;
    background: rgba(15,20,35,.95);
    border-radius: 20px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
/* Card 1 – purple / violet */
#services .service-card:nth-child(1){
    --card-gradient: conic-gradient(transparent 25%, #a78bfa 40%, #7c3aed 50%, #c4b5fd 60%, transparent 75%);
}
/* Card 2 – cyan / teal */
#services .service-card:nth-child(2){
    --card-gradient: conic-gradient(transparent 25%, #22d3ee 40%, #06b6d4 50%, #67e8f9 60%, transparent 75%);
}
/* Card 3 – pink / rose */
#services .service-card:nth-child(3){
    --card-gradient: conic-gradient(transparent 25%, #f472b6 40%, #ec4899 50%, #fbcfe8 60%, transparent 75%);
}
/* Card 4 – amber / orange */
#services .service-card:nth-child(4){
    --card-gradient: conic-gradient(transparent 25%, #fbbf24 40%, #f59e0b 50%, #fde68a 60%, transparent 75%);
}
/* Card 5 – emerald / green */
#services .service-card:nth-child(5){
    --card-gradient: conic-gradient(transparent 25%, #34d399 40%, #10b981 50%, #6ee7b7 60%, transparent 75%);
}
@keyframes service-border-spin{
    to{ transform: translate(-50%,-50%) rotate(360deg); }
}
#services .service-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
#services .service-title{
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f1f5f9;
}
#services .service-subtitle{
    margin: 0;
    color: rgba(226,232,240,.45);
    font-size: 18px;
    font-weight: 600;
}
#services .cta{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: 12px;
}
#services .cta .icon{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    flex: 0 0 auto;
}
#services .cta svg{
    width: 16px;
    height: 16px;
    transform: translateX(1px) rotate(-18deg);
}
#services .service-media{
    width: 160px;
    height: 120px;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 10px 24px rgba(0,0,0,.28);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
#services .service-card:hover .service-media{
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--card-glow, #7c3aed) 40%, rgba(255,255,255,.1));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 14px 30px rgba(0,0,0,.34),
        0 0 0 1px color-mix(in srgb, var(--card-glow, #7c3aed) 20%, transparent);
}
#services .service-media img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}
#services .service-card:hover .service-media img{
    transform: scale(1.06);
}
#services .service-card-inner::after{
    content: "";
    position: absolute;
    right: -50px;
    top: -60px;
    width: 180px;
    height: 180px;
    background: var(--card-glow, rgba(255,255,255,.04));
    border-radius: 999px;
    filter: blur(40px);
    opacity: .35;
    animation: service-glow-pulse 3s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}
#services .service-card-inner{ position: relative; overflow: hidden; }
#services .service-content,
#services .service-media{ position: relative; z-index: 1; }
#services .service-card:nth-child(1){ --card-glow: #7c3aed; }
#services .service-card:nth-child(2){ --card-glow: #06b6d4; }
#services .service-card:nth-child(3){ --card-glow: #ec4899; }
#services .service-card:nth-child(4){ --card-glow: #f59e0b; }
#services .service-card:nth-child(5){ --card-glow: #10b981; }
@keyframes service-glow-pulse{
    0%  { opacity: .25; transform: scale(1); }
    100%{ opacity: .45; transform: scale(1.1); }
}
/* ── Service cards: intermediate (tablet / narrow desktop) ── */
@media (max-width: 1080px) and (min-width: 961px){
    #services .service-media{
        width: 130px;
        height: 100px;
    }
    #services .service-card-inner{
        padding: 18px;
        gap: 14px;
    }
    #services .service-title{ font-size: 22px; }
    #services .service-subtitle{ font-size: 15px; }
}

/* ── Service cards mobile layout ── */
@media (max-width: 960px){
    #services .services-cards-grid{
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #services .service-card{
        border-radius: 14px;
        min-height: auto;
        padding: 2px;
    }
    #services .service-card-inner{
        display: grid;
        grid-template-columns: 1fr 120px;
        align-items: center;
        padding: 14px;
        gap: 14px;
        border-radius: 12px;
    }
    #services .service-media{
        width: 120px;
        height: 88px;
        border-radius: 10px;
        order: 0;
    }
    #services .service-media img{
        width: 100%;
        height: 100%;
    }
    #services .service-content{
        padding: 0;
        gap: 4px;
        width: 100%;
    }
    #services .service-title{
        font-size: 16px;
        white-space: normal;
        overflow: visible;
    }
    #services .service-subtitle{
        font-size: 12px;
    }
    #services .cta{
        display: inline-flex;
        font-size: 10px;
        margin-top: 2px;
    }
    #services .cta .icon{
        width: 26px;
        height: 26px;
    }
    #services .cta svg{
        width: 12px;
        height: 12px;
    }
    #services .service-card-inner::after{
        display: none;
    }
}

/* Why Us Features */
.feature{
    display:flex;
    gap: 12px;
    align-items:flex-start;
}
.feature-ic{
    width: 44px; height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(26,26,46,.12);
    flex: 0 0 auto;
}
img.feature-ic-img{
    object-fit: contain;
    background: none;
    box-shadow: none;
    border-style: solid;
    border-color: #474747;
    border-width: 3px;
}

/* Process Steps */
body.front-page .step{
    display:flex;
    gap: 1rem;
    align-items:flex-start;
}
.step-num{
    width: 46px; height: 46px;
    border-radius: 16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight: 900;
    color:#fff;
    background: linear-gradient(135deg, #1a1a2e, #374151);
    box-shadow: 0 18px 45px rgba(15,23,42,.20);
    flex: 0 0 auto;
}

/* Case Studies */
.work-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 1.2rem;
}
@media (max-width: 1024px){
    .work-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px){
    .work-grid{ grid-template-columns: 1fr; }
}
body.front-page .case{
    padding: 0;
    overflow: hidden;
}
.case-media{
    aspect-ratio: 16/9;
    height: auto;
    background:
      radial-gradient(600px 220px at 15% 10%, rgba(37,99,235,.32), transparent 60%),
      radial-gradient(600px 220px at 85% 30%, rgba(6,182,212,.22), transparent 60%),
      linear-gradient(135deg, #0b1220, #020617);
    border-bottom: 1px solid rgba(148,163,184,.18);
    position: relative;
}
.case-media::after{
    content:"";
    position:absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.12), transparent 55%);
    opacity: .8;
}
.case-body{ padding: 1.15rem 1.25rem 1.25rem; }
.case-title{ margin: 0 0 .5rem; }
.case-type,
.case-study-body .case-type{
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(6,182,212,.95);
    padding: .28rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(6,182,212,.25);
    background: rgba(6,182,212,.10);
    margin-bottom: .75rem;
    line-height: 1;
}
.case-desc,
.case-body p{ margin: 0; font-size: .82rem; line-height: 1.5; color: rgba(226,232,240,.72); }
/* Legacy .case-top / .case-badge kept for any other pages still using the old markup */
.case-top{ display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.case-badge{
    font-size: .78rem;
    padding: .36rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(6,182,212,.25);
    background: rgba(6,182,212,.10);
    color: rgba(2,132,199,.92);
    font-weight: 700;
    white-space: nowrap;
}
.case-meta{ display:flex; gap: 8px; flex-wrap: wrap; margin-top: .95rem; }
.tag{
    padding: .34rem .62rem;
    border-radius:999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    font-size: .78rem;
    color: rgba(226,232,240,.65);
    font-weight: 650;
}

/* Testimonials */
body.front-page .quote{
    display:flex;
    gap: 12px;
    align-items:flex-start;
}
body.front-page .avatar{
    width: 44px; height: 44px;
    border-radius: 16px;
    background: radial-gradient(circle at 25% 0%, #4b5563, #1a1a2e);
    color:#fff;
    font-weight: 900;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 18px 45px rgba(15,23,42,.20);
    flex: 0 0 auto;
}
img.avatar-img{
    object-fit: cover;
    background: none;
}
body.front-page .quote small{
    display:block;
    margin-top: .45rem;
    color: rgba(226,232,240,.45);
    font-weight: 600;
}

/* FAQ Accordion */
body.front-page details{
    border-radius: 18px;
    background: rgba(15,20,35,.65);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 16px 50px rgba(0,0,0,.20);
    padding: 1rem 1.1rem;
}
body.front-page summary{
    cursor:pointer;
    font-weight: 800;
    color: rgba(241,245,249,.90);
    list-style:none;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
}
body.front-page summary::-webkit-details-marker{ display:none; }
body.front-page summary::after{
    content:"+";
    width: 34px; height: 34px;
    border-radius: 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: rgba(226,232,240,.75);
    font-weight: 900;
}
body.front-page details[open] summary::after{ content:"\2013"; }

/* Contact Form */
body.front-page .form{ display:grid; gap: 12px; margin-top: 1rem; }
body.front-page .row{ display:grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px){ body.front-page .row{ grid-template-columns: 1fr 1fr; } }
body.front-page input,
body.front-page textarea{
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    padding: .9rem 1rem;
    font-family: inherit;
    font-size: .95rem;
    background: rgba(255,255,255,.05);
    color: #e2e8f0;
    outline:none;
    transition: box-shadow .18s ease, border .18s ease;
}
body.front-page input:focus,
body.front-page textarea:focus{
    border-color: rgba(96,165,250,.40);
    box-shadow: 0 0 0 4px rgba(96,165,250,.12);
}
body.front-page textarea{ min-height: 130px; resize: vertical; }

/* CTA Band */
.cta-band{
    margin-top: 2.4rem;
    padding: 1.35rem 1.25rem;
    border-radius: 26px;
    background:
      radial-gradient(700px 260px at 12% 20%, rgba(37,99,235,.32), transparent 60%),
      radial-gradient(700px 260px at 90% 70%, rgba(6,182,212,.22), transparent 60%),
      linear-gradient(135deg, #020617, #0b1220);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 28px 85px rgba(15,23,42,.22);
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.cta-band b{
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}
.cta-band span{
    color: rgba(229,231,235,.78);
    display:block;
    margin-top: 4px;
    max-width: 44rem;
    line-height: 1.65;
}

/* Footer */
footer{
    margin-top: 2.6rem;
    padding: 2.4rem 0 1.4rem;
    color: rgba(226,232,240,.50);
    background: none;
    text-align: left;
}
.footer-grid{
    display:grid;
    gap: 14px;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 768px){
    .footer-grid{ grid-template-columns: 1.35fr 1fr 1fr 1fr; }
}
.footer-col h4{
    margin:0;
    font-size: 1rem;
    color: rgba(241,245,249,.85);
}
.footer-col a{
    text-decoration:none;
    color: rgba(226,232,240,.50);
    font-weight: 600;
}
.footer-col a:hover{ color: rgba(96,165,250,.90); }

/* Latest Blogs Grid */
.blog-cards-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 1.2rem;
}
@media (max-width: 1024px){
    .blog-cards-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px){
    .blog-cards-grid{ grid-template-columns: 1fr; }
}

.fp-blog-card{
    background: rgba(15,20,35,.65);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(15,23,42,.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.fp-blog-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 26px 70px rgba(15,23,42,.12);
}
.fp-blog-thumb{
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.fp-blog-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-blog-no-thumb{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(226,232,240,.25);
    font-size: .82rem;
}
.fp-blog-body{
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.fp-blog-title{
    margin: 0;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #f1f5f9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-blog-excerpt{
    margin: 0;
    font-size: .84rem;
    color: rgba(226,232,240,.45);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-blog-meta{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    color: rgba(226,232,240,.35);
    margin-top: auto;
    padding-top: 6px;
}
.fp-blog-date::after{
    content: "·";
    margin-left: 8px;
}
.fp-blog-cats{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.fp-blog-cat{
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(96,165,250,.10);
    color: rgba(96,165,250,.80);
    font-size: .7rem;
    font-weight: 650;
    border: 1px solid rgba(96,165,250,.18);
}

/* Mobile-only hero image (hidden on desktop) */
.hero-mobile-img{ display: none; }

/* Mobile hero stack */
@media (max-width: 880px){
    .hero-grid{ grid-template-columns: 1fr; }
    .hero-right{ display: none; }
    .hero-mobile-img{ display: block; }
    .hero-br{ display: none; }
    .btn-primary, .btn-ghost{
        padding: .7rem 1rem;
        font-size: .82rem;
        flex: 1;
        min-width: 0;
    }
    .hero-actions{
        flex-wrap: nowrap;
    }
}
/* Small phone tightening */
@media (max-width: 480px){
    .hero{ padding-block: 1.2rem 1.4rem; }
    .hero-left{ gap: .85rem; }
    .hero-title{
        font-size: 1.65rem;
        line-height: 1.1;
    }
    .hero-subtitle{
        font-size: .88rem;
        line-height: 1.6;
    }
    .hero-kicker{ font-size: .72rem; }
    .hero-kicker-pill{ padding: .2rem .55rem; font-size: .72rem; }
    .hero-mobile-img .hero-media-card{
        padding: 2.5px;
        border-radius: 18px;
    }
    .hero-mobile-img .hero-media-card img{
        border-radius: 16px;
        max-height: 200px;
        width: 100%;
        object-fit: cover;
    }
    .hero-mobile-img .hero-media-card::before{
        width: 250%;
        height: 250%;
    }
    .btn-primary, .btn-ghost{
        padding: .6rem .85rem;
        font-size: .78rem;
    }
    .hero-meta{ gap: .6rem; margin-top: 0; }
    .hero-meta-text{ font-size: .75rem; }
    .avatar-pill, img.avatar-pill-img{
        width: 24px;
        height: 24px;
    }
}
