* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", serif;
  line-height: 1.8;
  color: #2c3e50;
  background: #f8f9fa;
  overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(120, 119, 198, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 177, 153, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(120, 119, 198, 0.03) 0%,
      transparent 50%
    );
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.document-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  animation: slideIn 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Decorative Border Elements */
.document-container::before,
.document-container::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #c9a96e 0%, #f4e4c1 50%, #c9a96e 100%);
}

.document-container::before {
  top: 0;
}

.document-container::after {
  bottom: 0;
}

/* Header Section */
.document-header {
  text-align: center;
  padding: 80px 60px 60px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon points="0,1000 1000,0 1000,1000" fill="rgba(255,255,255,0.05)"/></svg>');
  background-blend-mode: overlay;
  color: white;
  position: relative;
}

.document-header::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="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.06)"/></svg>')
    repeat;
  animation: sparkle 15s linear infinite;
}

@keyframes sparkle {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-100px) translateY(-100px);
  }
}

.main-title {
  font-family: "Playfair Display", serif;
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.9;
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.decorative-line {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Content Section */
.document-content {
  padding: 60px;
}

.executive-summary {
  background: linear-gradient(135deg, #f8f9fc 0%, #e8eef7 100%);
  border: 1px solid #e3e8f0;
  border-left: 6px solid rgb(139 37 225);
  padding: 40px;
  margin-bottom: 50px;
  border-radius: 0 8px 8px 0;
  position: relative;
  overflow: hidden;
}

.executive-summary::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(201, 169, 110, 0.03),
    transparent
  );
  transform: rotate(15deg);
}

.summary-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  /* color: #1e3c72; */
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.summary-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #34495e;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.section-divider {
  text-align: center;
  margin: 60px 0;
}

.section-divider::before {
  content: "";
  display: inline-block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1e3c72, #c9a96e, #1e3c72);
  vertical-align: middle;
}

.section-divider span {
  display: inline-block;
  margin: 0 30px;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #1e3c72;
  font-weight: 600;
  position: relative;
}

.section-divider::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1e3c72, #c9a96e, #1e3c72);
  vertical-align: middle;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  /* color: #1e3c72; */
  margin: 50px 0 40px 0;
  text-align: center;
  font-weight: 700;
  position: relative;
  /* width: 400px; */
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  /* background: linear-gradient(90deg, transparent, #c9a96e, transparent); */
  background: linear-gradient(90deg, transparent, rgb(139 37 225), transparent);
}

.section-title-document {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: #1e3c72;
  margin: 50px 0 40px 0;
  text-align: center;
  font-weight: 700;
  position: relative;
  /* width: 400px; */
  margin: auto;
  margin-bottom: 30px;
}

.section-title-document::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(139 37 225), transparent);
}

/* Traditional Layout Grid */
.elements-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.element-box {
  background: white;
  border: 2px solid #e8eef7;
  border-radius: 0;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.element-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 110, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.element-box:hover::before {
  left: 100%;
}

.element-box:hover {
  transform: translateY(-8px);
  /* border-color: #c9a96e; */
  border-color: #cda0f1;
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.2);
}

.element-number {
  position: absolute;
  top: -1px;
  right: -1px;
  /* background: linear-gradient(135deg, #1e3c72, #2a5298); */
  background: linear-gradient(135deg, rgb(139 37 225), rgb(181, 114, 236));

  color: white;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.element-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  /* color: #1e3c72; */
  margin-bottom: 15px;
  padding-right: 60px;
  line-height: 1.3;
}

.element-description {
  color: #34495e;
  line-height: 1.7;
  font-size: 1rem;
}

/* Conclusion Section */
.conclusion-section {
  /* background: 
                linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); */
  background: linear-gradient(135deg, #aa8df7 0%, #2a5298 100%);
  color: white;
  padding: 50px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.conclusion-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 Q50,50 100,0 T200,0" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>')
    repeat;
  animation: wave 20s linear infinite;
}

@keyframes wave {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-100px) translateY(-50px);
  }
}

.conclusion-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  z-index: 1;
  color: white;
}

.conclusion-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .document-content {
    padding: 40px 30px;
  }

  .main-title {
    font-size: 3rem;
  }

  .elements-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .element-box {
    padding: 25px;
  }

  .executive-summary,
  .conclusion-section {
    padding: 30px 25px;
  }
}

@media (max-width: 480px) {
  .document-header {
    padding: 50px 30px 40px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .document-content {
    padding: 30px 20px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .document-container {
    box-shadow: none;
  }

  .element-box {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
