html,body{
  box-sizing: unset;
}
:root {
  --color-bg1: #1a1b20;
  --color-bg2: #1e1f24;
  --color-accent: #3f4045;
  --color-text: #dddddd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
}

body {
  background: var(--color-bg1);
  color: var(--color-text);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--color-bg1), var(--color-bg2));
  padding: 4rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

section {
  padding: 4rem 2rem;
  transition: background 1s ease;
}

section:nth-child(even) {
  background: linear-gradient(135deg, var(--color-bg1), var(--color-bg2));
}

section:nth-child(odd) {
  background: linear-gradient(135deg, var(--color-bg2), var(--color-bg1));
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.skills,
.projects,
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.skills-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  /* adds spacing from edges */
}

.skills-category {
  margin-bottom: 3rem;
  position: relative;
}

.skills-category .tag {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.skills-category:hover .tag {
  animation: bounceTag 0.6s ease-in-out;
}
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.3s ease;
  overflow: hidden;
  color: #fff;
  --x: 50%;
  --y: 50%;
  --hover-color: #3f4045;
  background: linear-gradient(135deg, #3f4045, #1e1f24);
}

/* Hover gradient effect (same as before) */
.card:hover {
  transform: translateY(-8px) scale(1.03);
  background: radial-gradient(circle at var(--x) var(--y), var(--hover-color), var(--color-accent));
}

/* Idle shining sweep */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}

.card.shine::after {
  animation: sweep 1.5s ease-in-out forwards;
}

/* Assign unique theme colors */
.skill-html {
  --hover-color: #F06529;
}

.skill-js {
  --hover-color: #F7DF1E;
}
.skill-react {
  --hover-color: #61DAFB;
}

.skill-ionic {
  --hover-color: #3880FF;
}

.skill-nest {
  --hover-color: #E0234E;
}

.skill-php {
  --hover-color: #8892BF;
}

.skill-sql {
  --hover-color: #00758F;
}

.skill-api {
  --hover-color: #00C6FF;
}

.skill-drupal {
  --hover-color: #0678BE;
}

.skill-wp {
  --hover-color: #21759B;
}

.skill-docker {
  --hover-color: #0db7ed;
}

.skill-tools {
  --hover-color: #A259FF;
}

.skill-oop {
  --hover-color: #3f4045;
}

.skill-qa {
  --hover-color: #8E44AD;
}

.skill-soft {
  --hover-color: #16A085;
}

.skill-lang {
  --hover-color: #FF8C00;
}

.skill-css {
  --hover-color: #264de4;
}

/* CSS blue */
.skill-scss {
  --hover-color: #c6538c;
}

/* SCSS pink */
.skill-vue {
  --hover-color: #42b883;
}

/* Vue green */
.skill-angular {
  --hover-color: #dd0031;
}

/* Angular red */
.skill-laravel {
  --hover-color: #ff2d20;
}

/* Laravel red */
.skill-mssql {
  --hover-color: #a91d22;
}

/* MS SQL red */
.skill-k8s {
  --hover-color: #326ce5;
}

/* Kubernetes blue */
.skill-webflow {
  --hover-color: #4353ff;
}

/* Webflow indigo */
.skill-figma {
  --hover-color: #a259ff;
}

/* Figma purple */
.skill-jira {
  --hover-color: #2684ff;
}

/* Jira blue */
.skill-mvc {
  --hover-color: #16a085;
}

/* Language orange */

.projects img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

button {
  background: var(--color-accent);
  color: var(--color-text);
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: var(--color-bg2);
}
.services-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-category {
  background: linear-gradient(135deg, #1a1b20, #1e1f24);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.service-category .tag {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.service-category ul {
  list-style: none;
  padding-left: 0;
}

.service-category ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.service-category ul li strong {
  color: #dddddd;
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #bbb;
  font-style: italic;
}

.why-choose ul li {
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg1);
  font-size: 0.9rem;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-bg2);
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  z-index: 1000;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff;
}

#contact p{
  text-align: center;
}
/*Animations*/
@keyframes sweep {
  0% { left: -150%; opacity: 0; }
  20% { opacity: 1; }
  50% { left: 100%; opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* Bounce animation */
@keyframes bounceTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}