/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #ffffff;
  color: black;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.font-serif {
  font-family: "Noto Serif JP", serif;
}

/* Color Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  --secondary-gradient: linear-gradient(
    135deg,
    #fbc2eb 0%,
    #a18cd1 30%,
    #fde68a 100%
  );
  --accent-gradient: linear-gradient(
    135deg,
    #f59e0b 0%,
    #f97316 50%,
    #ef4444 100%
  );
  --hero-gradient: linear-gradient(
    135deg,
    #a18cd1 0%,
    #8b5cf6 25%,
    #fbc2eb 50%,
    #f59e0b 75%,
    #ef4444 100%
  );
  --animated-gradient: linear-gradient(
    -45deg,
    #a18cd1,
    #fbc2eb,
    #f59e0b,
    #ef4444
  );
  --primary-color: #a18cd1;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-color: black;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 4px 20px rgba(161, 140, 209, 0.15);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(161, 140, 209, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: var(--accent-gradient);
  transition: width 0.3s;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: white;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu a {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
  background: var(--secondary-gradient);
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px 0 rgba(161, 140, 209, 0.4);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px 0 rgba(161, 140, 209, 0.6),
    0 0 20px rgba(251, 194, 235, 0.4);
  background: linear-gradient(135deg, #8b5cf6 0%, #f59e0b 100%);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url("img/minhhoacuahang.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--animated-gradient);
  background-size: 400% 400%;
  opacity: 0.75;
  z-index: 10;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  text-align: center;
  z-index: 20;
  padding: 2rem;
}

.hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
  text-shadow: 0 0 10px rgba(161, 140, 209, 0.5),
    0 0 20px rgba(251, 194, 235, 0.3), 0 0 30px rgba(245, 158, 11, 0.2);
}

.hero-description {
  max-width: 48rem;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: white;
  text-shadow: 0 0 10px rgba(161, 140, 209, 0.5);
}

/* Page Header */
.page-header {
  background: var(--secondary-gradient);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-title {
  font-family: "Noto Serif JP", serif;
  font-size: 3rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto;
}

/* Sections */
.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: 2.5rem;
  font-weight: bold;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

/* About Preview */
.about-preview {
  padding: 5rem 0;
  background: white;
}

/* Services Preview */
.services-preview {
  padding: 5rem 0;
  background: var(--secondary-gradient);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(161, 140, 209, 0.3),
    0 10px 15px -6px rgba(251, 194, 235, 0.2);
}

.service-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-color);
}

/* Gallery Preview */
.gallery-preview {
  padding: 5rem 0;
  background: white;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
    var(--primary-gradient) border-box;
}

.gallery-preview-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(161, 140, 209, 0.5);
}

.gallery-preview-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-preview-item:hover img {
  transform: scale(1.1);
}

.gallery-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: end;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.gallery-preview-overlay h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.gallery-preview-overlay p {
  font-size: 1.125rem;
  color: white;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  color: var(--accent-color);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-color);
}

/* Company Info */
.company-info {
  padding: 5rem 0;
  background: var(--secondary-gradient);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-item h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.info-item p {
  color: var(--text-color);
  font-size: 1.125rem;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: var(--secondary-gradient);
}

/* Order Process */
.order-process {
  padding: 5rem 0;
  background: white;
}

.process-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
}

.step-number {
  background: var(--accent-gradient);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
  background: white;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: var(--primary-color);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
    var(--primary-gradient) border-box;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(161, 140, 209, 0.5);
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.9);
  transition-duration: 0.3s;
  pointer-events: none;
  position: absolute;
}

.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: end;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.gallery-overlay h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 1.125rem;
  color: white;
}

/* Price Chart */
.price-chart-section {
  padding: 5rem 0;
  background: var(--secondary-gradient);
}

.chart-container {
  position: relative;
  height: 400px;
  max-width: 48rem;
  margin: 0 auto;
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 0.75rem;
  max-width: 64rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-image {
  flex: 1;
}

.modal-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}

.modal-info {
  padding: 2rem;
}

.modal-info h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

.modal-price {
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.modal-info p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: white;
}

.contact-info {
  margin-bottom: 4rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--secondary-gradient);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.contact-item h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-value {
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 500;
}

/* FAQ Section */
.faq-section {
  margin-top: 4rem;
}

.accordion {
  border-top: 1px solid #e5e7eb;
}

.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion-button {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-button:hover {
  background: var(--secondary-gradient);
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.accordion-arrow {
  color: var(--accent-color);
  font-size: 1.25rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.accordion-button.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.accordion-content > div {
  padding: 1.5rem;
  color: var(--text-color);
  background: var(--secondary-gradient);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Recruit Section */
.recruit-section {
  padding: 5rem 0;
  background: white;
}

.recruit-vision {
  margin-bottom: 4rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.vision-card {
  background: var(--secondary-gradient);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -5px rgba(161, 140, 209, 0.3);
}

.vision-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(161, 140, 209, 0.5);
}

.vision-card p {
  color: var(--text-color);
  line-height: 1.8;
}

.job-positions {
  margin-top: 4rem;
}

/* Footer */
.footer {
  background: var(--primary-gradient);
  color: white;
  padding: 3rem 0;
}

.footer-logo {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(161, 140, 209, 0.5);
}

.footer-copyright {
  margin-top: 2rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(25px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 4px 8px rgba(161, 140, 209, 0.3));
}

.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu.show {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-image img {
    border-radius: 0.75rem 0.75rem 0 0;
  }
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }

  .modal-image {
    flex: 1;
  }

  .modal-info {
    flex: 1;
  }

  .modal-image img {
    height: 100%;
    border-radius: 0.75rem 0 0 0.75rem;
  }
}