* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #100a16 0%, #22102c 42%, #411329 100%);
  color: #fff;
}

main {
  padding: 1.5rem 1rem 3rem;
}

.intro-grid,
.capabilities,
.stack-section,
.projects-container {
  max-width: 1180px;
  margin: 0 auto 2.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-kicker,
.about-kicker {
  color: #9efcff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.section-heading h2,
.about-description h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.45rem;
}

.section-heading p,
.about-description p {
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

.icons-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.icon-container {
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  padding: 1rem;
  text-align: center;
}

.icon-fontawesome {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  background: linear-gradient(120deg, #00ffff, tomato);
  border-radius: 18px;
  color: #111;
  font-size: 1.5rem;
}

.icon-description {
  color: #ffd1db;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.about-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.6rem;
}

.pic {
  width: 280px;
  height: 280px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 32px rgba(255,99,71,0.18);
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-description h2 {
  color: #f7cadc;
  margin-bottom: 1rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

/* BUTTON STYLE */

.about-links a {
  position: relative;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;

  font-weight: 700;
  font-size: 0.95rem;

  color: #fff;
  text-decoration: none;

  background: linear-gradient(120deg,#00ffff,#ff6a3d);

  border: 1px solid rgba(255,255,255,0.2);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.35),
    0 0 0 rgba(0,255,255,0);

  transition:
    transform .2s ease,
    box-shadow .25s ease,
    background .25s ease;
}

/* HOVER EFFECT 

.about-links a:hover {
  transform: translateY(-3px);

  background: linear-gradient(120deg,#00e5ff,#ff7a45);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    0 0 15px rgba(0,255,255,0.35);
}
*/
/* ACTIVE CLICK */

.about-links a:active {
  transform: translateY(0px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.about-links a:hover,
.projects-filter button:hover {
  background: linear-gradient(120deg, tomato, #f7b42c);
  color: #111;
}

.skill-bar {
  margin: 1rem 0;
}

.skill-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 0;
  padding-right: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #111, tomato, #f7b42c);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: width 1.6s ease-in-out;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.stack-chip {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #9efcff;
  font-weight: 600;
}

.projects-filter-mobile {
  display: none;
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-item:hover {
  transform: translateY(-4px);
  border-color: rgba(158, 252, 255, 0.28);
  box-shadow: 0 18px 38px rgba(0,0,0,0.28);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
}

.project-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04), rgba(0,0,0,0.18));
  pointer-events: none;
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,255,255,0.12);
  color: #9efcff;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-body h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0;
}

.project-body p {
  color: rgba(255,255,255,0.84);
  line-height: 1.72;
  margin: 0;
}

.project-body .project-text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.2rem;
}

.project-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.project-links a:hover {
  color: #9efcff;
}

.project-item--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  align-items: stretch;
  min-height: 360px;
}

.project-item--wide .project-image-wrapper {
  height: 100%;
}

.project-item--wide .project-image {
  height: 100%;
  min-height: 360px;
}

.project-item--wide .project-body {
  padding: 1.6rem 1.5rem 1.6rem 1.6rem;
  justify-content: center;
}

.project-item--wide .project-badge {
  margin-bottom: 0.15rem;
}

.project-item--wide h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  margin-bottom: 0.2rem;
}

.project-item--wide .project-text p {
  font-size: 1rem;
  line-height: 1.85;
  max-width: 920px;
}

.project-item--wide .project-links {
  margin-top: 0.4rem;
}

.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(120deg, tomato, #f7b42c);
  color: #111;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  .icons-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container,
  .projects {
    grid-template-columns: 1fr;
  }

  .pic {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .project-item--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .project-item--wide .project-image {
    min-height: 240px;
    height: 240px;
  }

  .project-item--wide .project-body {
    padding: 1.2rem;
  }
}

@media (max-width: 768px) {
  .projects-filter {
    display: none;
  }

  .projects-filter-mobile {
    display: block;
    margin-bottom: 1rem;
  }

  .projects-filter-mobile select {
    width: 100%;
  }

  .icons-list {
    grid-template-columns: 1fr;
  }

  .project-body h3 {
    font-size: 1.1rem;
  }

  .project-item--wide .project-text p {
    font-size: 0.96rem;
  }
}

