/* ================== RESET & BASE STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #0f172a;
    font-size: 16px;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #f8fafc;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0ea5e9;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    background: #1e293b;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #00d4ff;
}

/* ================== CONTAINER ================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================== HEADER ================== */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand .brand-link i {
    font-size: 1.8rem;
    color: #00d4ff;
}

/* Navigation Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Header Social Icons */
.header-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 769px) {
    .header-social {
        display: flex !important;
    }
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-decoration: none;
}

.social-icon:hover {
    background: linear-gradient(135deg, #00d4ff, #0ea5e9);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-btn {
    background: linear-gradient(135deg, #00d4ff, #0ea5e9);
    color: #0f172a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.categories-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.categories-btn i {
    transition: transform 0.3s ease;
}

.categories-btn.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover,
.dropdown-link.active {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-left-color: #00d4ff;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: #cbd5e1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================== HERO SECTION ================== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #f8fafc;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f8fafc;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ================== MAIN CONTENT ================== */
.main-content {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    gap: 40px;
}

/* ================== FEATURED ARTICLE ================== */
.featured-article {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px;
    border: 1px solid #334155;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.article-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #00d4ff, #0ea5e9);
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.article-content {
    padding: 30px;
}

.article-title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-title a {
    color: #f8fafc;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #00d4ff;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: #64748b;
}

.article-excerpt {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 0;
}

/* ================== ARTICLES GRID ================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid #334155;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #00d4ff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-title a {
    color: #f8fafc;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #00d4ff;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: #64748b;
    font-size: 0.75rem;
}

.card-excerpt {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ================== LOAD MORE SECTION ================== */
.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 100%);
    color: #0f172a;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

/* ================== FOOTER ================== */
.footer {
    background: #0c1420;
    color: #cbd5e1;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #f8fafc;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #94a3b8;
}

.footer-contacts i {
    color: #00d4ff;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    color: #64748b;
}



/* ================== UTILITIES ================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ================== SMOOTH SCROLLING ================== */
html {
    scroll-behavior: smooth;
}

/* ================== FOCUS STYLES FOR ACCESSIBILITY ================== */
button:focus,
a:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* ================== LOADING ANIMATIONS ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card,
.featured-article {
    animation: fadeInUp 0.6s ease forwards;
}

.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.3s; }
.article-card:nth-child(5) { animation-delay: 0.4s; }
.article-card:nth-child(6) { animation-delay: 0.5s; }

/* ================== CODE BLOCKS ================== */
pre {
    background: #0c1420;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.875rem;
}

/* ================== TECH ACCENT COLORS ================== */
.accent-ai { color: #00d4ff; }
.accent-ml { color: #10b981; }
.accent-web { color: #f59e0b; }
.accent-devops { color: #06b6d4; }
.accent-data { color: #8b5cf6; }
.accent-security { color: #ef4444; }
.accent-performance { color: #22c55e; }
.category-meta {margin-bottom: 1em;}
.category-header {margin-top: 75px;}
.article-header {margin-top: 75px; width: 100%; padding: 0 0 1.5em!important;}
.article-main-title {text-align: center;}
.article-sidebar {margin-top: 1em;}
.article-layout {grid-template-columns: none;}
.article-featured-image img {height: auto!important;}
html {margin-top: 0!important;}