/* --- PREMIUM COLOR PALETTE & VARIABLES --- */
:root {
    --bg-base: #050505; 
    --bg-card: #0c0c0c;
    --border: #222;
    --text-main: #f8f8f8;
    --text-muted: #a1a1aa;
    --accent-glow: rgba(255, 255, 255, 0.05);
    
    /* Custom Accents for Products */
    --vetigo-color: #38bdf8;
    --gurbodh-color: #f5b841;
    --fluentra-color: #a855f7;
    
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-base); color: var(--text-main);
    font-family: 'Inter', sans-serif; line-height: 1.6;
    overflow-x: hidden;
}

/* --- PARALLAX BACKGROUND ORB --- */
.bg-orb {
    position: fixed; top: 20%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    filter: blur(60px); z-index: -1; pointer-events: none;
    transition: transform 0.5s ease-out;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
h1 { font-size: clamp(3rem, 5vw, 5.5rem); font-weight: 600; margin-bottom: 1.2rem; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 2rem; }
p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.2rem; max-width: 600px; }

.eyebrow {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted); display: inline-block;
    border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 100px;
    margin-bottom: 1.2rem;
}

/* --- TOP NAVBAR --- */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; transition: var(--transition);
}
.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.05em; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.btn-talk {
    background: var(--text-main); color: var(--bg-base); font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; font-weight: 600; padding: 0.6rem 1.5rem; border-radius: 100px;
    text-decoration: none; transition: var(--transition); text-transform: uppercase; border: none; cursor: pointer;
}
.btn-talk:hover { transform: scale(1.05); }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
section:last-child { border-bottom: none; }

/* --- DYNAMIC SPOTLIGHT CARDS --- */
.spotlight-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
    padding: 2.5rem; position: relative; overflow: hidden; transition: border-color 0.3s;
}
.spotlight-card::before {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), var(--accent-glow), transparent 40%);
    z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card:hover { border-color: rgba(255,255,255,0.15); }
.spotlight-content { position: relative; z-index: 1; }

/* --- HERO --- */
.hero { padding-top: 8rem; padding-bottom: 3rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.terminal { background: #0a0a0a; border: 1px solid var(--border); border-radius: 12px; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.terminal-header { background: #111; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.terminal-body { padding: 1.2rem; color: var(--text-muted); line-height: 1.8; }
.cmd { color: #fff; }

/* --- EXPERTISE GRID --- */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.exp-num { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.2rem; display: block; border-bottom: 1px solid var(--border); padding-bottom: 0.8rem; }

/* --- PRODUCTS --- */
.product-row {
    display: flex; align-items: center; gap: 3rem; margin-bottom: 2.5rem;
    padding: 3rem; border-radius: 24px;
}
.product-row.reverse { flex-direction: row-reverse; }
.product-info { flex: 1; }
.product-visual-container { flex: 1; display: flex; justify-content: center; align-items: center; }

.tag-status {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; text-transform: uppercase;
    border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 100px;
    display: inline-block; margin-bottom: 1rem;
}

.app-pedestal {
    width: 220px; height: 220px; border-radius: 25%;
    background: linear-gradient(135deg, #18181b, #09090b);
    border: 1px solid #27272a; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.05);
    position: relative; transition: transform 0.5s ease;
}
.product-row:hover .app-pedestal { transform: translateY(-8px) scale(1.02); }
.app-icon { width: 100px; height: 100px; border-radius: 22%; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.ui-pedestal {
    width: 100%; aspect-ratio: 16/10; border-radius: 12px;
    background: #111; border: 1px solid #222; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); position: relative;
}
.ui-pedestal img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: var(--transition); }
.product-row:hover .ui-pedestal img { opacity: 1; transform: scale(1.02); }

/* --- SELECTED WORK --- */
.work-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 1.5rem; border-bottom: 1px solid var(--border); transition: var(--transition);
    border-radius: 12px;
}
.work-item:hover { background: rgba(255,255,255,0.02); padding-left: 2rem; }
.work-tags { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); display: flex; gap: 0.8rem; margin-top: 0.3rem; }
.work-desc { width: 55%; margin-bottom: 0; font-size: 1rem; }

/* --- ABOUT & CAPABILITIES --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cap-title { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #fff; margin-bottom: 1rem; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem;}
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.pill { background: #111; border: 1px solid #222; padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.8rem; color: var(--text-muted); transition: color 0.2s; }
.pill:hover { color: #fff; border-color: #444; }

/* --- CONTACT SECTION --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.form-input {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border);
    padding: 0.8rem 0; color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem;
    outline: none; margin-bottom: 1.5rem; transition: border-color 0.3s;
}
.form-input:focus { border-color: var(--text-main); }
select.form-input { color: var(--text-muted); appearance: none; }

/* --- ANIMATION UTILITIES --- */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero, .about-grid, .contact-grid, .product-row, .product-row.reverse { grid-template-columns: 1fr; flex-direction: column; gap: 2.5rem; text-align: left; }
    .product-row { padding: 2rem; }
    .product-visual-container { width: 100%; }
    .work-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .work-desc { width: 100%; }
    section { padding: 4rem 0; }
    .hero { padding-top: 8rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .expertise-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ==========================================
   SHARED STYLES & COMPONENT ADDITIONS
   ========================================== */

/* --- BLOG & POSTS PAGES --- */
.blog-hero { padding-top: 10rem; padding-bottom: 4rem; text-align: center; }
.blog-hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 1rem; }
.blog-hero p { margin: 0 auto; font-size: 1.15rem; }

.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding: 0; overflow: hidden; }
.featured-post-img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; border-right: 1px solid var(--border); }
.featured-post-content { padding: 3rem 4rem 3rem 0; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 3rem; }
.post-card { padding: 0; display: flex; flex-direction: column; }
.post-img-wrapper { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); }
.post-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--smooth); filter: grayscale(80%); }
.post-card:hover .post-img-wrapper img { transform: scale(1.05); filter: grayscale(0%); }
.post-content { padding: 2.5rem; display: flex; flex-direction: column; flex-grow: 1; }

.post-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 1rem; margin-bottom: 1rem; }
.post-title { font-size: 1.5rem; margin-bottom: 1rem; color: #fff; transition: color 0.3s; }
.post-card:hover .post-title { color: #38bdf8; }
.post-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; }

.read-more { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; text-transform: uppercase; color: var(--text-main); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.post-card:hover .read-more { color: #38bdf8; gap: 12px; }

/* --- SINGLE ARTICLE VIEW --- */
.post-hero-single { padding-top: 10rem; padding-bottom: 3rem; max-width: 900px; margin: 0 auto; text-align: center; }
.breadcrumb-nav { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; display: flex; justify-content: center; gap: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.breadcrumb-nav a { color: var(--text-main); text-decoration: none; transition: color 0.3s; }
.breadcrumb-nav a:hover { color: #38bdf8; }

.article-container { max-width: 850px; margin: 0 auto; padding: 0 5%; }
.featured-image-wrapper { width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 4rem; background: var(--bg-card); padding: 0; }
.featured-image-wrapper img { width: 100%; max-height: 550px; object-fit: cover; display: block; }

.entry-content { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: #fff; margin-top: 3.5rem; margin-bottom: 1.5rem; }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content a { color: #38bdf8; text-decoration: underline; text-decoration-color: rgba(56, 189, 248, 0.3); text-underline-offset: 4px; transition: all 0.3s; }
.entry-content a:hover { color: #fff; text-decoration-color: #fff; }
.entry-content img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); margin: 2rem 0; }
.entry-content blockquote { border-left: 2px solid #38bdf8; padding-left: 1.5rem; margin: 2.5rem 0; font-style: italic; color: #ddd; font-size: 1.25rem; }
.entry-content pre, .entry-content code { background: #0a0a0a; border: 1px solid var(--border); border-radius: 8px; font-family: 'JetBrains Mono', monospace; padding: 0.2rem 0.4rem; color: #e2e8f0; font-size: 0.9rem; }
.entry-content pre { padding: 1.5rem; overflow-x: auto; margin: 2rem 0; }
.entry-content pre code { border: none; padding: 0; background: transparent; }

/* --- 404 ERROR PAGE --- */
.error-section { min-height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 0 4rem 0; border-bottom: none !important; }
.error-code { font-size: clamp(6rem, 15vw, 12rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: #fff; margin-bottom: 1.5rem; background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.error-search-box { max-width: 500px; margin: 2rem auto 0 auto; display: flex; gap: 0.5rem; }
.error-search-input { flex-grow: 1; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 100px; padding: 0.8rem 1.5rem; color: #fff; font-family: 'Inter', sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.3s; }
.error-search-input:focus { border-color: #38bdf8; }
.error-search-btn { background: var(--text-main); color: var(--bg-base); border: none; border-radius: 100px; padding: 0.8rem 1.8rem; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1); }
.error-search-btn:hover { transform: scale(1.05); }

@media (max-width: 1024px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-post-img { border-right: none; border-bottom: 1px solid var(--border); min-height: 300px; }
    .featured-post-content { padding: 2.5rem; }
    .post-grid { grid-template-columns: 1fr; }
}