:root{
    /* Background colours */
    --bg-main: #0b0f0c;
    --bg-elevated: #101512;
    --bg-hover: #16201a;

    /* Text colours */
    --text-primary: #f8f8f8;
    --text-secondary: #dddddd;
    --text-muted: #838487;

    /* Accent colours */
    --accent: #abe24c;
    --accent-hover: #c4f36a;
    --accent-soft: rgba(171, 226, 76, 0.15);

    /* UI colours */
    --ui-border-color: #272a2a;
}


body{
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

/* Loading styles */

.site-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.site-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.terminal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}

.terminal {
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
  52% { opacity: 0.9; }
  55% { opacity: 1; }
}

.line {
  margin-bottom: 6px;
  white-space: nowrap;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 1s infinite;
}

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

.line:last-child {
  color: var(--accent-hover);
}

/* Header styles */

.header{
  border-bottom: 1px solid var(--ui-border-color);
  background: rgba(11, 15, 12, 0.95); /* solid but slightly glassy */
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(11,15,12,0.6), transparent);
  pointer-events: none;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-weight: 500;
  font-size: 1.5em;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav{
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 10px 16px 14px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted); 
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav a + a {
  margin-left: 12px;
}

.nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.01);
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: var(--accent);
}

.nav-indicator {
  width: 6px;
  height: 6px;
  margin-left: 18px;
  background: var(--accent);
  border-radius: 50%;
}

/* Hero styles */
.hero {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size: 40px 40px;

  opacity: 0.4;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('../assets/images/noise.png');

  opacity: 0.06;
  pointer-events: none;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 0 32px;
}

.hero-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ui-border-color);
  opacity: 0.3;
}

.hero-container::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;

  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(80px);

  opacity: 0.6;
  pointer-events: none;
}

.hero-title {
  font-size: 88px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.hero-title span {
  color: var(--accent);
}

.hero-bottom {
  gap: 20px;
  margin-top: 10px;
}

.hero-intro {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 20px;
  margin-left: 0;
}

.hero-sub {
font-family: 'JetBrains Mono', monospace;    
font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 340px;
  margin-bottom: 32px;
}

.hero-actions {
  gap: 20px;
  margin-left: 0;
}

.btn-primary {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 16px;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 8px var(--accent-soft);
}

.btn-secondary {
  margin-left: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
}

.btn-secondary:hover {
  color: var(--text-primary);
}

.hero-ui {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  pointer-events: none; /* makes sure it doesn’t block clicks */
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);

  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.6; }
  100% { transform: translateY(0); opacity: 1; }
}


.hero-meta {
  position: absolute;
  right: 32px;
  bottom: 0;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.hero-meta span:nth-child(2),
.hero-meta span:nth-child(4) {
  color: var(--accent);
}

/* Work section styles */

.work {
  padding: 120px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
    background: linear-gradient(
    to bottom,
    var(--bg-main),
    var(--bg-elevated) 20%,
    var(--bg-elevated)
  );
}

.work:::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('../assets/images/noise.png');

  pointer-events: none;
}


.work-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 1.2px;
  margin-bottom: 40px;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.view-all {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
}

.view-all::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.view-all:hover {
  color: var(--accent);
}
.view-all i {
  margin-left: 6px;
  transition: 0.2s ease;
}

.view-all:hover i {
  transform: translate(4px, -2px);
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid var(--ui-border-color);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: 0.2s ease;
  position: relative;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
  z-index: 3;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 10px 30px rgba(0,0,0,0.4);
}

.project-card:hover::after {
  opacity: 0.7;
}

.project-card:hover::before {
  width: 100%;
}

.project-image {
  height: 180px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
  filter: brightness(0.85);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
  filter: brightness(1);
}

.project-content {
  padding: 16px;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

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

.project-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-title h3 {
  font-size: 18px;
}

.project-title span {
  color: var(--accent);
}

.project-tags {
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
}
.project-title i {
  color: var(--accent);
  font-size: 16px;
  transition: 0.2s ease;
}

.project-card:hover .project-title i {
  transform: translate(3px, -3px);
}

.project-card-link {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  display: block;
  color: inherit;
  text-decoration: none;
}

/* About section styles */

.about-contact {
  padding: 120px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  position: relative;
}

.about-contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 140px; 
  position: relative;
}

/* vertical divider */
.about-contact-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--ui-border-color);
  opacity: 0.3;
}

/* ABOUT */

.about-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 42px;
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-title span {
  color: var(--accent);
}

.about-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 480px;
}

/* CONTACT */

.contact-title {
  font-size: 42px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 200;
  margin-bottom: 16px;
}

.contact-title span {
  color: var(--accent);
}

.contact-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 360px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;

  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  text-decoration: none;
  color: var(--accent);

  transition: 0.2s ease;
}

.contact-links a:hover {
  transform: translateX(4px);
  color: var(--accent-hover);
}

.contact-links i {
  font-size: 18px;
}

.contact-links a:hover i {
  filter: drop-shadow(0 0 6px var(--accent-soft));
}

/* Footer styles */

.footer {
  border-top: 1px solid var(--ui-border-color);
  padding: 80px 0 40px;
  background: var(--bg-main);
  position: relative;
}

/* subtle texture like rest of site */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/noise.png');
  opacity: 0.04;
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 1.4em;
  margin-bottom: 16px;
  position: relative;
}

.footer-logo::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0.4;
  filter: blur(20px);
  z-index: -1;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.2s ease;
  opacity: 0.7;
}

.footer-right a:hover {
  color: var(--accent);
}

/* bottom strip */
.footer-bottom {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.03);

  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;

  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.footer-right a::after {
  content: "";
  display: block;
  height: 1px;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
  margin-top: 4px;
}

.footer-right a:hover::after {
  width: 100%;
}