/* =========================================
   SOMETHING CRAZY — SECTION
========================================= */

.something-crazy {
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  overflow: hidden;

  text-align: center;

  background: #ffffff;
  color: #1a1a2e;

  font-family:
    'Segoe UI',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}


/* =========================================
   IMAGE
========================================= */

.something-crazy img {
  display: block;

  width: min(600px, 90%);
  height: auto;

  margin: 0 0 32px;

  border-radius: 20px;

  object-fit: cover;

  cursor: pointer;

  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.14);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


/* =========================================
   IMAGE HOVER
========================================= */

@media (hover: hover) and (pointer: fine) {

  .something-crazy img:hover {
    animation: shake 0.5s ease infinite;

    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.22);
  }

}


/* =========================================
   IMAGE CLICK / TAP
========================================= */

.something-crazy img.shake-click {
  animation: shake 0.5s ease;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.22);
}


/* =========================================
   HEADING
========================================= */

.something-crazy h2 {
  margin: 0 0 14px;

  font-size: clamp(28px, 5vw, 48px);

  line-height: 1.1;

  font-weight: 800;

  letter-spacing: -1.5px;

  background:
    linear-gradient(
      90deg,
      #000000,
      #000000,
      #000000
    );

  background-size: 200% auto;

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  animation:
    shine 1s linear infinite,

}


/* =========================================
   DESCRIPTION
========================================= */

.something-crazy p {
  width: 100%;
  max-width: 600px;

  margin: 0;

  font-size: clamp(15px, 2.5vw, 18px);

  line-height: 1.7;

  color: #555566;
}


/* =========================================
   SHAKE ANIMATION
========================================= */

@keyframes shake {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(-6px, 2px) rotate(-2deg);
  }

  20% {
    transform: translate(6px, -2px) rotate(2deg);
  }

  30% {
    transform: translate(-6px, 2px) rotate(-2deg);
  }

  40% {
    transform: translate(6px, -2px) rotate(2deg);
  }

  50% {
    transform: translate(-4px, 1px) rotate(-1deg);
  }

  60% {
    transform: translate(4px, -1px) rotate(1deg);
  }

  70% {
    transform: translate(-4px, 1px) rotate(-1deg);
  }

  80% {
    transform: translate(4px, -1px) rotate(1deg);
  }

  90% {
    transform: translate(-2px, 0) rotate(0deg);
  }

}


/* =========================================
   HEADING SHINE
========================================= */

@keyframes shine {

  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }

}


/* =========================================
   HEADING PULSE
========================================= */

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

  .something-crazy {
    min-height: 90vh;
    padding: 60px 18px;
  }

  .something-crazy img {
    width: min(480px, 92%);
    margin-bottom: 26px;
    border-radius: 18px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

  .something-crazy {
    min-height: 85vh;
    padding: 45px 15px;
  }

  .something-crazy img {
    width: 100%;
    max-width: 340px;

    margin-bottom: 24px;

    border-radius: 16px;
  }

  .something-crazy h2 {
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .something-crazy p {
    max-width: 340px;
    font-size: 15px;
    line-height: 1.65;
  }

}


/* =========================================
   VERY SMALL DEVICES
========================================= */

@media (max-width: 320px) {

  .something-crazy {
    padding: 35px 12px;
  }

  .something-crazy img {
    max-width: 260px;
  }

  .something-crazy h2 {
    font-size: 24px;
  }

  .something-crazy p {
    font-size: 14px;
  }

}