/* --- GLOBAL VARIABLES --- */
:root {
    --primary-dark: #0f1c15;
    --primary-green: #1a4d2e;
    --accent-lime: #4ade80; /* Bright tech green */
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --card-bg: #ffffff;
    --gradient-main: linear-gradient(135deg, #0f1c15 0%, #163e28 100%);
}

/* --- BASE STYLING --- */
body {
    font-family: 'DM Sans', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- HEADER & NAV --- */
.site-header {
    background-color: var(--primary-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar {
    background: rgba(15, 28, 21, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-lime);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.navbar-brand span {
    color: var(--accent-lime) !important;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-lime) !important;
}

/* --- HERO SECTION --- */
.section-hero {
    background: var(--gradient-main);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.section-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.section-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Smaller article-page hero variant */
.article-hero {
    background: var(--gradient-main);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.article-hero .badge-category {
    display: inline-block;
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-lime);
    border: 1px solid rgba(74, 222, 128, 0.4);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.article-hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.article-hero .article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-hero .article-meta span {
    margin: 0 10px;
}

.article-hero-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    margin-top: 2.5rem;
}

.article-hero-image img {
    width: 100%;
    display: block;
}

/* --- BUTTONS --- */
.btn-success {
    background-color: var(--primary-green);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.3);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--accent-lime);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.4);
}

.btn-outline-success {
    color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 50px;
}

.btn-outline-success:hover {
    background-color: var(--primary-green);
    color: white;
}

/* --- CARDS (BLOG POSTS) --- */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 1.5rem;
}

.text-success {
    color: var(--primary-green) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.card-title a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    background-image: linear-gradient(var(--accent-lime), var(--accent-lime));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}

.card-title a:hover {
    background-size: 100% 2px;
    color: var(--primary-green);
}

/* --- CATEGORIES --- */
.bg-light {
    background-color: #f1f5f9 !important;
}

/* --- ARTICLE BODY --- */
.article-body {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-size: 1.08rem;
    line-height: 1.8;
    color: #334155;
}

.article-body h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.3rem;
}

.article-highlight {
    background-color: rgba(74, 222, 128, 0.08);
    border-left: 4px solid var(--accent-lime);
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
    border-radius: 0 12px 12px 0;
}

.article-highlight p:last-child {
    margin-bottom: 0;
}

.article-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.article-stat-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.article-stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-green);
}

.article-stat-label {
    color: var(--text-muted-dark, #64748b);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.article-cta {
    background: var(--gradient-main);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 2.5rem 0 0.5rem;
}

.article-cta h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.related-articles .card-img-top {
    height: 160px;
}

/* --- FORMS --- */
.form-control {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    font-size: 0.95rem;
}

.site-footer h3, .site-footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: #94a3b8;
}

.site-footer a:hover {
    color: var(--accent-lime);
    padding-left: 5px;
}

.social-icon-link {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icon-link:hover {
    background: var(--accent-lime);
    color: var(--primary-dark);
    transform: rotate(360deg);
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-lime);
    color: var(--primary-dark);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: white;
    color: var(--primary-green);
}
