:root{

    --blue: #283c3b;
    --dark-color: var(--black);
    --secondary-dark-color: var(--black);
    --med-color: var(--black);
    --secondary-light-color: #eeddd5;
    --white : #f5f5f5;
    --black : #111111;
}

@font-face {
    font-family: 'paper';
    src: url(fonts/demibold.ttf);
}
@font-face {
    font-family: 'cursive';
    src: url(fonts/cursive.ttf);
}

* {
  box-sizing: border-box;
}



#portfolio-buttons {
  background-color: var(--dark-color);
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 20px;
  flex-direction: row;
  display: flex;
  justify-content: space-evenly;
}

#portfolio-buttons button {
  background-color: var(--secondary-dark-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-size: 1.5vw;
  cursor: pointer;
  border-radius: 5px;
}

@media (max-width: 600px) {
  #portfolio-buttons button {
    font-size: 16px;
    padding: 8px 16px;
  }
}

#portfolio-buttons button:hover {
  background-color: var(--white);
  color: var(--dark-color);
  transition: 0.3s;
}



.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column .img-container {
  position: relative;
  margin-top: 8px;
  overflow: hidden;
  border: var(--secondary-dark-color) solid 2px;
}
.column button {
  width: 100%;
}

.column img {
  width: 100%;
  vertical-align: middle;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-color);
  color: var(--white);
  font-size: 16px;
  text-align: center;
  opacity: 0;
  padding: 12px;
  transition: opacity 0.4s ease;
}

.img-container:hover img {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.img-container:hover .caption {
  opacity: 1;
}

@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
  #icons{
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}













.img-container2 {
    width: 500px;
    margin: 0 auto;
    border: var(--secondary-dark-color) solid 2px;
}

.img-container2 img {
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin-top: 8px;
    border-radius: 4px;
    transition: box-shadow 0.5s, transform 0.5s;
}




















/* EXTRA ANIMATIONS:::::::::::::: */

/* Scroll reveal system */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .reveal,
  .grid-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

footer {
  opacity: 1 !important;
  transform: none !important;
}

/* Slight stagger helpers */
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* Portfolio cards animate nicely */
#portfolio-grid .grid-item {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 650ms ease, transform 650ms ease;
}

#portfolio-grid .grid-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero/slideshow subtle depth */
.slideshow,
header {
  will-change: transform;
}

/* Optional hover polish for cards */
.grid-item img {
  transition: transform 0.45s ease, filter 0.45s ease;
}

.grid-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.03);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  #portfolio-grid .grid-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
