/* Basic styles */
html {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}
body {
    background: #f4f6f4;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

/* Navbar styles */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #23d18b;
    box-shadow: 0 0 5px #23d18b;
}

/* Navbar brand and/or logo */
.navbar-brand {
    font-family: 'JetBrains Mono', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: #1a2e22;
    cursor: default;
    pointer-events: none;
    font-weight: bold;
}

/* Hamburgermenu button styles */
.navbar-toggler {
    border-color: #23d18b;
    font-size: 0.7rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2323d18b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigation links styles */
.navbar-nav .nav-link {
    color: #1a2e22;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    padding-left: 1rem;
    padding-right: 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
    font-family: 'JetBrains Mono', sans-serif;
}
.navbar-nav .nav-link:hover {
    color: #23d18b;
    border-bottom: 1px solid #23d18b;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Theme toggle button styles */
.theme-toggle {
    border: 1px solid #23d18b;
    color: #23d18b;
    background: transparent;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    padding: 0.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', sans-serif;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 5px #23d18b;
}

.sidebar {
    border-right: 1px solid #23d18b;
    height: 100vh;
    top: 0;
    position: sticky;
    padding-top: 5rem;
    display: flex;
    flex-direction: column;
}

.blog-feed {
    padding: 1rem;
    overflow-y: hidden;
    flex: 1;
}

.chat-bot {
    height: 35vh;
    flex-shrink: 0;
}

/* Site's right content settings */
#rightContent {
    overflow-y: auto;
    height: calc(100vh-70px);
    position: sticky;
    margin-top: 70px;
}

/* Hero image settings */
.hero-image {
    position: relative;
}
.hero-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.code-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 1;
    text-align: left;
    font-family: 'JetBrains Mono', sans-serif;
    color: #23d18b;
    white-space: pre-wrap;
    cursor: default;
    pointer-events: none;
    padding: 1rem;
}

/* Headers / labels / text settings */
.header {
    font-family: 'JetBrains Mono', sans-serif;
    color: #1a2e22;
    margin-top: 2rem;
}
.section-label {
    font-family: 'JetBrains Mono', sans-serif;
    color: #1a2e22;
}
.body-text {
    font-family: 'Space Grotesk', sans-serif;
    color: #1a2e22;
    letter-spacing: 1px;
}
.stack-cat-label {
    font-family: 'JetBrains Mono', sans-serif;
    color: #1a2e22;
}

.section-sep {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, #23d18b, #0d1117);
    border-radius: 3px;
    margin: 3rem 0rem;
}

/* Tech stack section badges */
.tech-badge {
    background: #f4f6f4;
    border: 1px solid #23d18b;
    font-family: 'JetBrains Mono', sans-serif;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    cursor: default;
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}
.tech-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--badge-color);
    border: 1px solid var(--badge-color);
}

.tech-cat {
    position: relative;
    margin-top: 2rem;
}

.tech-cat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-top: 2px solid #23d18b;
    border-left: 2px solid #23d18b;
}

.tech-cat::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-bottom: 2px solid #23d18b;
    border-right: 2px solid #23d18b;
}

.card {
    background: #f4f6f4;
    border: 1px solid #23d18b;
    border-radius: 5px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.card:hover {
    transform: scale(1.01);
    box-shadow: 0 0 10px #23d18b;
    border: 1px solid #23d18b;
}

/* Dark theme styles */
[data-theme="dark-theme"] body {
    background: #0d1117;
}

[data-theme="dark-theme"] .navbar {
    background: #161b22;
}

[data-theme="dark-theme"] .navbar-brand {
    color: #e6edf3;
}

[data-theme="dark-theme"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e6edf3' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark-theme"] .navbar-nav .nav-link {
    color: #e6edf3;
}

[data-theme="dark-theme"] .navbar-nav .nav-link:hover {
    color: #23d18b;
}

[data-theme="dark-theme"] .header {
    color: #e6edf3;
}

[data-theme="dark-theme"] .section-label {
    color: #e6edf3;
}

[data-theme="dark-theme"] .stack-cat-label {
    color: #e6edf3;
}

[data-theme="dark-theme"] .body-text {
    color: #e6edf3;
}

[data-theme="dark-theme"] .section-sep {
    background: linear-gradient(90deg, #23d18b, #e6edf3);
}

[data-theme="dark-theme"] .tech-badge {
    background: #0d1117;
    border: 1px solid #23d18b;
    color: #e6edf3;
}

[data-theme="dark-theme"] .tech-badge:hover {
    border: 1px solid var(--badge-color);
}

[data-theme="dark-theme"] .card {
    background: #0d1117;
}

/* Animates */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}