:root{
    --red:#1e8400;
	--white:#ffffff;
    --black:#0b0b0b;
    --soft:#f6f6f6;
    --card:#ffffff;
    --text:#111;
    --muted:#6c757d;
    --border: rgba(0,0,0,.10);
    --shadow: 0 14px 40px rgba(18,38,63,.08);
  }

  html,body{height:100%;}
  body{
    background: var(--soft);
    color: var(--text);
    overflow-x:hidden;
  }

  /* subtle background glow */
  .bg-glow{
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events:none;
    filter: blur(60px);
    opacity: .55;
    background:
      radial-gradient(600px circle at 20% 15%, rgba(225,6,0,.18), transparent 60%),
      radial-gradient(700px circle at 80% 30%, rgba(225,6,0,.12), transparent 65%),
      radial-gradient(800px circle at 55% 85%, rgba(0,0,0,.06), transparent 60%);
    animation: floatGlow 10s ease-in-out infinite;
  }
  @keyframes floatGlow{
    0%,100%{ transform: translate3d(0,0,0) scale(1); }
    50%{ transform: translate3d(2%, -2%, 0) scale(1.03); }
  }

  /* Navbar */
  .navbar{
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
  }
  .logo-img{ height: 70px; width: auto; display:block; }
  .text-red{color:var(--red);}
  .btn-red{ background:var(--white); color:#000; border:none; }
  .btn-red:focus{ box-shadow: 0 0 0 .25rem rgba(225,6,0,.25); }

  /* Cards */
  .cardx{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow:hidden;
  }
  .icon-box{
    width:46px; height:46px; border-radius:14px;
    display:grid; place-items:center;
    background: rgb(125 190 125 / 25%);
    border: 1px solid rgb(3 51 0 / 45%);
    color: var(--red);
    flex: 0 0 auto;
  }
  .section-title small{ color: var(--muted); }

  /* ===== HERO ===== */
  .hero-redblack{
    position: relative;
    padding: 5rem 0 3.5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,.12);
    background:
      radial-gradient(900px circle at 18% 18%, rgb(225 210 0 / 45%), transparent 58%), radial-gradient(900px circle at 85% 25%, rgba(225, 6, 0, .18), transparent 62%), linear-gradient(135deg, #038200 0%, #051202 45%, #0e9300 100%)
  }
  .hero-glow{
    position:absolute;
    inset:-25%;
    pointer-events:none;
    filter: blur(60px);
    opacity:.55;
    background:
      radial-gradient(700px circle at 25% 25%, rgba(225,6,0,.30), transparent 60%),
      radial-gradient(700px circle at 75% 35%, rgba(255,255,255,.10), transparent 62%);
    animation: heroFloat 10s ease-in-out infinite;
  }
  @keyframes heroFloat{
    0%,100%{ transform: translate3d(0,0,0) scale(1); }
    50%{ transform: translate3d(2%,-2%,0) scale(1.03); }
  }
  .hero-glass{
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    backdrop-filter: blur(10px);
  }
  .hero-item{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
  }
  .hero-item .icon-box{
    background: rgb(125 190 125 / 25%); border: 1px solid rgb(3 51 0 / 45%); color: #fff;
  }

  /* ===== SERVICES ===== */
  #services .cardx{ height:100%; }
  #services .cardx .p-4{ padding: 1.25rem !important; }
  #services .list-group-item{ font-size: .92rem; }

  /* ===== PORTFOLIO (clickable images) ===== */
   .portfolio-grid img{
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 26px rgba(18,38,63,.08);
  }
  .portfolio-item{
    display:block;
    border-radius: 18px;
    overflow:hidden;
    outline: none;
  }

  /* Category cards */
  .portfolio-cat{
    display:block;
    text-decoration:none;
    color: inherit;
    border-radius: 18px;
    overflow:hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 26px rgba(18,38,63,.08);
    background:#fff;
    position:relative;
  }
  .portfolio-cat .thumb{
    width:100%;
    height:240px;
    object-fit:cover;
    display:block;
  }
  .portfolio-cat .overlay{
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.05));
    display:flex;
    align-items:flex-end;
    padding:16px;
    gap:10px;
  }
  .portfolio-cat .badge-count{
    background: rgba(255,255,255,.18);
    color:#fff;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    backdrop-filter: blur(8px);
  }
  .portfolio-cat h5{
    margin:0;
    color:#fff;
    font-weight:700;
    font-size: 18px;
    line-height:1.2;
  }

  /* Modal image */
  .portfolio-view{
    width:100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 14px;
    background: #0b0b0b;
  }
  .modal-portfolio .modal-content{
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
  }
  .modal-portfolio .btn-close{
    filter: invert(1);
  }

  /* Arrows */
  .modal-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:44px; height:44px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.12);
    color:#fff;
    display:grid;
    place-items:center;
    z-index:3;
  }
  .modal-arrow.prev{left: 10px;}
  .modal-arrow.next{right: 10px;}
  .modal-arrow:hover{background: rgba(255,255,255,.18);}

  .portfolio-meta{
    color: rgba(255,255,255,.75);
    font-size: 13px;
  }

  /* ===== Tech Stack (DARK) ===== */
  .tech-stack-dark{
    background: #0b0b0b;
    position: relative;
  }
  .tech-strip-wrap{
    position: relative;
    width: 100%;
    padding: 0;
  }
  .tech-strip-wrap::before,
  .tech-strip-wrap::after{
    content:"";
    position:absolute;
    top:0; bottom:0;
    width:160px;
    z-index:2;
    pointer-events:none;
  }
  .tech-strip-wrap::before{
    left:0;
    background: linear-gradient(to right, rgba(11,11,11,1), rgba(11,11,11,0));
  }
  .tech-strip-wrap::after{
    right:0;
    background: linear-gradient(to left, rgba(11,11,11,1), rgba(11,11,11,0));
  }
  .tech-strip{
    display:flex;
    gap: 18px;
    padding: 16px 150px; /* side gaps between arrows and items */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tech-strip::-webkit-scrollbar{ display:none; }
  .tech-card{
    flex: 0 0 auto;
    min-width: 360px;
    scroll-snap-align: start;
    display:flex;
    align-items:center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 12px 26px rgba(0,0,0,.35);
    white-space: nowrap;
  }
  .tech-card i{ color:#c3fac2; font-size: 1.35rem; }
  .tech-text{ line-height: 1.05; }
  .tech-title{ font-weight: 800; font-size: 1.08rem; color:#fff; }
  .tech-desc{ font-size: .92rem; color: rgba(255,255,255,.65); margin-top: 3px; }
  .tech-card .dot{
    width: 12px; height: 12px; border-radius: 999px;
    background: #e10600; box-shadow: 0 0 0 8px rgba(225,6,0,.16);
    position: relative;
	display:none;
  }
  .tech-card .dot::after{
    content:"";
    position:absolute;
    inset:-8px;
    border-radius:999px;
    border:1px solid rgba(225,6,0,.30);
    animation: pulseDot 3.2s ease-in-out infinite;
  }
  @keyframes pulseDot{
    0%,100%{ transform: scale(.92); opacity:.55; }
    50%{ transform: scale(1.12); opacity:1; }
  }
  .tech-nav{
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.12);
    display:grid;
    place-items:center;
    color:#fff;
  }
  .tech-prev{ left: 28px; }
  .tech-next{ right: 28px; }
  .tech-nav i{ font-size: 1.25rem; color:#fff; }

  @media (max-width: 576px){
    .tech-card{ min-width: 300px; }
    .tech-strip{ padding: 14px 98px; }
    .tech-strip-wrap::before,
    .tech-strip-wrap::after{ width: 90px; }
    .tech-prev{ left: 16px; }
    .tech-next{ right: 16px; }
  }
  @media (prefers-reduced-motion: reduce){
    .tech-card .dot::after{ animation: none; }
    .tech-strip{ scroll-behavior: auto; }
  }

  /* ===== Contact: simple split layout (no background/shadow) ===== */
  .contact-simple .form-control,
  .contact-simple .form-select{
    border-radius: 12px;
  }
  .contact-simple .contact-line{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-right: 1px solid rgba(0, 0, 0, .08);
  }
  .contact-simple .contact-line:last-child{ border-bottom: none; }
  .contact-simple .contact-line i{
    color: var(--red);
    font-size: 1.15rem;
    margin-top: 2px;
  }

  footer{ border-top: 1px solid var(--border); }

  /* ===== Portfolio Modal ===== */
  .modal-portfolio .modal-content{
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
  }
  .modal-portfolio .btn-close{
    filter: invert(1);
    opacity: .9;
  }
  .portfolio-view{
    width:100%;
    max-height: 74vh;
    object-fit: contain;
    background: #0b0b0b;
    border-radius: 14px;
  }
  .modal-arrow{
    position:absolute;
    top:50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    display:grid;
    place-items:center;
    color:#fff;
    z-index: 3;
  }
  .modal-arrow i{ color:#fff; font-size: 1.35rem; }
  .modal-arrow.prev{ left: 12px; }
  .modal-arrow.next{ right: 12px; }
  
  .skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list li {
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  color: #6c757d;
  background-color: #fff;
  white-space: nowrap;
}


/* ================================
   TEAM CARD
================================ */
.team-card{
  background:#fff;
  border:1px solid #e6e9ef;
  border-radius:22px;
  overflow:hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  transition: all .25s ease;
}

.team-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,.1);
}

/* ================================
   PHOTO AREA
================================ */
.team-photo{
  position: relative;
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: #f4f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* blurred background fills space */
.team-photo::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.2);
  opacity: .55;
}

/* circular main photo */
.team-photo img{
  position: relative;
  z-index: 1;
  width: 160px;                 /* CONTROL PHOTO SIZE */
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #ffffff;    /* light white border */
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* leadership slightly larger */
.leader-img{
  height: 320px;
}

.leader-img img{
  width: 150px;
  height: 150px;
}

/* ================================
   TEXT
================================ */
.team-body{
  text-align: center;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 575px){
  .team-photo{
    height: 220px;
  }

  .team-photo img{
    width: 100px;
    height: 100px;
  }

  .leader-img img{
    width: 130px;
    height: 130px;
  }
}
