/* Modern EGYCO Preloader CSS */
.tj-preloader {
  background: linear-gradient(135deg, #000 0%, #111 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: visible;
  opacity: 1;
  z-index: 999999;
  transition: all 0.8s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Hide preloader after loading */
.tj-preloader--hidden {
  visibility: hidden;
  opacity: 0;
  z-index: -1;
}

/* Content container */
.preloader-content {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Geometric Elements */
.geometric-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.geo-square {
  position: absolute;
  border: 3px solid #F8D568;
  transform-origin: center;
  opacity: 0;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.geo-square-outer {
  top: 50px;
  left: 50px;
  width: 200px;
  height: 200px;
}

.geo-square-inner {
  top: 75px;
  left: 75px;
  width: 150px;
  height: 150px;
}

.geo-line {
  position: absolute;
  background-color: #F8D568;
  transform-origin: center;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
  opacity: 0;
}

.geo-line-h1 {
  top: 100px;
  left: 0;
  width: 300px;
  height: 3px;
}

.geo-line-h2 {
  top: 200px;
  left: 0;
  width: 300px;
  height: 3px;
}

.geo-line-v1 {
  top: 0;
  left: 100px;
  width: 3px;
  height: 300px;
}

.geo-line-v2 {
  top: 0;
  left: 200px;
  width: 3px;
  height: 300px;
}

/* Logo text */
.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.logo-text {
  font-family: 'Arial', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #F8D568;
  text-shadow: 0 0 20px rgba(248, 213, 104, 0.7);
  letter-spacing: 5px;
  opacity: 0;
  transform: scale(0.8);
}

/* Accent dots */
.accent-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #F8D568;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.7);
  opacity: 0;
}

.dot-1 { top: 50px; left: 50px; }
.dot-2 { top: 50px; right: 50px; }
.dot-3 { bottom: 50px; left: 50px; }
.dot-4 { bottom: 50px; right: 50px; }
.dot-5 { top: 50%; left: 20px; transform: translateY(-50%); }
.dot-6 { top: 50%; right: 20px; transform: translateY(-50%); }

/* Progress indicator */
.progress-indicator {
  position: absolute;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.progress-text {
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F8D568;
  letter-spacing: 3px;
}

/* Background particles */
.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #F8D568;
  border-radius: 50%;
  opacity: 0;
}

/* Tagline */
.tj-preloader__tagline-container {
  position: absolute;
  bottom: 80px;
  text-align: center;
  opacity: 0;
}

.tj-preloader__tagline {
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 8px;
  color: #F8D568;
  text-transform: uppercase;
}

/* Premium EGYCO 3D Preloader CSS */
.tj-preloader {
  background: linear-gradient(135deg, #000 0%, #111 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: visible;
  opacity: 1;
  z-index: 999999;
  transition: all 0.8s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 1200px;
}

/* Main container */
.preloader-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 3D container */
.scene-3d {
  position: relative;
  width: 400px;
  height: 400px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* 3D rotating cube */
.cube {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
  border: 2px solid rgba(248, 213, 104, 0.3);
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(248, 213, 104, 0.2);
}

.cube-face-front {
  transform: translateZ(150px);
}

.cube-face-back {
  transform: translateZ(-150px) rotateY(180deg);
}

.cube-face-right {
  transform: translateX(150px) rotateY(90deg);
}

.cube-face-left {
  transform: translateX(-150px) rotateY(-90deg);
}

.cube-face-top {
  transform: translateY(-150px) rotateX(90deg);
}

.cube-face-bottom {
  transform: translateY(150px) rotateX(-90deg);
}

/* 3D Logo elements */
.logo-3d-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  z-index: 10;
  display: flex;
}

.logo-3d-letter {
  font-family: 'Arial', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #F8D568;
  text-shadow: 0 0 10px rgba(248, 213, 104, 0.7);
  margin: 0 5px;
  opacity: 0;
  transform: rotateY(180deg);
}

/* Floating elements */
.floating-element {
  position: absolute;
  opacity: 0;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 15px rgba(248, 213, 104, 0.6));
}

.floating-1 {
  transform: translate3d(-200px, -100px, 200px);
}

.floating-2 {
  transform: translate3d(200px, -150px, -100px);
}

.floating-3 {
  transform: translate3d(-150px, 200px, -150px);
}

.floating-4 {
  transform: translate3d(150px, 150px, 100px);
}

/* Light beams */
.light-beam {
  position: absolute;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, rgba(248, 213, 104, 0.9), rgba(248, 213, 104, 0));
  opacity: 0;
}

.beam-1 {
  top: 0;
  left: 30%;
}

.beam-2 {
  top: 0;
  left: 70%;
}

.beam-3 {
  top: 0;
  left: 20%;
}

.beam-4 {
  top: 0;
  left: 80%;
}

/* Main logo display */
.main-logo {
  position: relative;
  margin-top: 40px;
  opacity: 0;
  transform: scale(0.8);
}

.logo-text {
  font-family: 'Arial', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #F8D568;
  text-shadow: 0 0 20px rgba(248, 213, 104, 0.7);
  letter-spacing: 8px;
}

/* Circular progress indicator */
.progress-circle-container {
  position: relative;
  margin-top: 30px;
  opacity: 0;
}

.progress-circle {
  position: relative;
  width: 100px;
  height: 100px;
}

.progress-circle-bg,
.progress-circle-fill {
  fill: none;
  stroke-width: 3;
  transform: rotate(-90deg);
  transform-origin: center;
}

.progress-circle-bg {
  stroke: rgba(248, 213, 104, 0.2);
}

.progress-circle-fill {
  stroke: #F8D568;
  stroke-linecap: round;
  stroke-dashoffset: 283; /* Initial value: 2 * π * 45 */
  transition: stroke-dashoffset 0.1s ease;
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F8D568;
}

/* Tagline */
.tj-preloader__tagline-container {
  position: relative;
  margin-top: 30px;
  text-align: center;
  opacity: 0;
}

.tj-preloader__tagline {
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 8px;
  color: #F8D568;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Particles system */
.particles-system {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(248, 213, 104, 0.6);
  border-radius: 50%;
  opacity: 0;
}

/* EGYCO Blueprint Construction Preloader CSS */
.tj-preloader {
  background: #0a1520;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: visible;
  opacity: 1;
  z-index: 999999;
  transition: all 0.8s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Hide preloader after loading */
.tj-preloader--hidden {
  visibility: hidden;
  opacity: 0;
  z-index: -1;
}

/* Content container */
.preloader-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Blueprint container */
.blueprint-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 20px;
}

/* Blueprint grid */
.blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(248, 213, 104, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 213, 104, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
  transform: scale(0);
  transform-origin: center;
}

/* Construction elements */
.construction-element {
  position: absolute;
  background-color: #F8D568;
  opacity: 0;
}

.beam-horizontal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 8px;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.beam-vertical {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 0;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.column-left {
  bottom: 50%;
  left: 25%;
  width: 12px;
  height: 0;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.column-right {
  bottom: 50%;
  right: 25%;
  width: 12px;
  height: 0;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.roof-element {
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 50px solid #F8D568;
  background-color: transparent;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

/* Construction crane */
.crane-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 200px;
  opacity: 0;
}

.crane-base {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 60px;
  height: 20px;
  background-color: #F8D568;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.crane-tower {
  position: absolute;
  bottom: 20px;
  left: 40px;
  width: 20px;
  height: 150px;
  background-color: #F8D568;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.crane-arm {
  position: absolute;
  top: 30px;
  left: 40px;
  width: 120px;
  height: 12px;
  background-color: #F8D568;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
  transform-origin: left center;
  transform: rotate(-10deg);
}

.crane-weight {
  position: absolute;
  top: 15px;
  left: 30px;
  width: 20px;
  height: 30px;
  background-color: #F8D568;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.crane-cabin {
  position: absolute;
  top: 50px;
  left: 35px;
  width: 30px;
  height: 20px;
  background-color: #F8D568;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

.crane-cable {
  position: absolute;
  top: 42px;
  left: 120px;
  width: 2px;
  height: 80px;
  background-color: #F8D568;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.5);
}

/* Blueprint Logo */
.blueprint-logo-container {
  position: relative;
  margin-bottom: 30px;
}

.blueprint-logo {
  width: 220px;
  height: 80px;
}

.blueprint-logo-text {
  fill: none;
  font-family: 'Arial', sans-serif;
  font-size: 55px;
  font-weight: 900;
  stroke: #F8D568;
  stroke-width: 2;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  text-anchor: middle;
}

/* Progress bar */
.blueprint-progress-container {
  position: relative;
  width: 300px;
  margin-bottom: 20px;
  text-align: center;
  opacity: 0;
}

.blueprint-progress-bar {
  width: 100%;
  height: 5px;
  background-color: rgba(248, 213, 104, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.blueprint-progress-fill {
  width: 0%;
  height: 100%;
  background-color: #F8D568;
  box-shadow: 0 0 15px rgba(248, 213, 104, 0.7);
  transition: width 0.1s linear;
}

.blueprint-progress-text {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #F8D568;
  letter-spacing: 2px;
}

/* Tagline */
.tj-preloader__tagline-container {
  position: relative;
  text-align: center;
  opacity: 0;
}

.tj-preloader__tagline {
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 8px;
  color: #F8D568;
  text-transform: uppercase;
  white-space: nowrap;
} 