@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	width: 100vw;
	overflow: hidden;
	background: #000000;
	position: relative;
}

/* ========================================
   LOADER STYLES
   ======================================== */
.loader-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000000;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.loader-content {
	text-align: center;
	color: #ffffff;
}

.spinner {
	width: 60px;
	height: 60px;
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.loader-text {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 20px;
	letter-spacing: 1px;
}

.progress-bar {
	width: 250px;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
	margin: 0 auto 10px;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #4caf50, #8bc34a);
	width: 0%;
	transition: width 0.3s ease;
	border-radius: 10px;
}

.progress-text {
	font-size: 14px;
	font-weight: 300;
	opacity: 0.8;
}

/* ========================================
   INSTRUCTION TEXT
   ======================================== */
.instruction-text {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 12px 24px;
	border-radius: 50px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
	z-index: 1000;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.3px;
}

.instruction-icon {
	font-size: 20px;
	animation: pointDown 1.5s ease-in-out infinite;
}

.flip-arrow {
	font-size: 18px;
	animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes pointDown {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(5px);
	}
}

@keyframes slideRight {
	0%,
	100% {
		transform: translateX(0px);
		opacity: 1;
	}
	50% {
		transform: translateX(8px);
		opacity: 0.6;
	}
}

/* ========================================
   NAVIGATION CONTROLS
   ======================================== */
.controls {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 20px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 12px 24px;
	border-radius: 50px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
	z-index: 1000;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #ffffff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.nav-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.nav-btn:active:not(:disabled) {
	transform: scale(0.95);
}

.nav-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.page-counter {
	color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	min-width: 80px;
	text-align: center;
	letter-spacing: 0.5px;
}

/* ========================================
   DOWNLOAD BUTTON
   ======================================== */
.download-btn {
	position: fixed;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	padding: 12px 24px;
	border-radius: 50px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	transition: all 0.3s ease;
	z-index: 1000;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.download-btn:active {
	transform: translateY(0px);
	box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.download-btn svg {
	animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-3px);
	}
}

/* Form input invalid state */
.input-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 4px rgba(231,76,60,0.06);
}

.input-error {
    color: #e74c3c;
    font-size: 0.85rem;
}

/* ========================================
   FLIPBOOK WRAPPER
   ======================================== */
.flipbook-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 80px 20px 120px 20px;
}

.flipbook {
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
	position: relative;
}

/* ========================================
   PAGE STYLES
   ======================================== */
.flipbook .page {
	background: #ffffff;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	position: relative;
}

.flipbook .page img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	background-color: #ffffff;
}

/* Backside preview for single-page mode */
.flipbook .turn-page-wrapper {
	position: relative;
}

.flipbook .turn-page-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: var(--backside-url, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scaleX(-1);
	-webkit-transform: scaleX(-1);
	opacity: 0;
	pointer-events: none;
	z-index: 0;
}

/* Show backside when flipping */
.flipbook .turn-page-wrapper.flipping::after {
	opacity: 1;
	z-index: 10;
}

/* Backside preview for single-page mode */
.flipbook .turn-page-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: attr(data-backside url);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scaleX(-1);
	-webkit-transform: scaleX(-1);
	z-index: -1;
	pointer-events: none;
}

/* Alternative: Use CSS variable for backside */
.flipbook .turn-page-wrapper[data-backside]::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: var(--backside-url);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.1s;
	pointer-events: none;
}

/* Show backside during flip */
.flipbook .turn-page-wrapper.turn-page.flipping::after {
	opacity: 1;
	z-index: 1;
}

/* Turn.js page styles */
.flipbook .turn-page {
	background-color: #ffffff;
}

.flipbook .even {
	background: #ffffff;
}

.flipbook .odd {
	background: #f8f8f8;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media screen and (max-width: 768px) {
	.flipbook-wrapper {
		padding: 70px 10px 100px 10px;
	}

	.instruction-text {
		top: 15px;
		padding: 10px 20px;
		gap: 10px;
		font-size: 13px;
	}

	.instruction-icon {
		font-size: 18px;
	}

	.flip-arrow {
		font-size: 16px;
	}

	.controls {
		bottom: 15px;
		padding: 10px 20px;
		gap: 15px;
	}

	.nav-btn {
		width: 40px;
		height: 40px;
	}

	.nav-btn svg {
		width: 20px;
		height: 20px;
	}

	.page-counter {
		font-size: 14px;
		min-width: 70px;
	}

	.loader-text {
		font-size: 16px;
	}

	.progress-bar {
		width: 200px;
	}
}

@media screen and (max-width: 480px) {
	.flipbook-wrapper {
		padding: 65px 5px 90px 5px;
	}

	.instruction-text {
		top: 10px;
		padding: 8px 16px;
		gap: 8px;
		font-size: 12px;
	}

	.instruction-icon {
		font-size: 16px;
	}

	.flip-arrow {
		font-size: 14px;
	}

	.controls {
		bottom: 10px;
		padding: 8px 16px;
		gap: 12px;
	}

	.nav-btn {
		width: 36px;
		height: 36px;
	}

	.nav-btn svg {
		width: 18px;
		height: 18px;
	}

	.page-counter {
		font-size: 13px;
		min-width: 60px;
	}

	.loader-text {
		font-size: 14px;
	}

	.progress-bar {
		width: 150px;
	}

	.spinner {
		width: 50px;
		height: 50px;
	}
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.flipbook-wrapper {
		padding: 60px 10px 75px 10px;
	}

	.instruction-text {
		top: 5px;
		padding: 6px 16px;
		font-size: 11px;
	}

	.controls {
		bottom: 10px;
		padding: 8px 20px;
	}
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */
.flipbook {
	transition: all 0.3s ease;
}

/* Smooth page turn effect */
.flipbook .turn-page {
	transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* High contrast mode */
@media (prefers-contrast: high) {
	.controls {
		background: rgba(0, 0, 0, 0.9);
		border: 2px solid #ffffff;
	}

	.nav-btn {
		background: #ffffff;
		color: #000000;
	}
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.flipbook,
.flipbook .page,
.flipbook .page img {
	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	-ms-transform: translateZ(0);
	-o-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-backface-visibility: visible;
	-moz-backface-visibility: visible;
	-ms-backface-visibility: visible;
	backface-visibility: visible;
	-webkit-perspective: 1000;
	-moz-perspective: 1000;
	-ms-perspective: 1000;
	perspective: 1000;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
	.controls,
	.loader-container,
	.instruction-text {
		display: none !important;
	}

	body {
		background: #ffffff;
	}

	.flipbook-wrapper {
		padding: 0;
		position: relative;
	}
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2.5rem;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-title {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-submit {
  margin-top: 1.5rem;
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
}

:root {
  /* Colors */
  --primary-color: #046bd2;
  --primary-hover: #045cb4;
  --secondary-color: #ec6f34;
  --text-dark: #1e293b;
  --text-gray: #334155;
  --bg-light: #F0F5FA;
  --bg-white: #FFFFFF;
  --border-color: #D1D5DB;
  
  /* Fonts */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 4rem 2rem;
  --card-padding: 2rem;
}


/* ===== MULTISELECT TAG STYLES ===== */
.multiselect-container {
  position: relative;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: white;
  margin-bottom: 5px;
}

.selected-tags:empty::before {
  content: 'Click to select...';
  color: #999;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #0a7fd4;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.tag .remove-tag {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.tag .remove-tag:hover {
  opacity: 1;
}

.multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none;
}

.multiselect-dropdown.active {
  display: block;
}

.multiselect-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.multiselect-option:last-child {
  border-bottom: none;
}

.multiselect-option:hover {
  background: #f5f5f5;
}

.multiselect-option.selected {
  background: #e3f2fd;
  color: #0a7fd4;
  font-weight: 500;
}

.multiselect-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #fafafa;
}

.dropdown-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 12px;
}

.multiselect-search {
  position: sticky;
  top: 0;
  background: white;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.multiselect-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

.multiselect-search input:focus {
  outline: none;
  border-color: #0a7fd4;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}



/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(4, 107, 210, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #d65e25;
  transform: translateY(-2px);
}