@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --bg-main: #0a0a0a;
    --text-main: #ededed;
    --text-muted: #888888;
    --accent: #ffffff;
    --border: #333333;
    --card-bg: #111111;
    --card-hover: #1a1a1a;
}

body.light-theme {
    --bg-main: #ffffff;
    --text-main: #171717;
    --text-muted: #666666;
    --accent: #000000;
    --border: #eaeaea;
    --card-bg: #fafafa;
    --card-hover: #f5f5f5;
}

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

body {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px; 
    margin: 0; /* Left aligned */
    padding: 6rem 8vw 2rem 8vw; /* Reduced bottom padding */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Allow flex to push footer down */
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 3rem;
    left: 8vw;
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--card-bg);
    border-color: var(--text-main);
}

/* Hero Section */
.hero {
    margin-bottom: 5rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--text-main);
    min-height: 1.2em;
}

.cursor {
    animation: blink 1s step-end infinite;
    font-weight: 400;
    color: var(--text-muted);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Section */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Cards */
.card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.simple-card {
    background: var(--card-bg);
    border: 1px dashed var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.simple-card:hover {
    background: var(--card-hover);
    border-color: var(--text-main);
    transform: translateX(4px); /* Subtle shift to the right for terminal feel */
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
}

.badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: var(--border);
    color: var(--text-main);
    border-radius: 2px;
    margin-left: 0.5rem;
}

/* Links inside card */
.card-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.link-btn {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-main);
    border: 1px dashed var(--border);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.link-btn:hover {
    background: var(--card-hover);
    border-color: var(--text-main);
}

footer {
    margin-top: auto; /* Pushes footer to the bottom */
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    visibility: hidden;
}

.fade-in.visible {
    visibility: visible;
}
