/* ===========================
   ConyCMS - chrislucas.uk
   Dark Theme Styles
   =========================== */

:root {
    --primary: #00d4ff;
    --primary-rgb: 0, 212, 255;
    --accent: #f59e0b;
    --accent-rgb: 245, 158, 11;
    --bg-primary: #0a0e27;
    --bg-secondary: #0d1230;
    --bg-card: #111631;
    --bg-card-hover: #161b3d;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --heading: #ffffff;
    --border-color: rgba(0, 212, 255, 0.15);
    --nav-height: 76px;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* ===========================
   Base / Reset
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #33ddff;
}

/* ===========================
   Navbar
   =========================== */

.navbar-custom {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 14, 39, 0.98);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading) !important;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(226, 232, 240, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===========================
   Hero
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-primary) 70%);
    z-index: 1;
    pointer-events: none;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Buttons
   =========================== */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), #0099cc);
    border: none;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===========================
   Sections
   =========================== */

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title-center {
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin-top: 1rem;
    border-radius: 2px;
}

.section-title-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-subtitle-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ===========================
   About Section
   =========================== */

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 1rem;
}

.highlight-list .text-primary {
    color: var(--primary) !important;
}

/* ===========================
   Stat Cards
   =========================== */

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ===========================
   Service Cards
   =========================== */

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===========================
   Timeline
   =========================== */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 30px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-primary);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.timeline-phase {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===========================
   Project Cards
   =========================== */

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.project-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-tag.tag-accent {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ===========================
   Blog Cards
   =========================== */

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.blog-card-body h3 a {
    color: var(--heading);
    transition: color 0.3s ease;
}

.blog-card-body h3 a:hover {
    color: var(--primary);
}

.blog-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: auto;
}

/* ===========================
   Category Badges
   =========================== */

.category-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-tech {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}

.badge-bizdev {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
}

.badge-life {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.badge-pay-by-time {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* ===========================
   Filter Bar
   =========================== */

.filter-bar {
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===========================
   Contact Section
   =========================== */

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.contact-card h5 {
    margin-bottom: 0.5rem;
}

.contact-card a,
.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-card a:hover {
    color: var(--primary);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* ===========================
   Blog Content (Post Body)
   =========================== */

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-content h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.blog-content strong {
    color: var(--heading);
}

.blog-content code {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-content pre code {
    background: transparent;
    color: var(--text);
    padding: 0;
    font-size: 0.875rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 0 12px 12px 0;
}

.blog-content blockquote p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-style: italic;
}

/* ===========================
   TOC Sidebar
   =========================== */

.toc-sidebar {
    padding: 1rem;
    border-left: 2px solid var(--border-color);
}

.toc-sidebar h6 {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.toc-link {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc-link:hover {
    color: var(--primary);
}

.toc-level-3 {
    padding-left: 1rem;
    font-size: 0.8rem;
}

/* ===========================
   Pagination
   =========================== */

.pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.pagination .page-link:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 30px;
        padding-right: 0;
        flex-direction: row;
    }

    .timeline-marker {
        left: 0;
    }
}
