@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none; border: none;
  text-transform:capitalize;
  transition: all .2s linear;
}
html{
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body{
  background: #f7f7f7;
  font-family: 'Poppins', sans-serif;
}

*::selection{
  background: #2b3dda;
  color: #fff;
}

html{
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar{
  width: .8rem;
}
html::-webkit-scrollbar-track{
  background: rgb(235, 202, 245);
}
html::-webkit-scrollbar-thumb{
  background: #420177;
}

/* Header and Navbar styles inherited from /assets/css/style.css */

/* work section starts (Premium & Recruiter-Ready) */
.work {
  background: linear-gradient(180deg, #0a0e1a 0%, #060913 100%);
  margin-top: 5rem;
  padding: 6rem 2rem 8rem;
  position: relative;
}

.projects-header-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.work .heading {
  font-size: 3.6rem;
  color: #f8fafc;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.work .heading span {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-header-wrap .section-subtitle {
  font-size: 1.6rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.6;
}

/* Category Filter Tabs */
.projects-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 4rem;
  max-width: 900px;
}

.filter-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.filter-tab-btn i {
  font-size: 1.3rem;
  color: #60a5fa;
}

.filter-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
}

.filter-tab-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}

.filter-tab-btn.active i {
  color: #ffffff;
}

.filter-tab-btn .tab-count {
  font-size: 1.15rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto 5rem;
}

/* Project Card */
.project-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 22px 45px -12px rgba(37, 99, 235, 0.25);
}

/* Card Thumbnail */
.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #030712;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.project-card:hover .card-thumb-img {
  transform: scale(1.05);
}

.card-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Card Body */
.card-body {
  padding: 2.2rem 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.card-description {
  font-size: 1.4rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Technology Badges */
.card-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.tech-badge {
  font-size: 1.15rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-live-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 1.1rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  border: none;
}

.btn-live-cta:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  color: #ffffff !important;
}

.btn-view-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 1.1rem 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-view-details:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Project Details Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-modal.active {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

.project-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 3rem;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.project-modal-close {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.modal-category-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.modal-project-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.modal-image-preview {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2.5rem;
  background: #030712;
}

.modal-image-preview img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.modal-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-section-title i {
  color: #60a5fa;
}

.modal-long-desc {
  font-size: 1.5rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 1rem;
}

.modal-features-list li {
  font-size: 1.4rem;
  color: #94a3b8;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.5;
}

.modal-features-list li i {
  color: #10b981;
  margin-top: 0.3rem;
  font-size: 1.3rem;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.modal-tech-badge {
  font-size: 1.25rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.modal-footer-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer-actions .btn-live-cta {
  font-size: 1.5rem;
  padding: 1.2rem 2.4rem;
  border-radius: 12px;
}

@media screen and (max-width: 768px) {
  .work {
    padding: 5rem 1.5rem 6rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  
  .card-body {
    padding: 1.8rem;
  }
  
  .project-modal-card {
    padding: 2rem;
  }
  
  .modal-project-title {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .card-thumb-img,
  .project-modal-card,
  .filter-tab-btn,
  .btn-live-cta {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* back to home button */
.backbtn{
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}
.backbtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: .5em;
  transition: 0.3s;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0px 2px 4px rgba(48, 68, 247, .3);
  text-align: center;
}
.backbtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'Nunito', sans-serif;
}
.backbtn .btn i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.backbtn .btn:hover{
  background: #ffffff;
  color: #000;
}
.backbtn .btn:hover i {
  transform: translateX(-8px);
}
/* work section ends */

/* common media queries starts*/
@media(max-width:450px){
  html{
    font-size: 55%;
  }
  body{
    padding-right: 0;
  }
  section{
    padding: 2rem;
  }
}
/* common media queries ends*/


/* scroll top starts */
#scroll-top{
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 5rem;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active{
  top: calc(100% - 12rem);
}
/* scroll top ends */