@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400&display=swap');

:root {
  --text-color: #eee;
  --bg-color: #090909;
  --accent-color: #4fb3f0;
  --font-body: 'Manrope', sans-serif;
}


.section-nav a {
  text-decoration: none;
  color: var(--text-color) /* default color */
  font-size: 16px;
  transition: color 0.2s;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.6;
}

/* Navigation */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-color);
  padding: 1rem 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.main-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover {
  border-color: var(--text-color);
}

.main-nav a.active {
  border-color: var(--text-color);
}

/* Main layout */
.main-container {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 2rem;
  padding: 6rem 2rem 2rem;
}

.sidebar-left,
.sidebar-right {
  position: sticky;
  background-color: var(--bg-color);
  color: var(--accent-color);
  z-index: 1000;
  top: 7rem; /* offset for fixed nav bar */
  align-self: start;
  padding-top: 1rem;
  text-decoration: none;
  list-style: none;
}


.section-nav {
  list-style: none;
  padding: 0;
  color: var(--text-color);
  margin: 0;
}

.section-nav li {
  margin-bottom: 1rem;
  color: var(--text-color);
  text-decoration: none;
}

.section-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
}

/* Content */
.content {
  max-width: 700px;
}

.text-block {
  margin-bottom: 3rem;
}

.text-block h1 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 1rem;
}

.mail {
  color: var(--text-color);
  text-decoration: none;
  border-color:var(--text-color);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.mail:hover {
  color: var(--text-color);
    border-color:var(--text-color);
}



/* Sketches grid */
.sketch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.sketch-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.sketch-card p {
  font-size: 16px;
  color: #ccc;
}

.masonry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjusted for smaller screens */
    padding: 20px; /* Adjusted for smaller screens */
}

.grid-item {
    flex: 1 1 calc(50% - 10px); /* Adjusted for smaller screens */
    box-sizing: border-box;
    border: none;
    overflow: hidden;
    position: relative;
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4;
  overflow: hidden;
}

.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.carousel img.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 1;
}



.description {
    padding: 10px;
    background-color: #ffffff00;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 300;
    color: #646464;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr 4fr;
  }

  .sidebar-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    gap: 1rem;
  }

  .main-container {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 2rem;
  }

  .sidebar-left {
    order: 1;
    overflow: fixed;
    margin-top: 2rem;
  }

  .content {
    order: 1;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .main-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .main-container {
    padding: 5rem 1rem;
  }

  .text-block h1 {
    font-size: 22px;
  }

  .section-nav a {
    font-size: 14px;
  }

  .sketch-card p {
    font-size: 14px;
  }
}
