/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Outfit:wght@500;700&display=swap');

:root {
    --primary-color: #3b82f6;
    /* Modern Blue */
    --secondary-color: #6366f1;
    /* Indigo */
    --accent-color: #10b981;
    /* Emerald */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --card-bg: #1e293b;
    /* Slate 800 */
    --text-main: #f1f5f9;
    /* Slate 100 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-color: #334155;
    /* Slate 700 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header */
header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* Navigation Menu */
nav {
    display: flex;
    justify-content: center;
    background-color: var(--card-bg);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

nav a {
    margin: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Intro Section */
.intro {
    padding: 80px 20px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), var(--dark-bg)), url('../images/hero_background_tech.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.intro h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Blog Posts Section */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.post {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post h3 {
    margin: 0 0 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    line-height: 1.3;
}

.post p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.post a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.post a:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* Article Section */
.article-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.article-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.article-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 30px;
    font-weight: 600;
    color: var(--primary-color);
}

.back-link:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--card-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    nav a {
        margin: 10px 0;
    }

    .intro h2 {
        font-size: 2rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .article-content {
        padding: 20px;
        margin: 20px;
    }
}