/*Portfolio Style*/

#portfolio{
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.header-description{
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: var(--spacing-xl);
    color: white;
    line-height: 1.5;
    text-align: center;
}

@media(min-width: 768px){
    .header-description{
        font-size: 1.3rem;
        margin-bottom: var(--spacing-xxl);
    }
}

/* Contact Section - Full width green background */
#Contact {
  background-color: green;
  color: white;
  width: 100%;
}

#contact-info{
    justify-self: start;
    text-align: left;
}

#contact-info .subsection-header,
#contact-info .subsection-text{
    text-align: left;
    width: 100%;
}

#hours{
    justify-self: end;
    text-align: right;
}

#hours .subsection-header,
#hours .hours-info{
    text-align: right;
    width: 100%;
}

#maillink{
    color: white;
    text-decoration: none;
}

#maillink:hover{
    text-decoration: underline;
}


.client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto var(--spacing-xl) auto;
  padding: 0 auto var(--spacing-sm);
}

@media(min-width: 640px){
  .client-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

@media(min-width: 1024px){
  .client-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xxl);
    max-width: 1000px;
  }
}

.client-tile {
  position: relative;
  height: auto;
  aspect-ratio:  4 / 3;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, background-color 0.3s;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}


@media(min-width: 1024px){
  .client-tile{
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
}


.grid-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  color: white;
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.966);
}

@media(min-width: 768px){
  .client-grid{
    font-size: 1.2rem;
  }
}

@media(min-width: 1024px){
  .grid-text{
    font-size: 2.0rem;
  }
}

.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

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

.client-tile:hover img {
    opacity: 0.5;
}

.client-tile:hover .grid-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.service-learn-more{
    margin-top: var(--spacing-md);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
  z-index: 999;
  backdrop-filter: blur(3px); /* Optional: adds blur effect to background */
}

/* Modal Styles - Updated */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid #1c1c1c;
  padding: 20px;
  z-index: 1000;
  width: 700px;
  max-width: 90vw;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', monospace;
  color: black;
  border-radius: 8px;
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
  cursor: move; /* Indicates draggable area */
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  flex: 1;
}

.close-btn {
  color: red;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0 10px;
  background: none;
  border: none;
}

.close-btn:hover {
  color: darkred;
  transform: scale(1.1);
}

.modal-content {
  padding: 10px;
}

.modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.modal-text {
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: center;
}

.modal-link {
  font-size: 1.0rem;
  line-height: 1.5;
  text-decoration: underline;
  text-align: center;
  margin: auto;
}

.modal-hidden {
  display: none;
}

/* Click animation for tiles */
.service-tile.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

