* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
summary:focus-visible, input:focus-visible {
  outline: 2px solid #5960e8;
  outline-offset: 3px;
}
a { text-decoration: none; color: unset; display: inline-block; }
p { color: #ffffffaf; }
body { font-family: Montserrat, sans-serif; background: #000; }
main { padding: 0; margin: 0; width: 100%; height: 100%; position: relative; }
.container { width: 90%; max-width: 1280px; margin: auto; }
.flex { display: flex; align-items: center; }
.f-clmn { flex-direction: column; }
.sb { justify-content: space-between; }
.jc { justify-content: center; }
.ac { align-items: center; }
li { list-style: none; }
span { display: inline-block; }

/*------ BUTTONS ------*/
.blueBtn {
  box-shadow: inset 2px 2px 10px -4px #fff;
  background-color: #5960e8;
  color: #fff;
}
button {
  position: relative; overflow: hidden; cursor: pointer;
  padding: 12px 22px; border: unset; border-radius: 8px;
  font-size: clamp(14px, 15px, 16px); font-family: Montserrat, sans-serif;
  transition: 0.3s ease; display: inline-block;
}
button .text, button .hover-text {
  display: block;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
button .hover-text {
  position: absolute; left: 0; top: 100%; width: 100%;
}
button:hover .text { transform: translateY(-170%); }
button:hover .hover-text { transform: translateY(-170%); }
button:hover { box-shadow: 0px 0px 50px -10px #fff; transform: scale(1.05); }
button:active { transform: scale(0.9); }

/*------ ALL SECTIONS ------*/
section {
  user-select: none; display: flex;
  align-items: center; justify-content: center;
  color: #fff; overflow-y: hidden;
}
.allh2 {
  font-size: clamp(14px, 14px, 16px); font-weight: 500;
  margin-bottom: 35px; padding: 8px 12px;
  border: 1px solid #ffffff46; border-radius: 8px; width: fit-content;
}
.allh1 {
  font-size: clamp(24px, 5vw, 50px); line-height: clamp(2rem, 8vw, 5vw);
  font-weight: 600; text-align: center; margin-bottom: 30px;
}
.allp {
  margin-bottom: 50px; font-size: clamp(16px, 16px, 16px);
  line-height: 1.6rem; color: #ffffffaf; text-align: center;
}

/*------ HEADER ------*/
header {
  background-color: #000; width: 90%; margin: auto;
  position: absolute; top: 15px; left: 0; right: 0;
  color: #fff; height: 3.5rem; z-index: 999; user-select: none;
  border-radius: 8px;
  box-shadow: 1px 1px 50px -20px #f780ff88, 1px 1px 50px -20px rgba(218,165,32,0.553);
}
.IconCol { display: none; }
.logo { font-size: clamp(20px, 3vw, 20px); font-weight: 600; }
.nav { gap: 15px; }
.nav li {
  padding: 10px 15px; font-size: 14px; transition: 0.3s ease;
  color: #fff; border-radius: 8px; cursor: pointer;
}
.nav li:hover {
  color: #fff; background-color: #5960e8;
  box-shadow: 0px 0px 50px -10px #fff, inset 2px 2px 10px -4px #fff;
}
.nav li:active { transform: scale(0.9); }
.ri-menu-4-line, .ri-close-large-fill {
  display: none; font-size: 22px; color: #fff; margin-right: 10px;
}
.navRow {
  display: none; line-height: clamp(3rem, 5vw, 5rem);
  margin-top: 1rem; text-align: center;
  border-top: 0.1px solid #ffffffaf; padding: 20px 0;
}
header.add { padding: 15px 0; height: fit-content; }
header.add .navRow { display: flex !important; }
.navCol h2 { font-size: clamp(20px, 3vw, 30px); font-weight: 400; }

/*------ SECTION 1 - HERO ------*/
.portfolioHeroSec {
  height: 100vh; text-align: center; position: relative;
  overflow: hidden; background: #000;
}
.hero-content { gap: 22px; }
.hero-content h1 {
  font-size: clamp(35px, 5vw, 68px);
  line-height: clamp(2.6rem, 8vw, 7vw); font-weight: 700;
}
.hero-content .allh2 { margin: 0; }
.hero-content .p2 { color: #ffffffaf; font-size: 16px; line-height: 1.7rem; }

/*------ SECTION 2 - STATS ------*/
.statsSec {
  height: fit-content; display: block; padding: 50px 0;
  background: linear-gradient(180deg, #000, #5960e808 50%, #000);
  border-top: 1px solid #ffffff10; border-bottom: 1px solid #ffffff10;
}
.stats-row { gap: 20px; }
.stat-item { gap: 8px; flex: 1; }
.stat-num {
  font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  color: #fff; line-height: 1;
}
.stat-item p { font-size: 14px; color: #ffffffaf; text-align: center; }
.stat-divider { width: 1px; height: 60px; background: #ffffff20; }

/*------ SECTION 3 - PROJECTS ------*/
.projectsSec {
  display: block; padding: 80px 0; height: fit-content; background: #000;
}
.projects-header { margin-bottom: 0; }

/* Filter tabs */
.filter-tabs {
  gap: 10px; flex-wrap: wrap; margin-bottom: 50px;
}
.filter-btn {
  padding: 8px 18px; border: 1px solid #ffffff30; border-radius: 30px;
  background: transparent; color: #ffffffaf; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: 0.3s ease; transform: none;
  font-family: Montserrat, sans-serif;
}
.filter-btn:hover { border-color: #5960e8; color: #fff; }
.filter-btn.active {
  background: #5960e8; border-color: #5960e8; color: #fff;
  box-shadow: 0 0 20px -5px #5960e860;
}
.filter-btn:hover, .filter-btn:active { transform: none; box-shadow: none; }
.filter-btn.active:hover { transform: none; box-shadow: 0 0 20px -5px #5960e860; }

/* Projects grid */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.project-card {
  flex-direction: column; border: 1px solid #ffffff18; border-radius: 12px;
  overflow: hidden; background: linear-gradient(160deg, #0a0a0a, #ffffff06 50%, #0a0a0a);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.project-card:hover {
  border-color: #5960e860; transform: translateY(-6px);
  box-shadow: 0 20px 60px -15px #5960e840;
}

/* Project image */
.project-img-wrap {
  position: relative; width: 100%; height: 220px; overflow: hidden;
}
.project-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.05); }

/* Overlay */
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75); gap: 14px;
  opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-cat-badge {
  background: #5960e8; color: #fff; font-size: 11px;
  font-weight: 700; padding: 5px 14px; border-radius: 20px;
  letter-spacing: 1px; text-transform: uppercase;
}
.overlay-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #000; padding: 10px 20px;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  transition: 0.2s ease;
}
.overlay-btn:hover { background: #5960e8; color: #fff; }
.overlay-btn i { font-size: 16px; }

/* Project info */
.project-info {
  padding: 22px; gap: 12px; align-items: flex-start; flex: 1;
}
.project-meta { width: 100%; }
.project-tag {
  font-size: 11px; font-weight: 700; color: #5960e8;
  background: #5960e815; border: 1px solid #5960e830;
  padding: 3px 10px; border-radius: 20px;
}
.project-year { font-size: 12px; color: #ffffff50; font-weight: 600; }
.project-info h3 { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.3; }
.project-info > p { font-size: 14px; color: #ffffffaf; line-height: 1.6rem; }
.tech-stack { gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.tech-stack span {
  background: #ffffff08; border: 1px solid #ffffff18;
  color: #ccc; padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.project-links { margin-top: auto; }
.proj-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: #5960e8; font-size: 13px; font-weight: 700;
  transition: gap 0.2s ease;
}
.proj-link-btn:hover { gap: 10px; }
.proj-link-btn i { font-size: 16px; }

/*------ SECTION 4 - PROMO ------*/
.promoSec {
  height: fit-content; padding: 80px 0;
  text-align: center; display: block;
}
.promotion {
  padding: 70px 50px; border-radius: 12px;
  width: fit-content; margin: auto;
  background: linear-gradient(130deg, #9976ff, #ffffff14 20% 80%, #9976ff);
}
.promotion .allh1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: clamp(2rem, 8vw, 5vw);
}
.promotion p { color: #ffffffaf; margin-bottom: 0; }
.promotion button { margin-top: 30px; }

/*------ FOOTER ------*/
footer { padding-top: 60px; user-select: none; border-top: 1px solid #ffffff10; }
.footer-top { padding: 40px 0; align-items: flex-start; gap: 60px; }
.footer-brand {
  gap: 18px; align-items: flex-start; max-width: 300px;
}
.footer-brand img {
  width: 40px; height: 40px; object-fit: cover;
  margin-right: 10px; border-radius: 8px;
}
.footer-brand .logo { color: #fff; font-size: 20px; font-weight: 700; }
.footer-brand > p { color: #888; font-size: 14px; line-height: 1.6rem; }
.footer-social { gap: 14px; }
.footer-social a {
  width: 38px; height: 38px; background: #111;
  border: 1px solid #222; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 18px; transition: 0.2s ease;
}
.footer-social a:hover { background: #5960e8; border-color: #5960e8; color: #fff; }
.footer-links-group { gap: 50px; align-items: flex-start; flex: 1; }
.footer-col { gap: 12px; align-items: flex-start; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #888; margin-bottom: 6px;
}
.footer-col a { color: #ccc; font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 20px 0; border-top: 1px solid #ffffff15;
}
.footer-bottom p { font-size: 13px; color: #666; }
.footer-bottom p strong { color: #aaa; }
.footer-bottom a { color: #666; font-size: 13px; transition: color 0.2s ease; }
.footer-bottom a:hover { color: #fff; }

/*------ MOBILE ------*/
@media (max-width: 768px) {
  .IconCol { display: block; }
  .ri-menu-4-line { display: block; }
  .nav { display: none; }
  .navRow { display: none; }

  .hero-content h1 { font-size: clamp(28px, 7vw, 40px); }

  .stats-row { flex-wrap: wrap; gap: 30px; }
  .stat-item { min-width: 40%; }
  .stat-divider { display: none; }

  .filter-tabs { gap: 8px; }
  .filter-btn { font-size: 12px; padding: 7px 14px; }

  .projects-grid { grid-template-columns: 1fr; gap: 20px; }

  .footer-top { flex-direction: column; gap: 30px; }
  .footer-brand { max-width: 100%; }
  .footer-links-group { flex-wrap: wrap; gap: 30px; width: 100%; }
  .promotion { padding: 50px 24px; width: 100%; }
}

/*------ TABLET ------*/
@media (min-width: 767px) and (max-width: 1024px) {
  .IconCol { display: block; }
  .ri-menu-4-line { display: block; }
  .nav { display: none; }
  .navRow { display: none; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .footer-top { flex-direction: column; gap: 30px; }
  .footer-brand { max-width: 100%; }
}