/* 1. VARIABLES & CORE SETTINGS */
:root {
    --brand-blue: #3b82f6;      
    --brand-cyan: #06b6d4;      
    --brand-dark-blue: #002b5c; 
    --bg-main: #0a0f1c;        
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1; 
    --glass: rgba(255, 255, 255, 0.03);
}

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

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 50%, #111827 0%, #0a0f1c 100%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Important: Prevents horizontal shake on mobile */
}

/* 2. NAVIGATION & PROGRESS BAR */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1000; /* Stays above everything */
    width: 100%;
    height: 3px;
    background: transparent;
}

.progress-bar {
    height: 3px;
    background: var(--brand-blue);
    width: 0%;
    transition: width 0.1s ease;
}

/* Fix: Ensures the logo and menu button are always perfectly centered */
header .container {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    height: 100%; 
}

/* 3. MOBILE MENU */

/* FINAL MOBILE MENU REPAIR */
#mobileMenu {
    background-color: #050a18 !important; /* Force solid brand color */
    background-image: none !important;
    opacity: 1 !important;
    display: flex !important; /* Always flex so it centers content */
    visibility: visible;
    z-index: 9999 !important; /* Above all hero text and buttons */
    position: fixed !important;
    inset: 0 !important;
    transition: transform 0.4s ease-in-out !important;
}

/* Push the 'X' close button to the very front */
#main-header button {
    position: relative !important;
    z-index: 10000 !important;
}

/* Fix for the Hero text bleeding through */
.fixed.inset-0 {
    backdrop-filter: none !important;
}

/* 4. REUSABLE COMPONENTS */
.glow-text {
    background: linear-gradient(to right, var(--brand-blue), var(--brand-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* 5. UNIFIED MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    header {
        height: 80px;
    }
    
    header img {
        height: 52px;  
        mix-blend-mode: screen;   
    }

    h1 {
        font-size: 2.5rem !important; 
        line-height: 1.1;
        text-align: left;
    }

    /* Padding-top fix to prevent content from hiding under the fixed header */
    .hero-grid {
        padding-top: 100px !important; 
    }

    /* Fix: Instead of forcing flex, we ensure the grid fills the width */
    [class*="grid-cols-"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .status-card {
        width: 100%;
        max-width: 300px;
        margin: 2rem auto;
    }
}




/* 6. ANIMATIONS */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}
/* ==========================================================================
   CF IT SOLUTIONS CORE STYLES
   ========================================================================== */
:root {
    --brand-blue: #3b82f6;      
    --brand-cyan: #06b6d4;      
    --bg-main: #0a0f1c;        
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1; 
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 50%, #111827 0%, #0a0f1c 100%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* GLOBAL HEADER */
header {
    height: 110px; /* Increased slightly from 100px to perfectly scale larger logos */
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header img {
    height: 80px;             /* Boosted from 60px for premium corporate scale */
    width: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: screen;   /* Automatically blends out the hard square dark background */
}

.back-to-site {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.back-to-site:hover {
    color: var(--brand-blue);
}

/* GLOBAL GLOW TEXT & FOOTER */
.glow-text {
    background: linear-gradient(to right, var(--brand-blue), var(--brand-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    margin-top: auto;
}

.footer-geo {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* 
   BLOG HUB & INDEX STYLES
    */
.blog-main {
    flex: 1;
    padding-top: 160px; 
    padding-bottom: 80px;
}

.blog-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.post-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--brand-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.post-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #ffffff;
}

.post-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.post-card:hover .read-more {
    gap: 0.5rem;
}

/* 
   ARTICLE PAGE STYLES
    */
.article-main {
    flex: 1;
    padding-top: 150px; 
    padding-bottom: 80px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

article h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--brand-cyan);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

article h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

article h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

article p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

article hr {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 2.5rem 0;
}

article ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

article li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

article code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
}

article strong {
    color: #ffffff;
}

/* SIDEBAR CALL TO ACTION */
.sidebar {
    position: sticky;
    top: 140px;
}

.sidebar-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.sidebar-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-sidebar {
    display: block;
    background: var(--brand-blue);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
}

.btn-sidebar:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* 
   RESPONSIVE DESIGN Overrides
    */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .sidebar {
        position: static;
    }
    article h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-header h1 { font-size: 2.2rem; }
    .posts-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .post-card { padding: 1.75rem; }
}

/* 
   HOMEPAGE BLOG COMPONENT
    */
.home-blog-section {
    margin-bottom: 5.5rem;
    text-align: center;
}

.home-blog-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}

.view-all-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: gap 0.2s;
}

.view-all-blog:hover {
    gap: 0.75rem;
    color: var(--brand-cyan);
}

/* Blog Page Logo Styling */
.blog-logo {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: screen; 
}

@media (max-width: 768px) {
    .blog-logo {
        height: 64px !important; 
    }
}