/* =========================================================
   HEX / HIVE SECTION (SAFE VERSION)
========================================================= */

/* Root Variables */
:root {
  --hex-w: 200px;
  --hex-h: calc(var(--hex-w) * 0.866);
  --gap: 0px;
}

/* Hive Container */
.hive {
  padding: clamp(32px, 5vw, 80px) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hide on Mobile */
@media (max-width: 575.98px) {
  .hive {
    display: none !important;
  }
}

/* Hive Rows (DO NOT TOUCH BOOTSTRAP .row) */
.hive-row {
  display: flex;
  gap: var(--gap);
  margin-bottom: calc(var(--hex-h) * -0.25);
}

.hive-row.offset {
  margin-left: 0;
  margin-right: 0;
}

/* Hex Wrapper */
.hex-wrap {
  width: var(--hex-w);
  height: var(--hex-h);
  transform: rotate(90deg);
}

/* Hex Shape */
.hex {
  width: 100%;
  height: 100%;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );

  overflow: hidden;
  position: relative;

  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Hex Image */
.hex img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: rotate(-90deg);
  filter: grayscale(20%);

  transition: all 0.35s ease;
}

/* Hover */
.hex:hover img {
  transform: rotate(-90deg) scale(1.06);
  filter: none;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --hex-w: 150px;
    --gap: 14px;
  }
}

/* Small Mobile */
@media (max-width: 640px) {
  :root {
    --hex-w: 120px;
    --gap: 12px;
  }
}

/* =========================================================
   FORM STYLES
========================================================= */

.php-email-form .form-control {
  border: 1px solid #053485 !important;
  border-radius: 1px;
  box-shadow: none;
  transition: border-color 0.2s;
}

.php-email-form .form-control:focus {
  border-color: #021d4a !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(5, 52, 133, 0.08);
}

.php-email-form .custom-dropdown select.form-control {
  border: 1px solid #053485 !important;
}

/* =========================================================
   PORTFOLIO OVERLAY
========================================================= */

.portfolio-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

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

  pointer-events: none;
  z-index: 2;
}

.portfolio-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;

  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

  letter-spacing: 0.5px;
  padding: 0 10px;
}

/* =========================================================
   PORTFOLIO MOBILE VISIBILITY
========================================================= */

@media (min-width: 576px) {
  #portfolio-mobile {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  #portfolio {
    display: none !important;
  }

  #portfolio-mobile {
    display: block !important;
  }

  .portfolio-swiper .card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}
