﻿
:root {
    --ink: #12203a;
    --muted: #6b7280;
    --green-dark: #0b4a34;
    --green-mid: #0e6b46;
    --green-bright: #12a86a;
    --card-red: #c0392b;
    --card-green: #0e6b46;
    --card-purple: #6c3fb5;
    --card-blue: #1d5fb0;
    --card-orange: #c46a1a;
    --card-teal: #0e8a7e;
}
.panel-portfolio {
     background: #e1e8f0;
    padding-top: 70px;
    padding-bottom: 100px;

}
 /* HERO */
  .hero{ position:relative; }
  .hero-left{ padding:64px 40px; position:relative; z-index:2; }
  .eyebrow{
    /*color:var(--green-bright);*/
    font-weight:700;
    font-size:.75rem;
    letter-spacing:.15em;
    text-transform:uppercase;
  }
  /*.eyebrow::before{ content:"•"; margin:0 8px; color:var(--green-bright); }*/
  .hero-title{
    color:var(--ink);
    font-weight:700;
        font-size: clamp(38px, 5vw, 2.9rem);
    line-height:1.2;
    margin-top:0;
  }
  .hero-sub{ color:var(--muted); /*max-width:420px;*/ margin-top:10px; font-size:.98rem; }
  .hero-right{
    position:relative;
    /*background:linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
    min-height:280px;*/
    display:flex;
    align-items:end;
    justify-content:flex-end;
    padding:40px;
    overflow:hidden;
    /*clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);*/
  }
  .hero-right::before{
    content:""; position:absolute; right:-120px; top:50%; transform:translateY(-50%);
    width:420px; height:420px; border-radius:50%; border:1px solid rgba(255,255,255,.18);
  }
  .hero-right::after{
    content:""; position:absolute; right:-60px; top:50%; transform:translateY(-50%);
    width:300px; height:300px; border-radius:50%; border:1px solid rgba(255,255,255,.14);
  }
  .explore-btn{
    background:#eef4f0; color:var(--green-dark); font-weight:700; border:none;
    border-radius:50px; padding:14px 10px 14px 26px; display:inline-flex; align-items:center;
    gap:16px; font-size:.95rem; position:relative; z-index:3; text-decoration:none;
  }
  .explore-btn .icon-circle{
    width:38px; height:38px; border-radius:50%; background:var(--green-dark); color:#fff;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }

  /* INFINITE MARQUEE CAROUSEL */
  .cards-carousel-wrap{
    padding:0;
    /*background:#f0f2f4;*/
    margin-top:4rem;
  }

  .marquee-viewport{
    overflow:hidden;
    position:relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  }

  .marquee-track{
    display:flex;
    width:max-content;
    animation: marquee-scroll 60s linear infinite;
  }

  .marquee-viewport:hover .marquee-track{
    animation-play-state: paused;
  }

  @keyframes marquee-scroll{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
  }

  .marquee-slide{
    flex: 0 0 740px;
    max-width:740px;
    padding:4px 12px 12px 12px;
    box-sizing:border-box;
  }

  .proj-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    height:100%;
    display:flex;
    flex-direction:row;
    align-items:stretch;
    box-shadow:0 8px 20px rgba(16,24,40,.07);
    padding:10px;
    gap:14px;
    min-height: 400px;
  }

  .proj-card .thumb{
    width:50%;
    flex-shrink:0;
    position:relative;
    border-radius:14px;
    overflow:hidden;
  }
  .proj-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

  .proj-card .content{
       padding: 6px 8px 6px 0;
    display: flex;
    flex-direction: column;
    /* flex: 1; */
    min-width: 0;
    justify-content: center;
  }

  .tag-badge{
    display:inline-block;
    font-size:.68rem;
    font-weight:600;
    padding:5px 14px;
    border-radius:30px;
    margin-bottom:12px;
    width:fit-content;
    border:1px solid;
  }
  .tag-red{ color:var(--card-red); background:#fdecea; border-color:#f6c6bd; }
  .tag-green{ color:var(--card-green); background:#e6f3ee; border-color:#bfe2d3; }
  .tag-purple{ color:var(--card-purple); background:#f1eafb; border-color:#dcc9f5; }
  .tag-blue{ color:var(--card-blue); background:#e9f1fb; border-color:#c3d9f5; }
  .tag-orange{ color:var(--card-orange); background:#fdf1e5; border-color:#f3d3a8; }
  .tag-teal{ color:var(--card-teal); background:#e4f5f3; border-color:#b9e4de; }

  .proj-card h5{
    font-weight:700;
    color:var(--ink);
    font-size:1.05rem;
    line-height:1.32;
    margin-bottom:10px;
  }
  .proj-card p{
    color:var(--muted);
    font-size:.85rem;
    line-height:1.55;
    /*flex:1;*/
    margin-bottom:14px;
  }

  .learn-more{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:700;
    font-size:.9rem;
    text-decoration:none;
    /*margin-top:auto;*/
    width:fit-content;
  }
  .learn-more .icon-circle{
    width:34px; height:34px; border-radius:50%; display:flex; align-items:center;
    justify-content:center; color:#fff; flex-shrink:0;
  }
  .learn-more.text-red{ color:var(--card-red); }
  .learn-more.text-red .icon-circle{ background:var(--card-red); }
  .learn-more.text-green{ color:var(--card-green); }
  .learn-more.text-green .icon-circle{ background:var(--card-green); }
  .learn-more.text-purple{ color:var(--card-purple); }
  .learn-more.text-purple .icon-circle{ background:var(--card-purple); }
  .learn-more.text-blue{ color:var(--card-blue); }
  .learn-more.text-blue .icon-circle{ background:var(--card-blue); }
  .learn-more.text-orange{ color:var(--card-orange); }
  .learn-more.text-orange .icon-circle{ background:var(--card-orange); }
  .learn-more.text-teal{ color:var(--card-teal); }
  .learn-more.text-teal .icon-circle{ background:var(--card-teal); }

  @media (max-width: 767px){
    .hero-right{ clip-path:none; min-height:200px; }
    .hero-title{ font-size:1.9rem; }
    .marquee-slide{ flex-basis:280px; max-width:280px; }
    .proj-card{ flex-direction:column; padding:12px; }
    .proj-card .thumb{ width:100%; height:150px; }
    .proj-card .content{ padding:14px 4px 4px 4px; }
  }

  @media (prefers-reduced-motion: reduce){
    .marquee-track{ animation: none; }
  }