* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    transition: 0.3s ease;
}

body.light-mode {
    background: radial-gradient(circle at top, #ffffff, #eef3ff);
    color: #111;
}

body.dark-mode {
    background: radial-gradient(circle at top, #020617, #0b1220);
    color: white;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(24px);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 999;
}

.dark-mode .navbar {
    background: rgba(0,0,0,0.35);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    left: 0;
    bottom: -6px;
    background: linear-gradient(135deg, #ff6ec4, #7873f5);
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
    width: 100%;
}

#toggleTheme {
    padding: 10px 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #007cf0, #00dfd8);
    color: white;
}

/* HERO */
.blog-hero {
    padding: 160px 20px 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 40px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    color: transparent;
}

/* GRID */
.blog-grid {
    padding: 40px 70px 120px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 40px;
}

/* BLOG CARD */
.blog-card {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(24px);
    border-radius: 32px;
    padding: 26px;
    box-shadow:
            0 25px 80px rgba(0,0,0,0.25),
            0 0 70px rgba(120,115,245,0.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dark-mode .blog-card {
    background: rgba(0,0,0,0.45);
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow:
            0 50px 140px rgba(0,0,0,0.45),
            0 0 110px rgba(120,115,245,0.85);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 14px;
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.blog-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
}

/* MODAL */
.blog-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.blog-modal-card {
    max-width: 820px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(30px);
    border-radius: 40px;
    padding: 40px;
    box-shadow:
            0 50px 160px rgba(0,0,0,0.5),
            0 0 120px rgba(120,115,245,0.7);
    position: relative;
}

.dark-mode .blog-modal-card {
    background: rgba(0,0,0,0.6);
}

.blog-modal-card img {
    width: 100%;
    border-radius: 24px;
    margin: 20px 0;
}

.blog-modal-card p {
    font-size: 16px;
    line-height: 1.9;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 26px;
    font-size: 32px;
    cursor: pointer;
}
/* (KEEP YOUR EXISTING BLOG CSS) */

/* ✅ CATEGORY BAR */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, #007cf0, #00dfd8);
    color: white;
    box-shadow: 0 10px 30px rgba(0,140,255,0.7);
}

.category-btn:hover {
    transform: scale(1.1);
}

/* ✅ CATEGORY TAG */
.tag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    background: linear-gradient(135deg, #ff6ec4, #7873f5);
    color: white;
}
@media (max-width: 768px) {

    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-grid {
        padding: 30px 20px 80px;
        grid-template-columns: 1fr;
    }

    .blog-modal-card {
        padding: 26px 20px;
        max-width: 92%;
    }

    .category-bar {
        padding: 0 12px;
    }
}

/* ============================= */
/* ✅ ABOUT PAGE MOBILE FIX */
/* ============================= */

@media (max-width: 768px) {

    /* ABOUT SECTION WRAPPER */
    .about-section {
        padding: 120px 20px 60px;
        flex-direction: column;
        align-items: center;
    }

    /* ABOUT CARD */
    .about-card {
        padding: 34px 22px;
        border-radius: 28px;
    }

    /* HEADINGS */
    .about-card h1 {
        font-size: 28px;
        text-align: center;
    }

    .about-card h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* PARAGRAPH TEXT */
    .about-text {
        font-size: 15px;
        line-height: 1.8;
        text-align: center;
    }

    /* TAGS */
    .about-tags {
        gap: 10px;
        margin-top: 25px;
    }

    .about-tags span {
        padding: 8px 18px;
        font-size: 12px;
    }
}
