/* --- 1. BASE SETTINGS & TEXTURE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;

  /* The Grid Pattern */
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);

  background-blend-mode: overlay; /* slightly transparent*/

  /* The slow, continuous panning animation */
  animation: movingGrid 15s linear infinite;
}

/* Shifts the background*/
@keyframes movingGrid {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

h2 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 1.4rem;
}

/* --- 2. MAIN LAYOUT --- */
.app-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  gap: 3rem;
  min-height: 100vh;
}

/* --- 3. LEFT SIDE: PROFILE (h-card) --- */
.profile-sidebar {
  flex: 0 0 320px;
  background-color: var(--surface-color);
  padding: 2rem;
  border: 3px solid var(--border-color);
  box-shadow: 8px 8px 0px var(--border-color);

  position: sticky;
  top: 3rem;
  height: fit-content;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}

/* Grayscale photo filter */
.profile-image {
  width: 150px;
  height: 150px;
  border: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--bg-color);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(120%);
  transition: filter 0.4s ease;
}

/* Reveal color on hover! */
.profile-image img:hover {
  filter: grayscale(0%) contrast(100%);
}

.profile-sidebar h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.profile-sidebar a {
  color: var(--text-primary);
  text-decoration: none;
}

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

.status-badge {
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
  width: 100%;
}

.social-links a {
  font-family: var(--font-mono);
  font-weight: bold;
  text-align: center;
  padding: 0.6rem;
  border: 2px solid var(--border-color);
  background-color: var(--bg-color);
  transition: all 0.1s;
  text-decoration: none !important; /* Overrides the underline */
}

/* Hover: Inverts colors and adds a harsh drop shadow */
.social-links a:hover {
  background-color: var(--text-primary);
  color: var(--bg-color) !important;
  box-shadow: 4px 4px 0px var(--accent-color);
  transform: translate(-2px, -2px);
}

/* Active: Presses the button down */
.social-links a:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--accent-color);
}

.social-links a:visited {
  color: var(--text-primary); 
}

/* --- 4. RIGHT SIDE: CONTENT & NAV --- */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 120px; /* Space for the fixed nav */
}

/* --- 5. NAVIGATION (Fixed Right) --- */
.top-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;

  position: fixed;
  right: 2rem;
  top: 3rem;
  z-index: 10;
}

.top-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}

.top-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.top-nav a:hover {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

#theme-toggle {
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: bold;
  box-shadow: 3px 3px 0px var(--border-color);
  transition: all 0.1s;
}

#theme-toggle:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px 0px var(--border-color);
}

/* --- 6. GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Makes a box stretch across both columns */
.span-two {
  grid-column: span 2;
}

.bento-item {
  background-color: var(--surface-color);
  padding: 2.5rem;
  border: 3px solid var(--border-color);
  box-shadow: 6px 6px 0px var(--border-color); /* shadow */
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

/* Interactive press effect */
.bento-item:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0px var(--border-color);
}

/* Custom List Styling */
.brutalist-list {
  list-style-type: square;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 100%;
  height: auto;
}

.brutalist-list li::marker {
  color: var(--accent-color);
}

/* --- 8. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
    padding: 1rem;
  }

  .content-wrapper {
    padding-right: 0;
  }

  .profile-sidebar,
  .top-nav {
    position: static;
    width: 100%;
    flex: auto;
  }

  .top-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }

  .top-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: span 1;
  }
}
/* --- 9. BRUTALIST FOOTER --- */
.brutalist-footer {
    margin-top: 3rem; 
    padding: 1.5rem;
    border: 3px solid var(--border-color);
    background-color: var(--surface-color);
    text-align: center;
    
    /* Terminal/Typewriter styling */
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* The signature brutalist shadow */
    box-shadow: 6px 6px 0px var(--border-color);
    
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brutalist-footer p {
    color: var(--text-secondary);
}

/* Make it pop slightly when hovered */
.brutalist-footer:hover {
    border-color: var(--accent-color);
}