/* ====== THEME ====== */
:root{
  --bg-0:#070b12;
  --bg-1:#0b1220;
  --card:#0e1a2c;
  --card-2:#0b1626;
  --border: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.58);
  --accent:#56a7ff;
  --accent2:#2b78ff;
  --shadow: 0 20px 60px rgba(0,0,0,.40);
}

html, body{
  height:100%;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(86,167,255,.12), transparent 55%),
              radial-gradient(1000px 700px at 80% 0%, rgba(43,120,255,.10), transparent 55%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text);
}

/* ====== Background orbs ====== */
.bg-orbs{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orb{
  position:absolute;
  filter: blur(40px);
  opacity:.25;
  border-radius: 999px;
}
.orb-1{ width: 420px; height: 420px; left: -120px; top: 160px; background: rgba(86,167,255,.55); }
.orb-2{ width: 520px; height: 520px; right: -160px; top: 80px; background: rgba(43,120,255,.50); }
.orb-3{ width: 520px; height: 520px; left: 35%; bottom: -220px; background: rgba(86,167,255,.35); }

.site-header, main{ position: relative; z-index: 1; }

/* ====== Navbar ====== */
.nav-glass{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .6rem 1rem;
  background: rgba(10,18,32,.65);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.30);
}
.navbar .nav-link{
  color: rgba(255,255,255,.78);
}
.navbar .nav-link:hover{
  color: rgba(255,255,255,.95);
}

/* ====== Buttons ====== */
.btn-accent{
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border: 0;
  color: #03101f;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(43,120,255,.25);
}
.btn-accent:hover{ filter: brightness(1.05); }

.btn-outline-soft{
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
  background: transparent;
}
.btn-outline-soft:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.95);
}

/* ====== Cards ====== */
.glass-card{
  background: linear-gradient(180deg, rgba(14,26,44,.85), rgba(10,18,32,.85));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.glass-card{
  position: relative; /* IMPORTANT */
  overflow: hidden;   /* keeps dots inside rounded corners */
}

/* Dots decoration */
.glass-card::after{
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;

  width: 160px;      /* adjust size if needed */
  height: 160px;

  background: url("assets/dots-card.png") no-repeat bottom right;
  background-size: contain;

  opacity: 0.35;     /* adjust intensity */
  pointer-events: none; /* prevents blocking clicks */
}
.dashed-card{
  border-style: dashed;
  border-color: rgba(255,255,255,.14);
}

/* ====== Hero ====== */
.hero-card{ padding: 2rem; }
.tiny-label{
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
}
.display-title{
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  margin: 0;
}
.accent{ color: var(--accent); }
.sub-title{
  color: rgba(255,255,255,.72);
  font-weight: 500;
}

.text-muted-2{ color: var(--muted2) !important; }
.card-body-text{ color: var(--muted); font-size: .95rem; line-height: 1.6; }

.link-soft{
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding-bottom: 2px;
}
.link-soft:hover{
  color: rgba(255,255,255,.95);
  border-bottom-color: rgba(86,167,255,.55);
}

/* Avatar ring */
.avatar-ring{
  width: 350px;      /* increased from 280 */
  height: 350px;     /* increased from 280 */
  border-radius: 999px;
  padding: 14px;     /* slightly increased for balance */
  background: radial-gradient(circle at 30% 20%, rgba(86,167,255,.9), rgba(43,120,255,.35) 45%, rgba(255,255,255,.05) 70%);
  box-shadow: 0 35px 110px rgba(43,120,255,.28); /* slightly stronger glow */
}
.avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}

/* Stats */
.hero-stats{
  display:flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.stat{
  display:flex;
  gap:.75rem;
  align-items:center;
  padding: .75rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.stat-num{
  min-width: 52px;              /* ensures 5 and 23 stay same size */
  height: 52px;
  padding: 0 14px;              /* allows room for 100% */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b78ff, #56a7ff);
  color: #000;
  font-weight: 600;
  border-radius: 16px;
  font-size: 1.05rem;
  letter-spacing: .5px;
}
.stat-label{
  font-size: .8rem;
  color: rgba(255,255,255,.70);
  line-height: 1.1;
}

/* ====== Sections ====== */
.section-title{
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
}
.section-kicker{
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}

/* Lists */
.list-check{
  list-style: none;
  padding-left: 0;
}
.list-check li{
  position: relative;
  padding-left: 1.6rem;
  margin: .6rem 0;
  color: rgba(255,255,255,.78);
}
.list-check li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: .75rem;
  height: .75rem;
  border-radius: 6px;
  background: rgba(86,167,255,.85);
  box-shadow: 0 8px 20px rgba(43,120,255,.25);
}

/* Skill cards text */
.card-title{
  font-weight: 700;
  margin-bottom: .45rem;
  color: rgba(255,255,255,.90);
}

/* Resume */
.resume-block .resume-dates{
  font-size: .85rem;
  color: rgba(255,255,255,.60);
}
.resume-block .resume-dates.accent{ color: rgba(86,167,255,.9); }
.resume-title{
  font-weight: 700;
  margin-top: .25rem;
}
.resume-sub{
  color: rgba(255,255,255,.70);
  font-size: .92rem;
  line-height: 1.6;
}
.soft-hr{
  border-color: rgba(255,255,255,.08);
  opacity: 1;
  margin: 1.25rem 0;
}

/* Testimonials */
.testimonial-card{ max-width: 760px; }
.quote-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: .35rem;
  background: rgba(86,167,255,.9);
  box-shadow: 0 10px 30px rgba(43,120,255,.25);
}
.testimonial-title{
  font-weight: 700;
  margin-bottom: .35rem;
}

/* Form */
.form-dark{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
}
.form-dark:focus{
  background: rgba(255,255,255,.05);
  border-color: rgba(86,167,255,.55);
  box-shadow: 0 0 0 .25rem rgba(86,167,255,.12);
  color: rgba(255,255,255,.95);
}
.form-dark::placeholder{ color: rgba(255,255,255,.45); }

/* Responsive tweaks */
@media (max-width: 991px){
  .hero-card{ padding: 1.5rem; }
  .avatar-ring{ width: 240px; height: 240px; }
}
/* ===== PROJECT SECTION ===== */

.project-card {
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(43,120,255,.25);
}

.project-img {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}
/* ===== Web Work Video Hero ===== */
.video-hero{
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 0; /* video handles the background */
}

.video-hero__media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05) brightness(.72);
}

.video-hero__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(86,167,255,.20), transparent 55%),
    linear-gradient(90deg, rgba(7,11,18,.92), rgba(7,11,18,.55) 55%, rgba(7,11,18,.30));
}

.video-hero__content{
  position: relative;
  z-index: 1;
  padding: 2.2rem;
  max-width: 780px;
}

@media (min-width: 992px){
  .video-hero{ min-height: 420px; }
  .video-hero__content{ padding: 2.75rem; }
}

/* ===== Featured Web Work Cards ===== */
.webwork-card{
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.webwork-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(43,120,255,.25);
}

.webwork-img{
  height: 220px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}

.webwork-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.webwork-card:hover .webwork-img img{
  transform: scale(1.06);
}
/* Dropdown matches glass theme */
.dropdown-glass{
  background: rgba(10,18,32,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: .5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}

.dropdown-glass .dropdown-item{
  border-radius: 10px;
  color: rgba(255,255,255,.78);
}

.dropdown-glass .dropdown-item:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
}

.dropdown-glass .dropdown-divider{
  border-color: rgba(255,255,255,.12);
}

/* Hover open dropdown on desktop only */
@media (min-width: 992px){
  .navbar .dropdown:hover .dropdown-menu{
    display: block;
    margin-top: .25rem;
  }
  .navbar .dropdown:hover .dropdown-toggle{
    color: rgba(255,255,255,.95);
  }
}
/* Keep navbar + dropdown above page content */
.site-header{
  position: sticky;   /* keeps it on top while scrolling */
  top: 0;
  z-index: 2000;      /* higher than main */
}

/* Make sure the dropdown itself is above everything */
.nav-glass,
.navbar,
.dropdown-menu{
  z-index: 2100;
}

/* Your main content can stay normal, just ensure it's below header */
main{
  position: relative;
  z-index: 1;
}
/* Desktop hover behavior: keep dropdown open while hovering toggle OR menu */
@media (min-width: 992px){

  /* show menu when parent dropdown OR the menu itself is hovered */
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown-menu:hover{
    display: block;
  }

  /* Remove the hover "gap" between link and menu */
  .navbar .dropdown-menu{
    margin-top: 0;              /* was .25rem */
    top: 100%;
  }

  /* Optional: make it easier to keep hovered (adds safe hover zone) */
  .navbar .dropdown{
    position: relative;
  }
  .navbar .dropdown::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;               /* invisible bridge */
  }
}
/* ===== Navbar Logo ===== */
.brand-logo img{
  height: 38px;   /* Adjust size here */
  width: auto;
  object-fit: contain;
  transition: transform .3s ease, opacity .3s ease;
}

/* Subtle hover effect */
.brand-logo:hover img{
  transform: scale(1.05);
  opacity: .9;
}
/* ===== Testimonials Carousel (3-up desktop, 2-up tablet, 1-up mobile) ===== */
.testimonials-wrap{
  padding: 0 48px; /* space for arrows */
}

.testimonials-viewport{
  overflow: hidden;
}

.testimonials-track{
  display: flex;
  gap: 16px;
  transition: transform .35s ease;
  will-change: transform;
}

/* Each slide width changes by breakpoint */
.testi-slide{
  flex: 0 0 calc((100% - 32px) / 3); /* 3 visible, gap*2 */
}

@media (max-width: 991px){
  .testi-slide{
    flex: 0 0 calc((100% - 16px) / 2); /* 2 visible */
  }
}

@media (max-width: 575px){
  .testimonials-wrap{ padding: 0 40px; }
  .testi-slide{
    flex: 0 0 100%; /* 1 visible */
  }
}

/* Nav buttons */
.testi-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,18,32,.65);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

.testi-nav:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(86,167,255,.35);
}

.testi-prev{ left: 0; }
.testi-next{ right: 0; }
/* ===== Footer ===== */
.site-footer .footer-inner{
  border-radius: 18px;
}

.site-footer a.link-soft{
  text-decoration: none;
}
.site-footer a.link-soft:hover{
  text-decoration: underline;
}
/* ===== Mobile Polish ===== */
@media (max-width: 575px){

  /* Containers breathe less on mobile */
  .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Hero spacing */
  .hero-card{
    padding: 1.25rem !important;
  }

  /* Make hero image smaller on phones */
  .avatar-ring{
    width: 260px !important;
    height: 260px !important;
    margin: 0 auto;
  }

  /* Titles scale down */
  .display-title,
  .hero-title{
    font-size: 2.1rem !important;
    line-height: 1.1;
  }

  /* Buttons stack */
  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn{
    width: 100%;
  }

  /* Cards become 1 column naturally via Bootstrap, but ensure padding */
  .glass-card{
    padding: 1.25rem !important;
  }

  /* Testimonials arrows tighter */
  .testimonials-wrap{
    padding: 0 36px;
  }
}
/* ===== Hero avatar placement: mobile between paragraph and links ===== */
.hero-avatar-mobile{ display: none; }

@media (max-width: 991px){
  .hero-avatar-desktop{ display: none !important; }
  .hero-avatar-mobile{
    display: flex;
    justify-content: center;
  }

  /* optional: make the avatar a bit smaller on mobile */
  .hero-avatar-mobile .avatar-ring{
    width: 260px !important;
    height: 260px !important;
  }
}
/* ===== Mobile spacing between Certifications & Technical Skills ===== */
@media (max-width: 991px){

  #capabilities .col-lg-5{
    margin-bottom: 40px;
  }

}
/* applications.css */

/* ===== Hero Video ===== */
.apps-hero{
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.apps-hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.apps-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(86,167,255,.22), rgba(0,0,0,0)),
    radial-gradient(700px 420px at 80% 40%, rgba(0,255,200,.12), rgba(0,0,0,0)),
    linear-gradient(to bottom, rgba(6,10,18,.35), rgba(6,10,18,.92));
}

.apps-hero-content{
  position: relative;
  z-index: 2;
  padding: 88px 0;
  text-align: left;
}

.apps-hero-sub{
  max-width: 760px;
}

@media (max-width: 991px){
  .apps-hero-content{
    text-align: center;
    padding: 72px 0;
  }
  .apps-hero-sub{
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== Filters ===== */
.apps-filters .btn{
  border-radius: 999px;
}

.apps-filters .btn.is-active{
  background: rgba(86,167,255,.18);
  border-color: rgba(86,167,255,.35);
}

/* ===== App Cards ===== */
.app-card{
  position: relative;
  overflow: hidden;
}

.app-card::after{
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 92px;
  height: 92px;
  opacity: .22;
  background-image: url("assets/dots-card.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.app-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
}

.badge-core{ border-color: rgba(86,167,255,.35); }
.badge-ai{ border-color: rgba(198,122,255,.35); }
.badge-adv{ border-color: rgba(255,200,0,.35); }
.badge-mobile{ border-color: rgba(0,255,170,.28); }
.badge-api{ border-color: rgba(130,255,255,.25); }

.app-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-tag{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
}

.app-importance{
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

/* ===== Mobile spacing polish ===== */
@media (max-width: 575px){
  .apps-hero{
    min-height: 62vh;
  }
}
/* ===== Applications hero (match Web Work style) ===== */
.hero-media-card{
  position: relative;
  overflow: hidden;
  border-radius: 22px; /* match your glass rounding */
  min-height: 320px;
  padding: 44px;
}

.hero-card-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* This is the “web work” look */
  filter: blur(2px) brightness(.75) saturate(1.05);
  transform: scale(1.06); /* prevents blur edge clipping */
  z-index: 0;
}

.hero-card-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(86,167,255,.18), rgba(0,0,0,0)),
    radial-gradient(700px 420px at 80% 40%, rgba(0,255,200,.10), rgba(0,0,0,0)),
    linear-gradient(to right, rgba(6,10,18,.85), rgba(6,10,18,.45));
}

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

/* Mobile polish */
@media (max-width: 991px){
  .hero-media-card{
    padding: 32px 22px;
    min-height: 300px;
  }
}

@media (max-width: 575px){
  .hero-media-card{
    padding: 26px 18px;
  }
}
/* Optional: badge for featured apps */
.project-card .app-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.85);
}
/* CMS badge on project cards */
.project-img{
  position: relative;
}

.cms-pill{
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
}
/* ===== UI Engineer positioning polish ===== */
.hero-lead{
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
}

.hero-pill:hover{
  border-color: rgba(86,167,255,.35);
  color: rgba(255,255,255,.96);
}

/* stronger hierarchy */
.display-title{
  letter-spacing: -.03em;
}

.sub-title{
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
}

/* section polish */
.section-title{
  letter-spacing: -.02em;
}

.card-title{
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

/* slightly more premium project cards */
.project-card,
.webwork-card,
.app-card{
  border: 1px solid rgba(255,255,255,.09);
}

.project-card .card-body-text,
.webwork-card .card-body-text{
  min-height: 96px;
}

/* improve CTA consistency */
.btn-accent,
.btn-outline-soft{
  border-radius: 999px;
  padding: .82rem 1.25rem;
}

/* mobile */
@media (max-width: 575px){
  .hero-pill-row{
    gap: 8px;
  }

  .hero-pill{
    font-size: .76rem;
    padding: 7px 12px;
  }

  .sub-title{
    font-size: .92rem;
  }
}
/* ===== Web Work page polish ===== */
.hero-lead{
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
}

.project-card .card-body-text,
.webwork-card .card-body-text{
  min-height: 110px;
}

.cms-pill{
  letter-spacing: .03em;
  font-weight: 600;
}

.video-hero__content .display-title{
  letter-spacing: -.02em;
}

.video-hero__content .btn{
  border-radius: 999px;
}

#featured .section-title,
#bol-work .section-title{
  letter-spacing: -.02em;
}
/* ===== Applications page ===== */
.app-language{
  color: rgba(86,167,255,.88);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero-lead{
  font-size: 1rem;
  line-height: 1.75;
}

.app-card .card-title{
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.app-card .card-body-text{
  min-height: 110px;
}

.app-meta{
  margin-top: 14px;
}

.app-tag{
  font-weight: 500;
}

@media (max-width: 575px){
  .app-card .card-body-text{
    min-height: auto;
  }
}