/* ============================================
   CGREENSA — Under Construction Page
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0e0e10;
  --color-bg-soft: #18181b;
  --color-surface: #1e1e22;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-text: #e8e8ea;
  --color-text-muted: #8a8a8f;
  --color-accent: #cc6633;
  --color-accent-light: #e07840;
  --color-accent-glow: rgba(204, 102, 51, 0.25);
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- Animated Background Particles --- */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  animation: particleFloat 18s infinite ease-in-out;
  transition: transform 0.6s var(--ease-out-expo);
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}
.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  top: 25%;
  left: 85%;
  animation-delay: 2s;
  animation-duration: 22s;
}
.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  top: 55%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 18s;
}
.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 70%;
  left: 75%;
  animation-delay: 6s;
  animation-duration: 24s;
}
.particle:nth-child(5) {
  width: 3px;
  height: 3px;
  top: 40%;
  left: 60%;
  animation-delay: 1s;
  animation-duration: 19s;
}
.particle:nth-child(6) {
  width: 4px;
  height: 4px;
  top: 80%;
  left: 40%;
  animation-delay: 3s;
  animation-duration: 21s;
}
.particle:nth-child(7) {
  width: 5px;
  height: 5px;
  top: 10%;
  left: 50%;
  animation-delay: 5s;
  animation-duration: 23s;
}
.particle:nth-child(8) {
  width: 3px;
  height: 3px;
  top: 90%;
  left: 15%;
  animation-delay: 7s;
  animation-duration: 17s;
}

@keyframes particleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  10% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.15;
    transform: translateY(-60px) scale(1.5);
  }
  90% {
    opacity: 0.3;
  }
}

/* --- Grid Overlay --- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 70%
  );
}

/* --- Container --- */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

/* --- Logo --- */
.logo-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.2s both;
}

.logo-glow {
  position: absolute;
  width: 200px;
  height: 120px;
  top: 50%;
  left: 50%;
  margin-left: -100px;
  margin-top: -60px;
  background: radial-gradient(
    ellipse,
    var(--color-accent-glow) 0%,
    transparent 70%
  );
  filter: blur(40px);
  opacity: 0.7;
  transition: transform 0.8s var(--ease-out-expo);
  animation: glowPulse 4s ease-in-out infinite;
}

.logo {
  width: 280px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(204, 102, 51, 0.15));
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.4s both;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border),
    transparent
  );
}

.divider-icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  animation: iconBreathe 3s ease-in-out infinite;
}

@keyframes iconBreathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--color-accent-glow);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 2px var(--color-accent-glow);
  }
}

/* --- Content --- */
.content {
  text-align: center;
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.6s both;
}

/* --- Title --- */
.title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.title-line {
  display: block;
}

.title-highlight {
  color: var(--color-accent);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.title-highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-light)
  );
  border-radius: 2px;
  animation: underlineGrow 1.2s var(--ease-out-expo) 1s both;
}

@keyframes underlineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* --- Subtitle --- */
.subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Progress Bar --- */
.progress-section {
  margin-bottom: 3rem;
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.8s both;
}

.progress-bar {
  width: 280px;
  height: 4px;
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  position: relative;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 65%;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-light)
  );
  border-radius: 4px;
  animation: progressGrow 2s var(--ease-out-expo) 1.2s both;
}

.progress-shimmer {
  position: absolute;
  inset: 0;
  width: 65%;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  animation:
    progressGrow 2s var(--ease-out-expo) 1.2s both,
    shimmer 2.5s ease-in-out 3s infinite;
}

@keyframes progressGrow {
  from {
    width: 0;
  }
  to {
    width: 65%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* --- Contact --- */
.contact-section {
  animation: fadeSlideUp 1s var(--ease-out-expo) 1s both;
}

.contact-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease-out-expo);
}

.contact-btn:hover {
  background: rgba(204, 102, 51, 0.08);
  border-color: rgba(204, 102, 51, 0.3);
  box-shadow: 0 0 24px rgba(204, 102, 51, 0.1);
  transform: translateY(-2px);
}

.contact-btn svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding-top: 3rem;
  animation: fadeSlideUp 1s var(--ease-out-expo) 1.2s both;
}

.footer p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* --- Shared Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .title {
    font-size: 1.85rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .logo {
    width: 220px;
  }

  .container {
    padding: 2rem 1.25rem;
  }

  .progress-bar {
    width: 220px;
  }
}

@media (max-width: 380px) {
  .title {
    font-size: 1.5rem;
  }

  .logo {
    width: 180px;
  }
}
