@font-face {
    font-family: 'JetBrains Mono';
    src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2') format('woff2');
}

:root {
    --text-primary: #1a1a1a;
    --background: #ffffff;
    --line-color: #ddd;
}

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

body {
    font-family: "Source Serif 4", serif;
    line-height: 1.6;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10;
    border-bottom: 1px solid var(--line-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    padding: 0 0rem;
}

.logo {
    font-family: "Source Serif 4", serif;
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.1rem 0.5rem;
    transition: all 0.2s ease;
}

.logo:hover {
    background: var(--text-primary);
    color: var(--background);
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    margin-left: 2.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.1rem 0.5rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--text-primary);
    color: var(--background);
    text-decoration: none;
}

.main-content {
    min-height: calc(100vh - 4rem);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vanta-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.nodes-container {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 5rem 2rem 0;
    z-index: 2;
}

.connecting-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 0 2rem;
}

.connecting-lines svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connecting-lines line {
    stroke: var(--text-primary);
    stroke-width: 1px;
    opacity: 0.5;
}

.node {
    position: absolute;
    width: min(400px, 30vw);
    z-index: 2;
    background: transparent;
    padding: 1.5rem;
    border-radius: 4px;
    backdrop-filter: blur(0px);
}

.node-title {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: inline-block;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.1rem 0rem;
    transition: all 0.2s ease;
    z-index: 3;
}

.node-title:hover {
    background: var(--text-primary);
    color: var(--background);
}

.node-title::after {
    content: "→";
    margin-left: 0.5rem;
}

.node-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-family: "Source Serif 4", serif;
}

.node-left {
    left: 2rem;
    top: 5%;
}

.node-right-top {
    right: 0rem;
    top: 50%;
    transform: translateY(-100%);
}

.node-right-bottom {
    right: 10%;
    top: 100%;
    transform: translateY(-100%);
}

.line-connector {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    z-index: 2;
}

.line-connector.left {
    right: 0.5rem;
    top: 2rem;
}

.line-connector.right-top {
    left: 0rem;
    top: 2rem;
}

.line-connector.right-bottom {
    left: 0rem;
    top: 2rem;
}

.center-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.project-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0rem;
}

.project-icon {
    width: 40px;
    height: 40px;
    border: 1px dashed var(--line-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-icons a {
    text-decoration: none;
    color: var(--text-primary);
}

.project-icons a:hover .project-icon {
    background: var(--text-primary);
    color: var(--background);
    border-style: solid;
    transform: translateY(-2px);
}

footer {
    position: relative;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    background: #000000;
    color: #ffffff;
    margin-top: 0rem;
    z-index: 3;
}

@media (max-width: 768px) {
    .node {
        width: 80vw;
        position: relative;
        margin: 1rem auto;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .nodes-container {
        display: flex;
        flex-direction: column;
        padding: 2rem;
        height: auto;
    }

    .line {
        display: none;
    }

    .nav-links {
        display: none;
    }

    nav {
        padding: 0 1rem;
    }
}

.page-content {
    margin-top: 5rem;
    padding: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 10rem);
}

.page-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 3rem;
    font-family: "Source Serif 4", serif;
    font-weight: 400;
    max-width: 1000px;
}

.page-content p {
    margin-bottom: 1.5rem;
    font-family: "Source Serif 4", serif;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.8rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-container p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
    }
    
    .content-container p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1920px) {
    .page-title {
        font-size: 4rem;
    }
    
    .content-container p {
        font-size: 1.5rem;
    }
}

.project-list, .contact-section, .policy-section, .terms-section {
    margin-top: 2rem;
}

.project-item {
    margin-bottom: 0rem;
}

.project-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "Source Serif 4", serif;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "Source Serif 4", serif;
}

.form-container {
    margin-top: 2rem;
    width: 100%;
    background: transparent;
}

.form-container iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    background: transparent;
}

@media (max-width: 768px) {
    .form-container iframe {
        min-height: 600px; /* Slightly taller on mobile for better usability */
    }
}

/* Project Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 0rem;
}

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

/* Project Item Styling */
.project-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0px;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

/* Project Icons */
.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 0px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat { background: #E8F5E9; }
.terminal { background: #E3F2FD; }
.qr { background: #FFF3E0; }

/* Project Stats */
.project-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.star-icon, .fork-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
}

.star-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.75.75 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25z'/%3E%3C/svg%3E");
}

.fork-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z'/%3E%3C/svg%3E");
}

/* Project Links */
.project-links {
  margin-top: 1rem;
}

.button-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 0px;
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.button-tag:hover {
  background: #e0e0e0;
}

/* Project Description */
.project-item p {
  color: #666;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0.75rem 0;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .projects-grid {
    gap: 1rem;
  }

  .project-item {
    padding: 1rem;
  }

  .project-icon {
    width: 40px;
    height: 40px;
  }
}

/* Projects page specific styles */
.projects-page .content-container p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.projects-page .project-item {
    font-family: 'JetBrains Mono', monospace;
}

.projects-page .project-item h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
}

.projects-page .project-item p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: #666;
    line-height: 1.5;
    margin: 0.75rem 0;
}

.projects-page .project-stats .stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.projects-page .button-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.projects-page .project-icon {
    width: 48px;
    height: 48px;
    border-radius: 0px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #333;
    text-transform: uppercase;
}

/* Terms and Privacy specific styles */
.terms-section,
.privacy-section {
    font-family: "Source Serif 4", serif;
}

.terms-section h2,
.terms-section h3,
.privacy-section h2,
.privacy-section h3 {
    font-family: "Source Serif 4", serif;
}

.terms-section p,
.terms-section li,
.privacy-section p,
.privacy-section li {
    font-family: "Source Serif 4", serif;
    font-size: 1rem;
    line-height: 1.6;
}

.terms-section ul,
.privacy-section ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.terms-section ul li,
.privacy-section ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.terms-section ul li:before,
.privacy-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Override any JetBrains Mono font settings for these sections */
.terms-section .content-container p,
.privacy-section .content-container p {
    font-family: "Source Serif 4", serif;
}