/* =========================
   SyncNebula - Light Theme
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

/* Navigation */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #0f172a;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* General sections */

section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 30px;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0f172a;
}

section > p {
    color: #64748b;
    max-width: 700px;
    margin-bottom: 40px;
}

/* Hero */

.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #0f172a;
}

.hero-text {
    color: #475569;
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons a {
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    background: #2563eb;
    color: white;
    transition: background 0.2s ease;
}

.hero-buttons a:hover {
    background: #1d4ed8;
}

/* Cards */

.services-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.services-grid article,
.projects-grid article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-grid article:hover,
.projects-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.services-grid h3,
.projects-grid h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

.services-grid p,
.projects-grid p {
    color: #64748b;
}

/* Blog */

#blog article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    max-width: 700px;
}

#blog article h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

#blog article p {
    color: #64748b;
}

/* Contact */

#contact a {
    display: inline-block;
    margin-right: 15px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */

footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 50px 30px 25px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-logo {
    color: #0f172a;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-content p {
    color: #64748b;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

/* Footer mobile */

@media (max-width: 768px) {

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Blog */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.blog-category {
    color: #2563eb !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blog-card h3 {
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-card p:not(.blog-category) {
    color: #64748b;
    margin-bottom: 20px;
}

.blog-status {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* About */

.section-label {
    color: #2563eb !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

#about h2 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 30px;
}

.about-text {
    color: #475569 !important;
    font-size: 1.05rem;
    margin-bottom: 18px;
    max-width: 750px;
}

/* Contact */

#contact {
    border-top: 1px solid #e2e8f0;
}

.contact-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.contact-links a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #2563eb;
    background: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.contact-links a:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Mobile */

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 70px 20px;
    }
}

    .blog-grid {
    grid-template-columns: 1fr;
}

/* Project buttons */

.project-category {
    color: #2563eb !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.projects-grid article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    border: 1px solid #2563eb;
    border-radius: 7px;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.project-button:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Project technology tags */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tags span {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =========================
   Blog Post Article Styles
   (append to style.css)
   ========================= */

.post-hero {
    padding-top: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.post-hero .blog-category {
    margin-bottom: 18px;
}

.post-hero h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 18px;
    max-width: 850px;
}

.post-meta {
    color: #64748b;
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 18px;
}

article.post-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 30px;
}

article.post-body h2 {
    font-size: 1.75rem;
    color: #0f172a;
    margin-top: 50px;
    margin-bottom: 18px;
}

article.post-body h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-top: 35px;
    margin-bottom: 14px;
}

article.post-body p {
    color: #334155;
    margin-bottom: 18px;
    font-size: 1.02rem;
}

article.post-body ul,
article.post-body ol {
    color: #334155;
    margin: 0 0 20px 22px;
}

article.post-body li {
    margin-bottom: 8px;
}

article.post-body strong {
    color: #0f172a;
}

article.post-body blockquote {
    border-left: 3px solid #2563eb;
    background: #eff6ff;
    padding: 16px 22px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    color: #1e3a8a;
    font-weight: 600;
}

article.post-body code {
    background: #f1f5f9;
    color: #be185d;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

article.post-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0 28px;
    font-size: 0.88rem;
    line-height: 1.5;
}

article.post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

article.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0 30px;
    font-size: 0.92rem;
}

article.post-body th {
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
}

article.post-body td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    color: #475569;
}

article.post-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 45px 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 10px;
}

.blog-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.blog-link:hover {
    text-decoration: underline;
}

.post-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.post-back:hover {
    text-decoration: underline;
}

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

    article.post-body {
        padding: 40px 20px;
    }
}