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

/* =========================
   GOOGLE FONT
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* =========================
   BASE STYLES
   ========================= */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #eef2f3, #dfe9f3);
    color: #333;
    line-height: 1.6;
}

/* =========================
   HEADER STYLING
   ========================= */
header {
    background: linear-gradient(135deg, #3498db, #6dd5fa);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

header .logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    font-weight: 300;
    margin-bottom: 0;
}

/* =========================
   NAVIGATION
   ========================= */
nav {
    padding-left: 40px;
    margin-top: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    font-weight: bold;
    color: #2c3e50;
    padding: 6px 10px;
    border-radius: 5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: #3498db;
    color: white;
}

/* =========================
   MAIN CONTENT
   ========================= */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* HEADERS */
h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 15px;
}

h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* LISTS */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 25px; /* space between list items */
}

ul li p {
    margin: 8px 0;
}

/* CODE BLOCKS */
ul li pre {
    margin: 8px 0;
    padding: 12px;
    background-color: #eaeaea;
    border-radius: 5px;
    overflow-x: auto;
}

ul li pre code {
    display: block;
    white-space: pre-wrap;
}

/* =========================
   FONT AWESOME ICONS
   ========================= */
.fas {
    color: #3498db;
    margin-right: 10px;
}

/* =========================
   CONTACT SECTION
   ========================= */
.contact {
    text-align: center;
    margin: 40px 0;
}

.contact-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2980b9;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.1em;
}

.contact-button:hover {
    background-color: #1f6391;
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* =========================
   FOOTER
   ========================= */
footer {
    background-color: #f2f2f2;
    color: #333;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 1em;
}
img {
    max-width: 100%;
    height: auto;
}
li {
    margin-bottom: 40px;
}
/* Social icons container */
.social-links {
    margin-top: 15px;
    text-align: center;
}

/* GitHub and LinkedIn icons */
.social-links a {
    font-size: 48px; /* icon size */ margin: 0 15px; /* spacing */ 
    transition: transform 0.2s, color 0.2s, background 0.2s;
/* Individual colors for dark background */
.social-links a.github { color: #333333; }      /* GitHub normal */
.social-links a.linkedin { color: #0077b5; }   /* LinkedIn brand blue */

/* Hover effects */
.social-links a.github:hover { color: #000000; transform: scale(1.3); }
.social-links a.linkedin:hover { color: #005582; transform: scale(1.3); } 
.blog-main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #4A90E2;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.archive {
    margin-top: 3rem;
}

.archive ul {
    list-style: none;
    padding-left: 0;
}

.archive li {
    margin-bottom: 0.5rem;
}
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    line-height: 1.6;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.blog-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

hr {
    border: none;
    border-bottom: 2px solid #ddd;
    margin-bottom: 2rem;
}

section {
    margin-bottom: 2rem;
}

.code-snippet {
    background: #f4f4f4;
    padding: 1rem;
    border-left: 4px solid #ff6b6b;
    overflow-x: auto;
}

.highlight {
    color: #d6336c;
    font-weight: bold;
}

.blog-img {
    text-align: center;
    margin: 1.5rem 0;
}

.blog-img img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}
