/* Gruvbox Color Scheme */
:root {
    --bg: #282828;
    --red: #cc241d;
    --green: #98971a;
    --yellow: #d79921;
    --blue: #458588;
    --purple: #b16286;
    --aqua: #689d6a;
    --light-gray: #a89984;
    --dark-gray: #928374;
    --light-red: #fb4934;
    --light-green: #b8bb26;
    --light-yellow: #fabd3f;
    --light-blue: #83a598;
    --light-purple: #d3869b;
    --light-aqua: #8ec07c;
    --fg: #ebdbb2;
    --bg0_h: #1d2021;
    --bg1: #3c3836;
    --bg2: #504945;
    --bg3: #665c54;
    --bg4: #7c6f64;
    --gray: #928374;
    --orange: #d65d0e;
    --bg0-s: #32302f;
    --fg4: #a89984;
    --fg3: #bdae93;
    --fg2: #d5c4a1;
    --fg1: #ebdbb2;
    --fg0: #fbf1c7;
    --light-orange: #fe8019;
}

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

body {
    font-family: 'Inconsolata', monospace;
    font-weight: 400;
    color: var(--fg0);
    background-color: var(--bg1);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.site-title {
    margin-bottom: 0;
    font-size: 2.5rem;
}

.site-title a {
    text-decoration: none;
    color: var(--red);
    transition: color 0.3s;
}

.site-title a:hover {
    color: var(--light-red);
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-info h2 {
    padding: 0;
    margin-top: 5px;
    color: var(--fg);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Navigation */
nav {
    margin-top: 10px;
    border-top: 1px solid var(--fg3);
}

.social-nav {
    border-top: 0 !important;
}

nav ul,
nav li {
    margin: 0;
}

nav ul.flat {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

nav ul.flat li {
    margin-right: 20px;
    margin-top: 10px;
}

nav ul.flat li a {
    color: var(--light-green);
    text-decoration: none;
    transition: color 0.3s;
}

nav ul.flat li a:hover {
    color: var(--green);
}

nav svg,
nav i {
    stroke: var(--green);
    transition: stroke 0.3s;
}

nav a:hover svg,
nav a:hover i {
    stroke: var(--light-green);
}

/* Links */
a {
    color: var(--light-green);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--red);
}

h2 {
    font-size: 2rem;
    color: var(--orange);
    margin-top: 3rem;
}

h3 {
    font-size: 1.6rem;
    color: var(--yellow);
}

h4 {
    font-size: 1.2rem;
    color: var(--green);
}

h5 {
    font-size: 1rem;
    color: var(--aqua);
}

h6 {
    font-size: 0.9rem;
    color: var(--purple);
}

/* Content */
.content {
    max-width: 900px;
    margin: auto;
}

/* Hero Section */
.hero-section {
    margin-bottom: 50px;
}

.terminal-window {
    background-color: var(--bg0_h);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.terminal-header {
    background-color: var(--bg2);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background-color: var(--light-red);
}

.terminal-dot.yellow {
    background-color: var(--light-yellow);
}

.terminal-dot.green {
    background-color: var(--light-green);
}

.terminal-body {
    padding: 20px;
    font-family: 'Inconsolata', monospace;
    font-size: 1rem;
}

.terminal-body p {
    margin-bottom: 8px;
}

.prompt {
    color: var(--light-green);
    font-weight: 700;
    margin-right: 5px;
}

.output {
    color: var(--fg0);
    padding-left: 15px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-box {
    background-color: var(--bg0_h);
    border: 2px solid var(--bg3);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--yellow);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-yellow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--fg3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Posts */
.posts {
    margin-bottom: 30px;
}

.posts .post {
    margin-bottom: 35px;
    padding: 20px;
    background-color: var(--bg0_h);
    border-left: 3px solid var(--bg3);
    border-radius: 4px;
    transition: all 0.3s;
}

.posts .post:hover {
    border-left-color: var(--yellow);
    background-color: var(--bg2);
}

.post-metadata {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--fg3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light-blue);
    display: inline-block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.post-title:hover {
    color: var(--blue);
}

.description {
    color: var(--fg2);
    font-size: 0.95rem;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.project-card {
    background-color: var(--bg0_h);
    border: 2px solid var(--bg3);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--blue);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-header h3 {
    color: var(--light-blue);
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-header svg,
.project-header i {
    stroke: var(--blue);
    width: 20px;
    height: 20px;
}

.project-header a {
    color: var(--fg3);
    transition: color 0.3s;
}

.project-header a:hover {
    color: var(--light-green);
}

.project-description {
    color: var(--fg2);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background-color: var(--bg2);
    color: var(--fg3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--bg3);
}

/* Buttons */
.view-all {
    text-align: center;
    margin: 40px 0;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--bg2);
    color: var(--light-green);
    border: 2px solid var(--green);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--green);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: right;
    font-size: 0.85rem;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--bg3);
}

footer nav {
    margin-top: 20px;
    border-top: 0;
}

footer nav ul.flat {
    justify-content: flex-end;
}

/* Code Blocks */
code {
    background-color: var(--bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Inconsolata', monospace;
    font-size: 0.9em;
}

pre {
    background-color: var(--bg0_h);
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--bg3);
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Blockquote */
blockquote {
    padding: 15px 20px;
    background-color: var(--bg2);
    border-left: 4px solid var(--yellow);
    margin: 20px 0;
    color: var(--fg2);
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid var(--fg3);
    margin: 30px 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .terminal-body {
        font-size: 0.9rem;
    }

    nav ul.flat li {
        margin-right: 15px;
    }

    footer nav ul.flat {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }
}