/* assets/css/my-work.css */
/* ──────────────────────────────────────────────────────────────
   header Section
   ────────────────────────────────────────────────────────────── */

.header {
  background-image: url('../images/header-Bg.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.header .header-overlay {
  max-width: var(--max-width);
  margin: auto;
  padding: 120px var(--space-18) var(--space-8) var(--space-18);
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* Intro / Heading */
.header .intro {
  font-family: var(--secondary-font);
  font-size: 72px;
  margin: var(--space-5) 0;
}

.header .intro .my-name .name-highlight {
  color: var(--color-brand);
}

/* About Me */
.header .about-me {
  font-family: var(--primary-font);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

/* Stat Cards Wrapper */
.header .stat-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* Individual Stat Card */
.header .stat-card {
  width: 24%;
  background-color: var(--color-white);
  border-radius: var(--radius-3xl);
  box-shadow: 1px 2px 12px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  align-items: center;
  margin-top: 30px;
}

/* Stat Card Icon – shared styles */
.header .stat-card .icon {
  border-radius: 15px;
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stat Card Icon – individual background colours */
.header .stat-card:nth-child(1) .icon {
  background-color: var(--color-stat-1);
}

.header .stat-card:nth-child(2) .icon {
  background-color: var(--color-stat-2);
}

.header .stat-card:nth-child(3) .icon {
  background-color: var(--color-stat-3);
}

.header .stat-card:nth-child(4) .icon {
  background-color: var(--color-stat-4);
}

/* Stat Card Text */
.header .stat-card .stat-title {
  color: var(--color-ink-deep);
  font-size: 45px;
  font-weight: var(--weight-black);
  font-family: var(--primary-font);
}

.header .stat-card .stat-description {
  color: var(--color-text-faint);
  font-size: 18px;
  font-family: var(--primary-font);
  font-weight: var(--weight-medium);
}

/* ──────────────────────────────────────────────────────────────
   Portfolio Section
   ────────────────────────────────────────────────────────────── */

.portfolio-section {
  max-width: var(--max-width);
  margin: auto;
  padding: var(--space-18);
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin: 0 auto 44px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-base);
  background: var(--color-white);
  font-family: var(--primary-font);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: #333;
  cursor: pointer;
  transition: all var(--ease-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.filter-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.filter-btn.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white);
}

.filter-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.filter-btn.active svg {
  opacity: 1;
}

/* ── Project Grid ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  margin: 0 auto 52px;
}

@media (max-width: 860px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Project Card ── */
.project-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--color-border-lighter);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow var(--ease-mid), transform var(--ease-mid);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-border-lighter);
  object-fit: cover;
  display: block;
  height: 500px;
  overflow-y: scroll;
  scrollbar-width: none;
}

.card-image::-webkit-scrollbar {
  display: none;
}

.card-image img {
  width: 100%;
  height: auto;
}

.project-card span {
  font-family: var(--primary-font);
}

.card-body {
  padding: 18px var(--space-5) 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: #f2f2f2;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-pill);
  padding: var(--space-1) 9px;
}

/* Title */
.card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-normal);
  color: var(--color-ink-deep);
}

/* Description */
.card-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* CTA Button */
.btn-view {
  margin-top: var(--space-1);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-ink-alt);
  color: var(--color-white);
  font-family: var(--primary-font);
  font-size: 0.76rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background var(--ease-fast);
  text-decoration: none;
}

.btn-view:hover {
  background: var(--color-brand-deeper);
}

.btn-view svg {
  width: 15px;
  height: 15px;
}

/* ── Load More ── */
.load-more-wrap {
  text-align: center;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: var(--space-4) var(--space-9);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-base);
  background: #f7f7f7;
  font-family: var(--primary-font);
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
  color: #333;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.btn-load-more:hover {
  border-color: var(--color-brand-deeper);
  color: var(--color-brand-deeper);
  background: var(--color-white);
}

.btn-load-more svg {
  width: var(--space-4);
  height: var(--space-4);
  animation: spin 2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   1. TABLET LANDSCAPE  ≤ 1180px
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {

  .header-pill {
    width: 75%;
    gap: var(--space-6);
  }

  .header .header-overlay {
    padding: 110px var(--space-10) var(--space-14) var(--space-10);
    gap: 32px;
  }

  .header .intro {
    font-size: 58px;
  }

  .footer-top {
    grid-template-columns: 240px 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}


/* ────────────────────────────────────────────────────────────
   2. TABLET LANDSCAPE  ≤ 1024px
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  .header .header-overlay {
    padding: 100px var(--space-8) var(--space-12) var(--space-8);
    gap: 24px;
  }

  .header .intro {
    font-size: 50px;
    margin: var(--space-4) 0;
  }

  .header .about-me {
    font-size: var(--text-base);
  }

  .header .stat-card .stat-title {
    font-size: 36px;
  }

  .header .stat-card .stat-description {
    font-size: 15px;
  }

  .portfolio-section {
    padding: var(--space-12) var(--space-10);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .brand-col {
    grid-column: 1 / -1;
  }
}


/* ────────────────────────────────────────────────────────────
   3. TABLET PORTRAIT / MOBILE LANDSCAPE  ≤ 768px
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .site-header {
    padding: var(--space-3) var(--space-4);
    flex-wrap: nowrap;
    justify-content: center;
  }

  .empty-box {
    display: none;
  }

  .header-socials {
    display: none;
  }

  .header-pill {
    width: 100%;
    gap: var(--space-3);
    padding: 8px 14px;
    justify-content: space-between;
  }

  .header-nav {
    gap: 0;
  }

  .header-nav a {
    font-size: 0.78rem;
    padding: 6px 8px;
  }

  .btn-hire {
    font-size: 0.78rem;
    padding: var(--space-2) var(--space-4);
  }

  .header .header-overlay {
    flex-direction: column-reverse;
    padding: 90px var(--space-6) var(--space-10) var(--space-6);
    gap: 20px;
    align-items: center;
  }

  .header .header-overlay .col {
    width: 100%;
    flex-direction: column;
  }

  .header .header-overlay .col:last-child {
    display: flex;
    justify-content: center;
  }

  .header .header-overlay .col:last-child img {
    max-width: 280px;
    width: 100%;
  }

  .header .intro {
    font-size: 42px;
    margin: var(--space-4) 0;
    text-align: center;
  }

  .header .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header .about-me {
    font-size: var(--text-base);
    text-align: center;
  }

  .header .stat-cards {
    justify-content: center;
    gap: 14px;
  }

  .header .stat-card {
    width: 47%;
    margin-top: 14px;
  }

  .header .stat-card .stat-title {
    font-size: 32px;
  }

  .header .stat-card .stat-description {
    font-size: 13px;
  }

  .portfolio-section {
    padding: var(--space-10) var(--space-5);
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .site-footer {
    padding: var(--space-10) var(--space-8) 0;
    max-width: 95%;
    border-radius: var(--radius-3xl);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .brand-col {
    grid-column: 1 / -1;
  }
}


/* ────────────────────────────────────────────────────────────
   4. SMALL MOBILE  ≤ 430px
   ──────────────────────────────────────────────────────────── */
@media (max-width: 430px) {

  .site-header {
    padding: var(--space-2) var(--space-3);
  }

  .header-pill {
    width: 100%;
    padding: 7px 10px;
    gap: var(--space-2);
  }

  .brand-text .brand-tagline {
    display: none;
  }

  .btn-hire {
    font-size: 0.75rem;
    padding: 7px 14px;
    margin-left: auto;
  }

  .header .header-overlay {
    padding: 80px var(--space-4) var(--space-8) var(--space-4);
    gap: 16px;
  }

  .header .intro {
    font-size: 36px;
    line-height: 1.15;
  }

  .header .about-me {
    font-size: 0.92rem;
  }

  .header .stat-cards {
    gap: 10px;
  }

  .header .stat-card {
    width: 47%;
    padding: var(--space-3) var(--space-3);
    gap: var(--space-3);
    margin-top: 10px;
    border-radius: var(--radius-2xl);
  }

  .header .stat-card .icon {
    padding: var(--space-2);
  }

  .header .stat-card .icon img {
    width: 28px;
    height: 28px;
  }

  .header .stat-card .stat-title {
    font-size: 28px;
  }

  .header .stat-card .stat-description {
    font-size: 12px;
  }

  .portfolio-section {
    padding: var(--space-10) var(--space-4);
  }

  .filter-bar {
    gap: 7px;
  }

  .filter-btn {
    font-size: 0.73rem;
    padding: 7px 12px;
  }

  .filter-btn svg {
    width: 13px;
    height: 13px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .card-image {
    height: 380px;
  }

  .site-footer {
    padding: var(--space-8) var(--space-5) 0;
    max-width: 96%;
    border-radius: var(--radius-2xl);
    margin: 20px auto 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .brand-col {
    grid-column: auto;
  }

  .brand-desc {
    font-size: 0.88rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .social-icons {
    gap: 8px;
  }

  .social-icon {
    width: 34px;
    height: 34px;
  }
}


/* ────────────────────────────────────────────────────────────
   5. ≤ 410px
   ──────────────────────────────────────────────────────────── */
@media (max-width: 410px) {

  .header .intro {
    font-size: 33px;
  }

  .header .stat-card .stat-title {
    font-size: 26px;
  }

  .header .stat-card .stat-description {
    font-size: 11px;
  }

  .filter-btn {
    font-size: 0.70rem;
    padding: 6px 10px;
  }

  .card-title {
    font-size: var(--text-lg);
  }
}


/* ────────────────────────────────────────────────────────────
   6. ≤ 390px
   ──────────────────────────────────────────────────────────── */
@media (max-width: 390px) {

  .header .intro {
    font-size: 30px;
  }

  .header .about-me {
    font-size: 0.85rem;
  }

  .header .stat-card {
    padding: var(--space-2) var(--space-2);
    gap: var(--space-2);
  }

  .header .stat-card .stat-title {
    font-size: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .site-footer {
    border-radius: var(--radius-xl);
  }
}


/* ────────────────────────────────────────────────────────────
   7. ≤ 360px
   ──────────────────────────────────────────────────────────── */
@media (max-width: 360px) {

  .header-pill {
    padding: 6px 8px;
  }

  .brand-avatar {
    width: 36px;
    height: 36px;
  }

  .brand-text .brand-name {
    font-size: 0.88rem;
  }

  .btn-hire {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  .header .header-overlay {
    padding: 75px var(--space-3) var(--space-7) var(--space-3);
  }

  .header .intro {
    font-size: 27px;
  }

  .header .stat-card {
    width: 46%;
    border-radius: var(--radius-xl);
  }

  .header .stat-card .stat-title {
    font-size: 22px;
  }

  .header .stat-card .stat-description {
    font-size: 10px;
  }

  .portfolio-section {
    padding: var(--space-8) var(--space-3);
  }

  .filter-btn {
    font-size: 0.65rem;
    padding: 5px 9px;
    gap: 5px;
  }

  .filter-btn svg {
    width: 11px;
    height: 11px;
  }

  .site-footer {
    padding: var(--space-6) var(--space-4) 0;
    margin: 16px auto 16px;
  }

  .footer-bottom p {
    font-size: 0.72rem;
  }
}


/* ────────────────────────────────────────────────────────────
   LANDSCAPE ORIENTATION overrides
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) and (orientation: landscape) {

  .site-header {
    padding: var(--space-2) var(--space-5);
  }

  .header-pill {
    width: 90%;
  }

  .header-nav {
    display: flex;
  }

  .header-nav a {
    font-size: 0.72rem;
    padding: 4px 7px;
  }

  .header .header-overlay {
    flex-direction: row;
    padding: 70px var(--space-6) var(--space-8) var(--space-6);
    gap: 20px;
    align-items: center;
  }

  .header .header-overlay .col {
    flex: 1;
  }

  .header .header-overlay .col:last-child img {
    max-width: 220px;
  }

  .header .intro {
    font-size: 32px;
    text-align: left;
  }

  .header .container {
    align-items: flex-start;
    text-align: left;
  }

  .header .about-me {
    font-size: 0.82rem;
    text-align: left;
  }

  .header .stat-card {
    width: 47%;
  }

  .header .stat-card .stat-title {
    font-size: 24px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ──────────────────────────────────────────────────────────────
   Skeleton Loading Animations
   ────────────────────────────────────────────────────────────── */

.skeleton-card {
    opacity: 1;
    pointer-events: none;
}

.skeleton-gradient {
    background: linear-gradient(
        110deg,
        #ececec 8%,
        #f5f5f5 18%,
        #ececec 33%
    );
    background-size: 200% 100%;
    animation: skeleton-wave 1.5s linear infinite;
}

@keyframes skeleton-wave {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Image */
.skeleton-image {
    background: #e8e8e8;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: 500px;
    overflow: hidden;
}

.skeleton-image .skeleton-gradient {
    width: 100%;
    height: 100%;
}

/* Skeleton Tags */
.skeleton-tag {
    display: inline-block;
    width: 60px;
    height: 26px;
    border-radius: var(--radius-pill);
    background: #e8e8e8;
}

.skeleton-tag:first-child {
    width: 80px;
}

.skeleton-tag:last-child {
    width: 70px;
}

/* Skeleton Title */
.skeleton-title {
    width: 85%;
    height: 28px;
    border-radius: 6px;
    background: #e8e8e8;
    margin: 8px 0;
}

/* Skeleton Description */
.skeleton-desc {
    width: 100%;
    height: 48px;
    border-radius: 6px;
    background: #e8e8e8;
    margin: 8px 0;
}

/* Skeleton Button */
.skeleton-button {
    width: 130px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: #e8e8e8;
    margin-top: 12px;
}

/* Disable load more button while loading */
.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive skeleton adjustments */
@media (max-width: 860px) {
    .skeleton-image {
        height: 400px;
    }
}

@media (max-width: 560px) {
    .skeleton-image {
        height: 350px;
    }
    
    .skeleton-title {
        width: 90%;
        height: 24px;
    }
    
    .skeleton-desc {
        height: 60px;
    }
    
    .skeleton-button {
        width: 120px;
        height: 38px;
    }
}