/* ===== Base / Shared ===== */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 179, 71, 0.08) 0%, rgba(11, 17, 32, 0) 60%),
    #0b1120;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.text-slate {
  color: #94a3b8 !important;
  /* This ensures it doesn't look too thin on the dark background */
  font-weight: 400;
  font-size: 1.25rem;
}

/* ===== Header / Navigation ===== */
header {
  position: fixed; /* Keeps it at the top regardless of scroll */
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  box-sizing: border-box;
  padding: 20px;
  background-color: transparent; /* Start clear */
  transition: background-color 0.4s ease; /* Smooth fade effect */
  z-index: 1000; /* Keeps it above other content */
}

header .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* This class will be added by JavaScript when we scroll */
header.scrolled {
  background-color: #020617e6; /* Your dark blue */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Optional: add a little depth */
}

.logo {
  width: 60px;
  height: 60px;
  /* That nice rounded "squircle" look */
  border-radius: 18px;

  /* Applying an orange gradient similar to your image */
  background: linear-gradient(135deg, #f0932b, #ed6a10);

  /* Styling the text inside */
  color: #000; /* Dark icon color */
  font-weight: bold;
  font-family: monospace;
  font-size: 1.5rem;

  /* Adding a slight shadow for depth */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.logo-name {
  color: white;
}

.logo-name h1 {
  margin-left: 20px;
}

.menu {
  color: white;
  font-size: 20px;
  text-align: center;
}

.menu a {
  margin-left: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  text-decoration: none;
  outline: none;
  box-shadow: none !important;
}

.mobile-menu-panel {
  display: none;
}

.btn-hire {
  /* 1. The Vibrant Gradient */
  background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);

  /* 2. Typography */
  color: #000000 !important; /* High contrast black text */
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: none; /* Keep it 'Hire Me' exactly */

  /* 3. Shape (Matches your Logo) */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Very subtle light edge */

  /* 4. Shadow for Depth */
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);

  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-hire:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
  filter: brightness(1.1); /* Makes it pop on hover */
}

/* ===== Hero / CTA ===== */
.grid-background {
  margin: 0;
  min-height: 100vh;

  /* LAYER 1: The Darkening Vignette (Top Layer)
     This makes the corners dark and the center clear */
  background-image:
    radial-gradient(circle at center, transparent 0%, rgba(5, 10, 18, 0.8) 100%),

    /* LAYER 2: The Subtle Blue Glow (Middle Layer)
       This adds that soft navy/blue tint in the middle */
    radial-gradient(circle at 50% 40%, #1a2a44 0%, transparent 70%),

    /* LAYER 3: Your Grid (Bottom Layer)
       Set to a very low opacity so it doesn't distract */
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

  /* Set the base solid color and sizes */
  background-color: #050a12;
  background-size: auto, auto, 60px 60px;
  background-attachment: fixed;
}

/* Heading Gradient */
.text-gradient {
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.2);
  color: #ffb347;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
}

.status-badge .dot {
  height: 8px;
  width: 8px;
  background-color: #ffb347;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 8px #ffb347;
}

/* Code Window */
.code-window {
  background: rgba(10, 20, 35, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: "Courier New", monospace;
  color: white;
}

.window-controls .control {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.file-name {
  color: #888;
  font-size: 0.8rem;
}

/* Make all base text white */
.code-window code {
  color: #ffffff;
}

/* Optional: Keep comments a subtle gray so the white code stands out */
.code-window .comment {
  color: #6a737d;
}

/* Optional: Keep the PHP tag a specific color like your screenshot */
.code-window .php-tag {
  color: #c678dd;
}

.cta,
.CTA {
  padding-top: 100px;
}

.CTA-row {
  padding-left: 100px;
  padding-right: 100px;
}

.btn-outline-glass {
  /* Increase white opacity to 10% or 15% for that 'light' look */
  background: rgba(255, 255, 255, 0.12) !important;

  /* The border should be more visible to define the shape */
  border: 1px solid rgba(255, 255, 255, 0.3) !important;

  /* Stronger blur makes it look like thick frosted glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Text color - use pure white or very high opacity */
  color: rgba(255, 255, 255, 0.95) !important;

  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-outline-glass:hover {
  /* This transitions to the solid dark navy from your hover screenshot */
  background-color: #1a2332 !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  backdrop-filter: none;
}

.btn-first {
  margin-right: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1.2;
}

/* ===== Services Section ===== */
.services-section {
  /* A deep, rich navy that allows the blue and purple glows to pop */
  background-color: #0b1120;

  /* Adds space so the content doesn't hit the edges */
  padding: 100px 0;

  /* Optional: Keep that subtle grid from your reference image */
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.services-row {
  padding-left: 20px;
  padding-right: 20px;
}

.services-title {
  text-align: center;
  padding-bottom: 50px;
}

.services-title h6 {
  color: orange;
}

.services-title h2 {
  color: white !important;
}

.services-title p {
  color: #94a3b8;
}

.service-card {
  /* Darker base so it's visible on any background */
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Hover effect */
.service-card:hover {
  transform: translateY(-10px);
  border-color: #ffb347 !important; /* Glows orange on hover */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Text colors */
.service-card h3 {
  color: #ffffff !important;
}

.service-list {
  color: #94a3b8;
}

/* Ensure icons show up */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Color Gradients */
.purple-gradient {
  background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
}

.blue-gradient {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.orange-gradient {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  background-color: #0b1120 !important; /* Deep Navy */
  padding: 100px 0 !important;
  position: relative;
  display: block;
  min-height: 400px;
  z-index: 1;
  overflow: hidden;
}

/* This creates the orange tint SPECIFICALLY for this section */
.portfolio-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* This creates that warm orange wash from the design */
  background: radial-gradient(circle at 50% 0%, rgba(255, 179, 71, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* The Individual Boxes/Cards */
.project-card {
  background-color: #0f1a36 !important;
  border: 1px solid rgba(255, 179, 71, 0.26) !important;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.project-card:hover {
  border-color: rgba(255, 179, 71, 0.58) !important;
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

/* The Image Area */
.project-img-container {
  position: relative;
  background-color: #2d3748;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 25, 0.18), rgba(5, 11, 25, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}

.project-card:hover .project-image {
  transform: scale(1.06);
  filter: brightness(0.62);
}

.project-view-btn {
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  color: #0d1a35;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.project-view-btn:hover {
  color: #0d1a35;
  text-decoration: none;
  filter: brightness(1.06);
}

.project-body {
  background: #0c1835;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-title {
  margin: 0;
}

.project-title-link {
  color: #ffcf57;
  font-weight: 700;
  text-decoration: none;
}

.project-title-link:hover {
  color: #ffe18f;
  text-decoration: none;
}

.project-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7f95bb;
  background: rgba(255, 255, 255, 0.05);
}

.project-link-icon:hover {
  color: #ffcf57;
  text-decoration: none;
}

.project-excerpt {
  color: #9fb0cc;
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tech Tags - making them darker to stand out */
.tech-tag {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #9aadc9 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 0;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  color: #0d1933;
  font-weight: 700;
  font-size: 0.62rem;
  border-radius: 999px;
  padding: 4px 9px;
  z-index: 3;
}

/* ===== About Section ===== */
.about-section {
  background:
    radial-gradient(circle at 20% 35%, rgba(255, 179, 71, 0.08), transparent 40%),
    #081127;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-container {
  max-width: 1180px;
}

.section-kicker {
  color: #ffb347;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.about-heading {
  color: #ffffff;
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  line-height: 1.06;
  margin-bottom: 24px;
  max-width: 640px;
}

.about-copy {
  margin-bottom: 18px;
  max-width: 640px;
}

.about-photo-wrap {
  position: relative;
  border: 1px solid rgba(255, 179, 71, 0.22);
  border-radius: 22px;
  padding: 14px;
  background: rgba(6, 13, 31, 0.74);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.about-photo {
  width: 100%;
  border-radius: 18px;
  max-height: 600px;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, #f6aa2f, #ff8c00);
  color: #121212;
  border-radius: 14px;
  min-width: 180px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(255, 140, 0, 0.25);
}

.experience-number {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.experience-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.stats-grid {
  margin-top: 28px;
}

.about-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb347;
  font-size: 1.05rem;
  flex: 0 0 44px;
}

.about-stat h4 {
  color: #ffffff;
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-stat p {
  margin: 4px 0 0;
  color: #91a5c6;
}

/* ===== Contact Section ===== */
.contact-section {
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 179, 71, 0.14), transparent 42%),
    #071028;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-title h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  margin-bottom: 10px;
}

.contact-title p {
  max-width: 700px;
  margin: 0 auto;
}

.contact-side-card,
.contact-form-card {
  background: rgba(9, 19, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 28px;
}

.contact-side-card h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.contact-item i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffb347;
  background: rgba(255, 255, 255, 0.07);
}

.contact-item span {
  display: block;
  color: #8ea1c0;
  font-size: 0.8rem;
}

.contact-item p {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
}

.contact-side-card h4 {
  margin-top: 24px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.15rem;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ab0d4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
  color: #ffb347;
  text-decoration: none;
}

.urgent-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 179, 71, 0.3);
  background: linear-gradient(120deg, rgba(255, 179, 71, 0.12), rgba(255, 255, 255, 0.03));
}

.urgent-card h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.urgent-card p {
  color: #aec0dd;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.wp-contact-form label {
  color: #b8c9e5;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.wp-contact-form .form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 7px;
}

.wp-contact-form .form-control::placeholder {
  color: #6f86ab;
}

.wp-contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 179, 71, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 179, 71, 0.14);
  color: #ffffff;
}

.contact-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  border: none;
  border-radius: 9px;
  color: #0b1120;
  font-weight: 700;
  padding: 12px 18px;
}

.contact-submit-btn i {
  margin-right: 8px;
}

.contact-submit-btn:hover {
  filter: brightness(1.06);
}

.form-runtime-note {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: #8ea1c0;
}

.form-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(120, 216, 129, 0.45);
  background: rgba(120, 216, 129, 0.08);
  color: #c6f7cb;
  font-size: 0.9rem;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background: #040d1f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #071028;
  background: linear-gradient(135deg, #ffb347, #ff8c00);
}

.footer-brand strong {
  color: #ffffff;
}

.footer-nav a {
  color: #93a7c8;
  margin: 0 10px;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #ffb347;
  text-decoration: none;
}

.footer-copy {
  color: #7d92b5;
  margin: 0;
  font-size: 0.84rem;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  header {
    padding: 12px 14px;
    background-color: #020617f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #home.grid-background {
    min-height: auto;
  }

  .desktop-menu,
  .desktop-hire {
    display: none !important;
  }

  header .row {
    gap: 0;
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 1101;
  }

  .mobile-menu-panel[hidden] {
    display: none !important;
  }

  .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background:
      radial-gradient(circle at 50% 70%, rgba(26, 42, 68, 0.42) 0%, transparent 65%),
      rgba(2, 6, 23, 0.97);
    padding: 100px 24px 36px;
    overflow-y: auto;
  }

  .mobile-menu-panel .nav-link {
    color: #e5e7eb;
    font-size: 2rem;
    font-weight: 700;
    padding: 0.35rem 0;
  }

  .mobile-menu-panel .nav-link:hover,
  .mobile-menu-panel .nav-link:focus {
    color: #ffc041;
    text-decoration: none;
  }

  .mobile-menu-panel .btn-hire {
    margin-top: 14px;
    font-size: 1.15rem;
    padding: 12px 28px !important;
  }

  body.menu-open {
    overflow: hidden;
  }

  .CTA-row {
    padding-left: 24px;
    padding-right: 24px;
  }

  .btn-hire {
    font-size: 0.84rem;
    padding: 8px 14px !important;
  }

  .cta,
  .CTA {
    padding-top: 122px;
  }

  .services-row > .col-md-6,
  .featured-posts-grid > .featured-post-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .featured-posts-grid > .featured-post-col {
    margin-bottom: 16px;
  }

  .featured-posts-grid > .featured-post-col:last-child {
    margin-bottom: 0;
  }

  .featured-posts-grid > .featured-post-col:nth-child(n + 3) {
    display: none;
  }

  .code-window {
    border-radius: 14px;
  }

  .about-copy,
  .contact-title p,
  .project-excerpt,
  .catalogue-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .catalogue-section {
    padding-top: 150px !important;
  }

  .about-photo-wrap {
    max-width: 520px;
    margin: 0 auto;
  }

  .experience-badge {
    right: 8px;
    bottom: 8px;
  }

  .contact-side-card,
  .contact-form-card {
    padding: 20px;
  }
}

@media (max-width: 767.98px) {
  header {
    padding: 10px 12px;
  }

  header .row {
    gap: 0;
    flex-wrap: nowrap;
  }

  .logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .logo-name h1 {
    margin-left: 8px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .mobile-menu-panel {
    padding-top: 84px;
  }

  .mobile-menu-panel .nav-link {
    font-size: 1.65rem;
  }

  .mobile-menu-panel .btn-hire {
    font-size: 1rem;
    padding: 10px 20px !important;
  }

  .btn-first {
    margin-right: 0;
    margin-bottom: 0;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    font-size: 0.82rem;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .cta,
  .CTA {
    padding-top: 110px;
  }

  .CTA-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  #home .display-3 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .text-slate {
    font-size: 1rem;
  }

  .status-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .code-window {
    padding: 14px !important;
    border-radius: 12px;
  }

  .code-window pre {
    margin: 0;
  }

  .code-window code {
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .services-section,
  .portfolio-section,
  .about-section,
  .contact-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .service-card,
  .contact-side-card,
  .contact-form-card,
  .project-card,
  .catalogue-item .project-card {
    border-radius: 12px;
  }

  .service-card,
  .contact-side-card,
  .contact-form-card {
    padding: 16px;
  }

  .project-body {
    padding: 14px !important;
  }

  .project-title-link {
    font-size: 0.98rem;
  }

  .project-link-icon {
    width: 24px;
    height: 24px;
  }

  .catalogue-section {
    padding-top: 162px !important;
  }

  .catalogue-header {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .catalogue-header h1 {
    font-size: 1.55rem;
  }

  .catalogue-toolbar {
    gap: 10px;
  }

  .catalogue-chip {
    height: 28px;
    font-size: 0.68rem;
    padding: 0 9px;
  }

  .catalogue-search,
  .catalogue-sort {
    height: 36px;
    font-size: 0.86rem;
  }

  .catalogue-count {
    font-size: 0.76rem;
  }

  .about-heading {
    font-size: 1.75rem;
  }

  .experience-badge {
    min-width: 150px;
    padding: 12px;
  }

  .experience-number {
    font-size: 1.55rem;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-nav a {
    margin: 0;
  }
}

/* ===== Catalogue Page ===== */
.catalogue-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 179, 71, 0.08), transparent 34%),
    #020c22;
}

.catalogue-topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(5, 13, 30, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 12px 0;
}

.catalogue-brand,
.catalogue-brand:hover {
  text-decoration: none;
}

.catalogue-brand strong {
  color: #ffffff;
  font-size: 1.95rem;
  line-height: 1;
}

.catalogue-topbar .menu {
  font-size: 16px;
}

.catalogue-topbar .menu .nav-link {
  color: #b5c6e2;
}

.catalogue-topbar .menu .nav-link:hover,
.catalogue-topbar .menu .nav-link.is-current {
  color: #ffb347;
}

.catalogue-section {
  min-height: 100vh;
  padding-top: 120px !important;
}

.catalogue-container {
  max-width: 1240px;
}

.catalogue-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.catalogue-kicker {
  color: #ffb347;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.catalogue-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.catalogue-header h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 8px;
}

.catalogue-subtitle {
  color: #90a4c6;
  max-width: 560px;
  font-size: 0.92rem;
  margin: 0;
}

.catalogue-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(56px, 1fr));
  gap: 10px;
  min-width: 280px;
}

.catalogue-stats div {
  text-align: center;
}

.catalogue-stats strong {
  display: block;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.1;
}

.catalogue-stats span {
  color: #758db3;
  font-size: 0.72rem;
}

.catalogue-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.catalogue-search-wrap {
  position: relative;
  width: min(100%, 300px);
}

.catalogue-search-wrap i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #6f86ab;
  font-size: 0.82rem;
}

.catalogue-search {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0 10px 0 30px;
}

.catalogue-search:focus {
  outline: none;
  border-color: rgba(255, 179, 71, 0.52);
}

.catalogue-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.catalogue-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #90a4c6;
  border-radius: 999px;
  height: 30px;
  font-size: 0.72rem;
  padding: 0 11px;
}

.catalogue-chip.is-active {
  color: #0c1934;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, #ffb347, #ff8c00);
}

.catalogue-sort-wrap {
  margin-left: auto;
}

.catalogue-sort {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  height: 32px;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 0 8px;
}

.catalogue-count {
  color: #6881a9;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.catalogue-grid {
  margin-left: -10px;
  margin-right: -10px;
}

.catalogue-grid > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.catalogue-item .project-card {
  border-color: rgba(115, 143, 197, 0.22) !important;
  border-radius: 10px;
  background: #08142f !important;
}

.catalogue-item .project-img-container {
  aspect-ratio: 16 / 10;
}

.catalogue-status {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #9df2c4;
  background: rgba(13, 119, 73, 0.7);
  border: 1px solid rgba(61, 238, 150, 0.45);
  z-index: 3;
}

.catalogue-year {
  color: #5e76a0;
  font-size: 0.68rem;
}

.catalogue-item .project-title-link {
  font-size: 1.02rem;
}

.catalogue-item .project-excerpt {
  font-size: 0.76rem;
  color: #89a0c3;
  line-height: 1.45;
}

.catalogue-item .tech-tag {
  font-size: 0.62rem;
  padding: 4px 8px;
}

.catalogue-empty {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 48px 20px;
  text-align: center;
  color: #95a9ca;
}

.catalogue-empty i {
  font-size: 1.4rem;
  color: #ffb347;
}

.catalogue-empty h3 {
  color: #ffffff;
  margin: 14px 0 6px;
  font-size: 1.25rem;
}

@media (max-width: 991.98px) {
  .catalogue-brand strong {
    font-size: 1.35rem;
  }

  .catalogue-topbar .menu {
    font-size: 13px;
  }

  .catalogue-topbar .menu .nav-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .catalogue-header-top {
    flex-direction: column;
  }

  .catalogue-stats {
    min-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalogue-sort-wrap {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .catalogue-topbar {
    padding: 10px 0;
  }

  .catalogue-topbar .menu {
    justify-content: flex-end !important;
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .catalogue-brand strong {
    font-size: 1.15rem;
  }

  .catalogue-toolbar {
    align-items: stretch;
  }

  .catalogue-search-wrap {
    width: 100%;
  }

  .catalogue-sort-wrap,
  .catalogue-sort {
    width: 100%;
  }

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

/* ===== Project Detail Page ===== */
.project-detail-page {
  background: #020a1f;
}

.project-detail-topbar {
  background: rgba(6, 15, 34, 0.72) !important;
  backdrop-filter: blur(8px);
}

.brand-link,
.brand-link:hover {
  text-decoration: none;
}

.brand-link strong {
  color: #ffffff;
  font-size: 2rem;
}

.project-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 80px;
  background:
    linear-gradient(180deg, rgba(6, 14, 31, 0.18), rgba(2, 10, 27, 0.96)),
    var(--project-hero-image, url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80")) center / cover no-repeat;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 34%, rgba(6, 10, 28, 0.7), rgba(2, 8, 22, 0.96) 65%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9bb1d0;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.project-back-link:hover {
  color: #ffb347;
  text-decoration: none;
}

.project-type-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-type-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #9eb2d1;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 600;
}

.project-type-chip.is-active {
  color: #10172c;
  border-color: transparent;
  background: linear-gradient(135deg, #ffb347, #ff8c00);
}

.project-hero-type {
  display: inline-block;
  color: #151717;
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.project-hero-title {
  color: #ffffff;
  font-size: clamp(2.3rem, 5.3vw, 5rem);
  line-height: 1.03;
  margin-bottom: 14px;
  max-width: 820px;
}

.project-hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #b5c6e2;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.project-hero-meta i {
  color: #8ea5c8;
}

.project-hero-summary {
  max-width: 920px;
  color: #d0dcf0;
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 0;
}

.project-detail-main {
  position: relative;
  z-index: 2;
}

.project-section {
  margin-bottom: 34px;
}

.project-section h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 14px;
}

.project-section p {
  color: #9ab0d2;
  line-height: 1.75;
}

.project-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-panel {
  background: rgba(10, 24, 52, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 20px;
}

.project-panel h3 {
  color: #ffb347;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.project-panel p {
  margin: 0;
  color: #a4b8d8;
}

.project-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-step-card {
  background: rgba(8, 20, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
}

.project-step-card span {
  color: #ffb347;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.project-step-card h4 {
  color: #ffffff;
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.project-step-card p {
  margin: 0;
  font-size: 0.93rem;
}

.project-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.impact-card {
  background: rgba(11, 27, 56, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.impact-card strong {
  display: block;
  color: #ff9f1a;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.impact-card .impact-value-text {
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 1.2;
}

.impact-card span {
  color: #90a5c6;
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-feature-list {
  display: grid;
  gap: 12px;
}

.project-feature-list article {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 21, 48, 0.75);
  padding: 16px;
}

.project-feature-list h4 {
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.project-feature-list h4 i {
  color: #ffb347;
  margin-right: 6px;
}

.project-feature-list p {
  margin: 0;
}

.project-gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr;
}

.project-gallery-grid img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  min-height: 200px;
}

.project-gallery-grid img.is-zoomable {
  cursor: pointer;
}

.project-gallery-grid img:first-child {
  grid-row: span 2;
  min-height: 380px;
}

.project-video-section[hidden] {
  display: none;
}

.project-video-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 21, 48, 0.75);
}

.project-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.project-video-caption {
  margin-top: 10px;
  color: #91a7ca;
  font-size: 0.9rem;
}

.project-readme-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffb347;
  font-weight: 700;
}

.project-readme-link:hover {
  color: #ffd27c;
  text-decoration: none;
}

.project-readme-details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 20, 44, 0.65);
  overflow: hidden;
}

.project-readme-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #d7e4f9;
  font-weight: 600;
}

.project-readme-content {
  margin: 0;
  padding: 14px;
  max-height: 480px;
  overflow: auto;
  color: #bdd0ee;
  font-size: 0.84rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 9, 23, 0.55);
}

.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3, 9, 23, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
}

.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
}

.lightbox-figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-figure figcaption {
  margin-top: 10px;
  text-align: center;
  color: #d0dcf0;
  font-size: 0.9rem;
}

.lightbox-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 20, 45, 0.78);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover {
  background: rgba(255, 179, 71, 0.18);
  border-color: rgba(255, 179, 71, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

@media (max-width: 767.98px) {
  .gallery-lightbox {
    gap: 8px;
    padding: 12px;
  }

  .lightbox-btn {
    width: 36px;
    height: 36px;
  }

  .lightbox-figure figcaption {
    font-size: 0.82rem;
  }
}

.project-sidebar {
  position: sticky;
  top: 110px;
}

.project-side-card {
  background: rgba(9, 21, 47, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}

.project-side-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.project-side-card p {
  color: #9ab0d2;
  margin-bottom: 14px;
}

.project-side-cta {
  background: linear-gradient(145deg, rgba(255, 179, 71, 0.11), rgba(8, 20, 45, 0.85));
  border-color: rgba(255, 179, 71, 0.35);
}

.project-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-details-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.11);
}

.project-details-list li:last-child {
  border-bottom: none;
}

.project-details-list span {
  color: #7992ba;
}

.project-details-list strong {
  color: #ffffff;
  text-align: right;
}

.project-deliverables {
  margin: 0;
  padding-left: 18px;
  color: #9cb1d1;
}

.project-deliverables li {
  margin-bottom: 8px;
}

.related-work-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.related-head h2 {
  color: #ffffff;
  margin: 0;
}

.related-head a {
  color: #ffb347;
}

.related-head a:hover {
  color: #ffd27c;
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .project-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-sidebar {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .project-hero {
    min-height: 62vh;
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .project-split-grid,
  .project-steps-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-grid img:first-child {
    grid-row: auto;
    min-height: 260px;
  }
}

@media (max-width: 767.98px) {
  .project-hero {
    min-height: auto;
    padding-top: 136px;
    padding-bottom: 42px;
  }

  .project-back-link {
    font-size: 0.84rem;
    margin-bottom: 12px;
  }

  .project-type-switch {
    gap: 6px;
    margin-bottom: 10px;
  }

  .project-type-chip {
    font-size: 0.7rem;
    padding: 4px 9px;
  }

  .project-hero-title {
    font-size: 1.68rem;
    line-height: 1.12;
    margin-bottom: 10px;
  }

  .project-hero-meta {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .project-hero-summary {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .project-detail-main {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .project-section {
    margin-bottom: 24px;
  }

  .project-section h2 {
    font-size: 1.38rem;
    margin-bottom: 10px;
  }

  .project-section p {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .project-panel,
  .project-step-card,
  .impact-card,
  .project-feature-list article,
  .project-side-card {
    border-radius: 12px;
    padding: 14px;
  }

  .project-impact-grid {
    gap: 10px;
  }

  .impact-card strong {
    font-size: 1.62rem;
  }

  .impact-card .impact-value-text {
    font-size: 1.05rem;
  }

  .impact-card span {
    font-size: 0.82rem;
  }

  .project-feature-list h4 {
    font-size: 1rem;
  }

  .project-gallery-grid {
    gap: 8px;
  }

  .project-gallery-grid img,
  .project-gallery-grid img:first-child {
    min-height: 170px;
  }

  .project-side-card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }

  .project-details-list li {
    padding: 7px 0;
  }

  .project-details-list span,
  .project-details-list strong,
  .project-deliverables li {
    font-size: 0.9rem;
  }

  .related-work-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .project-impact-grid {
    grid-template-columns: 1fr;
  }

  .related-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}