/* 1. Global Font-Face & Variables (unchanged) */
@font-face {
    font-family: 'Cybertruck';
    src: url('./Cybertruck-RegularTTF.ttf') format('truetype');
}

:root {
    --primary-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --cybertruck-font: 'Cybertruck', var(--primary-font);
}

/* 2. Body & Container */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000;
    color: #fff;
    font-family: var(--primary-font);
    line-height: 1.6;
}

.container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 80px; /* space for footer */
}

/* 3. Content & Font Switching */
.content {
    text-align: left;
    margin-top: 2rem;
    transition: all 0.5s ease;
    opacity: 1;
}

.content.cybertruck-font * {
    font-family: var(--cybertruck-font) !important;
    /* font-size: 1.4em !important; */
    transition: all 0.5s ease;
}

.content.switching {
    opacity: 0;
    transform: scale(0.98);
}

/* 4. Headings & Paragraphs */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* 5. Projects Section */
#projects {
    margin-top: 3rem; /* space above Projects section */
    /* No extra left/right padding so it aligns with .container */
}

#projects h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project {
    padding: 1rem;
    border: 1px solid #fff;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
}

/* 6. Footer & Toggle Button */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    transform: translateY(100%);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
}

footer.visible {
    transform: translateY(0);
}

.toggle-btn {
    background: #333;
    color: #fff;
    border: 1px solid #fff;
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 0.3s ease;
    margin-left: 1rem;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.toggle-btn:hover {
    background: #444;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Square icon for default font */
.toggle-btn.default-font::before {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
}

/* Triangle icon for cybertruck font */
.toggle-btn.cybertruck-font::before {
    width: 16px;
    height: 16px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: transparent;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.project a {
    display: block;         /* Make the link fill the article */
    color: inherit;         /* Keep text color the same */
    text-decoration: none;  /* Remove underline */
  }
  