/* Import common page styles */
@import url("../pagestyle.css");

.product-group-page {
  background: linear-gradient(135deg, var(--light-color) 0%, #f0f8ff 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.page-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.4) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.page-title {
  font-size: 4.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.1;
  color: var(--light-color);
}

.page-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.9;
  letter-spacing: 0.1em;
  color: var(--light-color);
  margin-top: 1.1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-section {
  background: var(--white);
  padding: 6rem 0;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--shadow-color);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.intro-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--shadow-color);
  margin-bottom: 3rem;
  opacity: 0.85;
}

.details-content {
  background: linear-gradient(135deg, var(--light-color), var(--white));
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.details-title {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--shadow-color);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.details-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--shadow-color);
  opacity: 0.9;
}

.cta-section {
  background: linear-gradient(135deg, var(--shadow-color), #2a4759);
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(208,195,42,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
}

.cta-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.cta-content {
  max-width: 1000px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--light-color);
  margin-bottom: 3rem;
  opacity: 0.9;
}

.cta-button {
  background: var(--primary-light);
  color: var(--light-color);
  border: none;
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(208, 195, 42, 0.4);
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(208, 195, 42, 0.6);
}

.subgroups-section {
  background: var(--shadow-dark);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.subgroups-section .container {
  width: 100vw !important;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  max-width: 100vw !important;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--light-color);
  margin-bottom: 0;
  padding-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.subgroups-grid {
  width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 !important;
}

.subgroup-card {
  position: relative;
  height: 450px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.subgroup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.subgroup-card:hover::before {
  transform: scaleX(1);
}

.subgroup-card:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(208, 195, 42, 0.3);
  z-index: 10;
}

.subgroup-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--primary-light),
    var(--secondary-light)
  );
  z-index: 4;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.subgroup-card:hover::after {
  width: 100%;
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6) contrast(1.15);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.subgroup-card:hover .card-background {
  filter: brightness(0.4) contrast(1.2);
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: linear-gradient(
    135deg,
    var(--shadow-color) 0%,
    var(--shadow-dark) 50%,
    rgba(42, 71, 89, 0.9) 100%
  );
  z-index: 2;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.subgroup-card:hover .card-overlay {
  opacity: 0.75;
  background: linear-gradient(
    135deg,
    rgba(42, 71, 89, 0.95) 0%,
    var(--shadow-dark) 100%
  );
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 3rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.subgroup-card:hover .card-content {
  padding-bottom: 4rem;
}

.subgroup-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.subgroup-card:hover .subgroup-title {
  color: var(--primary-light);
  transform: translateY(-8px);
  text-shadow: 0 0 20px rgba(208, 195, 42, 0.6), 3px 3px 15px rgba(0, 0, 0, 0.7);
}

.subgroup-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.85;
  margin: 0;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.subgroup-card:hover .subgroup-desc {
  opacity: 1;
  transform: translateY(-5px);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42, 71, 89, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: linear-gradient(135deg, var(--shadow-color), #2a4759);
  padding: 30px;
  text-align: center;
  position: relative;
}

.modal-title {
  color: var(--light-color);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 32px;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 40px 35px;
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--shadow-color);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label.required::after {
  content: " *";
  color: #e74c3c;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid var(--light-gray);
  background: var(--white);
  font-size: 16px;
  font-family: "Gilroy", sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(208, 195, 42, 0.15);
  transform: translateY(-2px);
}

.form-input.error,
.form-textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

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

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.contact-options {
  display: flex;
  gap: 20px;
}

.contact-options .form-group {
  flex: 1;
}

.form-note {
  font-size: 14px;
  color: var(--shadow-color);
  opacity: 0.7;
  margin-top: 12px;
  font-style: italic;
}

.form-submit {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--shadow-color);
  border: none;
  padding: 20px 45px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s ease;
  width: 100%;
  font-family: "Gilroy", sans-serif;
  box-shadow: 0 10px 30px rgba(208, 195, 42, 0.4);
}

.form-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(208, 195, 42, 0.6);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 8px;
  display: none;
  font-weight: 500;
}

.success-message {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  padding: 18px 20px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
  display: none;
  border-left: 5px solid #28a745;
}

.features-cards-section {
  position: relative;
}

.cards-grid {
  width: 100vw;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  justify-items: center;
}

.feature-card {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.feature-card:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 10px;
  background: var(--primary-light);
  z-index: 4;
  transition: all 0.4s ease;
}

.feature-card:hover::after {
  width: 100%;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-title {
  color: var(--secondary-light);
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.7) contrast(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  background: linear-gradient(135deg, var(--shadow-color), var(--shadow-dark));
  z-index: 2;
}

.feature-card:hover .card-overlay {
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.feature-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.feature-text {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

/* ========== Products Section ========== */
.products-section {
  padding: 6rem 0;
  background: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.products-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.products-section .section-title {
  font-size: 2.5rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 4rem;
  color: var(--light-color);
  position: relative;
}

.products-section .section-title::after {
  content: "";
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  margin-top: 2rem;
}

.product-card {
  background: transparent;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 0;
  height: 100%;
  border-left: solid var(--shadow-dark) 0.5px;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(176, 135, 11, 0.3);
  z-index: 10;
}

.product-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--primary-light),
    var(--secondary-light)
  );
  z-index: 4;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::after {
  width: 100%;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  background: var(--light-gray);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
  transform: scale(1.1);
  filter: brightness(0.75) contrast(1.2);
}

.product-price-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(42, 71, 89, 0.9);
  color: var(--primary-light);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 3;
  transition: all 0.3s ease;
}

.product-card:hover .product-price-badge {
  background: var(--primary-color);
  color: var(--light-color);
  transform: scale(1.05);
}

.product-region {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(to top, var(--shadow-color) 5%, transparent);
  color: var(--light-color);
  padding: 50px 0.1rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 2;
  transition: all 0.3s ease;
}

.product-card:hover .product-region {
  background: linear-gradient(to top, var(--primary-color) 5%, transparent);
}

.product-region i {
  color: var(--primary-light);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.product-card:hover .product-region i {
  color: var(--light-color);
}

.product-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  background: linear-gradient(
    to bottom,
    var(--shadow-color),
    var(--shadow-dark)
  );
  justify-content: center;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--light-color);
  margin: 0;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  text-align: center;
}

.product-card:hover .product-info {
  background: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .products-section {
    padding: 4rem 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .products-section .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .product-title {
    font-size: 1.3rem;
  }

  .product-region {
    font-size: 0.9rem;
    padding: 1.2rem 0.8rem 0.8rem;
  }

  .product-price-badge {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-info {
    padding: 1.5rem;
  }

  .product-title {
    font-size: 1.2rem;
  }

  .product-region {
    font-size: 0.85rem;
    padding: 1rem 0.6rem 0.6rem;
  }

  .product-price-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    top: 1rem;
    right: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-hero {
    min-height: 400px;
  }

  .page-title {
    font-size: 4rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .intro-title,
  .cta-title,
  .section-title {
    font-size: 1.3rem;
  }

  .details-title {
    font-size: 1.2rem;
  }

  .intro-text,
  .cta-text,
  .details-text,
  .feature-text,
  .subgroup-desc {
    font-size: 1.1rem;
  }

  .subgroup-title {
    font-size: 1.2rem;
  }

  .feature-title {
    font-size: 1.3rem;
  }

  .subgroups-grid {
    flex-direction: column;
  }

  .subgroup-card {
    width: 100% !important;
    height: 400px;
  }

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

  .subgroup-desc {
    font-size: 1rem;
  }

  .section-title {
    font-size: 3rem;
  }

  /* Standardized responsive width for containers */
  .intro-section .container,
  .cta-section .container {
    width: 90%;
    padding: 0 2rem;
  }

  .subgroups-section .container,
  .cards-grid {
    width: 100% !important;
    padding: 0 !important;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 3.4rem;
  }

  .intro-title,
  .cta-title,
  .section-title {
    font-size: 1.8rem;
  }

  .details-title {
    font-size: 1.1rem;
  }

  .intro-text,
  .cta-text,
  .details-text,
  .feature-text,
  .subgroup-desc {
    font-size: 1.1rem;
  }

  .subgroup-title {
    font-size: 1.1rem;
  }

  .feature-title {
    font-size: 1.4rem;
  }

  /* ...existing code... */
}

/* Responsive Design for Features Cards */
@media (max-width: 760px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100vw;
    margin: 0;
  }

  .feature-card {
    height: 400px;
  }
}
