@font-face {
  font-family: 'Monocraft';
  src: url('/assets/Monocraft.ttf') format('truetype');
  font-display: swap;
}

:root {
  --background: #282c34;
  --background-secondary: #21252b;
  --text-primary: #abb2bf;
  --text-secondary: #5c6370;
  --accent-primary: #61afef;
  --accent-secondary: #c678dd;
  --accent-tertiary: #98c379;
  --accent-quaternary: #e06c75;
  --accent-quinary: #d19a66;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Monocraft', monospace;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0 16px;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--text-secondary);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-primary);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

/* Multi Color Links */
.nav ul li:nth-child(1) a:hover {
  color: var(--accent-quinary);
}

.nav ul li:nth-child(2) a:hover {
  color: var(--accent-quaternary);
}

.nav ul li:nth-child(3) a:hover {
  color: var(--accent-tertiary);
}

.nav ul li:nth-child(4) a:hover {
  color: var(--accent-secondary);
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
}

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

.hero {
  padding: 25px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 64px;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-title span {
  color: var(--accent-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 20px;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--background);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.hero-cta:hover {
  background-color: #4d8ecc;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 80%;
  height: 3px;
  background-color: var(--accent-primary);
}

#projects .section-title::after {
  background-color: var(--accent-quinary);
}

#about .section-title::after {
  background-color: var(--accent-quaternary);
}

#contact .section-title::after {
  background-color: var(--accent-tertiary);
}

.projects {
  padding: 50px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background-color: var(--background-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 200px;
  background-color: var(--text-secondary);
  color: var(--background);
  font-size: 18px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: background-image 0.2s ease;
}

.project-image.minivtt {
  background-image: url('./assets/MiniVTTBanner.png');
}

.project-card:hover .project-image.minivtt {
  background-image: url('./assets/MiniVTT_demo.gif');
}

.project-image.mcts {
  background-image: url('./assets/MCTS_Screenshot.png');
}

.project-card:hover .project-image.mcts {
  background-image: url('./assets/MCTS_demo.gif');
}

.project-image.jaminstaller {
  background-image: url('./assets/JamInstaller.png');
}

.project-card:hover .project-image.jaminstaller {
  background-image: url('./assets/JamInstaller.gif');
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--accent-primary);
}

.project-description {
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tag {
  background-color: rgba(97, 175, 239, 0.1);
  color: var(--accent-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.project-link {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #4d8ecc;
}

.about {
  padding: 80px 0;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

img.about-image {
  width: 300px;
  height: 300px;
  object-fit: cover; /* This prevents stretching/distortion */
  object-position: center; /* This keeps the image centered */
  border-radius: 8px;
  margin-top: 10px;
}


.about-content {
  flex: 1;
}

.about-text {
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 16px;
  text-indent: 2em;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.fskill {
  background-color: rgba(152, 195, 121, 0.1);
  color: var(--accent-tertiary);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
}

.bskill {
  background-color: rgba(121, 147, 195, 0.1);
  color: var(--accent-primary);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
}

.sskill {
  background-color: rgba(195, 121, 191, 0.1);
  color: var(--accent-secondary);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
}

.contact {
  padding: 50px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.contact-item {
  background-color: var(--background-secondary);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.contact-icon svg {
  width: 48px;
  height: 48px;
  fill: var(--accent-primary);
}

.contact-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.contact-info {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-info:hover {
  color: #4d8ecc;
}

footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--text-secondary);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.social-link:hover {
  color: var(--accent-primary);
}

/* Terminal Box with Fixed Height */
.terminal-box {
  background-color: var(--background-secondary);
  border-radius: 8px;
  padding: 24px;
  margin: 40px 0;
  position: relative;
  height: 300px;
  overflow-x: auto;
  overflow-y: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.terminal-dot:nth-child(1) {
  background-color: var(--accent-quaternary);
}

.terminal-dot:nth-child(2) {
  background-color: var(--accent-quinary);
}

.terminal-dot:nth-child(3) {
  background-color: var(--accent-tertiary);
}

.terminal-title {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.terminal-content {
  font-size: 14px;
  color: var(--text-primary);
}

.terminal-prompt {
  color: var(--accent-tertiary);
  margin-right: 8px;
}

.terminal-command {
  color: var(--accent-primary);
}

.terminal-output {
  margin-top: 8px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

/* Background Canvas */
#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}



/* Mobile Formatting */

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .about {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
    flex: none;
  }

  header {
    flex-direction: column;
    gap: 20px;
  }
}


@media (max-width: 992px) {
  .container {
    padding: 0 16px;
  }
  
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .terminal-box {
    height: auto;
    min-height: 280px;
  }

  .about-image, img.about-image {
    width: 250px;
    height: 250px;
  }
}

/* Tablet Adjustments */
@media (max-width: 768px) {
  body {
    padding: 0 8px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-image, img.about-image {
    width: 220px;
    height: 220px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .terminal-box {
    margin: 30px 0;
  }
}

/* Mobile Adjustments */
@media (max-width: 576px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .contact-item {
    padding: 20px;
  }
  
  .skills {
    gap: 8px;
  }
  
  .fskill, .bskill, .sskill {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .about-image, img.about-image {
    width: 180px;
    height: 180px;
  }
  
  .about {
    padding: 40px 0;
    gap: 24px;
  }
  
  .projects {
    padding: 40px 0;
  }
  
  .contact {
    padding: 40px 0;
  }
  
  footer {
    padding: 24px 0;
  }
  
  .social-links {
    flex-wrap: wrap;
  }
  
  .project-card {
    margin-bottom: 16px;
  }
  
  .project-image {
    height: 180px;
  }
  
  .logo {
    margin-bottom: 8px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 375px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .nav ul {
    gap: 12px;
  }
  
  .nav a {
    font-size: 14px;
  }
  
  .terminal-box {
    padding: 16px;
  }
  
  .project-info {
    padding: 16px;
  }
  
  .about-text {
    font-size: 14px;
  }
  
  .about-image {
    width: 240px;
    height: 240px;
  }
}

/* Orientation-specific adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: 16px 0;
  }
  
  .terminal-box {
    height: auto;
    min-height: 200px;
    margin: 20px 0;
  }
  
  .about-image, img.about-image {
    width: 150px;
    height: 150px;
  }
}

/* Terminal typing animation fix for mobile */
@media (max-width: 768px) {
  .terminal-content {
    font-size: 12px;
  }
  
  .terminal-output {
    overflow-x: auto;
  }
}
