@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: #fff;
  color: #000;
  min-height: 100vh;
  overflow-x: hidden;
}

.logo-icesco {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
}

.logo-icesco img {
  width: 80px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #a5a5a5;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hamburger:focus-visible {
  outline: 2px solid #1c1c1c;
  outline-offset: 3px;
}

.burger {
  width: 40px;
}

.menu-panel {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.3s ease, transform 0.35s ease;
  z-index: 25;
}

.menu-panel.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.menu-panel .menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.menu-panel .menu-link img {
  width: clamp(140px, 24vw, 260px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.menu-panel .menu-link:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.gallery-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.gallery-wordmark {
  width: min(480px, 80vw);
}

.gallery-intro {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  max-width: 640px;
}

/* Services Cards Section */
.services-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
  margin-bottom: 4rem;
}

.card {
  --bg: #fff;
  --title-color: #fff;
  --title-color-hover: #000;
  --text-color: #666;
  --button-color: #eee;
  --button-color-hover: #ddd;
  background: var(--bg);
  border-radius: 2rem;
  padding: 0.5rem;
  width: 20rem;
  height: 30rem;
  overflow: clip;
  position: relative;
  font-family: Lato, Montserrat, Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.card.dark {
  --bg: #222;
  --title-color: #fff;
  --title-color-hover: #fff;
  --text-color: #ccc;
  --button-color: #555;
  --button-color-hover: #444;
}

.card::before {
  content: "";
  position: absolute;
  width: calc(100% - 1rem);
  height: 30%;
  bottom: 0.5rem;
  left: 0.5rem;
  mask: linear-gradient(#0000, #000f 80%);
  backdrop-filter: blur(1rem);
  border-radius: 0 0 1.5rem 1.5rem;
  translate: 0 0;
  transition: translate 0.25s;
  z-index: 1;
}

.card > img {
  max-width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 5%;
  border-radius: 1.5rem;
  display: block;
  transition: aspect-ratio 0.25s, object-position 0.5s;
  width: 100%;
  height: auto;
}

.card > section {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  margin: 1rem;
  height: calc(33.3333% - 1rem);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.card > section h2 {
  margin: 0;
  margin-block-end: 1rem;
  font-size: 1.5rem;
  opacity: 1;
  translate: 0 0;
  color: var(--title-color);
  transition: color 0.5s, margin-block-end 0.25s;
}

.card > section p {
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text-color);
  opacity: 0;
  margin: 0;
  translate: 0 100%;
  transition: margin-block-end 0.25s, opacity 1s 0.2s, translate 0.25s 0.2s;
}

.card > section > div {
  flex: 1;
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  translate: 0 100%;
  opacity: 0;
  transition: translate 0.25s 0.2s, opacity 1s;
}

.card > section > div .tag {
  align-self: center;
  color: var(--title-color-hover);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card > section > div .tag i {
  font-size: 0.85rem;
}

.card > section > div button {
  border: 1px solid transparent;
  border-radius: 1.25rem 1.25rem 1.5rem 1.25rem;
  font-size: 1rem;
  padding: 1rem 1.5rem 1rem 2.75rem;
  translate: 1rem;
  background: var(--button-color);
  transition: background 0.33s;
  outline-offset: 2px;
  position: relative;
  color: var(--title-color-hover);
  width: 8.2rem;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
}

.card > section > div button::before,
.card > section > div button::after {
  content: "";
  width: 0.85rem;
  height: 0.1rem;
  background: currentcolor;
  position: absolute;
  top: 50%;
  left: 1.33rem;
  border-radius: 1rem;
}

.card > section > div button::after {
  rotate: 90deg;
  transition: rotate 0.15s;
}

.card > section > div button.following::after {
  rotate: 0deg;
}

.card > section > div button:hover {
  background: var(--button-color-hover);
}

.card > section > div button:focus {
  outline: 2px solid var(--text-color);
}

.card:hover,
.card:focus-within {
  outline: none;
}

.card:hover::before,
.card:focus-within::before {
  translate: 0 100%;
}

.card:hover > img,
.card:focus-within > img {
  aspect-ratio: 1 / 1;
  object-position: 50% 10%;
  transition: aspect-ratio 0.25s, object-position 0.25s;
}

.card:hover > section p,
.card:focus-within > section p {
  translate: 0 0;
  margin-block-end: 0.5rem;
  opacity: 1;
}

.card:hover > section h2,
.card:focus-within > section h2 {
  color: var(--title-color-hover);
  margin-block-end: 0.5rem;
}

.card:hover > section > div,
.card:focus-within > section > div {
  translate: 0 0;
  opacity: 1;
  transition: translate 0.25s 0.25s, opacity 0.5s 0.25s;
}

/* Responsive Design */
@media (max-width: 900px) {
  .services-cards {
    gap: 1.5rem;
    padding: 1rem;
  }

  .card {
    width: 18rem;
    height: 27rem;
  }

  .gallery-hero {
    padding-top: 4rem;
  }
}

@media (max-width: 600px) {
  .services-cards {
    gap: 1rem;
    padding: 0.5rem;
  }

  .card {
    width: 100%;
    max-width: 20rem;
    height: 30rem;
  }

  .logo-icesco {
    top: 10px;
    left: 10px;
  }

  .logo-icesco img {
    width: 60px;
  }

  .hamburger {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
  }

  .burger {
    width: 32px;
  }
}

/* Modal Styles */
.polaroid-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.polaroid-modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 25, 0.75);
  backdrop-filter: blur(14px);
}

.modal-content {
  position: relative;
  max-width: 920px;
  width: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  color: #333;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 1);
}

.modal-close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

/* Form Modal Styles */
.modal-content.form-modal {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 28px 38px rgba(0, 0, 0, 0.55);
  padding: 30px 28px 40px;
  max-width: 500px;
  width: 90%;
  max-height: calc(90vh - 4rem);
  min-height: fit-content;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: rotate(-1deg);
  display: flex;
  flex-direction: column;
  margin: auto;
}

.modal-content.form-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  min-height: 0;
  flex: 1;
  padding-bottom: 1rem;
}

.form-title {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 2.2rem;
  color: #000;
  margin-bottom: 1rem;
  margin-top: 0;
  text-align: center;
  letter-spacing: 0.08em;
  font-weight: 600;
  flex-shrink: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.1rem;
  color: #000;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  background: #fafafa;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group select:disabled {
  background: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.7;
  color: #999;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: "Source Sans Pro", sans-serif;
}

.submit-btn {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  background: #000;
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.submit-btn:hover:not(:disabled) {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .modal-content.form-modal {
    padding: 24px 20px 35px;
    transform: none;
  }

  .form-title {
    font-size: 1.8rem;
  }
}

