/* Project pages only */
.page-project .project-hero { padding-top: 120px; text-align: center; }

.breadcrumbs {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--text-light); font-size: 0.95rem; margin-bottom: 14px;
}
.breadcrumbs a { color: var(--primary-color); }
.breadcrumbs span { opacity: .6; }

.project-kicker {
  font-size: 2.2rem; margin: 6px 0 6px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.project-title { font-size: 2.6rem; margin-bottom: 8px; }
.project-subtitle { color: var(--text-light); max-width: 780px; margin: 0 auto 24px; }

.project-cover {
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 10px; margin: 10px auto 20px; box-shadow: var(--box-shadow);
}
.project-cover img { width: 100%; height: auto; border-radius: 12px; display: block; }

.project-cta { display: flex; gap: 12px; justify-content: center; }

.project-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.project-main h3 { margin: 14px 0; }

.project-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.project-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px; background: var(--card-bg); border: 1px solid var(--glass-border);
}

.project-side .project-card {
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: var(--box-shadow);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: .85rem; padding: 6px 10px; border-radius: 100px;
  background: var(--glass-effect); border: 1px solid var(--glass-border);
}
.links li { margin: 8px 0; } .meta li { margin: 6px 0; }

.nav-nextprev { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; }
.nav-nextprev a { color: var(--primary-color); }

/* Already written part upar wala CSS same rahega */

/* Tablet screens (992px se chhoti) */
@media (max-width: 992px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-title { font-size: 2.2rem; }
  .project-kicker { font-size: 1.8rem; }
  .project-subtitle { font-size: 1rem; padding: 0 12px; }
}

/* Mobile large (768px se neeche) */
@media (max-width: 768px) {
  .page-project .project-hero { padding-top: 80px; }
  .project-title { font-size: 1.9rem; }
  .project-kicker { font-size: 1.6rem; }
  .project-subtitle { font-size: 0.95rem; }
  .project-cta { flex-direction: column; align-items: center; }
}

/* Mobile medium (576px se neeche) */
@media (max-width: 576px) {
  .project-title { font-size: 1.6rem; }
  .project-kicker { font-size: 1.4rem; }
  .breadcrumbs { font-size: 0.85rem; flex-wrap: wrap; gap: 6px; }
  .project-subtitle { font-size: 0.9rem; }
  .project-gallery { grid-template-columns: 1fr; }
}

/* Extra small phones (400px se neeche) */
@media (max-width: 400px) {
  .project-title { font-size: 1.4rem; }
  .project-kicker { font-size: 1.2rem; }
  .tags span { font-size: 0.75rem; padding: 4px 8px; }
  .project-cta { gap: 8px; }
}








/* ===== Sticky footer on project pages ===== */
html, body { height: 100%; }

body.page-project {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;      /* fallback */
  min-height: 100dvh;     /* mobile-safe */
}

.page-main { flex: 1 0 auto; }
.footer { margin-top: auto; }

/* Background/overlays should not add layout height */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Ensure preloader overlays without affecting layout (if not already) */
.preloader { position: fixed; inset: 0; z-index: 9999; }

/* Safety: back-to-top shouldn't take space in layout */
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 30; }

















/* === Animated 2‑color moving outline === */
:root{
  --ring-c1: var(--primary-color);
  --ring-c2: var(--secondary-color);
  --ring-size: 3px;      /* thickness */
  --ring-speed: 4s;      /* speed (lower = faster) */
}

.motion-outline{
  position: relative;
  display: block;
  border-radius: var(--ring-radius, 12px); /* default rectangle radius */
  isolation: isolate;
}

.motion-outline > img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* The animated ring */
.motion-outline::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--ring-size);
  background: conic-gradient(
    from var(--ring-angle, 0deg),
    var(--ring-c1),
    var(--ring-c2),
    var(--ring-c1)
  );
  /* show only the border ring */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  animation: ring-rotate var(--ring-speed) linear infinite;
  pointer-events: none;
}

@keyframes ring-rotate{ to{ --ring-angle: 1turn; } }

/* Round variant for avatars */
.motion-outline.is-round{ --ring-radius: 999px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .motion-outline::before{ animation: none; }
}

/* Dark theme variables — supports both data-theme and .dark-theme */
:root[data-theme="dark"], .dark-theme {
  --dark-color: #f8f9fa;
  --light-color: #2d2d39;
  --text-color: #f8f9fa;
  --text-light: #ccc;
  --bg-color: #1a1a24;
  --card-bg: rgba(45, 45, 57, 0.85);
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --glass-effect: rgba(45, 45, 57, 0.2);
  --glass-border: rgba(255, 255, 255, 0.1);
}




.section-title2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title2 span {
    color: var(--primary-color);
}



.section-title21 {
    font-size: 1.175rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title21 span {
    color: var(--primary-color);
}






/* Zoom */
.certificate-image-container {
    position: relative;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.certificate-image-container:hover::after {
    content: "Click to Zoom";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    opacity: 1;
    transition: 0.3s;
}

/* Zoom Modal Styles */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    /* display: flex; */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    cursor: zoom-out;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
}



.project-image-container {
  position: relative;
  cursor: zoom-in;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
}

/* Hover text */
.project-image-container:hover::after {
  content: "Click to Zoom";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  opacity: 1;
  transition: 0.3s;
}







/* Cursor code */

/* Add this inside your CSS file */
 body {
  cursor: none; /* Hide default cursor */
 }  

.cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  background: #00fff2;
  border-radius: 50%;
  box-shadow: 0 0 15px #00fff2, 0 0 30px #00fff2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  z-index: 9999;
}
