/*
Theme Name: Arslan Custom Theme
Theme URI: https://arslanawan.com
Author: Arslan Awan
Description: Clean, Aerospace-Inspired High-Performance Portfolio Theme for Network & Cloud Engineers.
Version: 3.2.9
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@500;700;800;900&display=swap");
License: GNU General Public License v2 or later
Text Domain: arslan-custom
*/

/* 0. GLOBAL RESET */
* { box-sizing: border-box !important; }
html { scrollbar-gutter: stable !important; scroll-behavior: smooth; height: 100%; }
body { overflow-x: hidden; width: 100%; position: relative; min-height: 100%; }


:root {
    --navy: #0a0f1e; 
    --navy-mid: #0d1530; 
    --cyan: #00d4ff; 
    --blue: #3b82f6;
    --tp: #f1f5f9; 
    --ts: #94a3b8; 
    --tm: #64748b;
    --border: rgba(255,255,255,0.08);
}

/* 0. CUSTOM SCROLLBAR GLOBALS */
body { scrollbar-width: thin; scrollbar-color: rgba(0, 212, 255, 0.4) var(--navy); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.2); border-radius: 6px; border: 3px solid var(--navy); transition: background 0.3s; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.4); }

/* 1. GLOBAL LAYOUT & GRID */
html, body { 
    background-color: var(--navy) !important; 
    color: var(--tp) !important; 
    font-family: "Inter", sans-serif; 
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
body { 
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px) !important; 
    background-size: 60px 60px !important; 
    background-attachment: fixed !important; 
}

/* 2. TYPOGRAPHY Refinements */
h1, h2, h3, h4, h5, h6 { font-family: "Outfit", sans-serif; letter-spacing: -0.5px; margin-top: 0; color: #fff; }

/* 3. NATIVE POST GRID (Blog & Archive) */
.post-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 32px; 
    padding: 120px 0 80px; 
    max-width: 1200px;
    margin: 0 auto;
}
article.post { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 16px; 
    padding: 40px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex;
    flex-direction: column;
}
article.post:hover { 
    border-color: rgba(0, 212, 255, 0.3); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
    transform: translateY(-8px); 
    background: rgba(255, 255, 255, 0.05);
}
.post-category a { 
    background: rgba(0, 212, 255, 0.08); 
    border: 1px solid rgba(0, 212, 255, 0.3); 
    color: var(--cyan) !important; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 11px; 
    text-transform: uppercase; 
    display: inline-block; 
    margin-bottom: 20px; 
    font-weight: 700; 
    text-decoration: none;
}
article.post h2.entry-title { font-size: 26px; margin: 0 0 16px; line-height: 1.3; }
article.post h2.entry-title a { color: #fff; text-decoration: none; transition: color 0.3s; }
article.post h2.entry-title a:hover { color: var(--cyan); }
article.post .entry-excerpt { color: var(--ts); line-height: 1.6; font-size: 15px; margin-bottom: 24px; }
article.post .entry-meta { margin-top: auto; color: var(--tm); font-family: "JetBrains Mono", monospace; font-size: 12px; }

/* 4. EXQUISITE SINGLE POST VIEW */
.single-post-container { max-width: 900px; margin: 160px auto 120px; padding: 0 24px; }
.single-post-header { margin-bottom: 60px; border-bottom: 1px solid var(--border); padding-bottom: 40px; }
.single-post-header h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.single-post-meta { color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: 14px; }
.post-content { font-size: 18px; line-height: 1.8; color: #cbd5e1; }
.post-content h2, .post-content h3 { color: #fff; margin-top: 50px; margin-bottom: 24px; }
.post-content p { margin-bottom: 24px; }
.post-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.post-content blockquote { border-left: 4px solid var(--cyan); padding-left: 24px; margin-left: 0; color: #fff; font-style: italic; }
.post-content pre, .post-content code { background: rgba(0,0,0,0.4); padding: 6px 10px; font-family: "JetBrains Mono", monospace; font-size: 0.95em; color: #38bdf8; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }
.post-content table { width: 100%; border-collapse: collapse; margin: 40px 0; background: rgba(0,0,0,0.2); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.post-content th, .post-content td { padding: 18px 24px; border: 1px solid var(--border); color: #cbd5e1; }
.post-content th { background: rgba(0,212,255,0.1); color: #fff; text-align: left; font-weight: 700; font-family: "Outfit", sans-serif; }

/* 5. CINEMATIC BLUR REVEAL LAZY LOAD */
.lazy-scroll-fade {
    opacity: 0.05 !important;
    filter: blur(15px);
    transform: translateY(20px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}
.lazy-revealed {
    opacity: 1 !important;
    filter: blur(0px);
    transform: translateY(0) scale(1) !important;
}

/* 11. REFINED NUCLEAR OPTION (EXCLUDES MASTER HEADER/LOGO) */
[class*="enterprise-lab"] .entry-content *, 
[class*="enterprise-lab"] .wp-block-columns *,
[class*="enterprise-lab"] .lab-content *,
[class*="enterprise-lab"] .lab-container *,
.no-animations .entry-content * { 
    opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; animation: none !important; 
}

/* 6. MASTER HEADER DESIGN */
.master-header {
    position: fixed; top: 0; left: 0; width: 100vw; height: 72px; z-index: 1000;
    background: rgba(10, 25, 47, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
}
.mh-inner { width: 1200px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.mh-logo { font-family: "Outfit", sans-serif !important; font-size: 22px; font-weight: 800; color: #FFF !important; text-decoration: none; letter-spacing: -0.5px; transition: all 0.3s ease; display: flex; align-items: center; gap: 0; position: relative; z-index: 10000 !important; }
.mh-logo:hover { color: var(--cyan) !important; }
.mh-logo span { color: var(--cyan) !important; transition: all 0.3s ease; margin-left: 2px; }
.mh-nav { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
.mh-nav-link { color: var(--ts) !important; font-family: "Outfit", sans-serif !important; font-size: 14px; font-weight: 500; text-decoration: none !important; transition: all 0.3s ease; position: relative; display: flex; align-items: center; }
.mh-nav-link:hover, .mh-nav-link.active, .mh-nav-link.current-menu-item { color: #fff !important; font-weight: 700 !important; }
.mh-nav-link.active::after, .mh-nav-link.current-menu-item::after { 
    content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--cyan); box-shadow: 0 0 10px rgba(0,212,255,0.5); 
}
.mh-cta { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); font-family: "Outfit", sans-serif; font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 24px; border-radius: 6px; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; height: 44px; }
.mh-cta:hover { background: rgba(0,212,255,0.1); border-color: var(--cyan); box-shadow: 0 0 20px rgba(0,212,255,0.3); transform: translateY(-2px); color: #fff; }

.hire-me-badge { font-size: 10px; background: rgba(0,212,255,0.15); color: #00d4ff; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 700; white-space: nowrap; vertical-align: middle; }

/* 7. MASTER FOOTER DESIGN */
.master-footer { background: var(--navy); border-top: 1px solid var(--border); padding: 100px 24px 60px; color: var(--ts); }
.mf-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 100px; margin-bottom: 80px; }
.mf-logo { font-family: "Outfit", sans-serif; font-size: 32px; font-weight: 900; color: #fff; text-decoration: none; display: block; margin-bottom: 20px; letter-spacing: -1px; transition: all 0.3s ease; }
.mf-logo:hover { color: var(--cyan); }
.mf-logo span { color: var(--cyan); transition: all 0.3s ease; }
.mf-desc { font-size: 16px; line-height: 1.6; margin-bottom: 30px; max-width: 400px; }
.mf-social { display: flex; gap: 16px; }
.mf-s-link { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: all 0.3s; font-size: 18px; }
.mf-s-link:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); transform: translateY(-4px); }
.mf-bottom { max-width: 1200px; margin: 0 auto; padding-top: 40px; border-top: 1px solid var(--border); text-align: center; font-size: 14px; }

/* 8. RESPONSIVE DESIGN */
@media(max-width: 900px) {
    .mh-nav, .mh-inner .mh-cta { display: none; }
    .mf-inner { grid-template-columns: 1fr; gap: 60px; }
    .single-post-container { margin-top: 120px; }
}

/* Mobile Menu Interaction Placeholder Styling */
.mh-hamburger { display: none; width: 24px; height: 24px; background: none; border: none; flex-direction: column; justify-content: space-around; cursor: pointer; padding: 0; z-index: 1002; }
.mh-hamburger span { width: 100%; height: 2px; background: #fff; transition: all 0.3s; transform-origin: left; }
.mh-hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.mh-hamburger.active span:nth-child(2) { opacity: 0; }
.mh-hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

.mh-mobile-menu { 
    position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; 
    background: #0a192f; display: flex; flex-direction: column; 
    justify-content: center; padding: 40px; z-index: 1001; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    border-right: 1px solid var(--border);
    visibility: hidden;
    pointer-events: none;
}
.mh-mobile-menu.active { 
    display: flex !important;
    left: 0; 
    visibility: visible;
    pointer-events: auto;
}
.mh-mobile-nav { display: flex; flex-direction: column; gap: 24px; list-style: none; margin: 0 0 40px 0; padding: 0; }
.mh-mobile-link { font-size: 26px; font-weight: 700; color: #fff; text-decoration: none; }
.mh-mobile-link:hover { color: var(--cyan); }

@media(max-width: 900px) { 
    .mh-hamburger { display: flex; } 
    /* HIDE ASTRA MOBILE BUTTONS AGGRESSIVELY */
    .ast-mobile-menu-trigger, .main-header-menu-toggle { display: none !important; }
}

/* 9. GLOBAL OVERFLOW FIX */
html, body { overflow-x: hidden !important; width: 100%; position: relative; }

/* 10. WP ADMIN BAR FIX - ABSOLUTE OFFSETS */
body.admin-bar .master-header { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .master-header { top: 46px !important; }
}
/* Ensure master-header is below the WP Admin Bar (which is 99999) */
.master-header { z-index: 9998 !important; }
.mh-mobile-menu { z-index: 9997 !important; }
.mh-hamburger { z-index: 9999 !important; }
