/* Design System & Variables */
:root {
  --primary-blue: #026cfe;
  --primary-blue-hover: #0056cb;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;
  --footer-bg: #1e293b;
  --footer-text: #94a3b8;
  --bg-light: #ffffff;
  --card-bg-hover: rgba(255, 255, 255, 0.9);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

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

html,
body {
  height: 100%;
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* App Container Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Header & Hero Section */
.home-header {
  height: 500px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/images/background-electric.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.home-logo-image {
  width: 494px;
  height: 153px;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
  animation: logoFadeIn 1s ease-out;
}

/* Social Media Links (Moved Under Logo) */
.hero-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 10;
}

.hero-social-links a {
  color: #ffffff;
  opacity: 0.85;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-social-links a:hover {
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(2, 108, 254, 0.8));
}

.hero-social-links i.lab,
.hero-social-links i.las {
  font-size: 38px;
}

/* Main Content Area */
.page-content {
  flex-grow: 1;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem 5rem 2rem;
}

.intro-section {
  max-width: 800px;
  text-align: center;
  margin-bottom: 3.5rem;
}

.intro-lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.intro-sub {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
}

/* Showcase Section */
.home-showcase {
  width: 80%;
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2.5rem;
}

.home-showcase__item {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  background-color: transparent;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.home-showcase__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background-color: #ffffff;
  opacity: 0;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  z-index: 1;
  transition: var(--transition-smooth);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.home-showcase__item:hover::before {
  opacity: 1;
  border-color: rgba(2, 108, 254, 0.3);
}

.card-icon-wrapper,
.product-title,
.status-badge-container,
.product-description {
  position: relative;
  z-index: 2;
}

.card-icon-wrapper {
  transition: var(--transition-smooth);
}

.product-logo {
  transition: var(--transition-smooth);
}

.home-showcase__item:hover {
  transform: translateY(-8px);
}

.home-showcase__item:hover .product-logo {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.product-title {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark);
  text-align: center;
}

.product-description {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  text-align: center;
  font-weight: 400;
}

/* Status Badge Styling */
.status-badge-container {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  min-height: 32px;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  animation: badgeFadeIn 0.3s ease-out;
}

.alert-badge.checking {
  background: rgba(203, 213, 225, 0.2);
  color: #475569;
  border-color: rgba(203, 213, 225, 0.4);
}

.alert-badge.unknown {
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.alert-badge.online {
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.2);
}

.alert-badge.offline {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.online .badge-dot {
  background: #22c55e;
}

.offline .badge-dot {
  background: #ef4444;
}

.unknown .badge-dot {
  background: #f59e0b;
}

.checking .badge-dot {
  background: #94a3b8;
}

.badge-dot.pulse {
  animation: dotPulse 2s ease-in-out infinite;
}

.badge-dot.pulse-checking {
  animation: dotPulseChecking 1.2s ease-in-out infinite;
}

/* Site Footer */
.site-footer {
  height: 50px;
  background-color: #333333;
  color: #999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.footer-separator {
  color: #555555;
}

.status-check-time {
  font-weight: 400;
  color: #999999;
}



/* Keyframe Animations */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes dotPulseChecking {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Responsive Breakpoints */
@media screen and (max-width: 992px) {
  .home-showcase {
    width: 90%;
    gap: 1.5rem;
  }
}



@media screen and (max-width: 700px) {
  .home-header {
    height: 300px;
  }

  .home-logo-image {
    width: 65%;
    height: auto;
  }

  .top-navbar {
    padding: 1rem 1.5rem;
  }

  .page-content {
    padding: 3rem 1.5rem 4rem 1.5rem;
  }

  .intro-lead {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .intro-sub {
    font-size: 1rem;
    line-height: 1.6;
  }

  .home-showcase {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2rem;
  }

  .home-showcase__item {
    width: 85%;
    padding: 1.5rem 1rem;
    background-color: transparent;
    box-shadow: none;
  }

  .home-showcase__item::before {
    display: none;
  }

  .home-showcase__item:hover {
    transform: translateY(-4px);
  }

  .footer-layout {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    width: 95%;
  }
}

@media screen and (max-width: 480px) {
  .home-showcase__item {
    width: 100%;
  }
}