/* ==========================================================================
   core42.info - Stylesheet
   Modern Glassmorphism & Interactive Ambient Lighting
   ========================================================================== */

:root {
  --bg-color: #06090e;
  --card-bg: rgba(13, 20, 34, 0.45);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-glow: rgba(56, 189, 248, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #38bdf8;
  --accent-cyan: #22d3ee;
  --accent-glow: rgba(56, 189, 248, 0.25);
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  font-family: var(--font-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Layers */
.bg-layer {
  position: fixed;
  inset: -20px;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.72) contrast(1.08) saturate(1.1);
  transform: translateZ(0) scale(1.02);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
  will-change: transform;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 9, 14, 0.2) 0%, rgba(6, 9, 14, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Ambient Deep Rain Canvas */
.rain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* Behind the card, out in the open background */
}

/* Dynamic Spotlight that follows mouse */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(56, 189, 248, 0.12),
    rgba(14, 165, 233, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
  will-change: background;
}

/* Page Layout */
.page-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
  perspective: 1200px;
}

/* 3D Tilt Card Wrapper */
.card-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Card Body */
.card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 44px 38px 34px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 35px var(--accent-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  border-color: var(--card-border-glow);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(56, 189, 248, 0.2) inset,
    0 0 45px rgba(56, 189, 248, 0.35);
}

/* Subtle Card Glow Highlight */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
  animation: pulse-dot 2.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 500;
}

/* Brand Header */
.brand-header {
  margin-bottom: 24px;
}

.logo {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.logo-core {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-num {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.5));
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Accent Line */
.accent-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  margin-bottom: 28px;
  border-radius: 2px;
}

/* Contact Section */
.contact-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 8px 10px 8px 18px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.email-box:hover {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.email-link {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: #f1f5f9;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.email-box:hover .email-link {
  color: var(--accent-blue);
}

.copy-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-blue);
}

.copy-btn .icon {
  width: 17px;
  height: 17px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-btn .icon-check {
  display: none;
  color: #34d399;
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: block;
}

/* Tooltip */
.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  color: #f8fafc;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.copy-btn:hover .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Card Footer */
.card-footer {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.7);
  letter-spacing: 0.02em;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .card {
    padding: 36px 24px 26px;
    border-radius: 22px;
  }
  
  .logo {
    font-size: 2.8rem;
  }
  
  .tagline {
    font-size: 0.95rem;
  }

  .card-footer {
    flex-direction: column;
    gap: 6px;
  }
}
