:root {
    --bg-gradient: linear-gradient(135deg, #0f0c29, #1e1b41, #161630);
    --text: #e0f7ff;
    --text-muted: #a0a0c0;
    --primary: #40c4ff;
    --primary-glow: rgba(64, 196, 255, 0.35);
    --accent: #a78bfa;
    --card: rgba(30, 30, 60, 0.75);
    --border: rgba(167, 139, 250, 0.22);
    --shadow: 0 12px 48px rgba(0, 0, 0, 0.5);

    --scrollbar-bg: #0f0c29;
    --scrollbar-thumb: #1e1b41;
    --scrollbar-hover: #5967ff;
    --item-bg-muted: rgba(64, 196, 255, 0.07);
    --item-bg-hover: rgba(64, 196, 255, 0.18);
    
    --btn-grad-start: #3a9eff;
    --btn-grad-end: #7a5aff;
    
    --white: #ffffff;
    --black: #000000;
    --label-color: #d0d8e8;
}

.light-theme {
    --bg-gradient: linear-gradient(135deg, #f0f4f8, #e2e8f0, #d1d9e6);
    --card: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 86, 179, 0.15);
    --shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    
    --text: #1e293b;
    --text-muted: #334155;
    
    --primary: #0056b3;
    --primary-glow: rgba(0, 86, 179, 0.15);
    --accent: #553c9a;
    
    --scrollbar-bg: #f1f5f9;
    --scrollbar-thumb: #cbd5e0;
    --scrollbar-hover: #0056b3;
    
    --item-bg-muted: rgba(0, 86, 179, 0.08);
    --item-bg-hover: rgba(0, 86, 179, 0.12);
    
    --btn-grad-start: #0056b3;
    --btn-grad-end: #553c9a;
    
    --label-color: #1e293b; 
}


*, *::before, *::after {
    transition: background-color 0.5s ease, 
                color 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.5s ease, 
                filter 0.5s ease,
                opacity 0.5s ease;
}

/* --- Global Reset & Scrollbar --- */
html,
body {
    width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-behavior: smooth !important;
    scroll-padding-top: 110px !important;
}

body {
    background: var(--bg-gradient);
    color: var(--text);
    font-family: "Tektur", sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

::-webkit-scrollbar {
    width: 12px; 
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg); 
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb); 
    border-radius: 10px;
    border: 3px solid var(--scrollbar-bg); 
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-hover); 
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    padding: 2em;
    max-width: 1100px;
    margin: 0 auto;
}




































.blog-page {
    padding: 100px 20px 60px; 
    min-height: 80vh;
}

.blog-hero {
    text-align: center;
    margin-bottom: 60px;
}

.blog-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: linear-gradient(135deg, var(--btn-grad-start), var(--btn-grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.card-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    margin-bottom: 20px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.read-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.read-link:hover span {
    transform: translateX(5px);
}
































































/* --- Blog Archive Tablet Viewport (Max 850px) --- */
@media (max-width: 850px) {
    
    .blog-page {
        padding: 80px 15px 40px; 
        min-height: auto; 
    }

    .blog-hero {
        margin-bottom: 40px; 
    }

    .blog-hero h1 {
        font-size: clamp(2.2rem, 7vw, 3.2rem); 
        letter-spacing: -1px;
    }

    .blog-hero .intro {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px; 
        padding: 0 10px;
    }

    .blog-card {
        padding: 16px; 
        border-radius: 14px;
    }

    .card-img-wrapper {
        height: 180px; 
        margin-bottom: 15px;
    }

    .blog-card h3 {
        font-size: 1.15rem; 
        line-height: 1.3;
    }

    .blog-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .blog-card:hover {
        transform: translateY(-5px); 
    }
}












/* --- Blog Archive Small Mobile Viewport (Max 480px) --- */
@media (max-width: 480px) {
    
    .blog-page {
        padding: 70px 12px 40px; 
    }

    .blog-hero {
        margin-bottom: 30px; 
    }

    .blog-hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem); 
        letter-spacing: -0.5px;
    }

    .blog-hero .intro {
        font-size: 0.9rem;
        padding: 0 5px;
        line-height: 1.4;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px; 
        padding: 0;
    }

    .blog-card {
        padding: 12px; 
        border-radius: 12px;
    }

    .card-img-wrapper {
        height: 150px; 
        margin-bottom: 12px;
    }

    .category-tag {
        font-size: 0.6rem; 
        padding: 3px 10px;
    }

    .blog-card h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .blog-card p {
        font-size: 0.85rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-link {
        font-size: 0.8rem;
        margin-top: 10px;
    }

    .blog-card:hover {
        transform: none; 
        box-shadow: none;
        border-color: var(--primary);
    }
}





















/* ================================== FOOTER MEDIAS ======================================= */

@media (min-width: 1100px) {
    .footer-container {
        gap: 6rem;
    }

    .links {
        gap: 3rem 4rem;
    }
}

@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr; 
        gap: 3rem;
        align-items: center;
        text-align: center;
    }

    .left {
        align-items: center;
        text-align: center;
    }

    .tech-icons,
    .social-links {
        justify-content: center;
    }

    .links {
        grid-template-columns: repeat(2, 1fr); 
        text-align: center;
        gap: 2rem;
        width: 100%;
    }

    .light-theme .links a {
        color: var(--text-muted);
    }

    .light-theme .links a:hover {
        color: var(--primary);
    }
}



/* ================================== FOOTER MEDIAS ======================================= */

@media (min-width: 1100px) {
    .footer-container {
        gap: 6rem;
    }

    .links {
        gap: 3rem 4rem;
    }
}

@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr; 
        gap: 3rem;
        align-items: center;
        text-align: center;
    }

    .left {
        align-items: center;
        text-align: center;
    }

    .tech-icons,
    .social-links {
        justify-content: center;
    }

    .links {
        grid-template-columns: repeat(2, 1fr); 
        text-align: center;
        gap: 2rem;
        width: 100%;
    }

    .light-theme .links a {
        color: rgb(211, 211, 211);
    }

    .light-theme .links a:hover {
        color: var(--primary);
    }
}
