/* =======================================
   Global Styles
======================================= */

:root {
  --accent: #00ffc8;
  --accent-glow: rgba(0, 255, 200, 0.25);
  --dark-bg: #151a2d;
  --soft-bg: #0a0f1e;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Fira Code', monospace;

  background-color: #0a0f1e;
  color: #e0e0e0;
}

.section-title {
  text-shadow: 0 0 8px rgba(0, 255, 200, 0.3);
}

/* ---------- Container ---------- */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 36px 16px;
}

/* ---------- Card Base ---------- */
.card {
  background-color: #151a2d;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.1);
}

/* ---------- Typography ---------- */
h1 {
  margin: 0 0 16px;
  font-size: 2rem;
}

h3 {
  margin: 16px 0 8px;
  font-size: 1.1rem;
}

h1, h2, h3 {
  color: #00ffc8;
}

a {
  color: #ff4d6d;
}

a:hover {
  color: #ffd166;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ---------- About Section ---------- */
.about-content {
  display: flex;
  flex-wrap: wrap; /* ✅ Allow wrapping on smaller screens */
  align-items: center;
  gap: 2rem;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid transparent;
  background: linear-gradient(45deg, #ff0000, #00ff99, #0066ff, #ff00ff);
  background-size: 400% 400%;
  padding: 2px;
  transition: transform 0.3s ease;
  animation: glowPulse 4s ease-in-out infinite;
}

.profile-pic:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

@keyframes neonPulse {
  from { box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow); }
  to   { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow); }
}

.subtitle {
  font-family: 'Fira Code', monospace;
  font-weight: 400;
  font-size: 0.8rem;
  color: #b0b0b0;
  margin-top: -10px;  /* brings it closer to your name */
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

h3.subtitle {
  margin-top: -12px !important; /* forces it to override */
  margin-bottom: 8px;
  line-height: 1.1; /* optional: tighter line spacing */
}

.text-content {
  flex: 1;
  min-width: 240px;
}

.highlight {
  color: #00ffc8;       /* brighter/contrast color */
  font-weight: 700;     /* bold */
  background: rgba(0, 255, 200, 0.1); /* subtle highlight */
  padding: 2px 4px;
  border-radius: 4px;   /* optional rounded edges */
}
.special-Text {
  color: #ffffff;       /* distinct color */
  font-weight: 600;     /* semi-bold */
}

/* ---------- Social Icons ---------- */

.game-menu {
  margin-top: 20px;
}

.icon-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;              /* 🔥 prevent wrapping */
  overflow-x: auto;               /* 🔥 allows scrolling if needed */
  scrollbar-width: none;          /* hide scrollbar in Firefox */
  -ms-overflow-style: none;       /* hide scrollbar in IE/Edge */
}

.icon-row::-webkit-scrollbar {
  display: none;                  /* hide scrollbar in Chrome/Safari */
}

.menu-item {
  flex: 0 0 auto;                 /* 🔒 prevents shrinking */
  font-size: 1.6rem; /* smaller than 2rem */
  color: #eee;
  padding: 7px;       /* less padding */
  border-radius: 3px; /* smaller corners */
  transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
}

.pointer-triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #ffffff; /* now points down */
  position: absolute;
  top: -6px; /* keep it above icons if you want */
  left: 0;
  transition: left 0.2s ease;
  z-index: 10;
}

/* Optional: remove hover scaling on <a> if using menu-item already */
.icon-row a {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.icon-row a:hover {
  transform: scale(1.2);
}

/* Base style same as Start button */
.arrow-btn,
.start-btn {
  width: 60px;                 /* fixed width for arrows */
  height: 40px;                /* same height as Start button */
  font-size: 1.1rem;           
  font-family: 'Fira Code', monospace;
  border-radius: 4px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* remove default padding */

  background: linear-gradient(135deg, #00ffc8, #007f70);
  color: #0a0f1e;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 255, 200, 0.2);
}

.start-btn {
  font-size: 0.9rem;
  letter-spacing: 0.5px; /* slightly reduced letter spacing */
}


/* Hover */
.arrow-btn:hover,
.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px #ccc, 0 6px 0 #555;
  background: linear-gradient(135deg, #00e0ff, #b400ff);
  color: #fff;
}

/* Active */
.arrow-btn:active,
.start-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 2px #ccc, 0 2px 0 #555;
  background: #555;
  color: #222;
}

/* Left / Right triangle */
.arrow-btn.left::before,
.arrow-btn.right::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.arrow-btn.left::before {
  border-right: 12px solid #eee; /* triangle pointing left */
}

.arrow-btn.right::before {
  border-left: 12px solid #eee; /* triangle pointing right */
}

.button-row {
  display: flex;
  gap: 12px;          /* spacing between buttons */
  align-items: center; /* vertical alignment */
  justify-content: center; /* optional: center horizontally */
}


/* Social Icon Colors */
.fa-linkedin { color: #0077b5; }
.fa-github { color: #fff; }
.fa-youtube { color: #ff0000; }
.fa-itch-io { color: #fa5c5c; }
.fa-artstation { color: #13AFF0; }
.fa-envelope { color: #b84dff; }
.fa-discord { color: #7289da; }
.fa-globe { color: #1abc9c; }
.fa-file-download { color: #20c223; }
/* ---------- Badge Styles ---------- */
.gplay-badge {
  height: 35px;
  transition: transform 0.2s ease;
}

.gplay-badge:hover {
  transform: scale(1.05);
}

.itch-badge,
.gplay-badge {
  height: 35px;
  transition: transform 0.2s ease;
}

.itch-badge:hover,
.gplay-badge:hover {
  transform: scale(1.1);
}

/* ---------- Tools Section ---------- */
.tools-section {
  color: #fff;
  text-align: center;
  padding: 12px 8px;       
  border-radius: 8px;      
  margin-bottom: 16px;
  background-color: #151a2d;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.1);
}

.tools-section h1 {
  font-size: 1.6rem;         
  margin-bottom: 12px;
  font-weight: 600;
  text-align: left;
  padding-left:  8px;    
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; 
  justify-content: center;
}

.tool-item {
  border-radius: 10px;      
  padding: 12px 10px;       
  font-size: 1rem;        
  font-weight: 500;
  color: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 200, 0.05);
  border: 1px solid rgba(0, 255, 200, 0.3);
  gap: 6px;
  white-space: normal;
  text-align: center;
}

.tool-item i {
  margin-right: 2px;        
  font-size: 1.2rem;        
  color: #fff;
}

.tool-item:hover {
  background: rgba(0, 255, 200, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.2);
}

/* ---------- Projects Grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: auto;
  align-items: stretch;
}

/* ---------- Project Card ---------- */
.project-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  background-color: #151a2d;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.1);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-7px);
  background-color:  rgba(0, 255, 200, 0.15);
  box-shadow: 0 0 25px rgba(3, 138, 118, 0.3);
}

.project-card .content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 16px; 
}

.project-card .content p {
  flex-grow: 1;
  margin-bottom: 12px;
}

.project-card .bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card h3 {
  margin-bottom: 8px;
  text-align: left;
}

.project-card a {
  color: #1abc9c;
  text-decoration: none;
  font-weight: bold;
}

.project-card a:hover {
  text-decoration: underline;
}

/* ---------- Status Tags ---------- */
.status-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 6px;
  text-transform: uppercase;
  color: #fff;
  margin-top: 8px;
}

.status-tag.done { background-color: #27ae60; }
.status-tag.progress { background-color: #e67e22; }

/* ---------- Tech Stack ---------- */
.tech-stack {
  display: flex;
  flex-wrap: wrap;           /* allows items to go to new lines */
  gap: 5px;                 /* spacing between each tag */
  justify-content: left;   /* keeps them centered */
  align-items: center;
}

.tech-stack span {
  background: rgba(0, 255, 200, 0.08);
  border: 1px solid rgba(0, 255, 200, 0.3);
  color: #00ffc8;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.1);
  white-space: nowrap;    /* prevents text wrapping */
}

.tech-stack span:hover {
  background: rgba(0, 255, 200, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

.tech-stack span i {
  font-size: 1rem;
  color: #fff;
  margin-right: 6px;         /* adds spacing between icon and text */
  vertical-align: middle;
}

/* ---------- Video / Thumbnail Section ---------- */
.thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 16px;
}

.project-thumb,
.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.project-thumb {
  object-fit: cover;
  z-index: 1;
  opacity: 1;
}

.project-video {
  object-fit: cover;
  z-index: 2;
  opacity: 0;
}

.thumb-wrapper:hover .project-video {
  opacity: 1;
}

.thumb-wrapper:hover .project-thumb {
  opacity: 0.6;
}

/* ---------- Languages Section (Card Style) ---------- */
#languages {
  color: #fff;
  text-align: center;
  padding: 20px 12px;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 20px;
  max-width: 100%;                  /* keeps it card-sized */
  margin-inline: auto;              /* center horizontally */
  background-color: #151a2d;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.1);
}

#languages .section-title {
 text-align: left;
  width: 100%;
  margin-left: 12px; /* small visual offset */
  font-weight: 600;
}

#languages h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 400;
}

.languages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: left;
}

.language-item {
  background: rgba(0, 255, 200, 0.05);
  border: 1px solid rgba(0, 255, 200, 0.3);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 140px;
  max-width: 200px;
  transition: all 0.25s ease;
}

.language-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.12);
}

.lang-name {
  font-weight: 600;
  color: #fff;
}

.lang-level {
  opacity: 0.85;
  font-style: italic;
  color: #ccc;
}


/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  background: #0a0f1e;
  color: #a5a5a5;
  border-top: 1px solid #00ffc8;
}

/* ---------- Carousel ---------- */
.screenshot-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item,
.video-item {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.carousel-item img,
.video-item iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;        /* slightly smaller for balance */
  padding: 12px;          /* equal padding for perfect circle */
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s ease;
  line-height: 1;         /* ensures icon is vertically centered */
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* Back Link */
.back-link {
  color: #1abc9c;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 20px;
}

/* Preview Image */
.preview-image {
  width: 100%;
  max-width: 800px; /* prevents it from being too big */
  border-radius: 10px;
  margin: 20px auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bullet Lists */
.feature-list,
.challenge-list {
  line-height: 1.8;
  margin-left: 20px;
}

.feature-list li,
.challenge-list li {
  margin-bottom: 8px;
}

.icon-row-availability {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

/* Headings */
.card h3 {
  margin-top: 30px;
  color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .carousel-item,
  .video-item { width: 90vw; height: calc(90vw * 9 / 16); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  p { font-size: 0.95rem; }
  .icon-row { justify-content: center; }
  .icon-row a { font-size: 1.4rem; }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic { width: 120px; height: 120px; }
  .project-card h3 { font-size: 1rem; }
  .project-card p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .container { padding: 12px; }
  .card { 
    padding: 16px; 
    margin-bottom: 20px; 
  }
  #languages {
  padding: 16px 10px;
  }
  h1 { font-size: 1.4rem; }
  p { font-size: 0.9rem; }
  .icon-row a { font-size: 1.3rem; }
  .project-card h3 { font-size: 0.95rem; }
  .project-card p { font-size: 0.85rem; }
  .project-card a { font-size: 0.9rem; }
}

/* ------ Mobile Compact Mode ------ */
@media (max-width: 600px) {

  .tools-section {
    padding: 10px 6px;
    margin-bottom: 12px;
  }

  .tools-section h1 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding-left: 4px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* smaller items */
    gap: 8px;
  }

  .tool-item {
    padding: 10px 8px;      /* reduced padding */
    font-size: 0.85rem;     /* smaller text */
    border-radius: 8px;
    gap: 4px;
  }

  .tool-item i {
    font-size: 1rem;        /* smaller icon */
    margin-right: 1px;
  }
}
