:root {
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --card-hover: #252525;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border-radius: 12px;
    --font-geist: 'Geist Sans', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Times New Roman', serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: url('images/dark_grid_bg.png');
    background-size: cover;
    background-repeat: repeat;
    color: var(--text-primary);
    font-family: var(--font-geist);
    display: flex;
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center; /* Keep vertical center, or use flex-start with top margin? Let's use center vertically, left horizontally */
    min-height: 100vh;
    padding-left: 10%; /* Give it some breathing room from the left */
    padding-right: 2rem;
}

.main-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem 0; /* Removing horizontal padding as we control body padding, or keep it */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed from center to flex-start */
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed from center to flex-start */
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.main-logo-img {
    height: 64px;
    width: auto;
}

.main-title {
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: 1px solid #333;
    margin-left: 0.5rem; /* Slight indent or inline with logo? logo-container has gap 1rem + img width... */
    /* Actually, user wants left aligned. Aligning with the start of the logo is best. */
    margin-left: 0; 
}

.github-link:hover {
    background-color: var(--card-hover);
}

.github-icon {
    width: 20px;
    height: 20px;
    filter: none; /* removed invert(1) so the white image remains white */
}

/* Status Message */
.status-message {
    width: 100%;
    text-align: left;
    margin-bottom: 2.5rem;
    font-family: 'Geist Mono', monospace, monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.status-line.dim {
    opacity: 0.5;
    margin-bottom: 0.2rem;
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: var(--border-radius);
    height: 80px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
    padding: 0 1.5rem;
}

.project-card:hover {
    background-color: var(--card-hover);
    border-color: #444;
    transform: translateY(-2px);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
}

.project-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#NPS_calendar_countdown {
    width: 100px;
} 

.project-icon.wide-icon {
    width: auto;
    height: 32px;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-name strong {
    font-weight: 700;
    color: #fca5a5;
}

.project-card:nth-child(1) .project-name strong {
    color: #ea580c;
}

.font-serif {
    font-family: var(--font-serif);
}

.project-text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 1rem;
    text-align: left;
}

.calendar-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.8rem;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.countdown-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.countdown-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 1px;
}
.countdown-labels {
    display: flex;
    gap: 0.5rem;
    font-size: 0.5rem;
    color: #333;
    text-transform: uppercase;
}

.calendar-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.calendar-title strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.calendar-title span {
    font-size: 0.9rem;
}

.project-card:nth-child(5) .card-content {
   justify-content: center;
}

.project-card:nth-child(5) {
    padding: 0 1rem;
}

/* Typing effect styles */
.status-message .typing-line {
    color: var(--text-secondary);
    white-space: pre; /* preserve spacing */
}

.status-message .cursor {
    display: inline-block;
    width: 10px;
    margin-left: 4px;
    background-color: var(--text-secondary);
    animation: blink 1s steps(2, start) infinite;
    vertical-align: bottom;
}

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

/* Greeting (final line) - slightly whiter */
.status-message .typing-line.greeting {
    color: var(--text-primary);
}
