/* =============================================================
   theme-geocities.css — Y2K GeoCities Nostalgia Trip
   Welcome to Alex Logvin's Homepag!!!
   Best viewed in Netscape Navigator 4.0 at 800x600
   ============================================================= */

/* ── Starfield background via box-shadow ────────────────────── */
.theme-geocities::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    /* small white stars */
    10px 44px #fff, 145px 88px #fff, 267px 23px #fff, 389px 156px #fff,
    512px 67px #fff, 78px 201px #fff, 234px 312px #fff, 456px 189px #fff,
    623px 45px #fff, 712px 234px #fff, 89px 378px #fff, 198px 456px #fff,
    345px 234px #fff, 534px 312px #fff, 678px 167px #fff, 123px 534px #fff,
    289px 89px #fff, 478px 423px #fff, 634px 289px #fff, 789px 156px #fff,
    56px 612px #fff, 167px 178px #fff, 356px 567px #fff, 523px 78px #fff,
    734px 423px #fff, 234px 712px #fff, 412px 345px #fff, 589px 534px #fff,
    745px 678px #fff, 890px 89px #fff, 34px 723px #fff, 178px 567px #fff,
    423px 689px #fff, 612px 423px #fff, 823px 312px #fff, 123px 845px #fff,
    312px 778px #fff, 545px 623px #fff, 756px 767px #fff, 945px 545px #fff,
    1024px 234px #fff, 1100px 567px #fff, 1200px 89px #fff, 1300px 345px #fff,
    1400px 678px #fff, 1050px 789px #fff, 1150px 123px #fff, 1250px 456px #fff,
    1350px 789px #fff, 67px 900px #fff, 234px 967px #fff, 512px 845px #fff,
    /* slightly dimmer stars */
    890px 34px #aaa, 112px 567px #aaa, 678px 345px #aaa, 456px 567px #aaa,
    567px 456px #aaa, 789px 345px #aaa, 45px 789px #aaa, 567px 678px #aaa,
    890px 567px #aaa, 456px 789px #aaa, 234px 90px #aaa, 678px 890px #aaa;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 1; }
  50%  { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── Page base ──────────────────────────────────────────────── */
.theme-geocities {
  --geo-bg:       #000033;
  --geo-navy:     #000080;
  --geo-yellow:   #ffff00;
  --geo-cyan:     #00ffff;
  --geo-lime:     #00ff00;
  --geo-magenta:  #ff00ff;
  --geo-orange:   #ff6600;
  --geo-red:      #ff0000;
  --geo-silver:   #c0c0c0;
  --geo-white:    #ffffff;
  --geo-text:     #ffff00;

  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Sans', cursive;
  background-color: var(--geo-bg);
  color: var(--geo-text);
  text-align: center;
}

/* ensure content sits above starfield */
.theme-geocities .section,
.theme-geocities header,
.theme-geocities footer {
  position: relative;
  z-index: 1;
}

/* ── Links ──────────────────────────────────────────────────── */
.theme-geocities a { color: var(--geo-cyan); }
.theme-geocities a:visited { color: var(--geo-magenta); }
.theme-geocities a:hover { color: var(--geo-yellow); text-decoration: underline; }

/* ── Theme toggle ───────────────────────────────────────────── */
.theme-geocities .theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: var(--geo-navy);
  color: var(--geo-yellow);
  border: 2px solid var(--geo-yellow);
  border-radius: 0;
  font-family: 'Comic Sans MS', cursive;
  animation: toggle-blink-border 2s step-end infinite;
}
@keyframes toggle-blink-border {
  0%, 100% { border-color: var(--geo-yellow); }
  50%       { border-color: var(--geo-magenta); }
}

/* ── Marquee bar (injected by JS) ───────────────────────────── */
.geo-marquee-bar {
  background: var(--geo-navy);
  border-top: 2px solid var(--geo-yellow);
  border-bottom: 2px solid var(--geo-yellow);
  overflow: hidden;
  padding: 4px 0;
  position: relative;
  z-index: 2;
}
.geo-marquee-inner {
  display: inline-block;
  white-space: nowrap;
  color: var(--geo-cyan);
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.85rem;
  animation: geo-marquee 28s linear infinite;
}
@keyframes geo-marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── Header ─────────────────────────────────────────────────── */
.theme-geocities .section-header {
  background: var(--geo-navy);
  border-top: 4px solid var(--geo-yellow);
  border-bottom: 4px solid var(--geo-yellow);
  padding: 2rem 0 1.5rem;
  text-align: center;
}

/* Centre the header content */
.theme-geocities .header-content {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.theme-geocities .header-avatar {
  width: 100px;
  height: 100px;
  border: 4px solid var(--geo-yellow);
  box-shadow: 0 0 0 4px var(--geo-magenta), 0 0 0 8px var(--geo-cyan);
  animation: avatar-border-spin 3s linear infinite;
}
@keyframes avatar-border-spin {
  0%   { box-shadow: 0 0 0 4px var(--geo-yellow),  0 0 0 8px var(--geo-magenta); }
  25%  { box-shadow: 0 0 0 4px var(--geo-magenta), 0 0 0 8px var(--geo-cyan); }
  50%  { box-shadow: 0 0 0 4px var(--geo-cyan),    0 0 0 8px var(--geo-lime); }
  75%  { box-shadow: 0 0 0 4px var(--geo-lime),    0 0 0 8px var(--geo-yellow); }
  100% { box-shadow: 0 0 0 4px var(--geo-yellow),  0 0 0 8px var(--geo-magenta); }
}

/* Spinning "welcome" text injected above name */
.geo-welcome {
  font-size: 1rem;
  color: var(--geo-cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  animation: geo-blink 1.2s step-end infinite;
}

.theme-geocities .name {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  animation: rainbow-cycle 2.5s linear infinite;
  -webkit-text-stroke: 1px rgba(0,0,0,0.5);
}
@keyframes rainbow-cycle {
  0%   { color: #ff0000; }
  16%  { color: #ff6600; }
  33%  { color: #ffff00; }
  50%  { color: #00ff00; }
  66%  { color: #00ffff; }
  83%  { color: #ff00ff; }
  100% { color: #ff0000; }
}

.theme-geocities .title {
  color: var(--geo-lime);
  font-size: 1rem;
  font-style: italic;
}
.theme-geocities .tagline {
  color: var(--geo-silver);
  font-size: 0.85rem;
}

/* Contact links in header */
.theme-geocities .header-contacts {
  justify-content: center;
  gap: 1rem;
}
.theme-geocities .contact-link { color: var(--geo-cyan); font-size: 0.85rem; }
.theme-geocities .contact-link:hover { color: var(--geo-yellow); }

/* ── Rainbow HR (injected between sections) ─────────────────── */
.geo-rainbow-hr {
  height: 4px;
  border: none;
  background: linear-gradient(90deg,
    #ff0000, #ff4400, #ff6600, #ff9900, #ffff00,
    #00ff00, #00ffff, #0066ff, #9900ff, #ff00ff, #ff0000);
  margin: 0;
}

/* ── Section base ───────────────────────────────────────────── */
.theme-geocities .section {
  background: var(--geo-bg);
  padding: 2.5rem 0;
  text-align: center;
}
.theme-geocities .section-summary,
.theme-geocities .section-skills,
.theme-geocities .section-contact { background: #00003a; }

/* ── Section titles ─────────────────────────────────────────── */
.theme-geocities .section-title {
  font-family: 'Comic Sans MS', cursive;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  background: var(--geo-navy);
  border: 3px solid var(--geo-yellow);
  padding: 0.4rem 1.25rem;
  margin-bottom: 1.75rem;
  animation: section-title-glow 2s ease-in-out infinite alternate;
}
@keyframes section-title-glow {
  from { border-color: var(--geo-yellow); color: var(--geo-yellow); }
  to   { border-color: var(--geo-cyan);   color: var(--geo-cyan);   }
}
.theme-geocities .section-title svg {
  animation: spin-icon 4s linear infinite;
}
@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Summary ────────────────────────────────────────────────── */
.theme-geocities .summary-text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--geo-white);
  background: var(--geo-navy);
  border: 3px solid var(--geo-lime);
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-radius: 0;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Experience ─────────────────────────────────────────────── */
.theme-geocities .experience-list { gap: 1.5rem; }
.theme-geocities .experience-item {
  background: var(--geo-navy);
  border: 3px solid var(--geo-yellow);
  border-radius: 0;
  padding: 1.5rem;
  text-align: left;
  transition: border-color 0.3s;
}
.theme-geocities .experience-item:hover { border-color: var(--geo-magenta); }
.theme-geocities .experience-company {
  color: var(--geo-orange);
  font-size: 1.1rem;
  font-weight: 900;
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.4);
}
.theme-geocities .experience-title { color: var(--geo-cyan); font-style: italic; }
.theme-geocities .experience-meta,
.theme-geocities .experience-dates { color: var(--geo-silver); }
.theme-geocities .experience-highlights li { color: var(--geo-white); font-size: 0.88rem; }
.theme-geocities .experience-highlights li::before { content: "★"; color: var(--geo-yellow); }

/* ── Skills ─────────────────────────────────────────────────── */
.theme-geocities .skills-grid { text-align: left; }
.theme-geocities .skills-category-title {
  color: var(--geo-lime);
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.theme-geocities .skill-tag {
  background: var(--geo-navy);
  color: var(--geo-cyan);
  border: 1px solid var(--geo-cyan);
  border-radius: 0;
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.75rem;
}
.theme-geocities .skill-tag:hover {
  background: var(--geo-cyan);
  color: var(--geo-navy);
}

/* ── Education ──────────────────────────────────────────────── */
.theme-geocities .education-item { text-align: left; }
.theme-geocities .education-degree { color: var(--geo-yellow); font-weight: 900; }
.theme-geocities .education-school { color: var(--geo-cyan); font-style: italic; }
.theme-geocities .education-honors { color: var(--geo-lime); }
.theme-geocities .education-dates  { color: var(--geo-silver); }

/* ── Projects ───────────────────────────────────────────────── */
.theme-geocities .project-card {
  background: var(--geo-navy);
  border: 3px solid var(--geo-magenta);
  border-radius: 0;
  text-align: left;
}
.theme-geocities .project-card:hover { border-color: var(--geo-yellow); }
.theme-geocities .project-name  { color: var(--geo-yellow); font-weight: 900; }
.theme-geocities .project-desc  { color: var(--geo-white); }
.theme-geocities .project-tech-tag {
  background: #000044;
  color: var(--geo-lime);
  border: 1px solid var(--geo-lime);
  border-radius: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
}
.theme-geocities .project-link { color: var(--geo-cyan); }

/* ── Contact / CTA ──────────────────────────────────────────── */
.theme-geocities .section-contact { border-top: 4px solid var(--geo-yellow); }
.theme-geocities .contact-cta-text { color: var(--geo-silver); }

.theme-geocities .btn {
  border-radius: 0;
  font-family: 'Comic Sans MS', cursive;
  border-width: 3px;
}
.theme-geocities .btn-primary {
  background: var(--geo-navy);
  color: var(--geo-yellow);
  border-color: var(--geo-yellow);
}
.theme-geocities .btn-primary:hover {
  background: var(--geo-yellow);
  color: var(--geo-navy);
}
.theme-geocities .btn-outline {
  border-color: var(--geo-cyan);
  color: var(--geo-cyan);
}
.theme-geocities .btn-outline:hover {
  background: var(--geo-cyan);
  color: var(--geo-navy);
}

/* ── Footer injected elements ───────────────────────────────── */
.geo-footer-extras {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  background: var(--geo-navy);
  border-top: 4px solid var(--geo-yellow);
  position: relative;
  z-index: 1;
}

.geo-construction {
  display: inline-block;
  color: var(--geo-orange);
  font-size: 1rem;
  font-family: 'Comic Sans MS', cursive;
  border: 3px dashed var(--geo-orange);
  padding: 0.4rem 1rem;
  margin: 0.75rem auto;
  animation: geo-blink 1s step-end infinite;
}

.geo-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem 0;
}
.geo-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #000044;
  border: 2px solid var(--geo-silver);
  font-family: 'Arial', sans-serif;
  font-size: 0.65rem;
  color: var(--geo-silver);
  letter-spacing: 0.05em;
}

.geo-counter {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--geo-lime);
  background: #000000;
  border: 2px solid var(--geo-lime);
  padding: 0.25rem 0.9rem;
  display: inline-block;
  margin: 0.5rem auto;
  letter-spacing: 0.1em;
}
.geo-counter-num {
  color: var(--geo-yellow);
  font-weight: bold;
  font-size: 1rem;
}

.geo-guestbook {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--geo-silver);
}
.geo-guestbook a {
  color: var(--geo-cyan);
  text-decoration: underline;
}

.geo-best-viewed {
  font-size: 0.72rem;
  color: #888;
  margin-top: 1rem;
  font-family: 'Arial', sans-serif;
}

.theme-geocities .footer-note {
  color: #666;
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
}

/* ── Animated GIFs ──────────────────────────────────────────── */
.geo-gif-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.75rem 0 0.5rem;
}
.geo-gif { image-rendering: pixelated; }
.geo-gif-candle {
  width: 52px;
  height: auto;
  flex-shrink: 0;
}
.geo-gif-welcome {
  height: 36px;
  width: auto;
}
.geo-gif-new-badge {
  display: block;
  margin: 0 auto 0.25rem;
  width: 48px;
  height: auto;
}
.geo-gif-enconst {
  width: 53px;
  height: 60px;
  vertical-align: middle;
  margin-right: 0.4rem;
}

/* ── Blink utility ──────────────────────────────────────────── */
@keyframes geo-blink {
  0%, 100% { visibility: visible; opacity: 1; }
  50%       { visibility: hidden;  opacity: 0; }
}
.geo-blink { animation: geo-blink 0.9s step-end infinite; }

/* ── Print: sensibly fall back to Formal-like output ────────── */
@media print {
  .theme-geocities {
    background: white;
    color: black;
    font-family: Georgia, serif;
  }
  .geo-marquee-bar,
  .geo-footer-extras,
  .theme-geocities .theme-toggle { display: none !important; }
  .theme-geocities .section-title { animation: none; border: 1px solid #333; color: #333; }
  .theme-geocities .name { animation: none; color: #000; }
}
