/* Basic reset & layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #111;
    background-color: #fdfdfd;
    line-height: 1.6;
}
a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    min-height: 0vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}
header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffee00, #33ff00, #35ddff, #ff00ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 10s ease infinite;
    position: relative;
}
header h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
    pointer-events: none;
}
header p.subtitle {
    font-size: 1.25rem;
    color: #555;
}

/* Gradient animation keyframes */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation */
/* Navigation */
nav {
    margin-top: 1rem;
}

nav a {
    margin: 0 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 2px solid transparent; /* empty box by default */
    transition: all 0.3s ease;
}

/* Hover effect: fills box */
nav a:hover {
    background-color: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

/* Active/selected page */
nav a.active {
    background-color: #ff0000;
    color: #fff;
    border-color: #ff0000;
}


/* Sections */
section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1rem;
}
section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* stack cards in one column */
    gap: 2rem;
}
.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    background-color: #fff;
    transition: box-shadow 0.2s;
}
.project-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.project-card .project-text {
    flex: 1;
}
.project-card img.project-img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.roblox-card-stats {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}
.roblox-card-stats p {
  margin: 0.2rem 0;
}


/* Tags */
.tags {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s;
}
.tag:hover {
    background-color: #ff0000;
    color: #fff;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #777;
    border-top: 1px solid #eee;
}

#TechStack {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

#TechStack h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

#TechStack h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff0000;
  margin: 0.5rem auto 1rem;
  border-radius: 2px;
}

#TechStack .tech-desc {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.stack-section {
  margin-bottom: 2rem;
}

.stack-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #222;
  position: relative;
}

.stack-section h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #ff0000;
  margin-top: 0.4rem;
  border-radius: 2px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.tech-item {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 0.8rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-item img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

.tech-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

.tech-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  background: #fff;
}
