/*=========================================
 ADYBLAZE V2
=========================================*/

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

:root{

--bg:#050816;
--bg2:#09111f;
--glass:rgba(255,255,255,.08);
--border:rgba(255,255,255,.10);

--blue:#00d4ff;
--purple:#7c3aed;

--white:#ffffff;
--text:#d6d9e0;

--radius:24px;

}

html{

scroll-behavior:smooth;

}

body{

background:var(--bg);

font-family:Inter,sans-serif;

color:var(--white);

overflow-x:hidden;

}

img{

max-width:100%;

display:block;

}

a{

text-decoration:none;

color:inherit;

}

.container{

width:min(92%,1350px);

margin:auto;

}

/*=========================
HEADER
=========================*/

.header{

position:fixed;

top:20px;

left:0;

width:100%;

z-index:999;

}

.navbar{

height:72px;

display:flex;

justify-content:space-between;

align-items:center;

padding:0 30px;

border-radius:22px;

background:rgba(8,15,30,.55);

backdrop-filter:blur(25px);

border:1px solid var(--border);

box-shadow:0 20px 60px rgba(0,0,0,.35);

}

.logo{

font-size:38px;

font-weight:800;

letter-spacing:-1px;

color:#fff;

}

.logo span{

color:var(--blue);

}

.nav-menu{

display:flex;

gap:35px;

list-style:none;

}

.nav-menu a{

position:relative;

font-size:15px;

font-weight:600;

color:#fff;

transition:.3s;

}

.nav-menu a::after{

content:"";

position:absolute;

left:0;

bottom:-8px;

width:0;

height:2px;

background:var(--blue);

transition:.3s;

}

.nav-menu a:hover{

color:var(--blue);

}

.nav-menu a:hover::after{

width:100%;

}

.nav-right{

display:flex;

gap:12px;

}

.icon-btn{

width:46px;

height:46px;

border:none;

cursor:pointer;

border-radius:14px;

background:rgba(255,255,255,.08);

color:#fff;

font-size:18px;

transition:.3s;

}

.icon-btn:hover{

background:linear-gradient(135deg,var(--blue),var(--purple));

transform:translateY(-2px);

}

.menu-toggle{

display:none;

}

/*=========================================
 HERO
=========================================*/

.hero{

position:relative;

min-height:100vh;

display:flex;

align-items:center;

padding:140px 0 80px;

overflow:hidden;

}

.hero::before{

content:"";

position:absolute;

width:700px;

height:700px;

background:#00d4ff;

filter:blur(180px);

border-radius:50%;

left:-220px;

top:-180px;

opacity:.18;

animation:blob1 14s infinite alternate ease-in-out;

}

.hero::after{

content:"";

position:absolute;

width:650px;

height:650px;

background:#7c3aed;

filter:blur(180px);

border-radius:50%;

right:-180px;

bottom:-180px;

opacity:.18;

animation:blob2 18s infinite alternate ease-in-out;

}

@keyframes blob1{

0%{transform:translate(0,0);}
100%{transform:translate(180px,120px);}

}

@keyframes blob2{

0%{transform:translate(0,0);}
100%{transform:translate(-150px,-120px);}

}

.hero-grid{

display:grid;

grid-template-columns:1.4fr .6fr;

gap:35px;

align-items:center;

position:relative;

z-index:2;

}

.hero-main{
    
   
transition:.5s;

position:relative;

min-height:720px;

border-radius:30px;

padding:80px;

overflow:hidden;

display:flex;

align-items:center;

background:
linear-gradient(rgba(5,8,22,.35),rgba(5,8,22,.45)),
url("../img/hero-bg.png");

background-size:cover;

background-position:center;

border:1px solid rgba(255,255,255,.08);

box-shadow:0 0 80px rgba(0,212,255,.10);


animation:heroFloat 8s ease-in-out infinite;


@keyframes heroFloat{

0%{
transform:translateY(0px);
}

50%{
transform:translateY(-8px);
}

100%{
transform:translateY(0px);
}

}



}
.hero-main:hover{
    transform:translateY(-6px);
    box-shadow:
    0 30px 80px rgba(0,212,255,.20),
    0 0 120px rgba(124,58,237,.18);
}

.hero-main::before{

content:"";

position:absolute;

inset:0;

background:
linear-gradient(135deg,
transparent,
rgba(0,212,255,.08),
transparent,
rgba(124,58,237,.08));

animation:shine 8s linear infinite;

}

@keyframes shine{

0%{

transform:translateX(-100%);

}

100%{

transform:translateX(100%);

}

}

.hero-content{

position:relative;

z-index:5;

max-width:520px;

}

.category{

display:inline-block;

padding:8px 18px;

border-radius:30px;

background:rgba(255,255,255,.08);

border:1px solid rgba(255,255,255,.12);

color:#00d4ff;

font-weight:700;

margin-bottom:25px;

}

.hero h1{

font-size:64px;
max-width:520px;
line-height:1.05;

font-weight:900;

margin-bottom:25px;

background:linear-gradient(90deg,#ffffff,#7dd3fc,#a78bfa);

-webkit-background-clip:text;

-webkit-text-fill-color:transparent;

}

.hero p{

font-size:19px;

line-height:1.8;

color:#d6d9e0;

margin-bottom:40px;

}

.hero-buttons{

display:flex;

gap:20px;

}

.btn-primary{

padding:18px 42px;

border-radius:50px;

background:linear-gradient(135deg,#00d4ff,#7c3aed);

color:#fff;

font-weight:700;

transition:.35s;

box-shadow:0 0 45px rgba(0,212,255,.35);

}

.btn-primary:hover{

transform:translateY(-5px);

box-shadow:0 0 70px rgba(124,58,237,.5);

}

.btn-outline{

padding:18px 42px;

border-radius:50px;

border:1px solid rgba(255,255,255,.15);

background:rgba(255,255,255,.05);

backdrop-filter:blur(15px);

color:#fff;

font-weight:700;

transition:.35s;

}

.btn-outline:hover{

background:#ffffff;

color:#111;

}

.hero-side{

display:grid;

gap:22px;

}

.side-card{

padding:30px;

border-radius:24px;

background:rgba(255,255,255,.06);

border:1px solid rgba(255,255,255,.08);

backdrop-filter:blur(20px);

transition:.35s;

}

.side-card:hover{

transform:translateY(-10px) scale(1.03);

background:linear-gradient(
135deg,
rgba(0,212,255,.18),
rgba(124,58,237,.20)
);

border-color:#00d4ff;

box-shadow:
0 0 30px rgba(0,212,255,.25),
0 0 70px rgba(124,58,237,.18);

}

.side-card h3{

font-size:22px;

margin-bottom:10px;

}

.side-card p{

color:#d6d9e0;

font-size:15px;

line-height:1.7;

}

.hero-main::after{

content:"";

position:absolute;

inset:0;

background:
linear-gradient(
90deg,
rgba(5,8,22,.94) 0%,
rgba(5,8,22,.72) 35%,
rgba(5,8,22,.10) 70%,
transparent 100%
);

z-index:1;

}

/*=========================================
LATEST ARTICLES
=========================================*/

.latest{

padding:100px 0;

position:relative;

}

.section-title{

font-size:46px;

font-weight:800;

margin-bottom:40px;

}

.latest-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:30px;

}

.post-card{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.08);

border-radius:22px;

overflow:hidden;

transition:.35s;

backdrop-filter:blur(15px);

}

.post-card:hover{

transform:translateY(-8px);

box-shadow:0 20px 60px rgba(0,212,255,.18);

}

.post-card img{

width:100%;

height:240px;

object-fit:cover;

display:block;

}

.post-content{

padding:24px;

}

.post-content h3{

font-size:24px;

margin-bottom:12px;

}

.post-content p{

font-size:16px;

color:#cbd5e1;

line-height:1.7;

}

/* Tablet */

@media(max-width:992px){

.latest-grid{

grid-template-columns:repeat(2,1fr);

}

}

/* Mobile */

@media(max-width:768px){

.latest-grid{

grid-template-columns:1fr;

}

}

/*=========================================
JARVIS ORB
=========================================*/

.jarvis-orb{
    position:absolute;
    right:70px;
    top:50%;
    transform:translateY(-50%);
    width:320px;
    height:320px;
    z-index:3;
}

.ring{
    position:absolute;
    inset:0;
    border-radius:50%;
    border:2px solid rgba(0,212,255,.35);
    animation:spin 14s linear infinite;
}

.ring2{
    inset:18px;
    border-color:rgba(124,58,237,.45);
    animation-direction:reverse;
    animation-duration:10s;
}

.ring3{
    inset:40px;
    border-color:rgba(255,255,255,.18);
    animation-duration:7s;
}

.core{
    position:absolute;
    left:50%;
    top:50%;
    width:90px;
    height:90px;
    transform:translate(-50%,-50%);
    border-radius:50%;
    background:radial-gradient(circle,#00d4ff,#2563eb,#050816);
    box-shadow:
        0 0 40px #00d4ff,
        0 0 90px rgba(0,212,255,.6);
    animation:pulse 2.5s ease-in-out infinite;
}

@keyframes spin{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

@keyframes pulse{
    0%,100%{
        transform:translate(-50%,-50%) scale(1);
    }
    50%{
        transform:translate(-50%,-50%) scale(1.12);
    }
}
@media(max-width:992px){

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

.jarvis-orb{
    display:none;
}

}
.jarvis-orb{
    right:20px;
    width:260px;
    height:260px;
}
/*=========================================
 JARVIS HUD GRID
=========================================*/

.hud-grid{
    position:absolute;
    inset:0;
    z-index:0;
    opacity:.18;
    pointer-events:none;

    background-image:
        linear-gradient(rgba(0,212,255,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,.18) 1px, transparent 1px);

    background-size:40px 40px;

    animation:gridMove 14s linear infinite;
}

@keyframes gridMove{

    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(40px);
    }

}

.hero-main .scan-line{

position:absolute;

left:0;

top:-20%;

width:100%;

height:140px;

background:linear-gradient(
to bottom,
transparent,
rgba(0,212,255,.22),
transparent
);

filter:blur(20px);

animation:scanMove 5s linear infinite;

z-index:2;

pointer-events:none;

}

@keyframes scanMove{

0%{
transform:translateY(-120%);
}

100%{
transform:translateY(850%);
}
}

/* ===== STATS CARD ===== */

.stats-card{
    display:flex;
    justify-content:space-around;
    align-items:center;
    text-align:center;
}

.stat-item h2{
    font-size:34px;
    color:#00d4ff;
    margin-bottom:6px;
    text-shadow:0 0 20px rgba(0,212,255,.5);
}

.stat-item span{
    font-size:14px;
    color:#cbd5e1;
}

.loading{

padding:80px;

text-align:center;

font-size:24px;

color:#00d4ff;

}

.post-content .btn-primary{

display:inline-block;

margin-top:20px;

padding:12px 24px;

font-size:14px;

}

.article-content{

max-width:900px;

margin:auto;

font-size:19px;

line-height:1.9;

color:#d6d9e0;

}

.article-content h2,
.article-content h3{

margin:40px 0 20px;

font-size:34px;

}

.article-content img{

max-width:100%;

border-radius:20px;

margin:30px 0;

}

.article-content p{

margin-bottom:22px;

}

.article-content ul{

margin:20px 0 20px 25px;

}

.article-content li{

margin-bottom:10px;

}

/* ARTICLE HERO */

.article-hero{
    position:relative;
    height:450px;
    border-radius:24px;
    overflow:hidden;
    margin:120px auto 50px;
}

.article-hero img{
    width:100%;
    height:320px;
    object-fit:cover;
    display:block;
}

.article-hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(5,8,22,.95),
        rgba(5,8,22,.40),
        transparent
    );
}

.article-info{
    position:absolute;
    left:50px;
    bottom:40px;
    z-index:2;
    max-width:700px;
}

.article-info h1{
    font-size:52px;
    line-height:1.1;
    margin:15px 0;
}

.article-info p{
    color:#d1d5db;
    font-size:16px;
}

/*=========================
RELATED POSTS
=========================*/

.related-section{

padding:80px 0;

}

.related-section h2{

font-size:42px;

margin-bottom:35px;

}

.related-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:25px;

}

.related-card{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.08);

border-radius:20px;

overflow:hidden;

transition:.35s;

backdrop-filter:blur(20px);

}

.related-card:hover{

transform:translateY(-10px);

box-shadow:0 0 35px rgba(0,212,255,.25);

}

.related-card img{

width:100%;

height:220px;

object-fit:cover;

}

.related-card h3{

padding:20px;

font-size:22px;

line-height:1.4;

color:#fff;

}

@media(max-width:768px){

.related-grid{

grid-template-columns:1fr;

}

.related-card img{

height:200px;

}

}
.nav-icons{
    display:flex;
    align-items:center;
    gap:12px;
    position:relative;
}

.search-box{

    position:absolute;

    top:60px;

    right:0;

    width:320px;

    display:none;

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:15px;

    backdrop-filter:blur(20px);

    box-shadow:0 20px 50px rgba(0,0,0,.45);

}

.search-box.active{

    display:block;

}

.search-box input{

    width:100%;

    padding:14px 18px;

    border:none;

    outline:none;

    border-radius:12px;

    background:#1e293b;

    color:#fff;

    font-size:15px;

}

#searchResults{

    margin-top:12px;

    max-height:350px;

    overflow-y:auto;

}

#searchResults a{

    display:block;

    padding:12px;

    border-radius:10px;

    color:#fff;

    transition:.3s;

}

#searchResults a:hover{

    background:#2563eb;

}

.post-category{
display:inline-block;
padding:5px 12px;
border:1px solid rgba(0,255,255,.5);
border-radius:20px;
font-size:12px;
color:#00ffff;
margin-bottom:10px;
background:rgba(0,255,255,.08);
}

.article-image{

width:100%;
border-radius:25px;
margin-bottom:40px;
border:1px solid rgba(0,255,255,.25);
box-shadow:0 0 30px rgba(0,255,255,.15);

}

.article-meta{

display:flex;
gap:20px;
margin-top:15px;
color:#aaa;
font-size:15px;

}

.article-meta span{

padding:8px 15px;
border:1px solid rgba(0,255,255,.2);
border-radius:20px;

}

.share-buttons{

display:flex;
gap:12px;
margin:30px 0;
flex-wrap:wrap;

}


.share-buttons a,
.share-buttons button{

padding:10px 18px;
border-radius:25px;
border:1px solid rgba(0,255,255,.3);
background:rgba(0,255,255,.08);
color:#00ffff;
cursor:pointer;
text-decoration:none;

}


.share-buttons a:hover,
.share-buttons button:hover{

background:#00ffff;
color:#000;

}

.search-box{
position:relative;
}

#searchResults{

position:absolute;
top:110%;
left:0;
width:100%;

background:#0b1220;
border:1px solid rgba(0,255,255,.2);

border-radius:12px;

overflow:hidden;

display:none;

z-index:9999;

box-shadow:0 15px 40px rgba(0,0,0,.4);

}

.search-item{

display:block;

padding:12px 15px;

color:#fff;

text-decoration:none;

border-bottom:1px solid rgba(255,255,255,.05);

transition:.3s;

}

.search-item:hover{

background:rgba(0,255,255,.1);

color:#00ffff;

}

.search-box{

position:relative;

}

#searchResults{

position:absolute;

top:110%;

left:0;

width:350px;

background:#0b1220;

border:1px solid rgba(0,255,255,.2);

border-radius:15px;

overflow:hidden;

display:none;

z-index:99999;

box-shadow:0 20px 40px rgba(0,0,0,.45);

}

.search-item{

display:flex;

gap:12px;

padding:12px;

text-decoration:none;

border-bottom:1px solid rgba(255,255,255,.05);

transition:.3s;

align-items:center;

}

.search-item:hover{

background:rgba(0,255,255,.08);

}

.search-item img{

width:60px;

height:60px;

object-fit:cover;

border-radius:10px;

}

.search-item h4{

color:#fff;

font-size:14px;

font-weight:600;

line-height:1.4;

}

.search-empty{

padding:15px;

color:#aaa;

text-align:center;

}
.small-hero{
    padding:80px 0 40px;
}

.post-meta{
    margin:12px 0;
    font-size:13px;
    color:#8fa3c4;
    display:flex;
    gap:8px;
    align-items:center;
}

.pagination{
display:flex;
justify-content:center;
gap:15px;
margin-top:50px;
flex-wrap:wrap;
}

.pagination a{
padding:10px 18px;
background:#111827;
border-radius:10px;
text-decoration:none;
color:#fff;
transition:.3s;
}

.pagination a:hover{
background:#2563eb;
}

.pagination .active{
background:#2563eb;
pointer-events:none;
}.pagination{
display:flex;
justify-content:center;
gap:15px;
margin-top:50px;
flex-wrap:wrap;
}

.pagination a{
padding:10px 18px;
background:#111827;
border-radius:10px;
text-decoration:none;
color:#fff;
transition:.3s;
}

.pagination a:hover{
background:#2563eb;
}

.pagination .active{
background:#2563eb;
pointer-events:none;
}
.ads-section{
padding:30px 0;
text-align:center;
overflow:hidden;
}
/*=========================
TABLE OF CONTENTS
=========================*/

.toc-box{

background:#0d1525;
border:1px solid rgba(255,255,255,.08);
border-radius:12px;
padding:20px;
margin-bottom:30px;

}

.toc-box h3{

margin-bottom:15px;
color:#fff;

}

.toc-box ul{

list-style:none;
padding:0;

}

.toc-box li{

margin:10px 0;

}

.toc-box li.h3{

padding-left:20px;

}

.toc-box a{

color:#7cc7ff;
text-decoration:none;

}

.toc-box a:hover{

color:#fff;

}
/* Reading Progress Bar */

#readingProgress{

position:fixed;
top:0;
left:0;
width:0%;
height:4px;
background:linear-gradient(90deg,#00e5ff,#4caf50);
z-index:99999;
transition:width .15s linear;

}
/* ==========================
   DARK / LIGHT MODE
========================== */

body.light-mode{

background:#f5f5f5;
color:#222;

}

body.light-mode .header,
body.light-mode .hero,
body.light-mode .post-card,
body.light-mode .article-content,
body.light-mode .footer{

background:#fff;
color:#222;

}

body.light-mode a{

color:#222;

}

body.light-mode .post-card{

border:1px solid #ddd;

}

#categoryCards .side-card{
    display:block;
    text-decoration:none;
    color:inherit;
}