:root {
  --bg-color: #f7f7f5;
  --text-primary: #1a1a1a;
  --text-muted: #666666;
  --border-color: #dcdcdc;
  --grid-color: rgba(0, 0, 0, 0.04);
  --accent-color: #3f5e51; /* Urban green metallic */
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-tech: 'Montserrat', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle Blueprint Grid Background */
.grid-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
}

/* Typography */
h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dot {
  color: var(--accent-color);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(247, 247, 245, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tech-domain {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* Hero Section */
.hero-section {
  padding: 8rem 4rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content .mono-label {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.2rem 0.5rem;
  background: var(--text-primary);
  color: var(--bg-color);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  max-width: 600px;
}

/* Projects Section */
.projects-section {
  padding: 6rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.section-heading {
  font-size: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

.project-card {
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online { background-color: var(--accent-color); }
.status-dot.offline { background-color: transparent; border: 1px solid var(--text-muted); }

.project-img {
  height: 250px;
  background-color: #eaeaea;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border-color);
  filter: grayscale(80%) contrast(1.1);
  transition: filter 0.3s ease;
}

.project-card:hover .project-img {
  filter: grayscale(0%) contrast(1);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.btn-outline {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Chilled Scroll Reveals */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .scroll-reveal {
      view-timeline: --reveal block;
      animation: reveal-anim auto ease-out both;
      animation-timeline: --reveal;
      animation-range: entry 5% cover 20%;
    }

    @keyframes reveal-anim {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
}

/* Footer */
footer {
  padding: 4rem;
  border-top: 1px solid var(--border-color);
  background: #fdfdfd;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 1rem 2rem; }
  .hero-section { padding: 4rem 2rem; }
  .projects-section { padding: 4rem 2rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  footer { padding: 2rem; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}

.more-projects-indicator {
  text-align: center;
  padding: 4rem 0 6rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}
.chevron-down {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  transform: rotate(45deg);
  margin: 1.5rem auto 0;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
  40% { transform: translateY(-15px) rotate(45deg); }
  60% { transform: translateY(-7px) rotate(45deg); }
}
