/* === Global Reset and Base Styles === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
  
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

.button5 {
  background:black;
  size:5em;
}

.figure {
  color: #131111;
}

.scalloped-bottom {
  position: absolute; /* float above content */
  top: -20px; /* move it upward to overlap the gallery */
  left: 0;
  width: 100%;
  height: 80px; /* adjust height as needed */
  background: rgb(184, 55, 46); /* keep your scallop color */
  z-index: 10; /* make sure it sits above images */

  /* Scallop mask */
  --mask-size: 70px;
  mask: 
    radial-gradient(var(--mask-size) at 50% calc(100% - var(--mask-size)), #000 99%, transparent 101%) 
      0 100% / calc(var(--mask-size) * 2) var(--mask-size) repeat-x;

  mask-repeat: repeat-x;
  -webkit-mask: 
    radial-gradient(var(--mask-size) at 50% calc(100% - var(--mask-size)), #000 99%, transparent 101%) 
      0 100% / calc(var(--mask-size) * 2) var(--mask-size) repeat-x;
  -webkit-mask-repeat: repeat-x;
}

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: #131111;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: #424141;
}

/* Add a background color and some padding around the form */
.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  margin-top:3em;
  color:#131111;
}

.view-button a{
  background: #131111;
  color: rgb(195, 238, 241);
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
   justify-content:center;
  align-items:center;

  
}

.view-button a:hover {
  background: #424141;
  transform: scale(1.05);
  justify-content:center;
  align-items:center;
 
}

.moodboard {
 border-radius:8px;
 overflow:hidden;
}

.spread {
  align-items:center;
  border-radius:8px;
  overflow-x:hidden;
}

.scalloped-bottom {
  position: absolute; /* float above content */
  top: -20px; /* move it upward to overlap the gallery */
  left: 0;
  width: 100%;
  height: 80px; /* adjust height as needed */
  background: rgb(184, 55, 46); /* keep your scallop color */
  z-index: 10; /* make sure it sits above images */

  /* Scallop mask */
  --mask-size: 70px;
  mask: 
    radial-gradient(var(--mask-size) at 50% calc(100% - var(--mask-size)), #000 99%, transparent 101%) 
      0 100% / calc(var(--mask-size) * 2) var(--mask-size) repeat-x;

  mask-repeat: repeat-x;
  -webkit-mask: 
    radial-gradient(var(--mask-size) at 50% calc(100% - var(--mask-size)), #000 99%, transparent 101%) 
      0 100% / calc(var(--mask-size) * 2) var(--mask-size) repeat-x;
  -webkit-mask-repeat: repeat-x;
}

body {
  border-radius: 8px; 
  padding-top: 130px; 
  background: rgb(184, 55, 46);
  color: rgb(195, 238, 241);
  overflow-x: hidden;
  font-family: "sofia-pro-variable", sans-serif;
  font-variation-settings: "slnt" 0, "wght" 461.64383;
}

/* === Cursors === */
.inner-cursor, .outer-cursor {
  position: fixed;
  left: 10px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 10%;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: 0.1s;
}

.inner-cursor {
  width: 10px;
  height: 10px;
  background: #f1f1f1;
  transition: width 0.5s, height 0.5s;
}

.outer-cursor {
  width: 25px;
  height: 25px;
  border: 1px solid rgb(195, 238, 241);
}

/* === Utility === */
.fix, .image-gallery, .whitebox-row {
  background: rgb(195, 226, 228);
}

/* === Header === */
.header {
  position:fixed;
  top: 0;
  left: 0;
  width: 100%;      /* full viewport width */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f1f1;
  padding: 0px 10px;
  z-index: 1001;
}

.logo, .header-right a {
  color: rgb(184, 55, 46);
  padding: 12px;
  text-decoration: none;
  border-radius: 4px;
}

.logo {
  font-size: 25px;
  font-weight: bold;
}

.logo:hover, .header-right a:hover {
  background: rgb(195, 238, 241);
}

.header-right {
  display: flex;
  gap: 1rem;
}

.header-right a {
  font-size: 18px;
  line-height: 25px;
}

.header-right a.active {
  background: rgb(184, 55, 46);
  color: rgb(195, 238, 241);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: rgb(184, 55, 46);
  margin-left: 1rem;
}

/* === Banner & Text === */
.banner {
  height: 1.5em;
  background: url('https://via.placeholder.com/1200x800?text=Design+Banner') no-repeat center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 7em;
  font-family: "formiga", sans-serif;
  font-weight: 900;
  text-align: center;
}

.smalltext {
  font-size: 2em;
  text-align: center;
  margin: 1em 1em 2.7em;
}



.video {
  margin-top:5rem;
  padding-top:5em;
  border-radius:8px;
padding:5rem;
display: flex;
justify-content: center;
align-items: center;
border-radius:8px;
overflow:hidden;

}



/* === Image Gallery === */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-top:1rem;
  padding-bottom:1rem;
  padding: 5rem;
  width:100%;
  margin:auto;
  color:rgb(184, 55, 46);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}



.image-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fix2 {
  background-color:rgb(195, 226, 228);
}

/* === GIF + Mini Gallery === */
.gif-gallery-container {
  padding:5em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin: 0 auto;
  border-radius:8px;
}

.gif, .mini-gallery {
  margin: 0;
  padding: 0;
  border-radius:8px;
}

.gif {
  flex: 0 0 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius:8px;
}

.gif img, .mini-gallery img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius:18px;
}

.mini-gallery img {
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.4s ease, box-shadow 0.4s ease; /* Add smooth animation */
}

.mini-gallery img:hover {
  transform: scale(1.1); /* Enlarge slightly */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Optional: add more shadow on hover */
  z-index: 2;
}


.mini-gallery {
  flex: 0 0 620px; /* increased from 300px */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; /* optional: a bit more space between images */
  align-content: stretch;
}


.mini-gallery img {
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

/* === Gallery Scroll Section === */
.gallery-wrapper {
  width: 100%;
}

.gallery-item {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
}

.half {
  width: 50%;
  height: 100%;
}

.image-half {
  background-size: cover;
  background-position: center;
}

.white-box {
  background: linear-gradient(to bottom, #f1f1f1, #cfcfcf);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  color: #131111;
}

/* === White Box Sections === */
.whitebg {
  padding: 0;
  margin: 0;
  width: 100%;
}

.whitebox2 {
  background: #f1f1f1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  max-width: 900px;
  width: 90%;
  border-radius: 8px;
  color: #131111;
  text-align: left;
}

.whitebox-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.whitebox-row.reverse {
  flex-direction: row-reverse;
}

.whitebox-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === Text Elements === */
.boldtext, .unboldtext {
  margin-left: 1em;
  color: #131111;
}

.unboldtext {
  margin-top: 1em;
}

.boldtext {
   text-align:center;
}

.text-content {
  margin-bottom: 2rem;
}


/* === Button === */
.image-button {
  background: #131111;
  color: rgb(195, 238, 241);
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.image-button:hover {
  background: #424141;
  transform: scale(1.05);
}

/* === Footer === */
.footer {
  background: rgb(184, 55, 46);
  color: rgb(195, 238, 241);
  padding: 3em 1em;
  font-size: 1em;
  text-align: left;
  border-top: 40px solid #f1f1f1;
}

.footertext {
  margin-left: 12px;
}

/* === Responsive Styles === */
@media (max-width: 768px) {
  .gallery-item {
    flex-direction: column;
    .scalloped-bottom {
  top: -20px; /* keep desktop behavior untouched visually */
}

.gallery-wrapper {
  padding-top: 70px; /* THIS is the real fix */
}
  }

  .half {
    width: 100%;
    height: 50vh;
  }

  .banner {
    font-size: 4.5em;
  }

  .smalltext {
    font-size: 1.1em;
    margin: 1.5em 1em 3em;
  }

  .menu-toggle {
    display: block;
  }

  .header-right {
    display: none;
    flex-direction: column;
    background: #f1f1f1;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1002;
  }

  .header-right.active {
    display: flex;
  }

  .gif-gallery-container {
    flex-direction: column;
  }

  .gif {
    margin-bottom: 8px;
  }

  .gif, .mini-gallery {
    flex: 0 0 auto;
  }
}


@media (max-width: 768px) {

  .gallery-wrapper {
  padding-top: 40px; /* small push = controlled scallop overlap */
}
  /* ===== FIX GALLERY LAYOUT ===== */
  .gallery-item {
    flex-direction: column;
    height: auto;
    position: relative; /* overrides sticky behavior */
  }

  .half {
    width: 100%;
    height: 300px; /* keeps image visible but not overwhelming */
  }

  .white-box {
    padding: 2rem 1.5rem;
  }

  /* ===== BANNER FIX ===== */
  .banner {
    font-size: 3rem;
    height: auto;
    padding: 2rem 1rem;
  }

  .smalltext {
    font-size: 1rem;
    margin: 1rem;
  }

  /* ===== HEADER SAFETY ===== */
  .logo img {
    max-height: 35px;
    width: auto;
  }

  /* ===== FIX SPACING BETWEEN SECTIONS ===== */
  .gallery-wrapper {
    overflow: visible;
  }

  /* ===== BUTTON SIZE ADJUSTMENT ===== */
  .image-button {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

}