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

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', 'Menlo', 'Consolas', monospace;
    overflow-x: hidden;
}

/* Default Dark Mode */
html {
    background-color: #161925;
    color: #D9E0EE;
}

/* Terminal Wrapper */
.terminal {
    padding: 20px;
    max-width: 100vw;
}

/* Tab Navigation */
.tab {
    display: inline-flex;
    padding: 0 20px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: 0 1em 1em 0;
    color: #D9E0EE;
    background-color: #161925;
}

.tab + .tab {
    margin-left: -10px;
}

.tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background-color: #161925;
    border-top-right-radius: 100%;
    border-bottom-right-radius: 100%;
}

.tab.active {
    color: #f38ba8;
    background-color: #333A56;
}

.tab:hover {
    background-color: #444B6E;
}

/* Links */
.blog-list a,
.ls-output a {
    color: #f38ba8;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-list a:hover,
.ls-output a:hover {
    color: #D79921;
}

/* General Content Styling */
.general-info {
    margin-top: 20px;
    margin-bottom: 30px;
}

.general-info h2 {
    color: #f38ba8;
    margin-bottom: 20px;
    border-bottom: 1px solid #444B6E;
    padding-bottom: 5px;
}

.general-info h3 {
    margin-top: 20px;
    color: #f38ba8;
}

.general-info ul {
    list-style: none;
    padding: 0;
    margin-left: 20px;
    margin-bottom: 15px;
}

.general-info li {
    margin-bottom: 5px;
}

/* Card View for Projects */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #333A56;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card h3 {
    margin-top: 0;
    color: #f38ba8;
}

.card p {
    margin: 10px 0;
}

/* Highlighting */
.highlight-yellow {
    color: #f1fa8c;
    font-weight: bold;
}

.highlight-green {
    color: #50fa7b;
}

.highlight-blue {
    color: #458588;
}

/* About Page Styling */
p {
  margin-bottom: 15px;
}
body {
    background-color: #161925; /* Dark terminal background */
    color: #D9E0EE; /* Soft white text */
    font-family: 'CaskaydiaCove Nerd Font', monospace;
    margin: 0;
    padding: 0;
}

.content.about {
    padding: 20px;
    line-height: 1.6;
    background-color: #333A56;
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
}

/* Competencies Styling */
.competencies {
    margin-top: 30px;
}

.competencies h2 {
    color: #f38ba8;
    margin-bottom: 20px;
    border-bottom: 1px solid #444B6E;
    padding-bottom: 5px;
}

.competencies ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.competencies li {
    background-color: #444B6E;
    padding: 10px 15px;
    border-radius: 5px;
    transition: transform 0.2s;
}

.competencies li:hover {
    transform: translateY(-5px);
    background-color: #555C80;
}

/* Blog List Styling */
.ls-output {
    margin-top: 20px;
}

.ls-output pre {
    margin-top: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #D9E0EE;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to {
        background-color: transparent;
    }
    50% {
        background-color: #D9E0EE;
    }
}

/* --- Light Mode (Gruvbox Theme) --- */
html:has(#theme-checkbox:checked) {
    background-color: #f2e5bc;
    color: #3c3836;
}

html:has(#theme-checkbox:checked) .terminal {
    background-color: #f2e5bc;
    color: #3c3836;
}

/* Light Mode Tabs */
html:has(#theme-checkbox:checked) .tab {
    background-color: #f2e5bc;
    color: #3c3836;
}

html:has(#theme-checkbox:checked) .tab::before {
    background-color: #f2e5bc;
}

html:has(#theme-checkbox:checked) .tab.active {
    color: #d65d0e;
    background-color: #ebdbb2;
}

html:has(#theme-checkbox:checked) .tab:hover {
    background-color: #bdae93;
}

/* Light Mode Cards */
html:has(#theme-checkbox:checked) .card {
    background-color: #d5c4a1;
    color: #3c3836;
}

html:has(#theme-checkbox:checked) .card h3 {
    color: #b57614;
}

/* Light Mode Competencies */
html:has(#theme-checkbox:checked) .competencies li {
    background-color: #bdae93;
}

html:has(#theme-checkbox:checked) .competencies li:hover {
    background-color: #d5c4a1;
}

/* Light Mode Highlights */
html:has(#theme-checkbox:checked) .highlight-green {
    color: #98971a;
}

html:has(#theme-checkbox:checked) .highlight-yellow {
    color: #b57614;
}

html:has(#theme-checkbox:checked) .content.about {
    background-color: #d5c4a1;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 15px;
    right: 30px;
}

#theme-checkbox {
    display: none; /* Hidden checkbox */
}

.icon-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    display: inline-block;
    transition: color 0.3s;;
}

/* Icon Design */
.icon-toggle::before {
    content: '🌕';
}

/* Switch to Sun Icon when Checked */
#theme-checkbox:checked + .icon-toggle::before {
    content: '🌑';
}



/* Theme Link Styling */
.toggle-light, .toggle-dark {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Default: dark mode */
.toggle-dark {
    display: none;
}

.toggle-light {
    display: flex;
}

.light-only {
    display: none;
}

.dark-only {
    display: inline-flex;
}

/* When theme-light is targeted */
html:has(#theme-light:target) {
    background-color: #f2e5bc;
    color: #3c3836;
}

html:has(#theme-light:target) .toggle-dark {
    display: flex;
}

html:has(#theme-light:target) .toggle-light {
    display: none;
}

html:has(#theme-light:target) .light-only {
    display: inline-flex;
}

html:has(#theme-light:target) .dark-only {
    display: none;
}

/* Continue with your existing light theme styles, replacing the old selector */
html:has(#theme-light:target) .terminal {
    background-color: #f2e5bc;
    color: #3c3836;
}

html:has(#theme-light:target) .tab {
    background-color: #f2e5bc;
    color: #3c3836;
}

html:has(#theme-light:target) .tab::before {
    background-color: #f2e5bc;
}

html:has(#theme-light:target) .tab.active {
    color: #d65d0e;
    background-color: #ebdbb2;
}

html:has(#theme-light:target) .tab:hover {
    background-color: #bdae93;
}

/* Light Mode Cards */
html:has(#theme-light:target) .card {
    background-color: #d5c4a1;
    color: #3c3836;
}

html:has(#theme-light:target) .card h3 {
    color: #b57614;
}

/* Light Mode Competencies */
html:has(#theme-light:target) .competencies li {
    background-color: #bdae93;
}

html:has(#theme-light:target) .competencies li:hover {
    background-color: #d5c4a1;
}

/* Light Mode Highlights */
html:has(#theme-light:target) .highlight-green {
    color: #98971a;
}

html:has(#theme-light:target) .highlight-yellow {
    color: #b57614;
}

html:has(#theme-light:target) .highlight-blue {
    color: #076678;
}

html:has(#theme-light:target) .content.about {
    background-color: #d5c4a1;
}