/* 
  PTCON Under Construction Page Stylesheet
  Corporate / Professional Theme (Navy Blue & Slate)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg-primary: #0f172a;      /* Slate 900 */
  --bg-secondary: #1e293b;    /* Slate 800 */
  --accent-primary: #2563eb;  /* Royal Blue 600 */
  --accent-secondary: #1d4ed8;/* Royal Blue 700 */
  --accent-light: #3b82f6;    /* Royal Blue 500 */
  --text-main: #f8fafc;       /* Slate 50 */
  --text-muted: #94a3b8;      /* Slate 400 */
  --text-dark: #64748b;       /* Slate 500 */
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --font-family: 'Outfit', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(29, 78, 216, 0.1), transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #020617 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  line-height: 1.6;
}

/* Background grid overlay for premium engineering feel */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 40px 40px;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

/* Container limits */
.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  z-index: 2;
}

/* Logo styling */
.header-logo {
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInDown 1s ease forwards;
}

.logo-img {
  max-height: 90px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Card layout */
.main-card {
  width: 100%;
  max-width: 780px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
  position: relative;
  overflow: hidden;
}

/* Card shine effect */
.main-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 55%
  );
  transform: rotate(45deg);
  pointer-events: none;
  animation: cardShine 10s infinite linear;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent-light);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.status-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-light);
  animation: pulse 1.8s infinite;
}

/* Headings */
.title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  background: linear-gradient(to bottom right, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title span {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
  -webkit-text-fill-color: var(--text-muted); /* Fallback reset */
}

.description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.description-en {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
}

/* Countdown Grid */
.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.countdown-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-box:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 
              0 0 15px rgba(37, 99, 235, 0.1);
}

.countdown-val {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  font-feature-settings: "tnum"; /* Tabular numbers to prevent jitter */
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 0.3rem;
}

/* Progress bar indicator */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.progress-bar-fill {
  height: 100%;
  width: 90%; /* Placeholder width showing high completion */
  background: linear-gradient(90deg, var(--accent-secondary) 0%, var(--accent-light) 100%);
  border-radius: 10px;
  position: relative;
  animation: progressPulse 2s infinite ease-in-out;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-dark);
  text-align: right;
  margin-bottom: 2rem;
}

/* Footer Section */
footer {
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  z-index: 2;
  text-align: center;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.company-name span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.office-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
}

.contact-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}

.contact-item i {
  color: var(--accent-light);
  font-size: 1rem;
}

.contact-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-1px);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
}

.social-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-top: 1rem;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

@keyframes cardShine {
  0% {
    transform: translate(-30%, -30%) rotate(45deg);
  }
  100% {
    transform: translate(30%, 30%) rotate(45deg);
  }
}

@keyframes progressPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .main-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .title {
    font-size: 1.75rem;
  }

  .title span {
    font-size: 1.25rem;
  }

  .countdown-container {
    gap: 0.75rem;
  }

  .countdown-box {
    padding: 1rem 0.25rem;
    border-radius: 12px;
  }

  .countdown-val {
    font-size: 1.85rem;
  }

  .countdown-label {
    font-size: 0.6rem;
    letter-spacing: 0.05rem;
  }

  .contact-info-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

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

  .countdown-val {
    font-size: 1.5rem;
  }
}
