@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --primary-color: #34aadb;
  --primary-glow: 0 0 15px #34aadb, 0 0 30px rgba(52, 170, 219, .4), inset 0 0 10px rgba(52, 170, 219, .2);
  --primary-glow-subtle: 0 0 10px rgba(52, 170, 219, .2);
  --primary-glow-medium: 0 0 10px rgba(52, 170, 219, .3);
  --content-width: 500px;
}

/* Developer Mode Color Scheme */
body.developer-mode {
  --primary-color: #ffffff;
  --primary-glow: 0 0 15px #ffffff, 0 0 30px rgba(255, 255, 255, .4), inset 0 0 10px rgba(255, 255, 255, .2);
  --primary-glow-subtle: 0 0 10px rgba(255, 255, 255, .2);
  --primary-glow-medium: 0 0 10px rgba(255, 255, 255, .3);
}

/* Smooth transition for developer mode */
body {
  transition: all 0.5s ease;
}

body.developer-mode {
  transition: all 0.5s ease;
}

/* Developer Mode Specific Styles */
body.developer-mode .terminal::before {
  background-image: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.06) 50%);
}

body.developer-mode .terminal::after {
  background: linear-gradient(to bottom, transparent 96%, rgba(255, 255, 255, .12) 100%);
}

body.developer-mode .terminal-bg-overlay {
  background: radial-gradient(ellipse at center, transparent 70%, rgba(0,0,0,.3));
}

body.developer-mode .warning-content h1 {
  color: #ffffff;
  text-shadow: 
    0 0 1px #ffffff,
    0 0 2px #ffffff,
    0 0 3px #ffffff;
}

body.developer-mode .warning-screen .key {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #ffffff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

body.developer-mode .nav-link {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

body.developer-mode .nav-link:hover,
body.developer-mode .nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

body.developer-mode .nav-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

body.developer-mode .social-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

body.developer-mode .social-link:hover,
body.developer-mode .social-link:focus,
body.developer-mode .social-link.selected {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

body.developer-mode .social-link:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

body.developer-mode .project-item {
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, .02);
}

body.developer-mode .project-item:hover {
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 10px rgba(255, 255, 255, .2);
}

body.developer-mode .project-name {
  color: #ffffff;
}

body.developer-mode .project-description {
  color: #ffffff;
}

body.developer-mode .project-link {
  color: #ffffff;
}

body.developer-mode .project-link:hover {
  background: #ffffff;
  color: #000;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .3);
}

body.developer-mode .category-title {
  color: #ffffff;
}

body.developer-mode .page-title {
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, .3);
}

body.developer-mode .page-description {
  color: #ffffff;
}

body.developer-mode .skills-list li:before {
  color: #ffffff;
}

body.developer-mode .contact-details a {
  color: #ffffff;
}

body.developer-mode .gamer-quote {
  border: 1px dotted #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

body.developer-mode .gamer-contact-message {
  border: 1px dashed #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

body.developer-mode .fun-facts {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed #ffffff;
}

body.developer-mode .fun-facts h3 {
  color: #ffffff;
}

body.developer-mode .fun-facts li {
  color: #ffffff;
}

body.developer-mode .footer-content {
  color: #ffffff;
}

body.developer-mode .underline-text::after {
  background: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-moz-selection {
  background: #EB553D;
  color: #fff;
}

::selection {
  background: #EB553D;
  color: #fff;
}

body {
  font-family: 'Space Mono', monospace;
  background: #000;
  color: var(--primary-color);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.terminal {
  width: 100%;
  min-height: 100vh;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.terminal::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  background-image: linear-gradient(transparent 50%, rgba(52, 170, 219, 0.06) 50%);
  background-size: 2000px 6px;
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}

.terminal::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 96%, rgba(52, 170, 219, .12) 100%);
  background-size: 2000px 8px;
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}

.terminal-bg-overlay {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 70%, rgba(0,0,0,.3));
  pointer-events: none;
  z-index: 0;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
  25%, 75% { opacity: 0.95; }
}

@keyframes scanlines { 
  0% { transform: translateY(0); } 
  100% { transform: translateY(3px); } 
}

@keyframes matrix-rain {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* Warning Screen */
.warning-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  color: var(--primary-color);
  font-family: 'Space Mono', monospace;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

.warning-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.warning-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-shadow: 
    0 0 1px #34aadb,
    0 0 2px #34aadb,
    0 0 3px #34aadb;
  animation: glow-breathe 2s ease-in-out infinite alternate;
  font-weight: bold;
  letter-spacing: 3px;
}

.warning-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.warning-screen .key {
  display: inline-block;
  background: rgba(52, 170, 219, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin: 0 0.2rem;
  font-family: monospace;
  font-size: 1.1em;
  box-shadow: 0 0 5px rgba(52, 170, 219, 0.5);
}

.hidden {
  display: none !important;
}

.terminal-content {
  text-align: center;
  width: var(--content-width);
  min-height: 700px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  overflow: visible;
  flex: 1;
}

/* Navigation */
.top-nav {
  padding: 1.5rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  box-sizing: border-box;
}

.nav-link {
  background: rgba(52, 170, 219, 0.02);
  color: var(--primary-color);
  border: 1px solid rgba(52, 170, 219, 0.3);
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  line-height: 1.2;
  /* Default square state */
  width: 48px;
  height: 48px;
  padding: 0;
}

/* Default state for inactive tabs - square with centered icon */
.nav-link i {
  font-size: 1.1em;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
  position: relative;
  display: block;
  text-align: center;
  line-height: 1;
}

.nav-text {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  margin-left: 0.5rem;
  z-index: 1;
  position: absolute;
  font-size: 0.9rem;
  pointer-events: none;
}

/* Active state - rectangle with proper spacing */
.nav-link.active {
  background: rgba(52, 170, 219, 0.05);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(52, 170, 219, 0.2);
  transform: translateY(-2px);
  width: auto;
  padding: 0.75rem 1rem;
  min-width: 120px;
}

.nav-link.active .nav-text {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  margin-left: 0.5rem;
}

.nav-link.active i {
  margin-right: 0.5rem;
  display: inline-block;
  text-align: left;
}

.nav-link:hover:not(.active) {
  background: rgba(52, 170, 219, 0.05);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(52, 170, 219, 0.15);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-nav {
    padding: 1rem 1rem 0.5rem;
    gap: 0.4rem;
    flex-wrap: wrap;
    max-width: 100%;
  }
  
  .nav-link {
    font-size: 0.9rem;
    min-height: 42px;
    width: 42px;
    height: 42px;
  }
  
  .nav-link.active {
    min-width: 100px;
    padding: 0.6rem 0.8rem;
  }
  
  .nav-link i {
    font-size: 1em;
    display: block;
    text-align: center;
    line-height: 1;
  }
  
  .nav-link.active i {
    display: inline-block;
    text-align: left;
    margin-right: 0.4rem;
  }
  
  .nav-text {
    font-size: 0.8rem;
  }
  
  .nav-link.active .nav-text {
    position: relative;
    margin-left: 0.4rem;
  }
  
  /* Adjust warning screen for tablets */
  .warning-content h1 {
    font-size: 3rem;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  body { 
    align-items: center; 
    justify-content: center; 
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .terminal {
    min-height: 100vh;
    overflow: visible;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }
  
  .top-nav {
    padding: 0.75rem 1rem 0;
    gap: 0.5rem;
    width: 100%;
    max-width: none;
  }
  
  .nav-link {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(52, 170, 219, 0.02);
    color: var(--primary-color);
    border: 1px solid rgba(52, 170, 219, 0.3);
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    min-height: 40px;
  }
  
  .nav-link i {
    margin: 0;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    position: relative;
    display: block;
    text-align: center;
    line-height: 1;
  }
  
  .nav-text {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    font-size: 0.8rem;
    z-index: 1;
    position: absolute;
    margin-left: 0.4rem;
    pointer-events: none;
  }
  
  /* Active tab - rectangle with both icon and text */
  .nav-link.active {
    width: auto;
    padding: 0 0.8rem;
    background: rgba(52, 170, 219, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(52, 170, 219, 0.2);
    transform: translateY(-2px);
    min-width: 90px;
  }
  
  .nav-link.active i {
    margin-right: 0.4rem;
    display: inline-block;
    text-align: left;
  }
  
  .nav-link.active .nav-text {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    margin-left: 0.4rem;
  }
  
  .separator {
    display: none;
  }
  
  .terminal-content {
    padding: 1.5rem 0.75rem;
    margin: 0 auto;
    min-height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: calc(100vw - 1.5rem);
    max-width: 400px;
    overflow: visible;
    position: relative;
  }
  
  .terminal-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    letter-spacing: 1px;
    white-space: normal;
    text-align: center;
    margin-bottom: .75rem;
    line-height: 1.2;
    width: calc(100vw - 1.5rem);
  }
  
  .terminal-title .underline-text::after {
    bottom: -2px;
    height: 2px;
  }
  
  .terminal-description { 
    font-size: 1rem; 
    margin-bottom: 1.5rem;
    width: calc(100vw - 1.5rem);
    line-height: 1.4;
    min-height: auto;
  }
  
  .socials-section {
    gap: .75rem;
    padding: 0;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: calc(100vw - 1.5rem);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .socials-section .separator {
    display: none;
  }
  
  .social-link {
    padding: 1rem .5rem;
    font-size: .85rem;
    height: 64px;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: visible;
    line-height: 1.2;
  }
  
  .social-link {
    border: 1px solid rgba(52, 170, 219, 0.3);
    background: rgba(52, 170, 219, 0.02);
  }
  
  .social-link i {
    font-size: 1rem;
  }
  
  .social-label {
    font-size: .8rem;
  }
  
  .social-link:hover {
    border-color: var(--primary-color);
    background: rgba(52, 170, 219, 0.05);
    box-shadow: 0 0 10px rgba(52, 170, 219, 0.2);
    transform: translateY(-1px);
  }
  
  .footer {
    padding: 1rem 0.75rem;
    margin-top: 2rem;
    width: 100%;
    flex-shrink: 0;
  }
  
  .footer-content {
    font-size: .8rem;
    gap: .4rem;
    padding: .5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .page-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    text-align: center;
  }
  
  .page-description {
    font-size: .9rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .projects-list,
  .experience-list {
    gap: 1.5rem;
    width: 100%;
  }
  
  .project-item {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .project-name {
    font-size: 1.1rem;
  }
  
  .project-description {
    font-size: .85rem;
    margin-bottom: .75rem;
  }
  
  .project-links {
    gap: .4rem;
  }
  
  .fun-facts {
    padding: 0.75rem;
  }
  
  .gamer-quote {
    padding: 0.75rem;
  }
  
  /* Hide warning screen on very small mobile screens */
  .warning-screen {
    display: none !important;
  }
  
  /* Adjust warning screen for mobile */
  .warning-content h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
}

.separator {
  color: var(--primary-color);
  opacity: 0.5;
}

.page {
  display: none;
  animation: fadeIn .3s ease-out;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.profile-section {
  margin-bottom: 2rem;
  text-align: center;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  image-rendering: pixelated;
  box-shadow: 0 0 20px #34aadb, 0 0 40px rgba(52, 170, 219, .3), inset 0 0 20px rgba(52, 170, 219, .1);
  animation: glow-pulse 2s ease-in-out infinite alternate;
  margin: 0 auto 1rem;
  background-color: #111;
}

@keyframes glow-pulse {
  0% { 
    text-shadow: 0 0 10px #34aadb, 0 0 20px rgba(52, 170, 219, .5), 0 0 30px rgba(52, 170, 219, .3);
    box-shadow: 0 0 20px #34aadb, 0 0 40px rgba(52, 170, 219, .3), inset 0 0 20px rgba(52, 170, 219, .1);
    transform: scale(1);
  }
  100% { 
    text-shadow: 0 0 15px #34aadb, 0 0 30px rgba(52, 170, 219, .7), 0 0 45px rgba(52, 170, 219, .5);
    box-shadow: 0 0 30px #34aadb, 0 0 60px rgba(52, 170, 219, .5), inset 0 0 30px rgba(52, 170, 219, .2);
    transform: scale(1.02);
  }
}

.terminal-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  height: 50px;
  line-height: 50px;
  position: relative;
  text-align: center;
}

.terminal-title .underline-text::after {
  bottom: -4px;
  height: 3px;
}

.terminal-description {
  font-size: 1.1rem;
  opacity: .8;
  margin-bottom: 0;
  text-shadow: 0 0 5px #34aadb, 0 0 10px rgba(52, 170, 219, .3);
  line-height: 1.4;
  position: relative;
  text-align: center;
  min-height: 30px;
}

.profile-section {
  margin-bottom: 2rem;
  text-align: center;
}

@keyframes glow-breathe {
  0% { 
    text-shadow: 
      0 0 1px #34aadb,
      0 0 2px #34aadb,
      0 0 3px #34aadb;
    opacity: 0.95;
  }
  100% { 
    text-shadow: 
      0 0 2px #34aadb,
      0 0 4px #34aadb,
      0 0 6px #34aadb;
    opacity: 1;
  }
}

.bio-section {
  margin: 2rem 0;
  text-align: left;
  line-height: 1.6;
}

.bio-section p {
  margin-bottom: 1rem;
}

/* Fun Facts Section */
.fun-facts {
  background: rgba(52, 170, 219, 0.05);
  border: 1px dashed var(--primary-color);
  border-radius: 4px;
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: left;
}

.fun-facts h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.fun-facts ul {
  padding-left: 1.5rem;
}

.fun-facts li {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.socials-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  font-size: 1.1rem;
  margin-top: 2rem;
  width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.socials-section .separator {
  display: none;
}

.social-link {
  color: var(--primary-color);
  text-decoration: none;
  padding: 1rem;
  border: 1px solid rgba(52, 170, 219, 0.3);
  transition: all .3s ease;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  position: relative;
  min-width: fit-content;
  background: rgba(52, 170, 219, 0.02);
  width: 100%;
  box-sizing: border-box;
  height: 72px;
  overflow: visible;
  line-height: 1.2;
}

.social-link:hover,
.social-link:focus,
.social-link.selected {
  border-color: var(--primary-color);
  background: rgba(52, 170, 219, 0.05);
  box-shadow: 0 0 10px rgba(52, 170, 219, 0.2);
  transform: translateY(-1px);
}

@keyframes button-scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(1px); }
}

.social-link:active {
  border-color: var(--primary-color);
  background: rgba(52, 170, 219, 0.1);
  box-shadow: 0 0 15px rgba(52, 170, 219, 0.3);
  transform: translateY(0);
}

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

.social-label { 
  display: inline-block; 
  font-size: 1rem; 
  line-height: 1.4; 
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
}

#resume-preview-btn {
  height: 72px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  grid-column: span 2;
  cursor: pointer;
}

#resume-preview-btn .social-label {
  font-size: 1rem;
  line-height: 1.4;
}

/* Gamer Quote Section */
.gamer-quote {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px dotted var(--primary-color);
  border-radius: 4px;
  font-style: italic;
  background: rgba(52, 170, 219, 0.03);
}

.gamer-quote p {
  margin-bottom: 0.5rem;
}

.quote-author {
  text-align: right;
  font-style: normal;
  opacity: 0.8;
}

.projects-list,
.experience-list { 
  display: flex; 
  flex-direction: column; 
  gap: 2rem; 
  text-align: left; 
}

.project-item { 
  border: 1px solid var(--primary-color); 
  border-radius: 4px; 
  padding: 1.5rem; 
  background: rgba(52, 170, 219, .02); 
  transition: all .3s ease; 
}

.project-item:hover {
  background: rgba(52, 170, 219, .05);
  box-shadow: var(--primary-glow-subtle);
}

.project-name {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.project-description {
  color: var(--primary-color);
  opacity: .8;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.experience-details {
  color: var(--primary-color);
  opacity: .8;
  margin-bottom: 1rem;
  line-height: 1.4;
  padding-left: 1.5rem;
}

.experience-details li {
  margin-bottom: 0.5rem;
}

.skills-used {
  color: var(--primary-color);
  opacity: .7;
  font-style: italic;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.project-link { 
  color: var(--primary-color); 
  text-decoration: none; 
  padding: .4rem .8rem; 
  border: 1px solid transparent; 
  transition: all .3s ease; 
  border-radius: 4px; 
  display: inline-flex; 
  align-items: center; 
  gap: .5rem; 
  font-size: .9rem;
  min-height: 36px;
}

.project-link:hover {
  background: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
  box-shadow: var(--primary-glow-medium);
}

.category-header {
  margin: 2rem 0 1rem 0;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(52, 170, 219, .2);
}

.category-title {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: .9;
  margin: 1.5rem 0 1rem 0;
  text-align: left;
}

.page-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  text-shadow: 0 0 10px #34aadb, 0 0 20px rgba(52, 170, 219, .3);
  text-align: center;
}

.page-description {
  color: var(--primary-color);
  opacity: .8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-align: center;
}

.projects-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.skills-section {
  text-align: left;
}

.skill-category {
  margin-bottom: 1.5rem;
}

.skills-list {
  list-style-type: none;
  padding-left: 1rem;
}

.skills-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.skills-list li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.contact-info {
  text-align: left;
}

.contact-details {
  margin-top: 1.5rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}



/* Gamer Contact Message */
.gamer-contact-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px dashed var(--primary-color);
  border-radius: 4px;
  background: rgba(52, 170, 219, 0.03);
  font-style: italic;
  text-align: center;
}

.footer {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.footer-content {
  color: var(--primary-color);
  opacity: 0.7;
  font-size: 0.9rem;
  text-align: center;
}


.open-source-note {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.open-source-note:visited {
  color: var(--primary-color);
}

.underline-text {
  position: relative;
  display: inline-block;
}

.underline-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.underline-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.underline-text:not(:hover)::after {
  transform: scaleX(0);
  transform-origin: right;
}

.open-source-note:hover .underline-text::after {
  transform: scaleX(1);
  transform-origin: left;
}

.open-source-note:not(:hover) .underline-text::after {
  transform: scaleX(0);
  transform-origin: right;
}

.typing-cursor::after { 
  content: '_'; 
  animation: blink 1s infinite; 
  margin-left: 4px; 
}

@keyframes blink { 
  0%,50% { opacity: 1; } 
  51%,100% { opacity: 0; } 
}

/* Responsive Design */
@media (max-width: 768px) {
  .terminal-content { 
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
  }
  
  .terminal-title { 
    font-size: 2rem; 
    letter-spacing: 1.5px;
    height: 2.5rem;
  }
  
  .profile-section {
    min-height: 4rem;
  }
  
  .terminal-title .underline-text::after {
    bottom: -3px;
    height: 2.5px;
  }
  
  .socials-section { 
    font-size: .95rem; 
    gap: .75rem; 
    width: 100%;
    max-width: var(--content-width);
  }
  
  .social-link { 
    padding: .5rem .75rem; 
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .projects-list,
  .experience-list {
    gap: 1.5rem;
  }
  
  .project-item {
    padding: 1.25rem;
  }
  
  .project-link {
    padding: .45rem .7rem;
    font-size: .85rem;
  }
  
  .footer {
    padding: 1.5rem 0;
  }
  
  .footer-content {
    font-size: 0.85rem;
  }
  
  /* Show content on mobile */
  .hidden {
    display: flex !important;
  }
  
  .top-nav.hidden {
    display: flex !important;
  }


}
