:root {
  --silver-gradient: linear-gradient(
    145deg,
    #ffffff 0%,
    #dcdcdc 20%,
    #b4b4b4 40%,
    #8a8a8a 60%,
    #dcdcdc 80%,
    #ffffff 100%
  );
}

/* File: style.css */

.button:focus,
nav a:focus {
  outline: 2px solid #ff6b81;
  outline-offset: 2px;
}
.logo {
  max-width: 100px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* General Reset & Base Styles */
body {
  background: var(--silver-gradient);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-color);
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;

  text-align: center;
}

header {
  background: #333;
  color: white;
  padding: 20px 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.has-tooltip {
  position: relative;
  display: inline-block;
}

.custom-tooltip {
  visibility: hidden;
  opacity: 0;
  width: 300px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  font-size: 0.9em;
  line-height: 1.4;
}

.has-tooltip:hover .custom-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Hero Section */

.split-hero {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1000px; /* slightly tighter */
  border-radius: 8px;
  background: linear-gradient(135deg, #181818, #222),
    url("/images/noise-texture.png");
  background-blend-mode: overlay;
  background-size: cover;
  color: #f4f4f4;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.split-hero.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Responsive styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2em;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .split-hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 30px 20px;
  }

  .hero-image img {
    width: 180px;
    height: 180px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-text {
    text-align: center;
  }
}

.hero-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero {
  background: #222;
  color: #f4f4f4;
  padding: 30px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}
.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 1.6em;
  margin-bottom: 8px;
}

.hero-content h1 {
  margin-bottom: 5px;
}

.tagline,
.hero-content .tagline {
  font-size: 1em;
  margin-bottom: 10px;
  color: #ccc;
  line-height: 1.1em;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  margin: 0 10px;
  padding: 12px 24px;
  background: #e63946;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
}

.button:hover {
  background: #ff6b81;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}
.subList {
  list-style-type: circle;
  margin-left: 2em;
}

/* Sections */
section {
  padding: 10px 20px;
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

h1,
h2 {
  margin-bottom: 20px;
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.about-content img {
  max-width: 200px;
  border-radius: 10px;
}

.profile-pic {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about p {
  max-width: 500px;
  text-align: left;
  line-height: 1.6;
}

/* Certifications */
.certification-bar {
  margin-top: 50px;
  text-align: center;
}

.certification-bar h2 {
  margin-bottom: 20px;
}

.certifications {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.certification {
  position: relative;
}

.certification a {
  display: inline-block;
  position: relative;
}

.cert-badge {
  max-width: 50px;
  min-width: 10px;
  transition: all 0.3s ease;
  display: block;
}

.certification a:hover .cert-badge {
  transform: scale(1.8);
  opacity: 0.8;
  z-index: 10;
}

.cert-badge:hover {
  transform: scale(1.8);
  opacity: 0.7;
  cursor: pointer;
}

.certification-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.certification-modal img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.cert-transcript-link {
  margin-top: 20px;
  font-size: 1.1em;
}

.cert-transcript-link a,
.cert-transcript-list a {
  color: #e63946;
  text-decoration: none;
  font-weight: bold;
}

.cert-transcript-link a:hover,
.cert-transcript-list a:hover {
  text-decoration: underline;
}

.cert-transcript-list {
  list-style: none;
  padding: 0;
}

.cert-transcript-list li {
  margin: 10px 0;
}

/* About Me */
p.about-subtext {
  max-width: 760px;
  text-align: left;
  line-height: 1.6;
}

section + section {
  margin-top: 40px;
}

.resume-download {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #e63946;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.resume-download:hover {
  background-color: #d62839;
}

/* Testimonials */
.testimonials blockquote {
  font-style: italic;
  font-size: 1.2em;
  margin: 0 auto 10px;
  max-width: 700px;
}

.testimonials cite {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #555;
}

/* Smooth Chat Popup */
.chat-popup {
  transition: all 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(30px);
}

.chat-popup.open {
  opacity: 1;
  transform: translateY(0);
}
/* Download Button */
#download-resume,
.resume-download {
  display: inline-block;
  margin: 0px auto;
  padding: 10px 20px;
  background-color: #e63946;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}
.resume-download:hover,
#download-resume:hover {
  background-color: #d62839;
}

/* Hockey Page */
.input-wrapper {
  background-color: #fdfdfd;
  border: 2px solid #3498db;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin: 20px auto; /* Centers it horizontally */
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px; /* Keeps it neat on large screens */
  width: 100%;
}

/* Footer */
footer {
  background-color: transparent;
  color: #000000;
  padding: 4px;
  margin-top: 40px;
}

a {
  color: #e63946;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  color: #ff6b81;
  text-decoration: underline;
}

/* Manual Dark Mode */
body.dark-mode {
  background-color: #181818;
  color: rgb(146, 182, 254);
}

body.dark-mode section {
  background-color: #222;
  color: rgb(146, 182, 254);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .button {
  background-color: #444;
  color: white;
}

body.dark-mode .button:hover {
  background-color: #666;
}

.theme-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: #e63946;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
  background: #ff6b81;
  transform: translateY(-2px);
}

body.dark-mode .theme-toggle-btn {
  background: #444;
  color: white;
}

body.dark-mode .theme-toggle-btn:hover {
  background: #666;
}

/* Manual Light Mode */
body.light-mode {
  background-color: #9eb8d2;
  color: #111;
}

body.light-mode section {
  background: linear-gradient(135deg, #7faedd, #b2d9fa);
  box-shadow: 0 2px 10px rgba(2, 59, 109, 0.05);
}

body.light-mode header,
body.light-mode footer {
  background: linear-gradient(135deg, #7faedd, #b2d9fa);
  color: #111;
}

body.light-mode .button {
  background-color: #d62839;
  color: white;
}
body.light-mode .button:hover {
  background-color: #ff6b81;
}
body.light-mode .split-hero {
  background: linear-gradient(135deg, #7faedd, #b2d9fa);
  background-blend-mode: normal;
  color: #111;
}

body.light-mode .split-hero .tagline {
  color: #333;
}

body.light-mode .hero-image img {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); /* Slight contrast */
}

body:not(.dark-mode):not(.light-mode) {
  /* This applies only when no manual class is set */
  background-color: #7faedd;
  color: #333;
}
/* Retro Arcade CTA (self-contained; does NOT reuse .button) */
.arcade-cta {
  --ink: #eaf2ff;
  --edge: rgba(255, 255, 255, 0.08);
  --glow: rgba(109, 193, 255, 0.28); /* hub accent vibe */
  --glow-strong: rgba(109, 193, 255, 0.45);
  --navy-1: #0f1b32; /* hub bg-2 */
  --navy-2: #0b1429; /* hub chip/card */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2));
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--glow-strong);
  box-shadow: 0 0 0 2px var(--glow), inset 0 -2px 0 var(--edge);
  position: relative;
  isolation: isolate;
}
.arcade-cta .icon {
  filter: drop-shadow(0 0 8px var(--glow-strong));
}
.arcade-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: radial-gradient(
    120% 180% at 20% -20%,
    rgba(152, 200, 255, 0.25),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: -1;
}
.arcade-cta:hover::before {
  opacity: 1;
}
.arcade-cta:focus-visible {
  outline: 2px solid #6dc1ff;
  outline-offset: 3px;
}

/* subtle “scanline” shimmer */
.arcade-cta .scan {
  position: relative;
}
.arcade-cta .scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(152, 200, 255, 0.5),
    transparent
  );
  transform: translateY(-120%);
  animation: arcade-scan 1.6s linear infinite;
}
@keyframes arcade-scan {
  0% {
    transform: translateY(180%);
  }
  100% {
    transform: translateY(-180%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-cta .scan::after {
    animation: none;
  }
}
