/* --- BASE & VARIABLES --- */
:root {
    --bg-dark: #050505;
    --surface: #0f0f10;
    --surface-light: #1a1a1c;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    z-index: 1000;
    transition: 0.4s ease;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: 2px;
    transition: transform 0.3s;
}

.brand-logo .dot {
    color: #555; /* Subtle accent dot */
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--text-primary);
    transition: 0.3s ease;
}

.nav-links a:hover, .nav-links .active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links .active::after { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span {
    width: 25px; height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.blog-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-bg {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    top: 0; left: 0;
    z-index: 1;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--bg-dark));
    top: 0; left: 0;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    margin-top: 50px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: auto;
}

/* --- FILTER BUTTONS --- */
.filter-section {
    text-align: center;
    padding: 60px 20px 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    border-color: var(--text-primary);
}

/* --- BLOG GRID --- */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 8% 100px;
    max-width: 1400px;
    margin: auto;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.blog-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--surface);
    position: relative;
    z-index: 2; /* keeps content above scaled image */
}

.blog-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.read-time {
    font-size: 12px;
    color: #777;
}

.read-more {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s ease;
}

.read-more:hover {
    letter-spacing: 1px;
    color: #ccc;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 80px 8%;
    background: linear-gradient(to bottom, var(--bg-dark), var(--surface));
}

.contact-card {
    max-width: 700px;
    margin: auto;
    background: var(--surface);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-card h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    background: var(--surface-light);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: rgba(255,255,255,0.5);
    background: #222;
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.btn-submit {
    padding: 16px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background: #ddd;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

/* --- FOOTER --- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 40px 8%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-links a img {
    width: 18px; height: 18px;
    filter: invert(1);
    opacity: 0.7;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--text-primary);
    transform: translateY(-5px);
}

.social-links a:hover img {
    filter: invert(0);
    opacity: 1;
}

/* --- ANIMATIONS (SCROLL REVEAL) --- */
.reveal {
    opacity: 0;
    transition: 0.8s all ease;
}
.reveal.fade-up {
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE MOBILE --- */
@media(max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: rgba(5,5,5,0.95);
        flex-direction: column;
        text-align: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid transparent;
    }
    
    .nav-links.active {
        max-height: 300px;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .contact-card { padding: 30px 20px; }
    .footer-content { flex-direction: column; text-align: center; }
}