/* ==========================================================================
   HoloWorld Modern Cyberpunk Glassmorphism Stylesheet
   Version: 1.0.0
   ========================================================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@600;800;900&family=Share+Tech+Mono&display=swap');

:root {
  /* Color Palette */
  --bg-color: #040806;
  --matrix-green: #00ff66;
  --matrix-green-glow: rgba(0, 255, 102, 0.35);
  --matrix-green-dim: rgba(0, 255, 102, 0.1);
  --glass-bg: rgba(6, 12, 8, 0.75);
  --glass-border: rgba(0, 255, 102, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #8da294;
  --text-muted: #536b5c;
  --badge-bg: rgba(255, 166, 0, 0.1);
  --badge-border: rgba(255, 166, 0, 0.3);
  --badge-text: #ffa600;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Core Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--matrix-green) var(--bg-color);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--matrix-green-dim);
  border-radius: 3px;
  border: 1px solid var(--matrix-green);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--matrix-green);
}

/* Canvas Backdrop */
#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* Base Wrapper for Flex Alignment */
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

/* Glassmorphism Main Container */
.container {
  width: 100%;
  max-width: 480px;
  padding: 40px 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
              0 0 30px rgba(0, 255, 102, 0.05),
              inset 0 0 15px rgba(0, 255, 102, 0.02);
  text-align: center;
  animation: containerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes containerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Section */
header {
  margin-bottom: 25px;
}

.logo-container {
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}

.logo-container::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px dashed var(--matrix-green);
  opacity: 0.3;
  animation: rotateDashed 20s linear infinite;
}

@keyframes rotateDashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: block;
  border: 2px solid var(--matrix-green);
  box-shadow: 0 0 20px var(--matrix-green-glow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: #000;
}

.logo-container:hover .logo {
  transform: scale(1.06) rotate(5deg);
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.6);
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}

h1 a {
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, #fff 30%, var(--matrix-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: text-shadow var(--transition-fast);
}

h1 a:hover {
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

.subtitle {
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* Badge Alert style */
.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--badge-border);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(255, 166, 0, 0.05);
  animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Contact Details */
.contact {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 35px;
}

.contact-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.contact-link {
  color: var(--matrix-green);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: 1px dashed var(--matrix-green);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.contact-link:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: 0 0 8px var(--matrix-green-glow);
}

/* Social Connections Area */
.social-section {
  border-top: 1px solid rgba(0, 255, 102, 0.1);
  padding-top: 30px;
}

h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.9;
}

.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-list li {
  width: 100%;
}

.links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 255, 102, 0.03);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 12px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 52px; /* Touch target minimum standard */
}

/* Button background slide hover effect */
.links-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 255, 102, 0.1), rgba(0, 255, 102, 0.01));
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: 0;
}

.links-list a:hover::before {
  transform: translateX(0);
}

.links-list a:hover {
  border-color: var(--matrix-green);
  color: var(--matrix-green);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.15),
              inset 0 0 8px rgba(0, 255, 102, 0.05);
  transform: translateY(-2px);
}

.links-list a:active {
  transform: translateY(0);
}

/* Left part (Icon + Label) */
.link-content {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.link-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.links-list a:hover .link-icon {
  transform: scale(1.1);
}

.link-name {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Right arrow indicator */
.chevron-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.4;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  z-index: 1;
}

.links-list a:hover .chevron-icon {
  opacity: 1;
  transform: translateX(4px);
}

/* Footer Copyright */
footer.site-footer {
  margin-top: 35px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Responsive Breakpoints */
@media (max-width: 600px) {
  .wrapper {
    padding: 20px 12px;
  }
  
  .container {
    padding: 30px 20px;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.8rem;
    letter-spacing: 1.5px;
  }
  
  .subtitle {
    font-size: 0.85rem;
  }

  .links-list a {
    padding: 12px 16px;
    min-height: 48px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.5rem;
  }
  .container {
    padding: 25px 15px;
  }
}

/* CSS accessibility optimizations */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .logo-container::after {
    display: none;
  }
}

/* 404 Error Page Specific Utility Styles */
.badge-error {
  background: rgba(255, 0, 85, 0.1) !important;
  border-color: rgba(255, 0, 85, 0.3) !important;
  color: #ff0055 !important;
  animation: pulseError 2s infinite ease-in-out !important;
}

@keyframes pulseError {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.terminal-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 102, 0.1);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-line {
  line-height: 1.5;
  display: block;
}

.terminal-line::before {
  content: "> ";
  color: var(--matrix-green);
  font-weight: bold;
}

.error-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

