/*
Theme Name: PowerExpert-by-MrKali
Theme URI: https://powerexpert.at
Author: MrKali
Description: قالب مخصص يستخدم ملف home.php كصفحة رئيسية
Version: 1.0
*/

/* -----------------------------------
  Base Layout and Body
----------------------------------- */
body, html {
  height: 100%;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  background: linear-gradient(to bottom, #05122d, #0b1d4e, #010b1e, #080f32, #01030b);
}

/* -----------------------------------
  Starry Sky Background
----------------------------------- */
.starry-sky {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

#stars-container,
#shooting-stars-container,
#moving-stars-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.star, .moving-star, .shooting-star {
  position: absolute;
  background-color: white;
  border-radius: 100%;
}

.star {
  width: 1px;
  height: 1px;
  opacity: 0;
  animation: twinkling 2s infinite alternate, changePosition 4s infinite linear;
}

.shooting-star {
  width: 1px;
  height: 1px;
  animation: shootingStarAnimation 8s cubic-bezier(0.4, 0.1, 0.7, 0.9) infinite;
}

.moving-star {
  width: 3px;
  height: 3px;
  opacity: 0;
  animation: moveForward 5s linear forwards;
}

/* Individual Star Random Positions */
.star:nth-child(1) { --random-x: 0.1; --random-y: 0.2; }
.star:nth-child(2) { --random-x: 0.5; --random-y: 0.7; }
.star:nth-child(3) { --random-x: 0.9; --random-y: 0.1; }

/* -----------------------------------
  Atom Animation & Structure
----------------------------------- */
/* Atom Animation & Structure */
.atom-container {
  position: absolute;
  top: 59%;
  left: 13%;
  transform: translate(-50%, -50%) scale(clamp(0.5, 1vw, 1));
  transform-origin: center;
  z-index: 1;
}

.atom {
  position: relative;
  width: 15px;
  height: 15px;
  transform-style: preserve-3d;
  animation: rotateAtom 13s infinite linear;
}

.nucleus {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, #0000ff, #800080);
  box-shadow: inset -5px -5px 10px rgba(255, 255, 255, 0.2),
              inset 5px 5px 10px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg);
}

.inner-nucleus {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(0, 0, 255, 0.3);
  transform: translate(-50%, -50%) rotateX(-45deg) rotateY(-45deg);
}

.outer-nucleus {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, #800080, #4b0082);
  box-shadow: inset -5px -5px 10px rgba(255, 255, 255, 0.2),
              inset 5px 5px 10px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg);
}

.nucleus:nth-child(odd) {
  background: radial-gradient(circle, #0000ff, #800080);
}

.inner-nucleus:nth-child(odd) {
  background-color: rgba(0, 0, 255, 0.3);
}

.outer-nucleus:nth-child(odd) {
  background: radial-gradient(circle, #800080, #4b0082);
}

.nucleus:nth-child(2) {
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(90deg);
}

.inner-nucleus:nth-child(2) {
  background: radial-gradient(circle, #32CD32, #006400);
  transform: translate(-50%, -50%) rotateX(-45deg) rotateY(-90deg);
}

.outer-nucleus:nth-child(2) {
  background: radial-gradient(circle, #0000ff, #800080);
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(90deg);
}

.nucleus:nth-child(3) {
  background: radial-gradient(circle, #32CD32, #006400);
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(180deg);
}

.inner-nucleus:nth-child(3) {
  background: radial-gradient(circle, #0000ff, #800080);
  transform: translate(-50%, -50%) rotateX(-45deg) rotateY(-180deg);
}

.outer-nucleus:nth-child(3) {
  background-color: rgba(0, 0, 255, 0.3);
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(180deg);
}

.nucleus:nth-child(4) {
  background: radial-gradient(circle, #0000ff, #800080);
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(270deg);
}

.inner-nucleus:nth-child(4) {
  background-color: rgba(0, 0, 255, 0.3);
  transform: translate(-50%, -50%) rotateX(-45deg) rotateY(-270deg);
}

.outer-nucleus:nth-child(4) {
  background: radial-gradient(circle, #800080, #4b0082);
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(270deg);
}

.electron {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  color: #0f0;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.orbit1 { animation: orbit1 9s infinite linear; }
.orbit2 { animation: orbit2 8s infinite linear; }
.orbit3 { animation: orbit3 7s infinite linear; }
.orbit4 { animation: orbit4 6s infinite linear; }
.orbit5 { animation: orbit5 5s infinite linear; }
.orbit6 { animation: orbit6 4s infinite linear; }
.orbit7 { animation: orbit7 3s infinite linear; }


/* -----------------------------------
  Centered Content Container
----------------------------------- */
/* Container Styling */
/* Container Styling */
/* Container Styling */
.container {
  max-width: 1100px;
  padding: 20px;
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(5, 18, 45, 0.64), rgba(1, 3, 11, 0.64));
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 0;
  box-shadow:
    /* ضوء داخلي صغير ونظيف */
    inset 0 0 6px rgba(255, 255, 255, 0.12),
    /* لمعة خارجية ضيقة وشبه واضحة */
    0 0 6px 2px rgba(255, 255, 255, 0.15),
    /* توسيع خفيف */
    0 0 12px 4px rgba(255, 255, 255, 0.08);
  animation: softGlow 4s ease-in-out infinite alternate;
}

@keyframes softGlow {
  0% {
    box-shadow:
      inset 0 0 6px rgba(255, 255, 255, 0.12),
      0 0 6px 2px rgba(255, 255, 255, 0.15),
      0 0 12px 4px rgba(255, 255, 255, 0.08);
  }
  100% {
    box-shadow:
      inset 0 0 8px rgba(255, 255, 255, 0.15),
      0 0 8px 3px rgba(255, 255, 255, 0.20),
      0 0 16px 6px rgba(255, 255, 255, 0.12);
  }
}

.text {
  font-size: clamp(80px, 10vw, 140px);
  letter-spacing: 0.1em;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  text-align: center;
  position: relative;
}

/* -----------------------------------
under-construction-section
----------------------------------- */
.under-construction-section {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%) scale(0.85); /* تصغير عام */
  width: 90%;
  max-width: 600px;
  text-align: center;
  z-index: 10;
}

.message-box {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.notice-text {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 18px;
  font-weight: 500;
}

.contact-button {
  display: inline-block;
  background: linear-gradient(135deg, #00ffff, #00ccff); /* cyan futuristic */
  color: #000;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6); /* cyan glow */
  text-align: center;
}

.contact-button:hover {
  background: linear-gradient(135deg, #00ccff, #00ffff);
  transform: scale(1.05);
  box-shadow: 0 0 25px #00ffff;
}

.phone-number {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.whatsapp-icon {
  display: inline-block;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .under-construction-section {
    bottom: 10%;
    transform: translateX(-50%) scale(0.75); /* أصغر للجوال */
  }

  .notice-text {
    font-size: 14px;
  }

  .contact-button {
    font-size: 13px;
    padding: 10px 16px;
  }

  .phone-number {
    font-size: 12.5px;
  }

  .whatsapp-icon svg {
    width: 18px;
    height: 18px;
  }
}


/* -----------------------------------
  Keyframes
----------------------------------- */
@keyframes rotateAtom {
  from { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

@keyframes glow {
  0% { box-shadow: 0 0 20px rgba(255,255,255,0.5); }
  100% { box-shadow: 0 0 40px rgba(255,255,255,1); }
}

@keyframes twinkling {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}

@keyframes changePosition {
  0%, 100% {
    --x: calc(100 * var(--random-x));
    --y: calc(100 * var(--random-y));
  }
}

@keyframes shootingStarAnimation-0 {
  from { transform: translate(0, 0); opacity: 1; }
  to { transform: translate(100vw, 100vh); opacity: 0; }
}

@keyframes orbit1 { from { transform: rotate(0) translateX(120px) rotate(0); } to { transform: rotate(360deg) translateX(120px) rotate(-360deg); } }
@keyframes orbit2 { from { transform: rotate(0) translateX(150px) rotate(0); } to { transform: rotate(360deg) translateX(150px) rotate(-360deg); } }
@keyframes orbit3 { from { transform: rotate(0) translateX(180px) rotate(0); } to { transform: rotate(360deg) translateX(180px) rotate(-360deg); } }
@keyframes orbit4 { from { transform: rotate(0) translateX(210px) rotate(0); } to { transform: rotate(360deg) translateX(210px) rotate(-360deg); } }
@keyframes orbit5 { from { transform: rotate(0) translateX(240px) rotate(0); } to { transform: rotate(360deg) translateX(240px) rotate(-360deg); } }
@keyframes orbit6 { from { transform: rotate(0) translateX(270px) rotate(0); } to { transform: rotate(360deg) translateX(270px) rotate(-360deg); } }
@keyframes orbit7 { from { transform: rotate(0) translateX(300px) rotate(0); } to { transform: rotate(360deg) translateX(300px) rotate(-360deg); } }

@keyframes slideInFromMiddleLeft {
  from { transform: translateX(-100%) translateY(-50%); opacity: 0; }
  to { transform: translateX(-50%) translateY(-50%); opacity: 1; }
}

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

/* -----------------------------------
  Responsive Design
----------------------------------- */
@media (max-width: 1200px) {
  .text { font-size: 80px; }
}

@media (max-width: 992px) {
  .text { font-size: 60px; }
  .container {
    max-width: 90%;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .text { font-size: 45px; }
  .registration-button {
    gap: 15px;
    bottom: 10%;
  }
  .advanced-button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .atom-container {
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@media (max-width: 576px) {
  .text {
    font-size: 32px;
    letter-spacing: 0.05em;
  }
  .container {
    padding: 10px;
    max-width: 95%;
  }
}

/* Logoooooo ===================================Atommmmm*/

.logo-wrapper {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  z-index: 10;
  pointer-events: none;
}

/* عام */
body, html {
  height: 100%;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  background: linear-gradient(to bottom, #05122d, #0b1d4e, #010b1e, #080f32, #01030b);
  overflow: hidden;
}

/* ===========================
   دلالة المسار للإلكترونات
   =========================== */
.electrni-path-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

/* ===========================
   الإلكترونات (Orbeti + Trail)
   =========================== */
.electrni {
  position: absolute;
  top: calc(50% + 5px);
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 4px rgba(255,255,255,0.6),
    0 0 12px rgba(255,255,255,0.3);
  animation:
    orbetiAnimation 9s cubic-bezier(0.6,0,0.4,1) infinite reverse,
    electrniTrail 1.5s ease-in-out infinite;
}

/* مفاتيح دوران الإلكترونات */
.orbeti1 { animation-duration: 9s, 1.5s; }
.orbeti2 { animation-duration: 8s, 1.5s; }
.orbeti3 { animation-duration: 7s, 1.5s; }
.orbeti4 { animation-duration: 6s, 1.5s; }
.orbeti5 { animation-duration: 5s, 1.5s; }

@keyframes orbetiAnimation {
  from { transform: rotateY(90deg) translateY(-30px) translateZ(156px); }
  to   { transform: rotateY(-270deg) translateY(-30px) translateZ(156px); }
}

@keyframes electrniTrail {
  0%, 100% {
    box-shadow:
      0 0 4px rgba(255,255,255,0.6),
      0 0 12px rgba(255,255,255,0.3);
  }
  50% {
    box-shadow:
      0 0 2px rgba(255,255,255,0.4),
      0 0 6px rgba(255,255,255,0.2);
  }
}

/* ===========================
   الدوائر المحيطة (Orbiting Circles)
   =========================== */
.circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  animation: rotateCircles 10s infinite linear;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 4px rgba(255,255,255,0.2);
}

@keyframes rotateCircles {
  from { transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg); }
  to   { transform: translate(-50%, -50%) rotateY(360deg) rotateX(360deg); }
}

#circle1 { width:102px; height:102px; animation-duration:6s; animation-direction:alternate; }
#circle2 { width:143px; height:143px; animation-duration:8s; animation-direction:reverse; }
#circle3 { width:184px; height:184px; animation-duration:10s; }
#circle4 { width:224px; height:224px; animation-duration:12s; }
#circle5 { width:265px; height:265px; animation-duration:14s; }

/* ===========================
   الشعار المركزي (Logo Core & Hexagon)
   =========================== */
.logo-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  z-index: 10;
}

.hexagon-outer {
  width: 52px;
  height: 30px;
  background: rgba(0,255,255,0.03);
  clip-path: polygon(25% 0%,75% 0%,100% 50%,75% 100%,25% 100%,0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backface-visibility: hidden;
  transition: outline .3s ease, transform .3s ease;
}

.hexagon-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
  border: 1px solid rgba(255,255,255,0.3);
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.2));
  animation: borderPulse 2s ease-in-out infinite;
}

.hexagon-inner {
  width: 43px;
  height: 25px;
  background: transparent;
  clip-path: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.power-icon {
  width: 24px;
  height: 24px;
  animation: iconPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.5));
}
.power-path { fill:white; stroke:none; }

@keyframes borderPulse {
  0%,100% { opacity:0; transform:scale(1.03); filter:drop-shadow(0 0 0 white); }
  50%   { opacity:1; transform:scale(1.10); filter:drop-shadow(0 0 4px white); }
}
@keyframes iconPulse {
  0%,100% { transform:scale(1); filter:drop-shadow(0 0 0 white); }
  50%   { transform:scale(1.05); filter:drop-shadow(0 0 4px white); }
}

/* ===========================
   Tachometer Ring
   =========================== */
.tachometer-ring {
  position:absolute;
  top:50%; left:50%;
  width:250px; height:250px;
  margin:-125px 0 0 -125px;
  pointer-events:none;
  z-index:5;
}

.tick-mark {
  position:absolute;
  top:50%; left:50%;
  width:2px; height:12px;
  background:#fff;
  box-shadow:0 0 6px rgba(255,255,255,0.3);
  transform-origin:center;
}
.tick-mark.small { height:6px; opacity:.6; box-shadow:0 0 4px rgba(255,255,255,0.2); }
.tick-mark.tiny { height:3px; opacity:.4; box-shadow:0 0 3px rgba(255,255,255,0.15); }

.binary-digit {
  position:absolute;
  top:50%; left:50%;
  font:14px monospace;
  color:#fff;
  text-shadow:0 0 5px rgba(255,255,255,0.3);
  transform:translate(-50%,-50%);
}

@keyframes rotateRing { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.animated-glow-rotate { animation:rotateRing 60s linear infinite reverse; }

/* ===========================
   حلقة الإلكترونات (Electrni Ring)
   =========================== */
.electrni-ring {
  position:absolute;
  top:50%; left:50%;
  width:280px; height:280px;
  margin:-140px 0 0 -140px;
  border-radius:50%;
  animation:rotateRing 10s linear infinite reverse;
  pointer-events:none;
  z-index:4;
}

.electrni-dot {
  position:absolute;
  width:8px; height:8px;
  background:#fff; border-radius:50%;
  top:50%; left:50%; transform-origin:center;
  transform:rotate(calc(var(--i)*60deg)) translate(0,-140px);
  box-shadow:0 0 8px rgba(255,255,255,0.8),0 0 12px rgba(255,255,255,0.5);
  animation:electrniTrail 1.5s ease-in-out infinite;
}
