:root{
  --bg:#0b1411;
  --bg2:#1E2F2A;
  --ink:#0a0f0c;
  --brand:#5F8F7A;
  --gold:#D9B36C;
  --clay:#C04A3A;
  --text:#F8FAFC;
  --muted:#B7C7C0;
  --line:rgba(255,255,255,.08);
  --shadow: 0 30px 90px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 26px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(217,179,108,.22), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(95,143,122,.25), transparent 55%),
    linear-gradient(180deg, #060c09, #020604);
  overflow-x:hidden;
}
a{color:inherit}
.container{width:min(1160px,92%); margin-inline:auto}
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(2,6,4,.65);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  position:relative;
}
.brand{
  display:flex; align-items:center; gap:12px; text-decoration:none;
}
.brand img{width:44px; height:44px; border-radius:12px; object-fit:contain; background:rgba(255,255,255,.06); border:1px solid var(--line)}
.brand b{font-size:18px; letter-spacing:.2px}
.brand small{display:block; color:var(--muted); margin-top:2px; font-size:12px}
.menu{
  display:flex; align-items:center; gap:18px;
}
.menu a{
  text-decoration:none; color:var(--muted); font-weight:700;
  padding:10px 12px; border-radius:12px; border:1px solid transparent;
  transition: .18s ease;
}
.menu a:hover{
  color:var(--text);
  border-color:var(--line);
  background:rgba(255,255,255,.03);
}
.menu .cta{
  color:#1E2F2A;
  background:linear-gradient(135deg, var(--gold), #f1d69a);
  border-color:rgba(255,255,255,.18);
  box-shadow: 0 16px 45px rgba(217,179,108,.25);
}
.menu .cta:hover{transform: translateY(-1px)}
.burger{display:none; border:1px solid var(--line); background:rgba(255,255,255,.03); border-radius:14px; padding:10px 12px; color:var(--text)}
.hero{
  position:relative;
  padding:72px 0 40px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:36px;
  align-items:center;
}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 14px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:700;
}
.kicker .dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--gold);
  box-shadow: 0 0 0 6px rgba(217,179,108,.12);
}
.h1{
  margin:16px 0 12px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height:1.12;
  letter-spacing:.2px;
}
.h1 .gold{color:var(--gold)}
.lead{
  margin:0 0 22px;
  font-size: clamp(15px, 1.5vw, 18px);
  color:var(--muted);
  line-height:1.95;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:14px 18px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  text-decoration:none;
  font-weight:900;
  transition:.18s ease;
}
.btn.primary{
  color:#1E2F2A;
  background: linear-gradient(135deg, var(--gold), #f0d79f);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 18px 55px rgba(217,179,108,.22);
}
.btn.primary:hover{transform: translateY(-1px)}
.btn.ghost:hover{background:rgba(255,255,255,.06)}
.hero-card{
  position:relative;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    radial-gradient(700px 360px at 20% 0%, rgba(217,179,108,.20), transparent 55%),
    radial-gradient(520px 360px at 100% 30%, rgba(95,143,122,.22), transparent 55%),
    linear-gradient(180deg, rgba(30,47,42,.70), rgba(2,6,4,.85));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute; inset:0;
  background-image: url("../img/pattern.svg");
  opacity:.55;
  mix-blend-mode: overlay;
  transform: translateZ(0);
}
.hero-card-inner{
  position:relative;
  padding:28px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(2,6,4,.35);
  color:var(--muted);
  font-weight:900;
  margin-bottom:18px;
}
.badge span{
  color: var(--gold);
}
.logo-big{
  width: min(240px, 70%);
  aspect-ratio: 1/1;
  margin: 10px auto 18px;
  display: block;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.45));
  border-radius: 20px; /* حواف مستديرة */
}
.hero-metrics{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:10px;
}
.metric{
  border:1px solid var(--line);
  background: rgba(2,6,4,.35);
  border-radius:16px;
  padding:12px 12px;
}
.metric b{display:block; font-size:16px}
.metric small{color:var(--muted)}
.section{padding:54px 0}
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  margin-bottom:18px;
}
.section-title h2{
  margin:0;
  font-size: clamp(24px, 2.6vw, 34px);
}
.section-title p{
  margin:0;
  color:var(--muted);
  max-width: 520px;
  line-height:1.8;
}
.grid-3{

  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding:18px;
  position:relative;
  overflow:hidden;
  transition:.18s ease;
}
.card::after{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(600px 280px at 0% 0%, rgba(217,179,108,.18), transparent 50%),
              radial-gradient(500px 260px at 100% 30%, rgba(95,143,122,.18), transparent 55%);
  opacity:0;
  transition:.18s ease;
}
.card:hover{transform: translateY(-2px)}
.card:hover::after{opacity:1}

.icon{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(217,179,108,.12);
  border:1px solid rgba(217,179,108,.22);
  margin-bottom:12px;
}
.card h3{margin:0 0 8px; font-size:18px}
.card p{margin:0; color:var(--muted); line-height:1.9}
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
}
.panel{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:22px;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(217,179,108,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.list{
  display:grid; gap:12px; margin:14px 0 0; padding:0; list-style:none;
}
.list li{
  display:flex; gap:12px; align-items:flex-start;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(2,6,4,.25);
}
.tick{
  width:28px; height:28px; border-radius:10px;
  background: rgba(95,143,122,.18);
  border:1px solid rgba(95,143,122,.32);
  display:grid; place-items:center;
  color: var(--gold);
  flex:0 0 auto;
}
.cta-band{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:26px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(217,179,108,.22), transparent 55%),
    radial-gradient(700px 420px at 100% 30%, rgba(95,143,122,.22), transparent 55%),
    linear-gradient(180deg, rgba(30,47,42,.75), rgba(2,6,4,.88));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.cta-band::before{
  content:"";
  position:absolute; inset:0;
  background-image:url("../img/pattern.svg");
  opacity:.45;
  mix-blend-mode: overlay;
}
.cta-band .inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.cta-band h3{margin:0; font-size:22px}
.cta-band p{margin:6px 0 0; color:var(--muted); max-width:640px; line-height:1.85}
.footer{
  padding:28px 0 46px;
  border-top:1px solid var(--line);
  color:var(--muted);
}
.footer .row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text)}

/* Generic helpers used across pages (fixes mobile spacing) */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  flex-wrap:wrap;
}
.h2{
  margin:0;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height:1.25;
}
.muted{
  margin:0;
  color:var(--muted);
  line-height:1.85;
  max-width: 720px;
}
/* Page header */
.page-head{
  padding:46px 0 12px;
}
.page-head h1{margin:0 0 10px; font-size: clamp(28px, 3.3vw, 44px)}
.page-head p{margin:0; color:var(--muted); line-height:1.95; max-width:760px}

/* Mobile */
@media (max-width: 920px){
  .nav-inner{gap:10px}
  .brand b{font-size:16px}
  .brand small{display:none}
  .theme-toggle{margin-inline-start:auto}
  .hero-grid{grid-template-columns: 1fr; gap:18px}
  .hero{padding:48px 0 26px}
  .hero-card-inner{padding:22px}
  .hero-metrics{grid-template-columns: 1fr; }
  .grid-3{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .menu{display:none}
  .burger{display:inline-flex}
  .menu.open{
    display:flex;
    position:absolute;
    top:68px;
    inset-inline: 0;
    flex-direction:column;
    padding:12px;
    background: rgba(2,6,4,.92);
    border-bottom:1px solid var(--line);
  }
}

/* Small phones: remove empty gaps / oversized paddings */
@media (max-width: 560px){
  .container{width:min(1160px,94%)}
  .hero{padding:40px 0 20px}
  .section{padding:42px 0}
  .h1{line-height:1.18}
  .hero-actions{gap:10px}
  .btn{width:100%; justify-content:center}
  .cta-band .inner{flex-direction:column; align-items:stretch}
  .cta-band .inner .btn{width:100%}
  .theme-toggle{padding:10px 12px}
  .burger{padding:10px 12px}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important; transition:none !important; animation:none !important;}
}

/* ============================
   ULTIMATE UPGRADE (Cinematic)
   ============================ */

html{scroll-behavior:smooth}
body{position:relative; overflow-x:hidden}

/* Theme system */
:root{
  --gold:#D9B36C;
  --clay:#C04A3A;
  --sage:#5F8F7A;
  --dark:#0b1411;
  --dark2:#1E2F2A;
  --paper:#f7f4ee;
  --ink2:#0d1511;
  --muted2:rgba(255,255,255,.72);
  --stroke:rgba(255,255,255,.14);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --glow: 0 0 0 1px rgba(217,179,108,.22), 0 18px 45px rgba(217,179,108,.12);
}

html[data-theme="light"]{
  --bg: var(--paper);
  --bg2: #ffffff;
  --ink: #0f1713;
  --text: #0f1713;
  --muted: rgba(15,23,19,.72);
  --card: rgba(15,23,19,.06);
  --stroke: rgba(15,23,19,.12);
}
html[data-theme="light"] .nav{background:rgba(255,255,255,.72)}
html[data-theme="light"] .menu a{color:rgba(15,23,19,.86)}
html[data-theme="light"] .menu a:hover{background:rgba(15,23,19,.06)}
html[data-theme="light"] .brand small{color:rgba(15,23,19,.65)}

/* Cinematic background layers */
.bg-layer{
  position:absolute; inset:0; pointer-events:none; z-index:0;
}
.bg-layer.pattern{
  opacity:.55;
  background-image:url('../img/pattern.svg');
  background-size: 340px 340px;
  mix-blend-mode: overlay;
  transform: translateZ(0);
  filter: blur(.2px);
}
.bg-layer.vignette{
  background:
    radial-gradient(1100px 700px at 20% 20%, rgba(217,179,108,.20), transparent 60%),
    radial-gradient(900px 700px at 80% 30%, rgba(95,143,122,.18), transparent 62%),
    radial-gradient(900px 700px at 50% 110%, rgba(0,0,0,.45), rgba(0,0,0,.85));
  opacity:1;
}
.orb{
  position:absolute; width:520px; height:520px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(217,179,108,.24), rgba(217,179,108,0) 60%);
  filter: blur(10px);
  opacity:.9;
  transform: translate(-50%,-50%);
  z-index:0;
}

/* Custom cursor (desktop only) */
.cursor, .cursor-dot{
  position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
  transform: translate(-50%,-50%);
  opacity:0;
}
.cursor{
  width:34px; height:34px; border-radius:999px;
  border:1px solid rgba(217,179,108,.55);
  box-shadow: var(--glow);
  backdrop-filter: blur(6px);
}
.cursor-dot{
  width:6px; height:6px; border-radius:999px;
  background: rgba(217,179,108,.95);
  box-shadow: 0 0 22px rgba(217,179,108,.55);
}
@media (pointer:coarse){
  .cursor,.cursor-dot{display:none !important}
}

/* Top-right theme toggle */
.theme-toggle{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.theme-toggle:hover{transform: translateY(-1px); background: rgba(255,255,255,.10); border-color: rgba(217,179,108,.35)}
.theme-toggle .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(217,179,108,.55);
}

/* Hero enhancement */
.hero{position:relative; isolation:isolate}
.hero .container{position:relative; z-index:2}
.hero-card{box-shadow: var(--shadow)}
.hero-badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(217,179,108,.22);
  background: rgba(217,179,108,.08);
  color: var(--muted2);
  margin-bottom: 14px;
}
.hero-badge b{color: var(--gold)}
.h1{letter-spacing:-.7px}
.gold{color: var(--gold)}
/* Subtle animated underline */
.gold.under{
  background: linear-gradient(90deg, rgba(217,179,108,.0), rgba(217,179,108,.55), rgba(217,179,108,.0));
  background-size: 220% 100%;
  -webkit-background-clip:text; background-clip:text;
  color: transparent;
  animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer{0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%}}

/* “How we work” flow */
.flow{
  display:grid; grid-template-columns: repeat(4,1fr); gap:14px;
}
@media (max-width:900px){.flow{grid-template-columns:1fr;}}
.flow-step{
  padding:18px; border-radius:18px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  position:relative;
}
.flow-step .num{
  position:absolute; top:14px; left:14px;
  width:38px; height:38px; border-radius:14px;
  display:grid; place-items:center;
  color: var(--ink2);
  background: rgba(217,179,108,.95);
  font-weight:900;
}
.flow-step h3{margin:46px 0 8px; font-size:18px}
.flow-step p{margin:0; color:var(--muted); font-size:14px; line-height:1.8}

/* Horizontal cinematic projects rail */
.rail-wrap{position:relative}
.rail{
  display:flex; gap:16px; overflow-x:auto; padding:6px 2px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar{height:10px}
.rail::-webkit-scrollbar-thumb{background:rgba(217,179,108,.26); border-radius:999px}




.project-card{
  min-width: 34px; max-width: 340px;
  scroll-snap-align: start;
  border-radius: 20px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.project-card .top{
  padding:18px;
  display:flex; align-items:center; justify-content:space-between;
}
.tag{
  font-size:12px; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(217,179,108,.25);
  background: rgba(217,179,108,.10);
  color: var(--gold);
}
.mock{
  height: 180px;
  margin: 0 18px 18px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(400px 220px at 20% 20%, rgba(217,179,108,.22), transparent 60%),
    radial-gradient(320px 220px at 80% 30%, rgba(95,143,122,.20), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.40));
  position:relative;
}
.mock:after{
  content:"";
  position:absolute; inset:14px;
  border-radius: 12px;
  border:1px dashed rgba(217,179,108,.38);
  opacity:.9;
}
.project-card h4{margin:0 18px 8px; font-size:18px}
.project-card p{margin:0 18px 18px; color:var(--muted); font-size:14px; line-height:1.8}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important}
  .orb{display:none}
}




















































/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0f0f0f;
  color: #fff;
}

/* ===== SECTION ===== */
.section {
  padding: 5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  color: #888;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SCROLLABLE CARDS CONTAINER ===== */
.scrollable-cards {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* ===== CARDS GRID WITH NATIVE SCROLLBAR ===== */
.cards-grid {
  display: flex;
  gap: 2rem;
  padding: 1rem 0.5rem 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  
  /* تخصيص شريط التمرير الأساسي - يعمل على جميع المتصفحات */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #D9B36C rgba(255, 255, 255, 0.1); /* Firefox */
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    height: 10px;
  }
  
  /* Track */
  &::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 2rem;
  }
  
  /* Handle */
  &::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #4a9eff, #0066ff);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-clip: padding-box;
  }
  
  /* Handle on hover */
  &::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #5ab1ff, #0077ff);
  }
  
  /* Handle on active */
  &::-webkit-scrollbar-thumb:active {
    background: linear-gradient(90deg, #3a8bff, #0055ee);
  }
  
  /* Buttons (arrows) */
  &::-webkit-scrollbar-button {
    display: none;
  }
}

/* ===== PROJECT CARD ===== */
.project-card {
  flex: 0 0 320px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(74, 158, 255, 0.9);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-body p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-features span {
  color: #888;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== CUSTOM SCROLLBAR FOR ALL BROWSERS ===== */

/* For Internet Explorer */
.cards-grid {
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-face-color: #D9B36C;
  scrollbar-track-color: rgba(255, 255, 255, 0.1);
  scrollbar-arrow-color: #D9B36C;
  scrollbar-shadow-color: #D9B36C;
  scrollbar-highlight-color: #D9B36C;
  scrollbar-3dlight-color: rgba(255, 255, 255, 0.1);
  scrollbar-darkshadow-color: rgba(0, 0, 0, 0.3);
}

/* For Edge */
@supports (-ms-ime-align: auto) {
  .cards-grid {
    -ms-overflow-style: auto;
  }
}

/* Scrollbar for Safari on Mac */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    .cards-grid {
      padding-bottom: 3rem;
    }
    
    .cards-grid::-webkit-scrollbar {
      height: 12px;
    }
    
    .cards-grid::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
      margin: 0 2rem;
    }
    
    .cards-grid::-webkit-scrollbar-thumb {
      background: linear-gradient(90deg, #D9B36C, #0066ff);
      border-radius: 10px;
      border: 3px solid transparent;
      background-clip: content-box;
    }
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1024px) {
  .section {
    padding: 4rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cards-grid {
    gap: 1.5rem;
    padding-bottom: 2.5rem;
  }
  
  .project-card {
    flex: 0 0 280px;
  }
  
  .card-image {
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cards-grid {
    gap: 1rem;
    padding: 1rem 0.5rem 2.5rem;
  }
  
  .project-card {
    flex: 0 0 260px;
  }
  
  .card-image {
    height: 160px;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .card-body h3 {
    font-size: 1.2rem;
  }
  
  /* Mobile scrollbar adjustments */
  .cards-grid::-webkit-scrollbar {
    height: 8px;
  }
  
  .cards-grid {
    scrollbar-width: thin;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .cards-grid {
    gap: 0.75rem;
  }
  
  .project-card {
    flex: 0 0 240px;
  }
  
  .card-image {
    height: 140px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-features span {
    font-size: 0.8rem;
  }
}

/* ===== SCROLLBAR HINTS ===== */
.scroll-hint {
  text-align: center;
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeInOut 3s ease-in-out infinite;
}

.scroll-hint::before {
  content: '↔';
  font-size: 1.2rem;
  color: #D9B36C;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== ENHANCED SCROLLBAR STYLES ===== */

/* Modern scrollbar with gradient */
.cards-grid {
  /* Firefox enhanced */
  scrollbar-width: thin;
  scrollbar-color: #D9B36C #1a1a1a;
  
  /* Chrome/Safari enhanced */
  &::-webkit-scrollbar {
    height: 12px;
    background: transparent;
  }
  
  &::-webkit-scrollbar-track {
    background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    margin: 0 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  &::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, 
      #4a9eff 0%,
      #0066ff 50%,
      #4a9eff 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  /* Add shine effect to scrollbar thumb */
  &::-webkit-scrollbar-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%);
    animation: scrollbarShine 2s infinite;
  }
}

@keyframes scrollbarShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Dark mode support for scrollbar */
@media (prefers-color-scheme: dark) {
  .cards-grid {
    scrollbar-color: #D9B36C #2a2a2a;
    
    &::-webkit-scrollbar-track {
      background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.3) 100%);
    }
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .cards-grid {
    scrollbar-color: #0066cc #000000;
    
    &::-webkit-scrollbar-thumb {
      background: #0066cc;
      border: 2px solid #ffffff;
    }
  }
}