*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
    /* width: 100%; */
}

body{
    background:radial-gradient(circle at top,#0f1b3d 0%,#050816 60%);
    color:#fff;
}

/* HEADER */
header{
    padding:20px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:linear-gradient(90deg,#0b1437,#0a0f2c);
}
.logo{
    font-size:22px;
    font-weight:700;
    color:#8bb3ff;
    text-decoration: none;
}
.logo span{color:#a855f7;}
.logo-icon{
  width: 19% !important;
}
nav ul{
    list-style:none;
    display:flex;
    gap:30px;
}
nav ul li a{
    color:#e5e7eb;
    text-decoration:none;
    font-size:15px;
}
/* nav ul li a.active{
    background:linear-gradient(135deg,#6366f1,#a855f7);
    padding:10px 18px;
    border-radius:8px;
} */


/* CATEGORY GRID */
.categories{
    padding:60px;
}
.categories h1{
    font-size:36px;
    margin-bottom:30px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
    margin-bottom:60px;
}
.category-card{
    padding:30px 20px;
    border-radius:14px;
    text-align:center;
    font-weight:600;
    cursor:pointer;
}

/* COLORS */
.ai{background:#2ea3f2;}
.cyber{background:#f24667;}
.gadgets{background:#8b63f6;}
.programming{background:#20c56b;}
.cloud{background:#2f93f0;}
.software{background:#ff8a00;}
.trends{background:#11b7b7;}
.blockchain{background:#9b5cf6;}
.data{background:#f24583;}
.network{background:#5676f3;}

/* ARTICLES */
.articles{
    padding:0 60px 60px;
}
.articles h2{
     padding: 20px 9px;
    color: #8bb3ff;
    font-size:28px;
    margin-bottom:25px;
}

.article-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.article-card{
    background:#0b1437;
    /* height: 38%; */
    border-radius:16px;
    overflow:hidden;
    display:none;
}
img{
    width: 100%;
}
.article-image{
    height:auto;
    /* background:#8b7b6e; */
}
.article-content{
    padding:20px;
}
.article-content h3{
    font-size:18px;
    margin-bottom:10px;
}
.article-content p{
    font-size:14px;
    color:#cbd5f5;
}
.article-content p{
    display:-webkit-box;
    -webkit-line-clamp:2;    
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.article-footer{
    display:flex;
    justify-content:space-between;
    margin-top:15px;
    font-size:13px;
    color:#8ea2d9;
}
/* FOOTER */
footer{
    background:#070b1f;
    padding:50px 60px;
    margin-top:40px;
}
.footer-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}
.footer-about h3{
    font-size:22px;
    margin-bottom:12px;
    color:#8bb3ff;
}
.footer-about p{
    color:#cbd5f5;
    line-height:1.6;
    max-width:420px;
}
.footer-links h3{
    font-size:20px;
    margin-bottom:12px;
}
.footer-links ul{
    list-style:none;
}
.footer-links ul li{
    margin-bottom:10px;
}
.footer-links ul li a{
    text-decoration:none;
    color:#cbd5f5;
    font-size:15px;
}
.footer-bottom{
    text-align:center;
    margin-top:40px;
    font-size:14px;
    color:#8ea2d9;
}
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}
/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablets */
@media (max-width: 1024px) {
    header {
        padding: 16px 30px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* NAVBAR */
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
        display: none;
        margin-top: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        background: #0a0f2c;
        padding: 20px;
        border-radius: 12px;
    }

    nav.show {
        display: block;
    }

    .menu-toggle {
        display: block;
        font-size: 26px;
        cursor: pointer;
        color: #fff;
    }

    /* HERO */
    .hero {
        padding: 40px 20px;
        height: auto;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    /* CATEGORIES */
    .categories {
        padding: 40px 20px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ARTICLES */
    .featured {
        padding: 40px 20px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    /* FOOTER */
    footer {
        padding: 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        margin: 0 auto;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
    .menu-toggle {
        display: block;
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

}

