/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-color: #FFFDF7;
    --text-main: #444444;
    --text-heading: #2c2c2c;
    /* --accent-color: #F66E48; */
    --accent-color: #666666;
    /* --accent-hover: #DE005E; */
    --accent-hover: tomato;
    --border-color: #eee;
    --gray-light: #f5f5f5;
    --gray-medium: #a9abb3;
    --gray-dark: #666666;

    /* Fonts */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'PT Serif', serif;
    --font-ui: 'Poppins', 'Roboto', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Spacing */
    --max-width: 800px;
    --max-width-narrow: 600px;
    --max-width-wide: 1000px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
}

/* strong {
    color: var(--accent-hover);
} */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* =========================================
   3. LAYOUT & UTILITIES
   ========================================= */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-container {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Minimal Grid System (Replacing Bootstrap) */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar {
    padding: 1.5rem 0;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-heading);
    font-weight: 500;
}

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

/* =========================================
   5. COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.2rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    /* Resume/CV style default */
    background-color: #00af98;
    color: white !important;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: #00af98;
    color: #00af98 !important;
}

.btn-secondary {
    /* Mail style default */
    background-color: tomato;
    color: white !important;
}

.btn-secondary:hover {
    background-color: transparent;
    border-color: tomato;
    color: tomato !important;
}

.btn-outline {
    /* Unobtrusive style */
    background-color: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--gray-dark) !important;
}

.btn-outline:hover {
    background-color: var(--gray-dark);
    color: white !important;
}

/* Section Headers (Blog/Projects) */
.section-header {
    text-align: center;
    margin: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    margin: 0 auto;
    max-width: 500px;
    color: var(--gray-dark);
}

/* Post/Project Cards */
.postcard-container {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.postcard-container:last-child {
    border-bottom: none;
}

.postcard-text-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.postcard-text-summary {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.date,
.tags {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Analytics Tool Cards */
.tools-card-container {
    padding: 15px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0) 0%, rgba(161, 161, 161, 0.1) 50%, rgba(161, 161, 161, 0.3) 100%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.tools-card-image-img {
    border-radius: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* =========================================
   6. LANDING PAGE
   ========================================= */
.landing-container {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 3rem 1rem;
}

.landing-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.landing-photo .img-pp {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
}

.landing-name {
    text-align: left;
}

.name-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.name-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.social-links {
    display: flex;
    gap: 15px;
}

.icon-link {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.icon-link:hover {
    color: var(--accent-hover);
    /* transform: translateY(-2px); */
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.landing-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .landing-header {
        flex-direction: column;
        text-align: center;
    }

    .landing-name {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* =========================================
   7. BLOG POST CONTENT (.content)
   ========================================= */
.content {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

.content h1,
.content h2,
.content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.content h1 {
    font-size: 2.2rem;
}

.content h2 {
    font-size: 1.8rem;
}

.content h3 {
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content ul,
.content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--gray-dark);
}

.content aside {
    background-color: var(--gray-light);
    /* border-left: 4px solid var(--accent-color); */
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-main);
}

.content img {
    margin: 1.5rem auto;
    border-radius: 5px;
}

.content pre {
    background: #2d2d2d;
    color: #ccc;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.content code {
    font-family: var(--font-code);
    background: #eee;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    padding: 3rem 0;
    background-color: #161616;
    color: #aaa;
    text-align: center;
    margin-top: auto;
}

.footer a {
    color: #aaa;
}

.footer a:hover {
    color: white;
}

.footer-btn {
    background-color: #333;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.footer-btn:hover {
    background-color: white;
    color: black !important;
}

.footer p {
    transition: color 0.3s ease;
}

.footer p:hover {
    color: #fff !important;
}

/* =========================================
   9. SYNTAX HIGHLIGHTING (Pygments)
   ========================================= */
.highlight .hll {
    background-color: #333333;
}

.highlight {
    color: #ffffff;
}

.highlight .c {
    color: #008800;
    font-style: italic;
}

/* Comment */
.highlight .err {
    color: #ffffff;
}

/* Error */
.highlight .g {
    color: #ffffff;
}

/* Generic */
.highlight .k {
    color: #fb660a;
    font-weight: bold;
}

/* Keyword */
.highlight .l {
    color: #ffffff;
}

/* Literal */
.highlight .n {
    color: #ffffff;
}

/* Name */
.highlight .o {
    color: #ffffff;
}

/* Operator */
.highlight .x {
    color: #ffffff;
}

/* Other */
.highlight .p {
    color: #ffffff;
}

/* Punctuation */
.highlight .cm {
    color: #008800;
    font-style: italic;
}

/* Comment.Multiline */
.highlight .cp {
    color: #ff0007;
    font-weight: bold;
    font-style: italic;
}

/* Comment.Preproc */
.highlight .c1 {
    color: #008800;
    font-style: italic;
}

/* Comment.Single */
.highlight .cs {
    color: #008800;
    font-style: italic;
}

/* Comment.Special */
.highlight .gd {
    color: #ffffff;
}

/* Generic.Deleted */
.highlight .ge {
    color: #ffffff;
}

/* Generic.Emph */
.highlight .gr {
    color: #ffffff;
}

/* Generic.Error */
.highlight .gh {
    color: #ffffff;
    font-weight: bold;
}

/* Generic.Heading */
.highlight .gi {
    color: #ffffff;
}

/* Generic.Inserted */
.highlight .go {
    color: #444444;
    background-color: #222222;
}

/* Generic.Output */
.highlight .gp {
    color: #ffffff;
}

/* Generic.Prompt */
.highlight .gs {
    color: #ffffff;
}

/* Generic.Strong */
.highlight .gu {
    color: #ffffff;
    font-weight: bold;
}

/* Generic.Subheading */
.highlight .gt {
    color: #ffffff;
}

/* Generic.Traceback */
.highlight .kc {
    color: #fb660a;
    font-weight: bold;
}

/* Keyword.Constant */
.highlight .kd {
    color: #fb660a;
    font-weight: bold;
}

/* Keyword.Declaration */
.highlight .kn {
    color: #fb660a;
    font-weight: bold;
}

/* Keyword.Namespace */
.highlight .kp {
    color: #fb660a;
}

/* Keyword.Pseudo */
.highlight .kr {
    color: #fb660a;
    font-weight: bold;
}

/* Keyword.Reserved */
.highlight .kt {
    color: #cdcaa9;
    font-weight: bold;
}

/* Keyword.Type */
.highlight .ld {
    color: #ffffff;
}

/* Literal.Date */
.highlight .m {
    color: #0086f7;
    font-weight: bold;
}

/* Literal.Number */
.highlight .s {
    color: #0086d2;
}

/* Literal.String */
.highlight .na {
    color: #ff0086;
    font-weight: bold;
}

/* Name.Attribute */
.highlight .nb {
    color: #ffffff;
}

/* Name.Builtin */
.highlight .nc {
    color: #ffffff;
}

/* Name.Class */
.highlight .no {
    color: #0086d2;
}

/* Name.Constant */
.highlight .nd {
    color: #ffffff;
}

/* Name.Decorator */
.highlight .ni {
    color: #ffffff;
}

/* Name.Entity */
.highlight .ne {
    color: #ffffff;
}

/* Name.Exception */
.highlight .nf {
    color: #ff0086;
    font-weight: bold;
}

/* Name.Function */
.highlight .nl {
    color: #ffffff;
}

/* Name.Label */
.highlight .nn {
    color: #ffffff;
}

/* Name.Namespace */
.highlight .nx {
    color: #ffffff;
}

/* Name.Other */
.highlight .py {
    color: #ffffff;
}

/* Name.Property */
.highlight .nt {
    color: #fb660a;
    font-weight: bold;
}

/* Name.Tag */
.highlight .nv {
    color: #fb660a;
}

/* Name.Variable */
.highlight .ow {
    color: #ffffff;
}

/* Operator.Word */
.highlight .w {
    color: #888888;
}

/* Text.Whitespace */