

 :root {
     --primary-color: #66FCF1;
     --primary-color-rgb: 102, 252, 241;
     --secondary-color: #45A29E;
     --dark-color: #0B0C10;
     --dark-light-color: #1F2833;
     --light-color: #C5C6C7;
     --white-color: #ffffff;

     --font-primary: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
     --font-secondary: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;

     --radius-outer: 16px;
     --radius-inner: 12px;
     --shadow-soft: 0 10px 30px rgba(0, 0, 0, .25);
     --shadow-card: 0 12px 24px rgba(0, 0, 0, .35);
     --shadow-floating: 0 18px 40px rgba(0, 0, 0, .45);

     --container-max: 1200px;
     --container-pad: clamp(16px, 3vw, 28px);

     --text-muted: rgba(197, 198, 199, .85);

     --focus-ring: 0 0 0 3px rgba(var(--primary-color-rgb), .25), 0 0 0 6px rgba(255, 255, 255, .05);
 }

 /* Reset & Base --------------------------------------------------------- */
 *,
 *::before,
 *::after {
     box-sizing: border-box;
 }

 html {
     scroll-behavior: smooth;
     -webkit-text-size-adjust: 100%;
 }

 body {
     margin: 0;
     font-family: var(--font-primary);
     color: var(--white-color);
     background: var(--dark-color);
     line-height: 1.6;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
     
 }

 img {
     max-width: 100%;
     height: auto;
     display: block;
 }

 a {
     color: var(--primary-color);
     text-decoration: none;
 }

 a:hover {
     text-decoration: underline;
 }

 button {
     font: inherit;
     color: inherit;
     background: none;
     border: none;
 }

 svg {
     display: block;
 }

 :focus-visible {
     outline: none;
     box-shadow: var(--focus-ring);
     border-radius: 10px;
 }

 /* Textures & Background Layers ---------------------------------------- */
 body::before {
     content: "";
     position: fixed;
     inset: 0;
     z-index: -3;
     /* Layered gradients for subtle geometry + noise */
     background:
         radial-gradient(1200px 800px at 110% -10%, rgba(var(--primary-color-rgb), .06), transparent 60%),
         radial-gradient(600px 500px at -10% 10%, rgba(69, 162, 158, .08), transparent 55%),
         linear-gradient(135deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, 0) 45%),
         var(--dark-color);
 }

 /* Subtle grid dots */
 body::after {
     content: "";
     position: fixed;
     inset: 0;
     z-index: -2;
     background-image:
         radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
         radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
     background-position: 0 0, 12px 12px;
     background-size: 24px 24px, 24px 24px;
     pointer-events: none;
     mix-blend-mode: normal;
 }

 /* Discrete hexagon outlines (very faint) */
 .hex-bg {
     position: absolute;
     inset: 0;
     pointer-events: none;
     z-index: -1;
     opacity: .08;
     background-image:
         repeating-linear-gradient(60deg, transparent 0 24px, rgba(255, 255, 255, .07) 24px 25px),
         repeating-linear-gradient(-60deg, transparent 0 24px, rgba(255, 255, 255, .05) 24px 25px);
     mask-image: radial-gradient(800px 800px at 90% 10%, #000, transparent 70%);
 }

 /* Containers ----------------------------------------------------------- */
 .container {
     width: min(100%, var(--container-max));
     margin-inline: auto;
     padding-inline: var(--container-pad);
 }

 /* Utility -------------------------------------------------------------- */
 .hidden {
     display: none !important;
 }

 .sr-only {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     white-space: nowrap;
     border: 0;
 }

 .muted {
     color: var(--text-muted);
 }

 .text-primary {
     color: var(--primary-color);
 }

 .text-balance {
     text-wrap: balance;
 }

 .text-pretty {
     text-wrap: pretty;
 }

 .tag {
     justify-content: center;
     max-width: 130px;
     display: inline-flex;
     align-items: center;
     gap: .5rem;
     font-size: .85rem;
     color: var(--dark-color);
     background: rgba(var(--primary-color-rgb), .85);
     padding: .35rem .6rem;
     border-radius: 999px;
     font-weight: 600;
 }

 .certificate-tag {
     padding: 10px 20px;
     max-height: 40px;
     justify-content: center;
     max-width: 130px;
     display: inline-flex;
     align-items: center;
     gap: .5rem;
     font-size: .85rem;
     color: var(--dark-color);
     background: rgba(var(--primary-color-rgb), .85);
     border-radius: 999px;
     font-weight: 600;
 }

 /* Navbar --------------------------------------------------------------- */
 .navbar {
     position: sticky;
     top: 0;
     z-index: 40;
     backdrop-filter: saturate(1.1) blur(10px);
     background: rgba(15, 18, 25, .7);
     border-bottom: 1px solid rgba(255, 255, 255, .06);
 }

 .nav-inner {
     display: flex;
     align-items: center;
     justify-content: space-between;
     min-height: 64px;
 }

 .brand {
     display: inline-flex;
     align-items: center;
     gap: .7rem;
     font-family: var(--font-secondary);
     font-weight: 700;
     letter-spacing: .3px;
 }

 .brand-mark {
     width: 34px;
     height: 34px;
     border-radius: 9px;
     background: linear-gradient(135deg, rgba(var(--primary-color-rgb), .95), rgba(69, 162, 158, .95));
     display: grid;
     place-items: center;
     color: var(--dark-color);
     box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), .18);
     font-weight: 800;
 }

 .nav-links {
     display: flex;
     align-items: center;
     gap: 1rem;
     flex-wrap: wrap;
 }

 .nav-links a {
     text-decoration: none;
     font-weight: 500;
     padding: .5rem .7rem;
     border-radius: 8px;
 }

 .nav-links a:hover {
     background: rgba(255, 255, 255, .06);
     color: var(--white-color);
 }

 .cta-btn {
     display: inline-flex;
     align-items: center;
     gap: .6rem;
     text-decoration: none;
     background: var(--primary-color);
     color: var(--dark-color);
     padding: .6rem .9rem;
     border-radius: 10px;
     font-weight: 700;
     box-shadow: 0 10px 24px rgba(var(--primary-color-rgb), .2);
 }

 .cta-btn:hover {
     filter: brightness(.95);
     text-decoration: none;
 }

 .menu-btn {
     display: none;
     color: var(--white-color);
 }

 /* Off-canvas on mobile */
 @media (max-width: 960px) {
     .menu-btn {
         display: inline-flex;
     }

     .nav-links {
         position: fixed;
         inset: 64px 0 auto 0;
         height: auto;
         background: rgba(18, 22, 28, .92);
         backdrop-filter: blur(6px);
         padding: 12px var(--container-pad);
         border-bottom: 1px solid rgba(255, 255, 255, .08);
         transform-origin: top center;
         transform: scaleY(0.97);
         opacity: 0;
         visibility: hidden;
         transition: .25s ease;
         display: grid;
         grid-template-columns: 1fr 1fr;
         gap: .75rem;
     }

     .nav-links.open {
         opacity: 1;
         visibility: visible;
         transform: scaleY(1);
     }

     .cta-btn {
         justify-self: start;
         grid-column: 1/-1;
     }
 }

 /* Hero ----------------------------------------------------------------- */
 .hero {
     position: relative;
     padding-block: clamp(48px, 6vw, 84px);
     overflow: hidden;
 }

 .hero-grid {
     display: grid;
     gap: clamp(20px, 3vw, 40px);
     grid-template-columns: 1.15fr .85fr;
     align-items: center;
 }


@media (max-width: 980px) {
     .portrait-wrap{
        display: none;
    }
    .hero-grid{
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        padding-inline: 16px;
    }

    .hero-text{
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .text-balance{
      font-size: 1.7rem !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .hero-text p{
        max-width: 100%;
        word-break: break-word;
    }

    .hero-actions{
        flex-wrap: wrap;
        gap: .6rem;
    }
   

    .chips{
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }
}
 .eyebrow {
     display: inline-flex;
     align-items: center;
     gap: .5rem;
     color: var(--light-color);
     font-weight: 600;
     letter-spacing: .4px;
     font-size: .95rem;
 }

 .hero h1 {
     font-family: var(--font-secondary);
     font-weight: 800;
     font-size: clamp(2.2rem, 6vw, 4rem);
     line-height: 1.15;
     margin: .5rem 0 1rem;
 }

 .hero h1 .accent {
     color: var(--primary-color);
     text-shadow: 0 8px 30px rgba(var(--primary-color-rgb), .25);
 }

 .hero p {
     color: var(--text-muted);
     font-size: clamp(1rem, 1.7vw, 1.125rem);
     max-width: 62ch;
 }

 .hero-actions {
     display: flex;
     gap: .8rem;
     flex-wrap: wrap;
     margin-top: 1.25rem;
 }

 .btn {
     display: inline-flex;
     align-items: center;
     gap: .6rem;
     padding: .8rem 1rem;
     font-weight: 700;
     text-decoration: none;
     border: 1px solid transparent;
     transition: .2s ease;
 }

 .btn-primary {
     background: var(--primary-color);
     color: var(--dark-color);
     box-shadow: 0 10px 28px rgba(var(--primary-color-rgb), .2);
 }

 .btn-primary:hover {
     filter: brightness(.95);
 }

 .btn-ghost {
     color: var(--white-color);
     border-color: rgba(255, 255, 255, .14);
     background: rgba(255, 255, 255, .02);
 }

 .btn-ghost:hover {
     background: rgba(255, 255, 255, .06);
     text-decoration: none;
 }

 /* Hero portrait wrapper to echo the reference style */
 .portrait-wrap {
     position: relative;
     justify-self: center;
     width: min(480px, 90%);
     aspect-ratio: 4/4.8;
     border-radius: 28px;

     border: 1px solid rgba(255, 255, 255, .08);
     box-shadow: var(--shadow-floating);
     overflow: hidden;
     isolation: isolate;
 }

 .portrait-wrap::before {
     content: "";
     position: absolute;
     inset: -30% -30% auto auto;
     height: 70%;
     width: 70%;
     background: radial-gradient(closest-side, rgba(var(--primary-color-rgb), .2), transparent 60%);
     filter: blur(30px);
     z-index: 0;
     pointer-events: none;
 }

 .portrait {
     border-radius: 100%;
     position: absolute;
     inset: 0;
     object-fit: cover;
     filter: saturate(1.02) contrast(1.02);
     z-index: 1;
 }

 .floating-stats {
     position: absolute;
     inset: auto -12px 14% auto;
     z-index: 2;
     display: grid;
     gap: .6rem;
     width: min(72%, 320px);
 }

 .pill {
     display: flex;
     align-items: center;
     gap: .6rem;
     background: rgba(15, 15, 20, .85);
     border: 1px solid rgba(255, 255, 255, .08);
     padding: .55rem .7rem;
     border-radius: 999px;
     box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
     color: var(--light-color);
     backdrop-filter: blur(8px);
 }

 .pill strong {
     color: var(--primary-color);
     font-weight: 800;
 }

 /* Section Base --------------------------------------------------------- */
 section {
     padding-block: clamp(44px, 6vw, 84px);
     position: relative;
 }

 .section-title {
     font-family: var(--font-secondary);
     font-weight: 800;
     font-size: clamp(1.5rem, 3.6vw, 2.3rem);
     line-height: 1.2;
     margin: 0 0 .35rem;
 }

 .section-sub {
     color: var(--text-muted);
     margin: 0 0 1.5rem;
 }

 /* About ---------------------------------------------------------------- */
 .panel {
     background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
     border: 1px solid rgba(255, 255, 255, .08);
     border-radius: var(--radius-outer);
     box-shadow: var(--shadow-card);
 }

 .about-grid {
     display: grid;
     gap: clamp(16px, 2.8vw, 28px);
     grid-template-columns: .95fr 1.05fr;
     align-items: center;
     padding: clamp(16px, 3vw, 28px);
 }

 @media (max-width: 980px) {
     .about-grid {
         grid-template-columns: 1fr;
     }
 }

 .about-photo {
     position: relative;
     width: min(420px, 100%);
     aspect-ratio: 1/1.2;
     margin-inline: auto;
     border-radius: 22px;
     overflow: hidden;
     background: rgba(255, 255, 255, .03);
     border: 1px solid rgba(255, 255, 255, .08);
 }

 .about-photo::after {
     content: "";
     position: absolute;
     inset: auto auto -12% -12%;
     width: 60%;
     height: 60%;
     background: radial-gradient(closest-side, rgba(var(--primary-color-rgb), .18), transparent 60%);
     filter: blur(20px);
 }

 .about-photo img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .about-meta {
     display: grid;
     gap: 1rem;
 }

 .about-actions {
     display: flex;
     gap: .8rem;
     flex-wrap: wrap;
 }

 .chips {
     display: flex;
     flex-wrap: wrap;
     gap: .6rem;
 }

 .chip {
     background: rgba(255, 255, 255, .04);
     border: 1px solid rgba(255, 255, 255, .1);
     color: var(--light-color);
     padding: .4rem .65rem;
     border-radius: 999px;
     font-weight: 600;
 }

 /* Services ------------------------------------------------------------- */
 .cards {
     display: grid;
     gap: clamp(16px, 2vw, 20px);
     grid-template-columns: repeat(3, 1fr);
 }

 @media (max-width: 980px) {
     .cards {
         grid-template-columns: 1fr;
     }
 }

 .card {
     border-radius: var(--radius-outer);
     background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .02));
     border: 1px solid rgba(255, 255, 255, .08);
     padding: clamp(16px, 2.4vw, 22px);
     box-shadow: var(--shadow-card);
     display: grid;
     gap: .6rem;
     min-height: 180px;
 }

 .card.active {
     background: linear-gradient(180deg, rgba(var(--primary-color-rgb), .12), rgba(255, 255, 255, .02));
     border-color: rgba(var(--primary-color-rgb), .45);
     box-shadow: 0 14px 32px rgba(var(--primary-color-rgb), .18);
 }

 .card h3 {
     font-family: var(--font-secondary);
     font-weight: 700;
     margin: .2rem 0;
 }

 .card p {
     color: var(--text-muted);
     margin: 0;
 }

 /* Portfolio ------------------------------------------------------------ */
 /* .portfolio-controls {
     display: flex;
     align-items: center;
     gap: .6rem;
     flex-wrap: wrap;
     margin-bottom: 1rem;
 }

 .filter {
     padding: .45rem .7rem;
     border-radius: 999px;
     border: 1px solid rgba(255, 255, 255, .1);
     color: var(--light-color);
     background: transparent;
 }

 .filter.active {
     background: rgba(var(--primary-color-rgb), .2);
     color: var(--white-color);
     border-color: rgba(var(--primary-color-rgb), .5);
 }

 .grid {
     display: grid;
     gap: clamp(12px, 1.7vw, 18px);
     grid-template-columns: repeat(3, 1fr);
 }

 @media (max-width: 980px) {
     .grid {
         grid-template-columns: 1fr;
     }
 }

 .work {
     position: relative;
     overflow: hidden;
     border-radius: 16px;
     border: 1px solid rgba(255, 255, 255, .08);
     background: rgba(255, 255, 255, .02);
     box-shadow: var(--shadow-card);
     aspect-ratio: 16/10;
     display: grid;
     place-items: center;
 }

 .work img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform .35s ease;
 }

 .work:hover img {
     transform: scale(1.04);
 }

 .work .label {
     position: absolute;
     inset: auto 10px 10px 10px;
     background: rgba(10, 12, 16, .75);
     border: 1px solid rgba(255, 255, 255, .1);
     color: var(--light-color);
     padding: .45rem .6rem;
     border-radius: 10px;
     display: inline-flex;
     align-items: center;
     gap: .5rem;
     backdrop-filter: blur(6px);
 } */
/* ------------------------ */

/* Portfolio Case Study Layout ------------------------------------------ */
.portfolio-filters {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--light-color);
  background: rgba(255, 255, 255, .03);
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.filter-btn:hover {
  border-color: rgba(var(--primary-color-rgb), .3);
  background: rgba(var(--primary-color-rgb), .08);
}

.filter-btn.active {
  background: rgba(var(--primary-color-rgb), .2);
  color: var(--white-color);
  border-color: rgba(var(--primary-color-rgb), .5);
  box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), .15);
}

.portfolio-list {
  display: grid;
  gap: 3rem;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-outer);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  box-shadow: var(--shadow-card);
  transition: .3s ease;
}

.case-study:hover {
  border-color: rgba(var(--primary-color-rgb), .2);
  box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), .1);
}

.case-study-hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 50vh, 500px);
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
}

.case-study-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-study:hover .case-study-hero img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, .15) 100%);
  pointer-events: none;
  z-index: 1;
}

.case-study-content {
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 1.8rem;
}

.case-study-header {
  display: grid;
  gap: 1rem;
}

.project-meta {
  display: grid;
  gap: .6rem;
}

.project-title {
  font-family: var(--font-secondary);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.project-subtitle {
  color: var(--text-muted);
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
  margin: 0;
  line-height: 1.5;
  max-width: 65ch;
}

.project-details {
  display: grid;
  grid-template-columns: auto auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

@media (max-width: 768px) {
  .project-details {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.detail-group {
  display: grid;
  gap: .4rem;
}

.detail-label {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.detail-value {
  color: var(--white-color);
  font-weight: 500;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  background: rgba(var(--primary-color-rgb), .12);
  border: 1px solid rgba(var(--primary-color-rgb), .25);
  border-radius: 999px;
  color: var(--primary-color);
  font-size: .85rem;
  font-weight: 600;
  transition: .2s ease;
}

.badge:hover {
  background: rgba(var(--primary-color-rgb), .2);
  border-color: rgba(var(--primary-color-rgb), .4);
  transform: translateY(-2px);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

@media (max-width: 640px) {
  .project-actions {
    flex-direction: column;
  }

  .project-actions .btn-action {
    width: 100%;
  }
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.2rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: .25s ease;
  white-space: nowrap;
  text-decoration: none;
  font-size: .95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-color-rgb), .8));
  color: var(--dark-color);
  box-shadow: 0 12px 30px rgba(var(--primary-color-rgb), .25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(var(--primary-color-rgb), .35);
}

.btn-secondary {
  background: rgba(var(--primary-color-rgb), .15);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-color-rgb), .3);
}

.btn-secondary:hover {
  background: rgba(var(--primary-color-rgb), .25);
  border-color: rgba(var(--primary-color-rgb), .5);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, .05);
  color: var(--white-color);
  border: 1px solid rgba(255, 255, 255, .12);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-2px);
}

/* Modal / Drawer -------------------------------------------------------- */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.project-modal.active {
  display: grid;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  margin: auto;
  width: min(90vw, 700px);
  max-height: 90vh;
  background: linear-gradient(180deg, rgba(31, 40, 51, .95), rgba(11, 12, 16, .95));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-outer);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .25);
}

.modal-body {
  overflow-y: auto;
  padding: 32px;
  flex: 1;
}

.modal-body h3 {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--primary-color);
}

.modal-body h4 {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
  color: var(--white-color);
}

.modal-body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.modal-body li {
  color: var(--text-muted);
  margin-bottom: .6rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.modal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

@media (max-width: 640px) {
  .modal-content {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
  }

  .modal-body {
    padding: 20px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .case-study-content {
    padding: 20px;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .project-subtitle {
    font-size: .95rem;
  }

  .project-actions {
    gap: .6rem;
  }

  .btn-action {
    padding: .6rem .9rem;
    font-size: .9rem;
  }
}

@media (max-width: 480px) {
  .case-study-hero {
    height: clamp(250px, 45vh, 350px);
  }

  .case-study-content {
    padding: 16px;
    gap: 1.2rem;
  }

  .project-details {
    border: none;
    padding-block: 0.8rem;
  }

  .detail-label {
    font-size: .8rem;
  }

  .tech-badges {
    gap: .4rem;
  }

  .badge {
    font-size: .8rem;
    padding: .25rem .5rem;
  }
}
 /* Timelines (Education / Experience) ---------------------------------- */
 .timeline {
     position: relative;
     display: grid;
     gap: 1rem;
     padding-left: 18px;
 }

 .timeline::before {
     content: "";
     position: absolute;
     left: 6px;
     top: 0;
     bottom: 0;
     width: 2px;
     background: rgba(255, 255, 255, .12);
 }

 .step {
     position: relative;
     padding: .6rem .8rem .8rem 1rem;
     background: rgba(255, 255, 255, .03);
     border: 1px solid rgba(255, 255, 255, .08);
     border-radius: 14px;
 }

 .step::before {
     content: "";
     position: absolute;
     left: -2px;
     top: 12px;
     width: 10px;
     height: 10px;
     border-radius: 50%;
     background: var(--primary-color);
     box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), .25);
 }

 .step h4 {
     font-family: var(--font-secondary);
     margin: 0 0 .2rem;
 }

 .step .meta {
     color: var(--text-muted);
     font-size: .95rem;
     margin-bottom: .4rem;
 }

 /* Skills ---------------------------------------------------------------- */
 .skills {
     display: grid;
     gap: 1rem;
     grid-template-columns: repeat(2, 1fr);
 }

 @media (max-width: 980px) {
     .skills {
         grid-template-columns: 1fr;
     }
 }

 .skill-item {
     background: rgba(255, 255, 255, .03);
     border: 1px solid rgba(255, 255, 255, .08);
     padding: .75rem .9rem;
     border-radius: 12px;
 }

 .skill-item h5 {
     margin: 0 0 .5rem;
 }

 .bar {
     height: 10px;
     border-radius: 999px;
     background: rgba(255, 255, 255, .08);
     overflow: hidden;
 }

 .bar>span {
     display: block;
     height: 100%;
     border-radius: inherit;
     background: linear-gradient(90deg, rgba(var(--primary-color-rgb), .9), rgba(69, 162, 158, .9));
     width: var(--val, 60%);
     transition: width .8s ease;
 }

 /* Contact & Footer ----------------------------------------------------- */
 .contact {
     display: grid;
     gap: 1rem;
     grid-template-columns: 1.2fr .8fr;
 }

 @media (max-width: 980px) {
     .contact {
         grid-template-columns: 1fr;
     }
 }

 .contact .panel {
     padding: clamp(16px, 3vw, 24px);
 }

 .contact-list {
     display: grid;
     gap: .6rem;
 }

 .contact-list a {
     color: var(--white-color);
     text-decoration: none;
 }

 .contact-list a .bi {
     color: var(--primary-color);
     margin-right: .4rem;
 }

 footer {
     border-top: 1px solid rgba(255, 255, 255, .08);
     background: rgba(255, 255, 255, .02);
     padding-block: 20px;
 }

 .footer-inner {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     flex-wrap: wrap;
 }

 .socials {
     display: flex;
     align-items: center;
     gap: .6rem;
 }

 .socials a {
     display: inline-grid;
     place-items: center;
     width: 36px;
     height: 36px;
     border-radius: 10px;
     border: 1px solid rgba(255, 255, 255, .12);
     color: var(--white-color);
     background: rgba(255, 255, 255, .02);
 }

 .socials a:hover {
     background: rgba(var(--primary-color-rgb), .16);
     border-color: rgba(var(--primary-color-rgb), .45);
     color: var(--primary-color);
 }


 /* Experience Preview */

.experience-preview{
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.experience-preview img{
    width: 260px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    transition: .3s ease;
}

.experience-preview img:hover{
    transform: scale(1.03);
}

.view-more-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    color: var(--dark-color);
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb),.25);
}

.view-more-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(var(--primary-color-rgb),.35);
    text-decoration: none;
}

/* Mobile */
@media(max-width:768px){

    .experience-preview{
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-preview img{
        width:100%;
        max-width:420px;
    }

    .view-more-btn{
        width:100%;
        max-width:220px;
        justify-content:center;
    }

}


/* =======================
   Certificates
======================= */

.certificate-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:28px;
}

.certificate-card{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    transition:.35s ease;
    text-decoration:none;
    color:#fff;
    box-shadow:0 12px 28px rgba(0,0,0,.18);
}

.certificate-card:hover{
    transform:translateY(-8px);
    border-color:rgba(var(--primary-color-rgb),.45);
    box-shadow:0 18px 40px rgba(var(--primary-color-rgb),.22);
}

.certificate-image{
    overflow:hidden;
}

.certificate-image img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:contain;
    transition:.5s;
}

.certificate-card:hover .certificate-image img{
    transform:scale(1.05);
}

.certificate-content{
    padding:22px;
}

.certificate-content h3{
    margin:14px 0 10px;
    font-size:1.15rem;
    line-height:1.45;
}

.certificate-content p{
    color:var(--text-muted);
    margin-bottom:22px;
    line-height:1.7;
}

.certificate-tag{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 15px;
    border-radius:50px;
    background:rgba(var(--primary-color-rgb),.15);
    color:var(--primary-color);
    font-weight:600;
    border:1px solid rgba(var(--primary-color-rgb),.25);
}

.certificate-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:700;
    color:var(--primary-color);
}

.certificate-btn i{
    transition:.3s;
}

.certificate-card:hover .certificate-btn i{
    transform:translate(5px,-5px);
}

@media(max-width:768px){

    .certificate-grid{
        grid-template-columns:1fr;
    }

}

/* ================================
   Hackathon Certificates
================================ */

.hackathon-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:28px;
}

.hackathon-card{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border-radius:18px;
    text-decoration:none;
    color:#fff;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    transition:.35s ease;
    box-shadow:0 10px 28px rgba(0,0,0,.25);
}

.hackathon-card:hover{
    transform:translateY(-8px);
    border-color:rgba(var(--primary-color-rgb),.45);
    box-shadow:0 18px 40px rgba(var(--primary-color-rgb),.22);
}

.hackathon-image{
    overflow:hidden;
}

.hackathon-image img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    transition:.45s;
}

.hackathon-card:hover img{
    transform:scale(1.05);
}

.hackathon-content{
    padding:22px;
}

.hackathon-content h3{
    margin:14px 0 8px;
    font-size:1.2rem;
}

.hackathon-content p{
    color:var(--text-muted);
    line-height:1.6;
    margin-bottom:20px;
}

.view-certificate{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--primary-color);
    font-weight:700;
}

.view-certificate i{
    font-size:1.1rem;
    transition:.3s;
}

.hackathon-card:hover .view-certificate i{
    transform:translate(5px,-5px);
}

@media(max-width:768px){

    .hackathon-grid{
        grid-template-columns:1fr;
    }

}
 /* Loader Overlay ------------------------------------------------------- */
 .loader {
     position: fixed;
     inset: 0;
     z-index: 1000;
     display: grid;
     place-items: center;
     background:
         radial-gradient(600px 400px at 80% 20%, rgba(var(--primary-color-rgb), .12), transparent 60%),
         var(--dark-color);
 }

 .spinner {
     width: 64px;
     height: 64px;
     border-radius: 50%;
     border: 4px solid rgba(255, 255, 255, .12);
     border-top-color: var(--primary-color);
     animation: spin 1s linear infinite;
     box-shadow: 0 0 0 6px rgba(var(--primary-color-rgb), .12) inset;
 }

 @keyframes spin {
     to {
         transform: rotate(360deg);
     }
 }

 /* Skeleton Loader ------------------------------------------------------ */
 body.is-loading .skeleton {
     display: block;
 }

 .skeleton {
     display: none;
 }

 .skeleton .sk-line,
 .skeleton .sk-rect,
 .skeleton .sk-circle {
     position: relative;
     overflow: hidden;
     background: rgba(255, 255, 255, .07);
     border-radius: 8px;
 }

 .sk-circle {
     border-radius: 50%;
 }

 .skeleton .shine::after {
     content: "";
     position: absolute;
     inset: 0;
     transform: translateX(-100%);
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
     animation: shine 1.2s ease-in-out infinite;
 }

 @keyframes shine {
     to {
         transform: translateX(100%);
     }
 }

 /* Hide real content while loading */
 body.is-loading .page {
     opacity: 0;
     pointer-events: none;
     user-select: none;
 }

 /* Small helpers for spacing */
 .mt-0 {
     margin-top: 0;
 }

 .mb-0 {
     margin-bottom: 0;
 }

 .mb-2 {
     margin-bottom: .5rem;
 }

 .mb-3 {
     margin-bottom: .75rem;
 }

 .mb-4 {
     margin-bottom: 1rem;
 }

 .mb-6 {
     margin-bottom: 1.5rem;
 }

 .mt-2 {
     margin-top: .5rem;
 }

 .mt-4 {
     margin-top: 1rem;
 }

 .mt-6 {
     margin-top: 1.5rem;
 }

 .gap-6 {
     gap: 1.5rem;
 }