/* InfraEdge 360 — portfolio.html page stylesheet (standalone, full) */

  :root{
    --cobalt-1:#020525;
    --cobalt-2:#060d61;
    --cobalt-3:#081183;
    --ice:#eaf1ff;
    --ice-dim:rgba(234,241,255,0.62);
    --ice-faint:rgba(234,241,255,0.38);
    --gold:#f8c635;
  }

  *{margin:0;padding:0;box-sizing:border-box;}
  html,body{
    height:100%;
    background:#05070f;
    color:var(--ice);
    font-family:'Space Grotesk',sans-serif;
    overflow-x:hidden;
  }
  a{ color:inherit; }
  button{ font-family:inherit; }

  /* ============ NAV ============ */
/* Updated navbar styling — page structure and all non-navbar CSS remain unchanged */
.nav,
nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:200;
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 44px;
  background:linear-gradient(180deg, rgba(7,11,44,.78), rgba(7,11,44,.18));
  border-bottom:1px solid transparent;
  backdrop-filter:blur(7px) saturate(125%);
  -webkit-backdrop-filter:blur(7px) saturate(125%);
  transition:background .35s ease, backdrop-filter .35s ease, height .35s ease,
             border-color .35s ease, box-shadow .35s ease;
}

.nav:hover,
nav:hover{
  background:rgba(7,11,44,.78);
  border-bottom-color:rgba(248,198,53,.22);
  box-shadow:0 10px 30px rgba(3,5,20,.25);
}

.nav.scrolled,
nav.scrolled{
  background:rgba(7,11,44,.82);
  border-bottom-color:rgba(248,198,53,.25);
  box-shadow:0 10px 30px rgba(3,5,20,.35);
}

.nav__logo{
  position:relative;
  z-index:2;
  font-family:'Unbounded',sans-serif;
  font-size:16px;
  font-weight:700;
  letter-spacing:.01em;
  text-decoration:none;
  color:var(--ice);
  /* display:inline-flex; */
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.nav__logo .dot{
  width:7px;
  height:7px;
  /*border-radius:50%;
  background:#f8c635;
  display:inline-block;*/
  border:none;
  box-shadow:none;
}

.nav__logo img{
  width:38px;
  height:38px;
  object-fit:cover;
  /* border-radius:50%; */
  border:none;
  box-shadow:none;
}

.nav__links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:36px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav__links li{ position:relative; }

.nav__link{
  position:relative;
  display:inline-block;
  overflow:hidden;
  height:1.2em;
  text-decoration:none;
  color:var(--ice);
  font-family:'Space Grotesk',sans-serif;
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.nav__link span{
  display:block;
  transition:transform .45s cubic-bezier(.65,0,.35,1);
}

.nav__link .top{ transform:translateY(0); }

.nav__link .bottom{
  position:absolute;
  left:0;
  top:0;
  transform:translateY(100%);
  color:#f8c635;
}

.nav__link:hover .top{ transform:translateY(-100%); }
.nav__link:hover .bottom{ transform:translateY(0); }

.nav__link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:100%;
  height:1px;
  background:#f8c635;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s ease;
}

.nav__link:hover::after{ transform:scaleX(1); }

.nav__right{
  display:flex;
  align-items:center;
  gap:24px;
}

.nav__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 21px;
  border-radius:999px;
  background:#f8c635;
  border:1px solid #f8c635;
  color:#020525;
  text-decoration:none;
  font-family:'Space Grotesk',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.nav__cta::after{
  content:"↗";
  font-size:13px;
  line-height:1;
}

.nav__cta:hover{
  background:#ffd75b;
  transform:translateY(-2px);
  box-shadow:0 7px 20px rgba(248,198,53,.32);
}

.nav__toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}

.nav__toggle span{
  width:22px;
  height:1.5px;
  background:var(--ice);
  transition:transform .3s ease, opacity .3s ease, background .3s ease;
}

.nav__toggle:hover span{ background:#f8c635; }

.nav.open .nav__toggle span:nth-child(1),
nav.open .nav__toggle span:nth-child(1){
  transform:translateY(6.5px) rotate(45deg);
}
.nav.open .nav__toggle span:nth-child(2),
nav.open .nav__toggle span:nth-child(2){
  opacity:0;
}
.nav.open .nav__toggle span:nth-child(3),
nav.open .nav__toggle span:nth-child(3){
  transform:translateY(-6.5px) rotate(-45deg);
}

@media (max-width:880px){
  .nav,
  nav{
    height:70px;
    padding:0 24px;
  }

  .nav__links{
    position:fixed;
    top:70px;
    left:0;
    right:0;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    background:rgba(7,11,44,.97);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    max-height:0;
    overflow:hidden;
    border-bottom:1px solid rgba(248,198,53,.2);
    transition:max-height .4s ease;
  }

  .nav.scrolled .nav__links,
  nav.scrolled .nav__links{ top:70px; }

  .nav.open .nav__links,
  nav.open .nav__links{ max-height:420px; }

  .nav__links li{ width:100%; }

  .nav__link{
    display:block;
    width:100%;
    height:auto;
    padding:16px 24px;
    overflow:visible;
    font-size:13px;
  }

  .nav__link .bottom,
  .nav__link::after{ display:none; }

  .nav__cta{ display:none; }
  .nav__toggle{ display:flex; }

  .nav__logo{ font-size:14px; }
  .nav__logo img{ width:34px; height:34px; }
}

@media (max-width:520px){
  .nav,
  nav{ padding:0 16px; }

  .nav__logo{
    font-size:12px;
    gap:7px;
  }

  .nav__logo img{
    width:30px;
    height:30px;
  }

  .nav__link{ padding:15px 18px; }
}


/* ============ HERO ============ */
  .hero{
    position:relative;
    min-height:62vh;
    width:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    overflow:hidden;
    background:
      radial-gradient(120% 90% at 8% 0%, var(--cobalt-3) 0%, var(--cobalt-2) 45%, var(--cobalt-1) 100%);
    padding:140px 56px 70px;
  }
  #streaks{
    position:absolute;
    inset:0;
    width:100%; height:100%;
    z-index:1;
    mix-blend-mode:overlay;
    opacity:0.85;
  }
  .top-border{
    position:absolute;
    top:0;left:0;right:0;
    height:3px;
    background:#000;
    z-index:5;
  }
  .hero-inner{
    position:relative;
    z-index:3;
    max-width:1400px;
    margin:0 auto;
    width:100%;
  }
  .breadcrumb{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13px;
    font-weight:600;
    letter-spacing:0.02em;
    color:var(--ice-faint);
    margin-bottom:28px;
  }
  .breadcrumb a{ color:var(--ice-dim); text-decoration:none; transition:color .2s ease; }
  .breadcrumb a:hover{ color:var(--ice); }

  .portfolio-badge{
    display:inline-flex;
    align-items:center;
    gap:9px;
    font-family:'JetBrains Mono',monospace;
    font-size:13px;
    font-weight:600;
    letter-spacing:0.08em;
    color:var(--gold);
    text-transform:uppercase;
    margin-bottom:22px;
  }
  .portfolio-badge .rec{
    width:8px;height:8px;
    border-radius:50%;
    background:#ff5a5a;
    animation:rec-pulse 1.4s ease-in-out infinite;
    flex-shrink:0;
  }
  @keyframes rec-pulse{
    0%,100%{ opacity:1; }
    50%{ opacity:0.35; }
  }

  .hero-title{
    font-family:'Sora',sans-serif;
    font-weight:700;
    font-size:clamp(38px,6.8vw,92px);
    line-height:0.96;
    letter-spacing:-0.015em;
    color:var(--ice);
    max-width:920px;
  }
  .hero-title .outline{
    -webkit-text-stroke:1.5px var(--ice);
    color:transparent;
  }
  .hero-desc{
    margin-top:26px;
    max-width:600px;
    font-size:clamp(15px,1.6vw,18px);
    line-height:1.6;
    color:var(--ice-dim);
  }
  .hero-stats{
    margin-top:52px;
    display:flex;
    flex-wrap:wrap;
  }
  .stat{ padding:0 34px 0 0; margin-right:34px; text-align:left; }
  .stat:not(:last-child){ border-right:1px solid rgba(234,241,255,0.25); }
  .stat-num{
    font-family:'Unbounded',sans-serif;
    font-weight:800;
    font-size:clamp(22px,2.8vw,32px);
    line-height:1;
    color:var(--ice);
  }
  .stat-label{
    margin-top:6px;
    font-size:11px;
    font-weight:600;
    letter-spacing:0.04em;
    text-transform:uppercase;
    color:var(--ice-faint);
  }
  @media (max-width:720px){
    .hero{ padding:120px 24px 60px; }
    .hero-stats{
      display:grid;
      grid-template-columns:repeat(3, 1fr);
      gap:10px;
    }
    .stat{
      padding:0;
      margin-right:0;
      text-align:center;
    }
  }

  /* ============ FILTER BAR ============ */
  .filter-bar{
    position:sticky;
    top:66px; /* sits just under the fixed nav once it has shrunk to its scrolled height */
    z-index:15;
    background:rgba(5,7,15,0.9);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(234,241,255,0.1);
    padding:20px 56px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }
  .filter-btn{
    background:transparent;
    border:1.5px solid rgba(234,241,255,0.22);
    color:var(--ice-dim);
    font-size:13px;
    font-weight:600;
    letter-spacing:0.02em;
    padding:10px 20px;
    border-radius:30px;
    cursor:pointer;
    transition:all .25s ease;
  }
  .filter-btn:hover{
    border-color:rgba(234,241,255,0.5);
    color:var(--ice);
  }
  .filter-btn.active{
    background:var(--gold);
    border-color:var(--gold);
    color:#020525;
    font-weight:700;
  }
  @media (max-width:720px){
    .filter-bar{ padding:16px 24px; gap:8px; }
    .filter-btn{ padding:8px 16px; font-size:12px; }
  }

  /* ============ GALLERY ============ */
  .gallery-section{
    background:#05070f;
    padding:56px 56px 110px;
  }
  .gallery-grid{
    max-width:1500px;
    margin:0 auto;
    columns:4;
    column-gap:14px;
  }

  .tile{
    position:relative;
    overflow:hidden;
    border-radius:10px;
    cursor:pointer;
    background:#0b1030;
    display:inline-block;
    width:100%;
    margin:0 0 14px;
    break-inside:avoid;
    -webkit-column-break-inside:avoid;
    page-break-inside:avoid;
    opacity:0;
    transform:translateY(16px);
    animation:tile-in .5s cubic-bezier(.2,.8,.2,1) forwards;
  }
  @keyframes tile-in{
    to{ opacity:1; transform:translateY(0); }
  }

  .tile.hidden{ display:none; }

  .tile-media{
    display:block;
    width:100%;
    height:auto;
    transition:transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
  }

  .tile:hover .tile-media{
    transform:scale(1.08);
    filter:brightness(0.75);
  }

  .tile-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:20px;
    background:linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
    opacity:0;
    transform:translateY(8px);
    transition:opacity .35s ease, transform .35s ease;
  }
  .tile:hover .tile-overlay{
    opacity:1;
    transform:translateY(0);
  }

  .tile-cat{
    font-family:'JetBrains Mono',monospace;
    font-size:10.5px;
    font-weight:600;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--gold);
    margin-bottom:6px;
  }
  .tile-title{
    font-family:'Unbounded',sans-serif;
    font-weight:700;
    font-size:15px;
    line-height:1.3;
    color:var(--ice);
  }

  .tile-play{
    position:absolute;
    top:16px;
    right:16px;
    width:36px;
    height:36px;
    border-radius:50%;
    background:rgba(5,7,15,0.55);
    border:1.5px solid rgba(234,241,255,0.4);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:opacity .3s ease, background .25s ease;
    pointer-events:none;
  }
  .tile-play svg{ width:13px; height:13px; margin-left:2px; }
  .tile:hover .tile-play{
    background:var(--gold);
    border-color:var(--gold);
  }
  .tile:hover .tile-play svg path{ fill:#020525; }

  .tile-expand{
    position:absolute;
    top:16px;
    right:16px;
    width:34px;
    height:34px;
    border-radius:50%;
    background:rgba(5,7,15,0.55);
    border:1.5px solid rgba(234,241,255,0.4);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transform:scale(0.85);
    transition:opacity .3s ease, transform .3s ease, background .25s ease;
  }
  .tile-expand svg{ width:13px; height:13px; }
  .tile:hover .tile-expand{
    opacity:1;
    transform:scale(1);
  }
  .tile:hover .tile-expand:hover{
    background:var(--gold);
    border-color:var(--gold);
  }

  @media (max-width:1080px){
    .gallery-grid{ columns:3; }
  }
  @media (max-width:720px){
    .gallery-section{ padding:40px 20px 80px; }
    .gallery-grid{ columns:2; column-gap:10px; }
    .tile{ margin-bottom:10px; }
    .tile-title{ font-size:13px; }
  }

  /* Touch devices never trigger :hover, which was the only way the
     caption overlay and expand/play icons ever became visible — so on
     phones/tablets every tile just looked like a blank image with no
     title, category, or affordance to open it. Show them by default
     wherever hover isn't available (touchscreens), regardless of width. */
  @media (hover:none){
    .tile-overlay{ opacity:1; transform:translateY(0); background:linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 65%, transparent 100%); }
    .tile-expand{ opacity:1; transform:scale(1); }
  }

  /* ============ LIGHTBOX ============ */
  .lightbox{
    position:fixed;
    inset:0;
    z-index:1000;
    background:rgba(2,3,10,0.94);
    backdrop-filter:blur(6px);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease, visibility .3s ease;
    padding:40px;
  }
  .lightbox.open{
    opacity:1;
    visibility:visible;
  }

  .lightbox-stage{
    position:relative;
    max-width:1200px;
    width:100%;
    max-height:86vh;
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  .lightbox-media-wrap{
    width:100%;
    max-height:74vh;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    overflow:hidden;
    background:#000;
  }

  .lightbox-media-wrap img,
  .lightbox-media-wrap video{
    max-width:100%;
    max-height:74vh;
    display:block;
    border-radius:10px;
  }

  .lightbox-caption{
    margin-top:20px;
    text-align:center;
  }
  .lightbox-cat{
    font-family:'JetBrains Mono',monospace;
    font-size:11px;
    font-weight:600;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--gold);
    margin-bottom:6px;
  }
  .lightbox-title{
    font-family:'Unbounded',sans-serif;
    font-weight:700;
    font-size:18px;
    color:var(--ice);
  }

  .lightbox-close{
    position:absolute;
    top:-8px;
    right:-8px;
    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(234,241,255,0.08);
    border:1.5px solid rgba(234,241,255,0.3);
    color:var(--ice);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .25s ease, transform .25s ease;
  }
  .lightbox-close:hover{
    background:var(--gold);
    color:#020525;
    transform:rotate(90deg);
  }
  .lightbox-close svg{ width:16px; height:16px; }

  .lightbox-arrow{
    position:fixed;
    top:50%;
    transform:translateY(-50%);
    width:52px;
    height:52px;
    border-radius:50%;
    background:rgba(234,241,255,0.08);
    border:1.5px solid rgba(234,241,255,0.3);
    color:var(--ice);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .25s ease, border-color .25s ease;
    z-index:1001;
  }
  .lightbox-arrow:hover{
    background:var(--gold);
    border-color:var(--gold);
    color:#020525;
  }
  .lightbox-arrow.prev{ left:28px; }
  .lightbox-arrow.next{ right:28px; }
  .lightbox-arrow svg{ width:18px; height:18px; }

  @media (max-width:900px){
    .lightbox{ padding:20px; }
    .lightbox-arrow{ width:42px; height:42px; }
    .lightbox-arrow.prev{ left:10px; }
    .lightbox-arrow.next{ right:10px; }
  }

  /* ============ CTA STRIP ============ */
  .cta-strip{
    background:#f6f5f1;
    color:#0b0e1a;
    padding:100px 56px;
    text-align:center;
  }
  .cta-strip-title{
    font-family:'Unbounded',sans-serif;
    font-weight:800;
    font-size:clamp(30px,5vw,58px);
    line-height:1.05;
    letter-spacing:-0.01em;
    text-transform:uppercase;
    max-width:820px;
    margin:0 auto;
  }
  .cta-strip-title .outline{
    -webkit-text-stroke:1.5px #0b0e1a;
    color:transparent;
  }
  .cta-strip-sub{
    margin:22px auto 0;
    max-width:520px;
    font-size:16px;
    line-height:1.6;
    color:#3d4258;
  }
  .cta-strip .btn-row{
    margin-top:38px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
  }
  .btn{
    font-family:'Space Grotesk',sans-serif;
    font-size:15px;
    font-weight:700;
    letter-spacing:0.02em;
    text-decoration:none;
    padding:17px 30px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    border-radius:2px;
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .btn-primary{
    background:#020525;
    color:#fff;
    box-shadow:6px 6px 0 rgba(11,14,26,0.18);
  }
  .btn-primary:hover{
    transform:translate(-2px,-2px);
    box-shadow:8px 8px 0 rgba(11,14,26,0.22);
  }
  .btn-primary svg{ width:16px; height:16px; }
  .btn-outline-dark{
    background:transparent;
    color:#0b0e1a;
    border:1.5px solid rgba(11,14,26,0.5);
  }
  .btn-outline-dark:hover{
    background:rgba(11,14,26,0.06);
    border-color:#0b0e1a;
  }
  @media (max-width:720px){
    .cta-strip{ padding:70px 24px; }
  }

  /* ============ FOOTER ============ */
  .site-footer{
    position:relative;
    width:100%;
    overflow:hidden;
    background:#000;
    color:#eaf3ff;
    font-family:'Space Grotesk',Arial,sans-serif;
  }
  .footer-glow{
    position:absolute;
    left:-18%; bottom:-70%;
    width:136%; height:140%;
    pointer-events:none;
    background:
      radial-gradient(ellipse at 48% 34%,
        rgba(0,145,255,1) 0%, rgba(0,100,255,.96) 22%,
        rgba(0,55,205,.82) 43%, rgba(0,20,95,.46) 64%, transparent 79%);
    filter:blur(48px);
    transform:rotate(-7deg) scale(1.15);
  }
  .site-footer::before{
    content:"";
    position:absolute;
    left:-25%; bottom:-30%;
    width:150%; height:70%;
    pointer-events:none;
    background:radial-gradient(ellipse at center,
      rgba(0,153,255,.9) 0%, rgba(0,105,255,.62) 34%, transparent 73%);
    filter:blur(78px);
  }
  .site-footer::after{
    content:"";
    position:absolute; inset:0;
    pointer-events:none;
    background:linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.04) 35%, rgba(0,0,0,.22) 100%);
  }
  .footer-content{
    position:relative; z-index:5;
    width:100%;
    padding:60px 40px 28px;
    display:flex;
    flex-direction:column;
    gap:48px;
  }
  .footer-brand{ display:flex; flex-direction:column; align-items:flex-start; }
  .footer-logo{
    font-family:'Unbounded','Arial Black',Arial,sans-serif;
    font-size:clamp(34px,4.4vw,60px);
    line-height:.86;
    font-weight:900;
    letter-spacing:-.09em;
    color:#e9f5ff;
    margin-bottom:18px;
  }
  .footer-location-row{
    display:flex; align-items:center; gap:13px;
    margin-bottom:9px;
    font-size:15px; font-weight:600;
    color:rgba(225,238,255,.78);
  }
  .footer-arrow{ font-size:19px; margin-left:2px; }
  .location-pill{
    display:inline-flex; align-items:center; justify-content:center;
    height:25px; min-width:38px; padding:0 9px;
    border:2px solid #008cff; border-radius:50px;
    color:#008cff; font-size:11px; font-weight:700;
  }
  .footer-links{
    display:grid;
    grid-template-columns:120px 140px;
    column-gap:30px;
  }
  .footer-nav, .footer-social{ display:flex; flex-direction:column; gap:10px; }
  .footer-links a{
    color:rgba(225,232,242,.55);
    text-decoration:none;
    font-size:15px; line-height:1.1;
    transition:color .25s ease,transform .25s ease;
  }
  .footer-links a:hover{ color:#fff; transform:translateX(3px); }
  .footer-social a{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .footer-social a span{ font-size:16px; color:rgba(225,232,242,.65); }
  .footer-bottom{
    position:relative; z-index:10;
    width:100%;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:25px;
    font-size:12px;
    color:rgba(225,238,255,.72);
    border-top:1px solid rgba(225,238,255,.12);
    padding-top:20px;
  }
  .footer-copyright{ text-align:left; }
  .footer-legal{ display:flex; align-items:center; justify-content:center; gap:24px; }
  .footer-legal a{ color:rgba(225,238,255,.72); text-decoration:none; white-space:nowrap; transition:color .25s ease; }
  .footer-legal a:hover{ color:#fff; }
  .footer-credit{ display:flex; align-items:center; justify-content:flex-end; gap:15px; white-space:nowrap; }

  @media (max-width:900px){
    .footer-content{ padding:40px 30px 24px; gap:36px; }
    .footer-links{ grid-template-columns:1fr 1fr; }
    .footer-bottom{ grid-template-columns:1fr; gap:14px; text-align:center; }
    .footer-copyright, .footer-credit{ justify-content:center; text-align:center; }
  }
  @media (max-width:600px){
    .footer-content{ padding:32px 22px 22px; gap:30px; }
    .footer-logo{ font-size:42px; }
    .footer-location-row{ flex-wrap:wrap; font-size:13px; gap:10px; }
    .footer-legal{ flex-wrap:wrap; gap:10px 18px; }
    .footer-credit{ flex-wrap:wrap; }
  }
/* Prevent background scroll while the mobile menu is open (shared with home.css) */
body.nav-open-lock{ overflow:hidden; }