/* ============================================
   PRIME APEX TECHNOLOGIES 1956 — GLOBAL RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:          #050d1a;
  --color-bg2:         #030810;
  --color-blue:        #1e90ff;
  --color-blue-bright: #4fc3f7;
  --color-red:         #e63946;
  --color-silver:      #c8d6e5;
  --color-white:       #ffffff;
  --color-glow-blue:   rgba(30, 144, 255, 0.6);
  --color-glow-red:    rgba(230, 57, 70, 0.4);
  --font-display:      'Orbitron', sans-serif;
  --font-body:         'Rajdhani', sans-serif;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, #0d1f40 0%, #050d1a 50%, #030810 100%);
  font-family: var(--font-body);
  color: var(--color-silver);
  position: relative;
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   SCANLINE EFFECT
   ============================================ */
.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
}

/* ============================================
   GRID OVERLAY
   ============================================ */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(30, 144, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================
   CORNER DECORATIONS
   ============================================ */
.corner {
  position: fixed;
  width: 60px;
  height: 60px;
  z-index: 10;
  pointer-events: none;
}

.corner-tl { top: 20px; left: 20px;
  border-top: 2px solid var(--color-blue);
  border-left: 2px solid var(--color-blue);
}
.corner-tr { top: 20px; right: 20px;
  border-top: 2px solid var(--color-red);
  border-right: 2px solid var(--color-red);
}
.corner-bl { bottom: 20px; left: 20px;
  border-bottom: 2px solid var(--color-blue);
  border-left: 2px solid var(--color-blue);
}
.corner-br { bottom: 20px; right: 20px;
  border-bottom: 2px solid var(--color-red);
  border-right: 2px solid var(--color-red);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 20px;
  text-align: center;
  flex: 1;
}

/* ============================================
   LOGO LINK & WRAPPER
   ============================================ */
#logo-link {
  display: block;
  text-decoration: none;
  outline: none;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Outer glow ring */
.logo-glow-ring {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(30, 144, 255, 0.15) 0%,
    rgba(230, 57, 70, 0.08) 50%,
    transparent 70%
  );
  animation: glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

/* Pulse ring */
.logo-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(30, 144, 255, 0.3);
  animation: pulse-ring 2.5s ease-out infinite;
  pointer-events: none;
}

/* Logo image */
.logo-img {
  display: block;
  width: clamp(280px, 45vw, 560px);
  height: auto;
  filter:
    drop-shadow(0 0 20px var(--color-glow-blue))
    drop-shadow(0 0 40px rgba(30, 144, 255, 0.3))
    drop-shadow(0 0 8px var(--color-glow-red));
  transition: filter 0.4s ease;
  position: relative;
  z-index: 2;
}

.logo-wrapper:hover .logo-img {
  filter:
    drop-shadow(0 0 30px var(--color-glow-blue))
    drop-shadow(0 0 60px rgba(30, 144, 255, 0.5))
    drop-shadow(0 0 15px var(--color-glow-red));
}

/* Hover overlay */
.logo-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
  border-radius: 8px;
}

.logo-wrapper:hover .logo-hover-overlay {
  opacity: 1;
}

.visit-text {
  font-family: var(--font-display);
  font-size: clamp(10px, 1.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-blue-bright);
  text-shadow: 0 0 10px var(--color-glow-blue);
  margin-right: 8px;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  color: var(--color-blue-bright);
  filter: drop-shadow(0 0 6px var(--color-glow-blue));
  animation: arrow-bounce 1s ease-in-out infinite;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: clamp(200px, 40vw, 440px);
}

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

.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--color-blue-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--color-glow-blue);
  flex-shrink: 0;
}

/* ============================================
   TAGLINE
   ============================================ */
.tagline {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.8vw, 15px);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-silver);
  opacity: 0.75;
}

/* ============================================
   STATUS BAR
   ============================================ */
.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 144, 255, 0.05);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 20px;
  padding: 6px 18px;
  backdrop-filter: blur(6px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff9d;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.8);
  animation: blink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.status-text {
  font-family: var(--font-display);
  font-size: clamp(8px, 1.2vw, 11px);
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(0, 255, 157, 0.9);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 20;
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid rgba(30, 144, 255, 0.1);
  width: 100%;
  background: rgba(3, 8, 16, 0.5);
  backdrop-filter: blur(4px);
}

.footer p {
  font-family: var(--font-body);
  font-size: clamp(9px, 1.2vw, 12px);
  letter-spacing: 0.08em;
  color: rgba(200, 214, 229, 0.35);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.7; }
  60%  { transform: scale(1.08); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

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

@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .corner { width: 40px; height: 40px; }
  .corner-tl, .corner-tr { top: 12px; }
  .corner-bl, .corner-br { bottom: 12px; }
  .corner-tl, .corner-bl { left: 12px; }
  .corner-tr, .corner-br { right: 12px; }
  .main-container { gap: 20px; padding: 30px 16px; }
}

@media (max-width: 320px) {
  .logo-img { width: 90vw; }
  .tagline  { letter-spacing: 0.2em; }
}
