body, html {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.container {
  display: flex;
  height: 100vh;
}

/* LEFT COLUMN */
.left-column {
  width: 15%;
  background-color: #333;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* BURGER MENU */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-links {
  margin-top: 20px;
}

.nav-links a {
  display: block;
  color: #000;
  text-decoration: none;
  margin: 15px 0 30px;
  font-size: 14px;
  transition: color 0.3s ease;
  padding-left: 5px;
  padding-right: 5px;
  border-left: 2px solid #fff;
}

.nav-links a:hover {
  /*color: #ccc;*/
  border-left: 2px solid #ccc;
}

/* RIGHT COLUMN */
.right-column {
  width: 85%;
  height: 100vh;
  /* overflow: hidden; */
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.image-grid {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}

.image-tile {
  background-color: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.image-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.image-tile img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.image-tile:hover img {
  transform: scale(1.05);
}

.image-text {
  padding: 10px;
  background: white;
}

.image-text h3 {
  font-size: 16px;
  margin-bottom: 5px;
  margin: 0;
}

.image-text p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* */

/* NEW: Collapse button container */
.icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Collapse Button */
.collapse-btn {
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}

/* COLLAPSED SIDEBAR STATE */
.left-column.collapsed {
  width: 20px;
  padding: 10px;
  align-items: center;
}

.left-column.collapsed h2,
.left-column.collapsed .nav-links a {
  display: none;
}

/* .left-column.collapsed .collapse-btn::after {
  content: '\203A';
} */

.right-column {
  transition: width 0.3s ease;
}

.left-column {
  transition: width 0.3s ease, padding 0.3s ease;
}

.right-column.expand {
  width: 100%;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* WebKit Browsers: Chrome, Safari, Edge */
.right-column::-webkit-scrollbar,
.right-column .image-grid::-webkit-scrollbar {
  width: 8px;
}

.right-column::-webkit-scrollbar-track,
.right-column .image-grid::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.right-column::-webkit-scrollbar-thumb,
.right-column .image-grid::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 10px;
  border: 2px solid #f0f0f0; /* Creates padding */
}

.right-column::-webkit-scrollbar-thumb:hover,
.right-column .image-grid::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

/* Firefox */
.right-column .image-grid {
  scrollbar-width: thin;
  scrollbar-color: #bbb #f0f0f0; /* thumb color, track color */
}

/* about me page */
.about-container {
  display: flex;
  gap: 40px;
  padding: 20px 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-image img {
  width: 300px;
  max-width: 100%;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-text h2 {
  margin-bottom: 15px;
  font-size: 24px;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* Hide all tabs by default */
.tab {
  display: none;
}

/* Show tab that matches :target */
.tab:target {
  display: block;
}

/* Optional: fallback if no hash — show first tab */
.tab:first-of-type {
  display: block;
}

/* Optional: Add transition effect */
.tab {
  animation: fade 0.3s ease-in-out;
}

#content {
  position: relative;
  min-height: 100vh;
}

.tab {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: none;
  background: #fff; /* Or match your layout background */
  z-index: 0;
}

/* Show only the targeted tab */
#portfolio:target,
#about:target,
#contact:target {
  display: block;
  z-index: 1;
}

#about,
#contact {
  padding-top: 10vh;
  padding-bottom: 500vh;
}

.left-column {
  background-color: transparent!important;
  /*background-image: url('bg.png');*/
  background-size: 130% 100%;
  background-position: left;
  background-repeat: no-repeat;
}

/* Default: Show portfolio if no target */
body:not(:has(:target)) #portfolio {
  display: block;
  z-index: 1;
}


@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* MOBILE */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-column {
    width: 100%;
    padding: 10px;
    flex-shrink: 0;
  }

  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
  }

  .nav-links.show {
    display: flex;
  }

  .right-column {
    width: 100%;
    height: calc(100vh - 120px);
    overflow-y: scroll;
  }

  .left-column.collapsed {
    width: 100%; /* Keep it same width collapsed on mobile */
  }

  .about-container {
    flex-direction: column;
  }

  .about-text, .about-image {
    width: 100%;
  }

  .about-text h2 {
    text-align: center;
  }

  .nav-links a {
    margin-bottom: 0;
  }

  .nav-links {
    margin-bottom: 30px;
  }

  .left-column {
    background-color: #333 !important;
    background-image: none !important;
  }
  
  .menu-header .icons .collapse-btn {
	display: none;
  }  	  
}

html {
    margin-top: 0 !important;
}

.icons {
  position: relative!important;
  left: -20px!important;
}

.left-column.collapsed .menu-header .icons {
  left: 0!important;	
}

body .container .left-column .menu-header h2 a {
  color: #000;
}