/* Philip Walsh Portfolio - Main Stylesheet */

@import url("https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  /* Declare supported color schemes */
  color-scheme: light dark;
  
  /* Light Theme (Default) - Gray Teal Space Cold */
  --bg-primary: #eeeeee;
  --bg-secondary: #ffffff;
  --bg-secondary-rgb: 255, 255, 255;
  --text-primary: #212121;
  --text-secondary: #555555;
  --accent-color: #0d7377;
  --accent-glow: rgba(13, 115, 119, 0.7);
  --accent-glow-strong: rgba(13, 115, 119, 0.9);
  --border-color: #cccccc;
  --card-shadow: 0 4px 6px rgba(13, 115, 119, 0.15);
  --header-bg: #eeeeee;
  --footer-bg: #eeeeee;
  --neon-text-shadow:
    0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow), 0 0 15px #fff;
  --neon-box-shadow:
    0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow), 0 0 15px #fff;
  --neon-color-1: #0d7377;
  --neon-color-2: #32e0c4;

  --font-size: clamp(1rem, 2vw, 2rem);

  /* Skeleton Loader Colors */
  --skeleton-bg: rgba(255, 255, 255, 0.1);
  --skeleton-shine: rgba(255, 255, 255, 0.2);
}

/* Dark Theme - Gray Teal Space Cold */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #212121;
  --bg-secondary: #2c2c2c;
  --bg-secondary-rgb: 44, 44, 44;
  --text-primary: #eeeeee;
  --neon-text-primary: #e0e0e0;
  --text-secondary: #aaaaaa;
  --accent-color: #32e0c4;
  --accent-glow: rgba(50, 224, 196, 0.7);
  --accent-glow-strong: rgba(99, 199, 182, 0.9);
  --border-color: #444444;
  --card-shadow: 0 4px 6px rgba(50, 224, 196, 0.2);
  --header-bg: #212121;
  --footer-bg: #212121;
  --neon-text-shadow:
    0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow), 0 0 15px #fff;
  --neon-box-shadow:
    0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow), 0 0 15px #fff;
  --neon-color-1: #32e0c4;
  --neon-color-2: #0d7377;

  --font-size: clamp(1rem, 2vw, 2rem);
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Prompt", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: url("https://www.transparenttextures.com/patterns/cartographer.png");
  transition:
    background-color 0.3s ease,
    background-image 0.3s ease,
    color 0.3s ease;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  font-size: var(--font-size);
}

[data-theme="dark"] body {
  background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre-big.png");
}

/* Layout structure */
.site-header {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Font Weight Classes */
.prompt-thin {
  font-weight: 100;
}

.prompt-extralight {
  font-weight: 200;
}

.prompt-light {
  font-weight: 300;
}

.prompt-regular {
  font-weight: 400;
}

.prompt-medium {
  font-weight: 500;
}

.prompt-semibold {
  font-weight: 600;
}

.prompt-bold {
  font-weight: 700;
}

.prompt-extrabold {
  font-weight: 800;
}

.prompt-black {
  font-weight: 900;
}

/* Neon Container and Glow */
.neon-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.neon-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom,
      transparent,
      var(--accent-glow) 40%,
      var(--accent-glow-strong) 50%,
      var(--accent-glow) 60%,
      transparent 100%);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    height 0.3s ease;
  box-shadow: 0 0 20px 5px var(--accent-glow);
}

/* Neon Text Effect - Softer for better readability */
.neon-text {
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  color: var(--neon-text-primary);
  text-shadow:
    0 0 1px #fff,
    0 0 2px #fff,
    0 0 13ox #141417,
    0 0 4px var(--neon-color-1),
    0 0 6px var(--neon-color-1),
    0 0 8px var(--neon-color-1);

  position: relative;
  animation: neon-pulse 3s ease-in-out infinite alternate;
}

/* Neon Pulse Animation - Softer and slower */
@keyframes neon-pulse {

  0%,
  100% {
    text-shadow:
      0 0 1px #fff,
      0 0 2px #fff,
      0 0 4px var(--neon-color-1),
      0 0 6px var(--neon-color-1);
  }

  50% {
    text-shadow:
      0 0 0.5px #fff,
      0 0 1px #fff,
      0 0 2px var(--neon-color-1),
      0 0 4px var(--neon-color-1);
  }
}

/* Flux Text Effect - For secondary headings */
/* .flux-text {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  color: var(--neon-color-2);
  text-shadow: 
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 8px var(--neon-color-2),
    0 0 12px var(--neon-color-2),
    0 0 16px var(--neon-color-2);
  position: relative;
  animation: flux-pulse 2s ease-in-out infinite alternate;
} */

/* Flux Pulse Animation */
@keyframes flux-pulse {

  0%,
  100% {
    text-shadow:
      0 0 2px #fff,
      0 0 4px #fff,
      0 0 8px var(--neon-color-2),
      0 0 12px var(--neon-color-2),
      0 0 16px var(--neon-color-2);
  }

  50% {
    text-shadow:
      0 0 1px #fff,
      0 0 2px #fff,
      0 0 4px var(--neon-color-2),
      0 0 8px var(--neon-color-2),
      0 0 12px var(--neon-color-2);
  }
}

/* Accessibility - Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: #fff;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s ease;
  font-weight: 500;
  opacity: 0;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 600;
}

h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  font-weight: 700;
}

h2 {
  font-size: 2.2rem;
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 6px -6px var(--accent-glow);
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  color: var(--accent-color);
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 400;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
  position: relative;
  font-weight: 500;
}

a:hover {
  text-shadow: var(--neon-text-shadow);
}

a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
  box-shadow: var(--neon-box-shadow);
}

a:hover::after {
  width: 100%;
}

/* Header Styles */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: var(--header-bg);
  background-image: url("https://www.transparenttextures.com/patterns/cartographer.png");
  border-bottom: 2px solid var(--accent-color);
  text-align: center;
  box-shadow: 0 4px 10px -6px var(--accent-glow);
}

[data-theme="dark"] .site-header {
  background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre-big.png");
}

.header-content {
  max-width: 1200px;
  width: 100%;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.3rem;
  margin-top: 0.5rem;
  letter-spacing: 1px;
  font-weight: 400;
}

.tagline {
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.contact-info {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  font-weight: 500;
}

.contact-link:hover {
  background-color: rgba(30, 87, 153, 0.1);
  box-shadow: var(--neon-box-shadow);
}

/* Header Social Links */
.header-social {
  margin-top: 1.5rem;
}

.header-social ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.header-social li {
  position: relative;
}

.header-social li span {
  display: flex;
  place-content: center;
  place-items: center;
  min-width: 4em;
  min-height: 4em;
  border-radius: 50%;
  padding: 0.3em;
  background: conic-gradient(var(--accent-color) var(--fill-percent),
      transparent var(--fill-percent));
  transition: --fill-percent 0.6s ease-in-out;
}

.header-social li:hover span {
  --fill-percent: 100%;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.header-social a i {
  font-size: 1.5rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.header-social li:hover a {
  transform: scale(0.95);
}

.header-social li:hover a i {
  color: var(--accent-color);
  transform: scale(1.2);
}

.header-social a::after {
  display: none;
}

/* Navigation Styles */
nav {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0.5em;
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

nav li {
  margin: 0 0.2rem;
}

nav a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: 4px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  text-align: center;
  justify-content: center;
}

nav a i {
  margin-right: 0.5rem;
}

nav a:hover {
  background-color: var(--accent-color);
  color: #fff;
}

nav a:hover::after {
  display: none;
}

@media (min-width: 1200px) {
  nav ul {
    justify-content: center;
    padding: 0 2rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
  }

  nav a i {
    margin-right: 0.3rem;
  }
}

/* Responsive Navigation */
@media (min-width: 1200px) {
  nav ul {
    justify-content: flex-start;
    padding: 0 2rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }

  nav a i {
    margin-right: 0.3rem;
  }
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  box-shadow: 0 0 10px var(--accent-glow);
}

.mobile-nav-toggle .fa-times {
  display: none;
}

.mobile-nav-toggle.active .fa-bars {
  display: none;
}

.mobile-nav-toggle.active .fa-times {
  display: inline-block;
}

/* Main Content Styles */
main {
  padding: 2rem 1rem;
}

.section {
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  padding: 1.5rem;
  background-color: rgba(var(--bg-secondary-rgb), 0.5);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section Styles */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-image-container {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
  position: relative;
  transform: scale(1.2);
  margin: 1em;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image {
  transform: scale(2);
}

.hero-text {
  text-align: center;
  max-width: 800px;
}

@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
  }

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

/* Skills Section */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin-top: 1.5rem;
}

.skill-item {
  background-color: var(--bg-secondary);
  background-image: url("https://www.transparenttextures.com/patterns/cardboard-flat.png");
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--accent-color);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-item:hover {
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-3px);
  color: var(--accent-color);
}

.skill-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* Experience Section */
.experience-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.job {
  background-color: var(--bg-secondary);
  background-image: url("https://www.transparenttextures.com/patterns/cardboard-flat.png");
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.job:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.job-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.company {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.period,
.location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.job-description ul {
  padding-left: 1.5rem;
}

.job-description li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 65ch;
}

/* Education Section */
.education-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.education-item {
  background-color: var(--bg-secondary);
  background-image: url("https://www.transparenttextures.com/patterns/cardboard-flat.png");
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.education-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.institution {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Accomplishments Section */
.accomplishments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.accomplishment-item {
  background-color: var(--bg-secondary);
  background-image: url("https://www.transparenttextures.com/patterns/cardboard-flat.png");
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.accomplishment-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.accomplishment-item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accomplishment-item h3 i {
  color: var(--accent-color);
}

.accomplishment-item ul {
  list-style-type: none;
  padding-left: 0;
}

.accomplishment-item li {
  margin-bottom: 1rem;
  font-weight: 400;
  max-width: 60ch;
}

.accomplishment-item strong {
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Codepens Section */
.codepens-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.codepen-arcade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

@media (min-width: 1200px) {
  .codepen-arcade {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1600px) {
  .codepen-arcade {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1400px;
    margin: 0 auto;
  }
}

#recommendations article {
  background-color: rgba(var(--bg-secondary-rgb), 1);
}

.arcade-machine {
  background-color: var(--bg-secondary);
  background-image: url("https://www.transparenttextures.com/patterns/cartographer.png");
  border: 3px solid var(--accent-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 15px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.arcade-machine::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg,
      var(--accent-color) 0%,
      var(--neon-color-2) 50%,
      var(--accent-color) 100%);
  box-shadow: 0 0 10px var(--accent-glow);
}

.arcade-machine:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--accent-glow);
}

.arcade-screen {
  background-color: #000;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.5),
    0 0 10px var(--accent-glow);
  position: relative;
  height: 350px;
  overflow: hidden;
}

.arcade-screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.arcade-screen iframe {
  border-radius: 4px;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.arcade-info {
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.arcade-info h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  text-shadow: 0 0 5px var(--accent-glow);
}

.arcade-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  max-width: 55ch;
}

@media (max-width: 768px) {
  .codepen-arcade {
    grid-template-columns: 1fr;
  }

  .arcade-screen {
    height: 300px;
  }
}

.codepen-description,
.codepen-showcase {
  display: none;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  background-color: var(--footer-bg);
  background-image: url("https://www.transparenttextures.com/patterns/cartographer.png");
  border-top: 2px solid var(--accent-color);
  box-shadow: 0 -4px 10px -6px var(--accent-glow);
  display: block;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

[data-theme="dark"] footer {
  background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre-big.png");
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Social Links Animation */
@property --fill-percent {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

.social-links {
  margin: 1.5rem 0;
}

.social-links h3 {
  margin-bottom: 1.5rem;
}

.social-links ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.social-links li {
  position: relative;
}

.social-links li span {
  display: flex;
  place-content: center;
  place-items: center;
  min-width: 4em;
  min-height: 4em;
  border-radius: 50%;
  padding: 0.3em;
  background: conic-gradient(var(--accent-color) var(--fill-percent),
      transparent var(--fill-percent));
  transition: --fill-percent 0.6s ease-in-out;
}

.social-links li:hover span {
  --fill-percent: 100%;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5em;
  height: 3.5em;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-links a i {
  font-size: 1.5rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.social-links li:hover a {
  transform: scale(0.95);
}

.social-links li:hover a i {
  color: var(--accent-color);
  transform: scale(1.2);
}

.social-links a::after {
  display: none;
}

.copyright {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Theme Toggle Button */
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--bg-secondary);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  font-size: 1.5rem;
  z-index: 10;
  box-shadow: 0 0 5px rgba(30, 87, 153, 0.3);
  color: var(--accent-color);
}

.theme-toggle:hover {
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.05);
}

.theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Show/hide appropriate icon based on theme */
html:not([data-theme="dark"]) .moon-icon {
  display: inline-block;
}

html:not([data-theme="dark"]) .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: inline-block;
}

/* Focus styles for better accessibility */
a:focus,
button:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .site-header {
    padding: 3rem 1rem;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-secondary);
    transition: left 0.3s ease;
    z-index: 999;
    padding-top: 4rem;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .accomplishments-grid {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  /* Fix footer on mobile */
  footer {
    display: block;
  }

  .footer-content {
    width: 100%;
    text-align: center;
  }

  footer .social-links ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Remove old social link styles */
.social-link {
  display: none;
}

#windsurf-logo {
  width: 1.3em;
  vertical-align: middle;
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.18em);
  }
}

/* Projects Section */
.projects-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  text-transform: capitalize;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-primary);
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 55ch;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.tech-tag {
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.tech-tag:hover {
  transform: translateY(-2px);
  background: var(--accent-glow-strong);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--accent-glow-strong);
}

.project-link i {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-info {
    padding: 1.25rem;
  }

  .project-info h3 {
    font-size: 1.1rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }
}

.hidden {
  display: none;
}

/* Recommendations Section */
.recommendations-content {
  padding: 2rem 0;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.recommendation-category {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.recommendation-category:hover {
  transform: translateY(-5px);
}

.recommendation-category h3 {
  color: var(--neon-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendation-list li {
  margin-bottom: 1rem;
}

.recommendation-list li:last-child {
  margin-bottom: 0;
}

.recommendation-list a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.recommendation-list a:hover {
  background-color: var(--hover-bg);
}

.recommendation-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--neon-color);
}

.recommendation-list p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .recommendations-grid {
    grid-template-columns: 1fr;
  }
}

.recommendations-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  max-width: 1400px;
  gap: 2rem;
  margin: 2rem auto 0;
}

@media (min-width: 1200px) {
  .recommendations-panels {
    grid-template-columns: repeat(2, 1fr);
  }
}

.recommendation-panel {
  background: var(--card-bg);
  border: 1px solid rgba(13, 115, 119, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
}

.recommendation-panel:hover {
  border-color: rgba(13, 115, 119, 0.5);
  box-shadow: 0 8px 32px rgba(13, 115, 119, 0.2);
  transform: translateY(-4px);
}

.recommendation-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: blur(3px);
  transition: all 0.3s ease;
}

.recommendation-panel:hover .recommendation-image img {
  transform: scale(1.05);
  filter: blur(0px);
}

.platform-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.recommendation-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recommendation-content h3 {
  color: var(--neon-color);
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(13, 115, 119, 0.3);
}

.recommendation-description {
  color: var(--text-color);
  margin: 0 0 1.25rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  opacity: 0.85;
  max-width: 50ch;
}

.recommendation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.recommendation-meta span {
  background: rgba(13, 115, 119, 0.2);
  color: var(--neon-color);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.recommendation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--neon-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
}

.recommendation-link:hover {
  background: var(--neon-color);
  color: var(--bg-color);
  transform: translateY(-1px);
}

/* Codepen Tags */
.codepen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.codepen-tags .tag {
  background: rgba(13, 115, 119, 0.2);
  color: var(--neon-color);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.codepen-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--neon-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.codepen-link:hover {
  background: var(--neon-color);
  color: var(--bg-color);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .recommendations-panels {
    grid-template-columns: 1fr;
  }

  .recommendation-panel {
    min-width: unset;
  }
}

/* Skeleton Loader Styles */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg,
      var(--skeleton-bg) 25%,
      var(--skeleton-shine) 50%,
      var(--skeleton-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Project Card Skeleton */
.project-card.skeleton {
  height: 400px;
  margin-bottom: 2rem;
}

.project-card.skeleton .project-image {
  height: 200px;
  background: var(--skeleton-bg);
}

.project-card.skeleton .project-info {
  padding: 1rem;
}

.project-card.skeleton h3 {
  height: 24px;
  width: 70%;
  margin-bottom: 1rem;
}

.project-card.skeleton p {
  height: 60px;
  margin-bottom: 1rem;
}

.project-card.skeleton .project-technologies {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card.skeleton .tech-tag {
  height: 24px;
  width: 80px;
}

/* Experience Skeleton */
.job.skeleton {
  margin-bottom: 2rem;
  padding: 1rem;
}

.job.skeleton .job-header h3 {
  height: 24px;
  width: 60%;
  margin-bottom: 0.5rem;
}

.job.skeleton .job-header p {
  height: 20px;
  width: 40%;
  margin-bottom: 0.5rem;
}

.job.skeleton .job-description ul {
  margin-top: 1rem;
}

.job.skeleton .job-description li {
  height: 20px;
  width: 90%;
  margin-bottom: 0.5rem;
}

/* Education Skeleton */
.education-item.skeleton {
  margin-bottom: 2rem;
  padding: 1rem;
}

.education-item.skeleton h3 {
  height: 24px;
  width: 70%;
  margin-bottom: 0.5rem;
}

.education-item.skeleton p {
  height: 20px;
  width: 50%;
  margin-bottom: 0.5rem;
}

/* Skills Skeleton */
.skill-item.skeleton {
  height: 32px;
  width: 150px;
  margin: 0.5rem;
}

/* Recommendations Skeleton */
.recommendation-category.skeleton {
  padding: 1rem;
  margin-bottom: 2rem;
}

.recommendation-category.skeleton h3 {
  height: 24px;
  width: 60%;
  margin-bottom: 1rem;
}

.recommendation-category.skeleton li {
  height: 60px;
  margin-bottom: 1rem;
}

/* Error State Styles */
.error-message {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 8px;
  margin: 1rem 0;
}

.error-message i {
  font-size: 2rem;
  color: var(--error-color);
  margin-bottom: 1rem;
}

.error-message p {
  color: var(--text-color);
  font-size: 1.1rem;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Skeleton Loader Transition */
.skeleton {
  transition: opacity 0.3s ease-out;
}

.skeleton.fade-out {
  opacity: 0;
}