/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  overflow-y: scroll;
}

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.portfolio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

/* Row layout */
.row {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 10px;
}

/* Tile Styles */
.tile {
  position: relative;
  flex-basis: calc(50% - 5px);
  overflow: hidden;
  transition: transform 0.3s ease;
}

body.transitions-enabled .tile {
  transition: flex-basis 0.5s ease, transform 0.3s ease;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
}

.tile:hover img {
  transform: scale(1.05);
}

.rectangle {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 2; /* Ensure the rectangle is above the image */
}

.rectangle.right {
  right: 0;
}

.rectangle.left {
  left: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  opacity: 0;
  transition: background-color 0.5s ease, opacity 0.5s ease;
}

.tile:hover .overlay {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.rectangle              { cursor: default; }               /* no “hand” */
.tile.no-hover:hover img       { transform:none; }
.tile.no-hover:hover .overlay  { opacity:0; background:rgba(255,255,255,0); }

/* Caption Styles */
.caption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 22px;
  font-family: Arial, sans-serif;
  font-weight: normal;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  z-index: 3; /* Ensure text is above everything else */
  text-align: right;
}

.caption br {
  line-height: 1.5;
}

/* Top Bar and Side Panel styles remain unchanged */


/* Top Bar Styles */
#top-bar {
    position: fixed;
    top: -160px; /* Initially partially hidden */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* White with 60% opacity */
    height: 200px;
    z-index: 100; /* Make sure it's above all other content */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    cursor: pointer;
    padding: 0 50px; /* Padding for content */
    transition: top 0.3s ease;
  }
  
  #contact-text {
    font-size: 18px;
    font-family: Arial, sans-serif;
    color: black;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 50px;
    bottom: 10px; /* Aligned to the bottom right */
  }
  
  #contact-info {
    display: none;
    font-size: 18px;
    font-family: Arial, sans-serif;
    color: black; /* This applies to the text but won't affect the link color */
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 50px;
    bottom: 20px; /* Aligned to the bottom left */
  }
  
  #contact-info a {
    color: black !important; /* Force the link color to be black */
    text-decoration: none;   /* Remove underline if necessary */
  }
  
  #contact-info a:hover {
    text-decoration: underline; /* Optional: Add underline on hover for feedback */
  }
  
  
  #top-bar.slid-in #contact-info {
    display: block;
    opacity: 1; /* Fade in the contact info */
  }
  
  #top-bar.slid-in #contact-text {
    opacity: 0; /* Fade out "contact" text */
  }
  
  #top-bar #contact-text.fade-in {
    opacity: 1;
  }
  
  #top-bar #contact-text.fade-out {
    opacity: 0;
  }
  
  /* Slide the top bar fully into view */
  #top-bar.slid-in {
    top: 0;
  }

  /* Side Panel Styles */
#side-panel {
  position: fixed;
  top: 40px;
  left: -100%;
  width: 27%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 150;
  overflow-y: auto; /* Allow scrolling inside the panel */
  transition: left 0.5s ease;
  cursor: pointer;
}

#side-panel.slid-in {
  left: 0; /* Slide in the side panel */
}

.side-panel-content {
  padding: 60px;
}
  
  /* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  overflow-y: scroll;
}

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.portfolio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

/* Row layout (Desktop) */
.row {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 10px;
}

/* Tile Styles */
.tile {
  position: relative;
  flex-basis: calc(50% - 5px);
  overflow: hidden;
  transition: transform 0.3s ease;
}

body.transitions-enabled .tile {
  transition: flex-basis 0.5s ease, transform 0.3s ease;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
}

.tile:hover img {
  transform: scale(1.05);
}



/* Hide rectangles on mobile */
@media screen and (max-width: 768px) {
  .rectangle {
    display: none;
  }
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  opacity: 0;
  transition: background-color 0.5s ease, opacity 0.5s ease;
}

.tile:hover .overlay {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

/* Caption Styles */
.caption {
  position: absolute;
  bottom: 10px;
  font-size: 18px;
  font-family: Arial, sans-serif;
  font-weight: normal;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  z-index: 3;
  text-align: right;
}

.caption br {
  line-height: 1.5;
}

/* MOBILE VERSION: One Column Layout */
@media screen and (max-width: 768px) {
  .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .tile {
    width: 100%;
    flex-basis: 100%;
    height: auto;
  }

  .tile img {
    width: 100%;
    height: 400px; /* Fixed height for mobile */
    object-fit: cover;
  }
}
.portfolio{padding-bottom:60px;} 
  