/* Binary Rain Effect Styles */
#binary-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  #binary-rain {
    display: none;
  }
}

:root {
  --background: #1A1C1E;
  --foreground: #E5E7EB;
  --accent: #00aeef;
  --accent-hover: #0099d4;
  --accent-light: rgba(0, 174, 239, 0.1);
  --accent-border: rgba(0, 174, 239, 0.2);
  --muted: #374151;
  --muted-foreground: #9CA3AF;
  --border: #374151;
  --card: #262626;
  --card-foreground: #E5E7EB;
}

* {
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons */
button, .btn, .button {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

button:focus-visible, .btn:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Primary buttons */
.btn-primary, .button-primary, button[type="submit"], .primary {
  background-color: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.btn-primary:hover, .button-primary:hover, button[type="submit"]:hover, .primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Outline buttons */
.btn-outline, .button-outline, .outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover, .button-outline:hover, .outline:hover {
  background-color: var(--accent-light);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Secondary buttons */
.btn-secondary, .button-secondary, .secondary {
  background-color: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--muted);
}

.btn-secondary:hover, .button-secondary:hover, .secondary:hover {
  background-color: var(--card);
  border-color: var(--border);
}

/* Badges */
.badge, .tag, .chip {
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Cards */
.card, .panel, .box {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Section dividers */
hr, .divider, .separator {
  border-color: var(--accent);
  border-width: 1px;
  opacity: 0.3;
}

.section-divider {
  border-top: 2px solid var(--accent);
  opacity: 0.5;
}

/* Form elements */
input, textarea, select {
  background-color: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--foreground);
}

/* Muted text */
.text-muted, .muted, .secondary-text {
  color: var(--muted-foreground);
}

/* Navigation */
nav a {
  color: var(--foreground);
}

nav a:hover, nav a.active {
  color: var(--accent);
}

/* Tables */
table {
  border-color: var(--border);
}

th, td {
  border-color: var(--border);
}

th {
  background-color: var(--card);
  color: var(--foreground);
}

/* Code blocks */
code, pre {
  background-color: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent);
  background-color: var(--card);
  color: var(--foreground);
}

/* Progress bars */
.progress {
  background-color: var(--muted);
}

.progress-bar {
  background-color: var(--accent);
}

/* Alerts */
.alert {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.alert-info {
  border-color: var(--accent);
  background-color: var(--accent-light);
}
/* hero layout */
.hero{position:relative;z-index:1;padding:6rem 1rem 3rem;text-align:center;}

/* strong focus rings (sitewide) */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* 3D hologram container */
.holo{
  position:relative;
  margin:0 auto 1.5rem;
  width:min(90vw, 720px);       /* larger, responsive */
  display:grid;
  place-items:center;
  perspective:1200px;
  isolation: isolate;   /* keep blend modes self-contained */
}

/* overlays behind the image */
.holo::before, .holo::after{ z-index:0; }
.rotating-logo-3d{ position:relative; z-index:1; }
.holo:hover::before { filter: blur(32px); opacity: 1; }

/* The logo itself — keep colors pristine */
.rotating-logo-3d{
  width:100%;
  height:auto;
  object-fit:contain;
  transform-style:preserve-3d;
  transform-origin:center center;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;

  /*  remove the drop-shadows that were darkening the logo */
  filter: none !important;
  mix-blend-mode: normal !important;

  will-change:transform;
}


/* ALWAYS-VISIBLE MODE: gentle Y-axis sway (no edge-on) */
.rotating-logo-3d.sway{ animation:swayY 18s ease-in-out infinite; }
@keyframes swayY{
  0%   { transform:rotateY(-25deg); }
  50%  { transform:rotateY(25deg); }
  100% { transform:rotateY(-25deg); }
}
.rotating-logo-3d{ position:relative; z-index:1; }


/* wider, shorter, softer, dimmer white oval */
.holo::before{
  content:"";
  position:absolute; inset:1%;                 /* larger area */
  background: radial-gradient(
    90% 50% at 46% 49%,                        /* wider (75%), shorter (42%) */
    rgba(255,255,255,.55) 0%,                  /* dimmer core */
    rgba(255,255,255,.28) 45%,                 /* gentle falloff */
    rgba(255,255,255,.12) 65%,
    transparent 88%                            /* longer feathered edge */
  );
  filter: blur(37px);                          /* more feather */
  opacity:1.0 ;                                  /* overall dimmer */
  mix-blend-mode:normal;
  z-index:0;
}


/* cyan hologram sheen */
.holo::after{
  content:"";
  position:absolute; inset:-10%;
  background:
    radial-gradient(65% 65% at 50% 45%, rgba(0,174,239,.30), transparent 60%),
    radial-gradient(85% 85% at 50% 80%, rgba(0,174,239,.18), transparent 70%),
    conic-gradient(from 0turn,
      rgba(99,183,255,.16), transparent 0.25turn,
      rgba(99,183,255,.16), transparent 0.5turn,
      rgba(99,183,255,.16), transparent 0.75turn,
      rgba(99,183,255,.16), transparent);
  filter: blur(28px);
  pointer-events:none;
  animation:glow 6s ease-in-out infinite alternate;
  mix-blend-mode:screen;
  opacity:.9;
  z-index:0;
}

/* Hologram animations */
@keyframes glow{ from{opacity:.55;} to{opacity:.85;} }
@keyframes scan{ from{transform:translateY(-12%);} to{transform:translateY(12%);} }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rotating-logo-3d{ animation:none !important; }
  .holo::before, .holo::after{ animation:none; }
}
/* === Metallic typewriter line (centered) === */
.type-header{
  position: fixed;
  inset: 0;                    /* full viewport */
  z-index: 2;
  display: grid;
  place-items: center;         /* centers vertically + horizontally */
  pointer-events: none;        /* non-interactive overlay */
  transition: opacity 0.4s ease; /* fade when logo appears */
}

.edge-line{
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  line-height: 1.1;

  /* 2× bigger than before */
  font-size: clamp(1.8rem, 5.2vw + 1rem, 2.8rem);

  white-space: nowrap;
  opacity: 0;                  /* JS sets to 1 when typing starts */
  transition: opacity 0.35s ease;
  text-align: center;
  max-width: 92vw;
  pointer-events: auto;        /* allow text selection if you want */
}

/* Metallic sheen (kept) */
.metallic{
  background: linear-gradient(90deg, #d9d9d9, #8a8a8a 22%, #f5f5f5 45%, #6d6d6d 60%, #eaeaea 78%, #9a9a9a);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 1px rgba(255,255,255,0.25),
    0 -1px 1px rgba(0,0,0,0.25);
  animation: metal-sheen 4s linear infinite;
}

@keyframes metal-sheen{
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Blink cursor while typing */
.edge-line.typing{
  border-right: 2px solid rgba(255,255,255,0.85);
  padding-right: 6px;
}

/* Blue aura for the word "edge" (overrides metallic) */
.edge-glow{
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: var(--accent, #00aeef) !important;
  text-shadow:
    0 0 6px rgba(0,174,239,0.85),
    0 0 14px rgba(0,174,239,0.55),
    0 0 28px rgba(0,174,239,0.35);
}

/* iPhone/small-screen tweaks */
@media (max-width: 420px){
  .edge-line{
    white-space: normal;       /* allow wrap on tiny screens */
    letter-spacing: 0.02em;    /* slightly tighter */
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .metallic{ animation: none !important; }
}

/* Soften heavy effects on small phones */
@media (max-width: 480px){
  .holo::before{ filter: blur(12px); }      /* was 18px */
  .holo::after{ animation: none; opacity: .25; } /* pause scanlines */
  #edge-word.edge-glow{
    text-shadow:
      0 0 4px rgba(0,174,239,.8),
      0 0 10px rgba(0,174,239,.45),
      0 0 18px rgba(0,174,239,.25);
  }
}

.site-footer{
  border-top:1px solid #374151;   /* same border as cards */
  background:#1A1C1E;             /* match page bg */
}
.site-footer .container{
  max-width:72rem;
  margin:0 auto;
  padding:2.5rem 1rem;
  text-align:center;
}
.site-footer .brand{
  position:relative;
  display:grid;
  place-items:center;             /* centers the logo over the ellipse */
}

/* Logo */
.site-footer .footer-logo{
  width:204px;                    /* displayed size; adjust if you want */
  height:auto;
  position:relative;
  z-index:1;
  display:block;
}

/* White ellipse behind the logo */
.site-footer .brand::before{
  content:"";
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%, -49%); /* slight vertical nudge like before */
  width:200px;                      /* tweak to hug your logo */
  height:90px;
  background:#fff;
  border-radius:50% / 50%;          /* true ellipse */
  box-shadow:0 12px 36px rgba(0,0,0,.25);
  z-index:0;
}

/* Text */
.site-footer .tagline{
  margin:.6rem 0 0;
  color:#9CA3AF;
}
.site-footer .copy{
  margin:1.2rem 0 0;
  color:#9CA3AF;
  font-size:.9rem;
}
