/* ==========================================================
   PORTFOLIO PAGE
   Zenith Solutions Limited
========================================================== */

/* ===========================
   Variables
=========================== */

:root {
  --primary: #262871;
  --secondary: #6c385e;

  --dark: #0f172a;
  --gray: #64748b;

  --light: #f8fafc;
  --white: #ffffff;

  --radius: 20px;
}

/* ===========================
   Sections
=========================== */

.portfolio-section {
  padding: 100px 0;
}

.bg-light {
  background: #f8fafc;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* ===========================
   Hero
=========================== */

/* ==========================================================
   PORTFOLIO HERO
========================================================== */

.portfolio-hero {
  position: relative;

  overflow: hidden;

  padding: 170px 0 120px;

  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 45%, #f8fafc 100%);
}

/* ======================================
   Floating Background Shapes
====================================== */

.hero-shape {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  opacity: 0.25;
}

.hero-shape-1 {
  width: 380px;
  height: 380px;

  background: #262871;

  top: -140px;
  right: -80px;
}

.hero-shape-2 {
  width: 320px;
  height: 320px;

  background: #6c385e;

  bottom: -120px;
  left: -80px;
}

.hero-shape-3 {
  width: 220px;
  height: 220px;

  background: #7c3aed;

  top: 45%;
  left: 45%;
}

/* ======================================
   Grid
====================================== */

.hero-grid {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 70px;

  align-items: center;

  position: relative;

  z-index: 2;
}

/* ======================================
   Left
====================================== */

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 12px 22px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.7);

  color: var(--primary);

  font-weight: 600;

  margin-bottom: 28px;
}

.hero-content h1 {
  font-size: 62px;

  line-height: 1.1;

  color: var(--dark);

  margin-bottom: 30px;
}

.hero-content h1 span {
  display: block;

  background: linear-gradient(90deg, var(--primary), var(--secondary));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 19px;

  line-height: 1.9;

  color: var(--gray);
}

/* ======================================
   Right Showcase
====================================== */

.hero-showcase {
  display: grid;

  grid-template-columns: 1fr 1fr 1fr;

  gap: 20px;

  align-items: center;
}

.showcase-column {
  display: flex;

  flex-direction: column;

  gap: 20px;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.82);

  backdrop-filter: blur(16px);

  border: 1px solid rgba(255, 255, 255, 0.9);

  border-radius: 24px;

  padding: 28px;

  text-align: center;

  transition: 0.35s;

  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.showcase-card:hover {
  transform: translateY(-10px);
}

.showcase-card i {
  font-size: 34px;

  margin-bottom: 18px;

  color: var(--primary);
}

.showcase-card h3 {
  font-size: 42px;

  color: var(--dark);

  margin-bottom: 8px;
}

.showcase-card h4 {
  font-size: 22px;

  color: var(--dark);

  margin-bottom: 8px;
}

.showcase-card p,
.showcase-card span {
  color: var(--gray);

  font-size: 15px;

  line-height: 1.6;
}

.card-large {
  min-height: 350px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}

/* ======================================
   Hero Buttons
====================================== */

.hero-buttons {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;

  margin-top: 45px;
}

/* ======================================
   Responsive
====================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;

    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-showcase {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 46px;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-column {
    display: grid;

    grid-template-columns: 1fr 1fr;
  }

  .card-large {
    min-height: auto;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .showcase-column {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Hero Buttons
=========================== */

.hero-buttons {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;

  margin-top: 45px;
}

.btn-primary {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 16px 34px;

  border-radius: 50px;

  background: var(--primary);

  color: #fff;

  text-decoration: none;

  font-weight: 600;

  transition: 0.35s;
}

.btn-primary:hover {
  transform: translateY(-4px);
}

.btn-outline {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 16px 34px;

  border-radius: 50px;

  border: 2px solid var(--primary);

  color: var(--primary);

  text-decoration: none;

  font-weight: 600;

  transition: 0.35s;
}

.btn-outline:hover {
  background: var(--primary);

  color: #fff;
}
/* ==========================================================
   SECTION HEADER
========================================================== */

.section-header {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;

  padding: 10px 22px;

  border-radius: 50px;

  background: #eef2ff;

  color: var(--primary);

  font-size: 0.95rem;
  font-weight: 600;

  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 42px;
  line-height: 1.2;

  color: var(--dark);

  margin-bottom: 22px;
}

.section-header p {
  font-size: 18px;

  line-height: 1.8;

  color: var(--gray);
}

/* ==========================================================
   FEATURED PROJECT GRID
========================================================== */

.project-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 35px;
}

/* ==========================================================
   PROJECT CARD
========================================================== */

.project-card {
  background: #fff;

  border-radius: 24px;

  overflow: hidden;

  border: 1px solid #e5e7eb;

  transition: 0.35s;

  display: flex;

  flex-direction: column;

  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
}

/* ==========================================================
   PROJECT IMAGE
========================================================== */

.project-image {
  height: 220px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.project-image i {
  font-size: 70px;

  color: #fff;
}

/* ==========================================================
   PROJECT CONTENT
========================================================== */

.project-content {
  padding: 30px;

  display: flex;

  flex-direction: column;

  flex: 1;
}

.project-category {
  display: inline-block;

  font-size: 0.82rem;

  font-weight: 600;

  color: var(--primary);

  background: #eef2ff;

  padding: 8px 14px;

  border-radius: 30px;

  margin-bottom: 18px;
}

.project-content h3 {
  font-size: 26px;

  color: var(--dark);

  margin-bottom: 16px;
}

.project-content p {
  color: var(--gray);

  line-height: 1.8;

  margin-bottom: 28px;
}

/* ==========================================================
   TAGS
========================================================== */

.project-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 30px;
}

.project-tags span {
  padding: 8px 14px;

  border-radius: 30px;

  background: #f8fafc;

  border: 1px solid #e5e7eb;

  font-size: 0.85rem;

  color: #475569;
}

/* ==========================================================
   PROJECT LINK
========================================================== */

.project-link {
  margin-top: auto;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  color: var(--primary);

  font-weight: 700;

  text-decoration: none;

  transition: 0.3s;
}

.project-link:hover {
  gap: 16px;
}
/* ==========================================================
   GOVERNMENT & DEVELOPMENT PROJECTS
========================================================== */

.case-study-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 35px;

  margin-bottom: 70px;
}

/* ==========================================================
   CASE CARD
========================================================== */

.case-card {
  background: #fff;

  border-radius: 22px;

  padding: 35px;

  border: 1px solid #e5e7eb;

  transition: 0.35s;
}

.case-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

/* ==========================================================
   ICON
========================================================== */

.case-icon {
  width: 72px;

  height: 72px;

  border-radius: 18px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  margin-bottom: 24px;
}

.case-icon i {
  color: #fff;

  font-size: 30px;
}

/* ==========================================================
   CONTENT
========================================================== */

.case-content h3 {
  font-size: 26px;

  color: var(--dark);

  margin-bottom: 18px;
}

.case-content p {
  color: var(--gray);

  line-height: 1.8;

  margin-bottom: 24px;
}

/* ==========================================================
   FEATURE LIST
========================================================== */

.case-list {
  list-style: none;

  padding: 0;

  margin: 0;
}

.case-list li {
  position: relative;

  padding-left: 28px;

  margin-bottom: 14px;

  color: #475569;
}

.case-list li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color: var(--primary);

  font-weight: 700;
}

/* ==========================================================
   EXPERIENCE HIGHLIGHT
========================================================== */

.project-highlight {
  margin-top: 20px;
}

.highlight-box {
  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 24px;

  padding: 45px;

  text-align: center;
}

.highlight-box h3 {
  font-size: 32px;

  color: var(--dark);

  margin-bottom: 35px;
}

/* ==========================================================
   EXPERIENCE TAGS
========================================================== */

.highlight-tags {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 16px;
}

.highlight-tags span {
  padding: 12px 22px;

  background: #eef2ff;

  color: var(--primary);

  border-radius: 999px;

  font-size: 0.95rem;

  font-weight: 600;

  transition: 0.3s;
}

.highlight-tags span:hover {
  background: var(--primary);

  color: #fff;

  transform: translateY(-3px);
}
/* ==========================================================
   ENTERPRISE PRODUCT ECOSYSTEM
========================================================== */

.product-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 35px;
}

/* ==========================================================
   PRODUCT CARD
========================================================== */

.product-card {
  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 24px;

  padding: 35px;

  transition: 0.35s;

  display: flex;

  flex-direction: column;

  height: 100%;

  position: relative;

  overflow: hidden;
}

.product-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 5px;

  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.product-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.1);
}

/* ==========================================================
   PRODUCT ICON
========================================================== */

.product-icon {
  width: 78px;
  height: 78px;

  border-radius: 20px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 28px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.product-icon i {
  color: #fff;

  font-size: 34px;
}

/* ==========================================================
   PRODUCT CONTENT
========================================================== */

.product-card h3 {
  font-size: 28px;

  color: var(--dark);

  margin-bottom: 16px;
}

.product-card p {
  color: var(--gray);

  line-height: 1.8;

  margin-bottom: 26px;
}

/* ==========================================================
   FEATURE LIST
========================================================== */

.product-features {
  list-style: none;

  padding: 0;

  margin: 0 0 30px;
}

.product-features li {
  position: relative;

  padding-left: 30px;

  margin-bottom: 14px;

  color: #475569;
}

.product-features li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color: var(--primary);

  font-weight: 700;
}

/* ==========================================================
   PRODUCT LINK
========================================================== */

.product-link {
  margin-top: auto;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  text-decoration: none;

  color: var(--primary);

  font-weight: 700;

  transition: 0.3s;
}

.product-link:hover {
  gap: 16px;
}

.product-link i {
  transition: 0.3s;
}

/* ==========================================================
   PRODUCT CARD HOVER
========================================================== */

.product-card:hover .product-icon {
  transform: rotate(-6deg) scale(1.08);

  transition: 0.35s;
}

.product-card:hover h3 {
  color: var(--primary);
}
/* ==========================================================
   CLIENT SUCCESS
========================================================== */

.stats-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 30px;

  margin-bottom: 80px;
}

.stat-card {
  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 22px;

  padding: 40px 25px;

  text-align: center;

  transition: 0.35s;
}

.stat-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.stat-card h3 {
  font-size: 3rem;

  color: var(--primary);

  margin-bottom: 12px;

  line-height: 1;
}

.stat-card p {
  color: var(--gray);

  font-size: 1rem;
}

/* ==========================================================
   TESTIMONIALS
========================================================== */

.testimonial-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 35px;
}

.testimonial-card {
  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 24px;

  padding: 35px;

  transition: 0.35s;
}

.testimonial-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.quote-icon {
  width: 60px;

  height: 60px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 16px;

  margin-bottom: 24px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.quote-icon i {
  color: #fff;

  font-size: 24px;
}

.testimonial-card p {
  color: var(--gray);

  line-height: 1.9;

  margin-bottom: 28px;
}

.testimonial-card h4 {
  color: var(--dark);

  margin-bottom: 6px;
}

.testimonial-card span {
  color: var(--primary);

  font-size: 0.92rem;
}

/* ==========================================================
   CALL TO ACTION
========================================================== */

.cta-section {
  padding: 110px 0;

  background: #ffffff;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: #fff;

  border-radius: 30px;

  padding: 80px 60px;

  text-align: center;

  overflow: hidden;

  position: relative;
}

.cta-box::before {
  content: "";

  position: absolute;

  inset: 0;

  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.15),
    transparent 45%
  );
}

.cta-box > * {
  position: relative;

  z-index: 2;
}

.cta-box .section-badge {
  background: rgba(255, 255, 255, 0.18);

  color: #fff;
}

.cta-box h2 {
  font-size: 48px;

  margin: 28px 0;
}

.cta-box p {
  max-width: 760px;

  margin: 0 auto 40px;

  line-height: 1.9;

  color: rgba(255, 255, 255, 0.92);
}

.cta-buttons {
  display: flex;

  justify-content: center;

  gap: 18px;

  flex-wrap: wrap;
}

.cta-box .btn-primary {
  background: #fff;

  color: var(--primary);
}

.cta-box .btn-outline {
  border-color: #fff;

  color: #fff;
}

.cta-box .btn-outline:hover {
  background: #fff;

  color: var(--primary);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {
  .portfolio-section {
    padding: 80px 0;
  }

  .portfolio-hero {
    padding: 140px 0 90px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .cta-box {
    padding: 60px 40px;
  }

  .cta-box h2 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;

    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .project-card,
  .case-card,
  .product-card,
  .testimonial-card {
    padding: 28px;
  }

  .cta-box {
    padding: 50px 25px;
  }

  .cta-box h2 {
    font-size: 30px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
  }

  .stat-card h3 {
    font-size: 2.3rem;
  }
}
/* ==========================================================
   ENTERPRISE FOOTER
========================================================== */

.site-footer {
  background: #0f172a;

  color: #cbd5e1;

  padding: 90px 0 0;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    2fr
    1fr
    1fr
    1.2fr;

  gap: 60px;

  padding-bottom: 60px;
}

.footer-logo {
  width: 220px;

  margin-bottom: 24px;
}

.footer-column p {
  color: #94a3b8;

  line-height: 1.9;

  margin-bottom: 30px;
}

.footer-column h3 {
  color: #ffffff;

  font-size: 22px;

  margin-bottom: 28px;

  position: relative;
}

.footer-column h3::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -10px;

  width: 55px;
  height: 3px;

  background: linear-gradient(90deg, var(--primary), var(--secondary));

  border-radius: 50px;
}

/* ==========================
   Lists
========================== */

.footer-column ul {
  list-style: none;

  padding: 0;

  margin: 0;
}

.footer-column li {
  margin-bottom: 16px;
}

.footer-column a {
  color: #94a3b8;

  text-decoration: none;

  transition: 0.3s;
}

.footer-column a:hover {
  color: #ffffff;

  padding-left: 8px;
}

/* ==========================
   Contact
========================== */

.footer-contact li {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  line-height: 1.8;
}

.footer-contact i {
  color: var(--secondary);

  margin-top: 4px;

  width: 18px;
}

/* ==========================
   Social
========================== */

.footer-social {
  display: flex;

  gap: 16px;
}

.footer-social a {
  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  text-decoration: none;

  background: #1e293b;

  color: #ffffff;

  transition: 0.35s;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));

  transform: translateY(-5px);
}

/* ==========================
   Bottom
========================== */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding: 28px 0;

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 20px;
}

.footer-bottom p {
  color: #94a3b8;

  margin: 0;
}

.footer-bottom-links {
  display: flex;

  gap: 28px;

  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #94a3b8;

  text-decoration: none;

  transition: 0.3s;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ==========================
   Responsive
========================== */

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 45px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;

    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .site-footer {
    padding-top: 70px;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-column h3 {
    font-size: 20px;
  }

  .footer-social {
    justify-content: center;
  }
}
/* ==========================================================
   BACK TO TOP
========================================================== */

.back-to-top {
  position: fixed;

  right: 30px;

  bottom: 30px;

  width: 58px;

  height: 58px;

  border: none;

  border-radius: 50%;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: #fff;

  font-size: 22px;

  box-shadow: 0 18px 40px rgba(38, 40, 113, 0.35);

  opacity: 0;

  visibility: hidden;

  transform: translateY(25px);

  transition: 0.35s;

  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-6px) scale(1.08);

  box-shadow: 0 25px 50px rgba(38, 40, 113, 0.45);
}

.back-to-top:active {
  transform: scale(0.96);
}

.back-to-top i {
  pointer-events: none;
}

@media (max-width: 768px) {
  .back-to-top {
    width: 50px;

    height: 50px;

    right: 20px;

    bottom: 20px;

    font-size: 18px;
  }
}
/* ==========================================================
   UNIVERSAL NAVBAR INTEGRATION & FINAL RESPONSIVE SAFETY
========================================================== */

html {
  scroll-behavior: smooth;
}

body.portfolio-page {
  margin: 0;
  overflow-x: hidden;
}

.portfolio-page *,
.portfolio-page *::before,
.portfolio-page *::after {
  box-sizing: border-box;
}

.navbar-spacer {
  display: block;
  width: 100%;
  height: var(--navbar-height-desktop);
  min-height: var(--navbar-height-desktop);
}

.portfolio-page main,
.portfolio-page section {
  min-width: 0;
}

.portfolio-page .portfolio-hero {
  padding-top: 100px;
}

.portfolio-page .project-card,
.portfolio-page .case-card,
.portfolio-page .product-card,
.portfolio-page .testimonial-card,
.portfolio-page .stat-card {
  min-width: 0;
}

.portfolio-page h1,
.portfolio-page h2,
.portfolio-page h3,
.portfolio-page h4,
.portfolio-page p,
.portfolio-page li,
.portfolio-page a,
.portfolio-page span {
  overflow-wrap: break-word;
}

@media (max-width: 1199px) {
  .portfolio-page .hero-grid {
    gap: 48px;
  }

  .portfolio-page .hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 3.75rem);
  }

  .portfolio-page .hero-showcase {
    gap: 14px;
  }

  .portfolio-page .showcase-card {
    padding: 22px 16px;
  }
}

@media (max-width: 992px) {
  .navbar-spacer {
    height: var(--navbar-height-tablet);
    min-height: var(--navbar-height-tablet);
  }

  .portfolio-page .portfolio-hero {
    padding: 76px 0 88px;
  }

  .portfolio-page .hero-grid {
    gap: 46px;
  }

  .portfolio-page .hero-showcase {
    width: min(100%, 760px);
    margin: 0 auto;
  }

  .portfolio-page .project-grid,
  .portfolio-page .case-study-grid,
  .portfolio-page .product-grid,
  .portfolio-page .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .portfolio-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .portfolio-page .portfolio-section {
    padding: 68px 0;
  }

  .portfolio-page .portfolio-hero {
    padding: 64px 0 72px;
  }

  .portfolio-page .hero-content h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .portfolio-page .hero-content p,
  .portfolio-page .section-header p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .portfolio-page .section-header {
    margin-bottom: 44px;
  }

  .portfolio-page .section-header h2 {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }

  .portfolio-page .hero-showcase {
    grid-template-columns: 1fr;
  }

  .portfolio-page .showcase-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-page .card-large {
    min-height: 230px;
  }

  .portfolio-page .project-grid,
  .portfolio-page .case-study-grid,
  .portfolio-page .product-grid,
  .portfolio-page .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-page .project-image {
    height: 190px;
  }

  .portfolio-page .highlight-box,
  .portfolio-page .cta-box {
    padding: 52px 28px;
  }

  .portfolio-page .cta-box h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}

@media (max-width: 640px) {
  .navbar-spacer {
    height: var(--navbar-height-mobile);
    min-height: var(--navbar-height-mobile);
  }

  .portfolio-page .container {
    width: min(100% - 32px, 1200px);
  }

  .portfolio-page .hero-buttons,
  .portfolio-page .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .portfolio-page .hero-buttons a,
  .portfolio-page .cta-buttons a {
    width: 100%;
  }

  .portfolio-page .showcase-column {
    grid-template-columns: 1fr;
  }

  .portfolio-page .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-page .project-content,
  .portfolio-page .case-card,
  .portfolio-page .product-card,
  .portfolio-page .testimonial-card {
    padding: 26px 22px;
  }

  .portfolio-page .highlight-box,
  .portfolio-page .cta-box {
    padding: 44px 22px;
    border-radius: 22px;
  }

  .portfolio-page .footer-bottom-links {
    gap: 14px 20px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .portfolio-page .container {
    width: min(100% - 24px, 1200px);
  }

  .portfolio-page .portfolio-hero {
    padding: 52px 0 60px;
  }

  .portfolio-page .hero-badge,
  .portfolio-page .section-badge {
    padding: 9px 16px;
  }

  .portfolio-page .highlight-tags span,
  .portfolio-page .project-tags span {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
