@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --subtitle-color: #666666;
  --accent-color: #FF5722;
  --hover-accent: #D84315;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --subtitle-color: #cccccc;
  --accent-color: #FF5722;
  --hover-accent: #ff7a47;
}

body {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;  /* Made base text slightly bolder */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;  /* Changed to allow footer at bottom */
    font-size: 1.1rem;  /* Slightly larger base font size */
}

.container {
    flex: 1;  /* Takes remaining space */
    width: 90%;
    max-width: 650px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;  /* Reduced from 3.5rem to make spacing more consistent */
    padding-bottom: 60px; /* Adjust this value based on your footer height */
}

.header-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;  /* Reduced from 1.2rem */
    margin-top: 0.5rem;  /* Reduced from 3rem */
    margin-bottom: 1.5rem;  /* Reduced from 2rem */
}

.title-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;  /* Reduced from 1rem */
    margin-bottom: -0.5rem;  /* Added negative margin to pull subtitle closer */
}

h1 {
    font-size: 2.2rem;  /* Was likely 2rem before */
    color: var(--accent-color);
    margin: 0;
    font-weight: 700;  /* Increased from 400 to 700 */
    min-height: 3.5rem;
    text-transform: lowercase;
}

.subtitle {
    color: var(--subtitle-color);
    font-size: 1.1rem;  /* Was likely 1.1rem before */
    font-weight: 500;  /* Added medium weight */
    letter-spacing: 1px;
    text-transform: lowercase;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

.description {
    color: var(--subtitle-color);
    font-size: 1.15rem;  /* Was likely 1rem before */
    line-height: 1.8;
    text-transform: lowercase;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 1rem;  /* Reduced from 1.2rem */
    margin-bottom: 1.5rem;  /* Reduced from 2rem */
}

h2 {
    font-size: 1.8rem;  /* Was likely 1.6rem before */
    color: var(--text-color);
    margin: 0;
    font-weight: 700;  /* Increased from 400 to 700 */
    text-transform: lowercase;
    position: relative;  /* For consistent alignment */
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: var(--accent-color);
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

li {
    padding: 0.5rem 0;
    transition: transform 0.2s ease;
}

li:hover {
    transform: translateX(8px);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--accent-color);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

footer {
    width: 100%;
    padding: 1rem 0;  /* Reduced from 2rem */
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--subtitle-color);
    text-transform: lowercase;
    border-top: 3px solid var(--accent-color);
}

.footer-content {
    width: 90%;
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1rem;  /* Reduced from 2rem */
}

.footer-content a {
    color: var(--subtitle-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-content .separator {
    color: var(--accent-color);
    margin: 0 0.5rem;
}

.resources-list {
    margin-top: 2rem;
}

.resource-item {
    margin-bottom: 1.5rem;
}

.resource-item h3 {
    margin-bottom: 0.5rem;
}

.resource-link {
    color: inherit;
    text-decoration: none;  /* Remove default underline */
    position: relative;
    transition: color 0.2s;
}

.resource-link:hover {
    color: var(--accent-color);  /* Your orange accent color */
}

/* Remove the underlines from h2 and h3 links specifically */
h2 .resource-link, 
h3 .resource-link {
    border-bottom: none;
    text-decoration: none;
}

/* Optional: If you want a subtle hover effect, you can add this */
.resource-link:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(1);
    transition: transform 0.2s;
}

.sticky-footer {
    background-color: var(--bg-color); /* Or whatever color matches your design */
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(45deg);
}

.theme-toggle svg {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}