:root{
--brand-accent: #FF382E;
--bg: #000000;
--panel: #0c0c0c;
--muted: #8d8d8d;
--muted-2: #6f6f6f;
--glass: rgba(255,255,255,0.03);
--white: #ffffff;
--success: #2ecc71;
--danger: #e74c3c;
--warning: #f39c12;
--max-width: 1200px;
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 18px;
--btn-radius: 12px;
--shadow-xs: 0 2px 6px rgba(0,0,0,0.5);
--shadow-sm: 0 6px 18px rgba(0,0,0,0.65);
--shadow-lg: 0 20px 50px rgba(0,0,0,0.7);
--easing: cubic-bezier(.16,.84,.26,1);
--font-sans: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--fw-regular: 400;
--fw-medium: 500;
--fw-semibold: 600;
--fw-bold: 700;
--base-font-size: 16px;
--line-height-base: 1.5;
--bp-sm: 640px;
--bp-md: 900px;
--bp-lg: 1200px;
--bp-xl: 1600px;
}
*,
*::before,
*::after { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html,body,div,h1,h2,h3,h4,p { margin:0; padding:0; border:0; }
html, body { height:100%; font-family: var(--font-sans); background: var(--bg); color: var(--white); font-size: var(--base-font-size); line-height: var(--line-height-base); -webkit-text-size-adjust:100%; }
img, video { display:block; max-width:100%; height:auto; }
:focus { outline: none; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
h1,h2,h3,h4 { color:var(--white); line-height:1.05; letter-spacing: -0.02em; margin:0 0 12px 0; }
h1 { font-weight: var(--fw-bold); font-size: clamp(28px, 6.5vw, 64px); }
h2 { font-weight: var(--fw-semibold); font-size: clamp(22px, 4.4vw, 40px); }
h3 { font-weight: var(--fw-medium); font-size: clamp(18px, 3.2vw, 28px); }
h4 { font-weight: var(--fw-medium); font-size: 18px; }
p { font-size: 15px; color: #eaeaea; }
.site-header {
position: fixed;
width:100%;
top:0;
left:0;
z-index:60;
background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
backdrop-filter: blur(6px);
border-bottom: 1px solid rgba(255,255,255,0.03);
}
.site-header .container { display:flex; align-items:center; justify-content:space-between; padding: 14px 20px; }
.site-brand {
display:flex; align-items:center; gap:12px;
}
.site-nav { display:flex; gap:18px; align-items:center; }
.site-nav a { color: #cfcfcf; padding:8px 10px; border-radius:8px; font-weight:500; transition: all 160ms var(--easing); }
.site-nav a:hover { color:var(--white); transform: translateY(-2px); box-shadow: var(--shadow-xs); }
.hero {
position: relative;
width:100%;
min-height: 72vh;
display:flex;
align-items:center;
justify-content:center;
color: var(--white);
overflow: hidden;
}
.hero__bg {
position:absolute; inset:0;
background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.6)), url('/assets/hero-fallback.jpg') center/cover no-repeat;
z-index:0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
  z-index: 0;
  pointer-events: none;
}
.hero__overlay {
position:absolute; inset:0; z-index:5; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.6));
}
.hero__content { position:relative; z-index:10; text-align:center; max-width:1000px; padding: 40px 20px; }
.hero .eyebrow { color:var(--muted); letter-spacing: 0.08em; text-transform:uppercase; font-size:12px; margin-bottom:10px; }
.hero .title { font-weight: 800; font-size: clamp(32px, 6vw, 64px); margin-bottom:12px; }
.hero .subtitle { font-size: clamp(15px, 2vw, 20px); color:#ddd; margin-bottom:22px; }
.hero .cta-row { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn {
display:inline-flex; align-items:center; gap:10px; justify-content:center;
padding: 10px 16px;
font-weight:600;
border-radius: var(--btn-radius);
transition: transform 160ms var(--easing), box-shadow 160ms var(--easing), opacity 120ms var(--easing);
-webkit-tap-highlight-color: transparent;
user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
background: linear-gradient(90deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 90%, black 10%));
color: #fff;
box-shadow: 0 12px 30px rgba(255,56,46,0.12);
}
.btn-ghost {
background: transparent;
border: 1px solid rgba(255,255,255,0.06);
color: #fff;
padding: 9px 14px;
}
.btn-outline {
background: transparent;
border: 1px solid rgba(255,56,46,0.18);
color: var(--brand-accent);
}
.btn-sm { padding:6px 10px; font-size:14px; border-radius: 8px; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(255,56,46,0.12); outline:none; }
.card {
background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
border-radius: var(--radius-md);
padding:16px;
box-shadow: var(--shadow-xs);
border: 1px solid rgba(255,255,255,0.03);
overflow:hidden;
}
.card__media { border-radius: calc(var(--radius-md) - 4px); overflow:hidden; margin-bottom:12px; }
.card__title { font-weight: 600; font-size:16px; margin-bottom:6px; }
.card__meta { color:var(--muted); font-size:13px; }
.cards { display:grid; grid-template-columns: repeat(1, 1fr); gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.site-footer {
padding: 40px 0;
border-top: 1px solid rgba(255,255,255,0.03);
margin-top: 60px;
color: var(--muted);
background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
}
.site-footer .container { display:flex; gap:24px; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; }
.site-footer a { color:var(--muted); font-size:14px; }
.reveal {
opacity:0; transform: translateY(8px) scale(0.995); transition: opacity 1520ms var(--easing), transform 1520ms var(--easing);
will-change: opacity, transform;
}
.reveal.in {
  opacity:1; transform: translateY(0) scale(1);
}
.glow {
position:relative;
}
.glow::after {
content:"";
position:absolute; inset:-10px; z-index:-1; border-radius: 14px;
background: radial-gradient(closest-side, rgba(255,56,46,0.12), transparent 60%);
filter: blur(12px);
opacity:0; transition: opacity 180ms var(--easing);
}
.glow:hover::after { opacity:1; }
@media print {
body { background: #fff; color: #000; }
.site-header, .site-footer, .btn { display:none !important; }
.container { max-width:100%; padding:0; }
}
@media (prefers-reduced-motion: reduce) {
.reveal, .btn, .hero__video { transition:none !important; animation:none !important; }
}
.hero + .section { margin-top: 12px; }
.section {
padding: 48px 0;
position: relative;
}
.section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.section-title h2 { margin:0; }
:focus-visible {
outline: 3px solid rgba(255,56,46,0.12);
outline-offset: 2px;
border-radius: 8px;
}
html {
scroll-behavior: smooth;
}
.hero__overlay {
background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.75)),
linear-gradient(90deg, rgba(255,56,46,0.15), transparent 60%);
}
.site-nav a.active,
.site-nav a:hover {
color: var(--brand-accent);
position: relative;
}
.site-nav a.active::after,
.site-nav a:hover::after {
content: "";
position: absolute;
bottom: 2px;
left: 0;
width: 100%;
height: 2px;
background: var(--brand-accent);
border-radius: 2px;
}
.logo-box {
display: flex;
align-items: center;
background: transparent;
padding: 10px;
}
.logo-glow {
position: relative;
width: 85px;
height: 85px;
display: flex;
align-items: center;
justify-content: center;
margin-right: -10px;
}
.logo-glow::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background: radial-gradient(
circle,
rgba(255, 56, 46, 0.6) 0%,
rgba(255, 56, 46, 0.27) 25%,
rgba(255, 56, 46, 0.09) 55%,
rgba(255, 56, 46, 0.03) 75%,
rgba(255, 56, 46, 0) 100%
);
filter: blur(12px);
z-index: 0;
}
.logo-glow img {
width: 70%;
height: auto;
z-index: 1;
}
.logo-text {
color: white;
line-height: 1.05;
}
.logo-text h1 {
font-size: 1.6rem;
font-weight: 750;
letter-spacing: 1.5px;
margin: 0;
}
.logo-text h2 {
font-size: 0.9rem;
font-weight: 400;
letter-spacing: 0.3px;
margin: 0;
opacity: 0.85;
}
.site-header .container {
padding: 4px 20px;
max-width: 1300px;
margin: 0 auto;
}
.container {
max-width: 1400px;
margin: 0 auto;
}
.logo-box {
padding: 2px 4px;
}
.logo-glow {
width: 68px;
height: 68px;
margin-right: 2px;
}
.logo-glow img {
width: 70%;
}
.logo-text h1 {
font-size: 1.55rem;
letter-spacing: 1px;
}
.logo-text h2 {
font-size: 0.88rem;
letter-spacing: 0.1px;
}
.site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 160;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(8px);
padding: 8px 0;
}
.site-header::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
background: linear-gradient(
to right,
rgba(255, 56, 46, 0.3) 0%,
rgba(255, 56, 46, 0.6) 50%,
rgba(255, 56, 46, 0.3) 100%
);
pointer-events: none;
}
.site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 160;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(8px);
padding: 4px 0;
overflow: hidden;
}
.site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 160;
background: rgba(0, 0, 0, 0.35);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
padding: 4px 0;
overflow: hidden;
}
.site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 160;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(8px);
padding: 4px 0;
overflow: hidden;
}
.site-header::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
background: linear-gradient(
to right,
rgba(255, 56, 46, 0.3) 0%,
rgba(255, 56, 46, 0.6) 50%,
rgba(255, 56, 46, 0.3) 100%
);
pointer-events: none;
}
.logo-box {
transition: transform 1.25s var(--easing);
transform-origin: center;
transform: scale(0.9);
}
.logo-glow::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background: radial-gradient(
circle,
rgba(255, 56, 46, 0.25) 0%,
rgba(255, 56, 46, 0.15) 33%,
rgba(255, 56, 46, 0.05) 66%,
rgba(255, 56, 46, 0) 100%
);
filter: blur(12px);
z-index: 0;
}
.site-header {
padding: 2px 0 !important;
min-height: 69px !important;
transition: none !important;
box-shadow: none !important;
}
.site-header .container {
padding: 2px 18px !important;
align-items: center;
min-height: 69px;
}
.logo-glow {
width: 56px !important;
height: 56px !important;
margin-right: 4px !important;
transition: none !important;
}
.logo-glow img {
width: 68% !important;
}
.logo-box:hover {
transform: scale(1.05);
}
.hero {
position: relative;
width: 100%;
height: 100vh;
aspect-ratio: 16 / 9;
overflow: hidden;
}
.hero__grid {
position: absolute;
inset: 0;
z-index: 6;
pointer-events: none;
background-image:
linear-gradient(to right, rgba(255, 56, 46, 0.85) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 56, 46, 0.85) 1px, transparent 1px);
background-size: 60px 60px;
mix-blend-mode: overlay;
opacity: 0.75;
}
.hero__video,
.hero__bg,
.hero__overlay {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.hero__vignette {
position: absolute;
inset: 0;
z-index: 7;
pointer-events: none;
background: radial-gradient(
circle at center,
rgba(0, 0, 0, 0) 35%,
rgba(0, 0, 0, 0.75) 100%
);
opacity: 0.95;
}
.hero__filter {
position: absolute;
inset: 0;
z-index: 8;
pointer-events: none;
background-image:
repeating-linear-gradient(
to bottom,
rgba(255, 56, 46, 0.10) 0px,
rgba(255, 56, 46, 0.10) 2px,
transparent 4px
);
mix-blend-mode: screen;
opacity: 0.35;
animation:
monitorFlicker 4s ease-in-out infinite,
scanDrift 1.2s linear infinite;
}
@keyframes monitorFlicker {
0%, 100% { opacity: 0.3; }
50% { opacity: 0.4; }
}
@keyframes scanDrift {
0% { background-position: 0 0; }
100% { background-position: 0 4px; }
}
.site-footer::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 1px;
background: linear-gradient(
to right,
rgba(255, 56, 46, 0.3) 0%,
rgba(255, 56, 46, 0.6) 50%,
rgba(255, 56, 46, 0.3) 100%
);
pointer-events: none;
z-index: 10;
}
.site-footer::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 1px;
background: linear-gradient(
to right,
rgba(255, 56, 46, 0.3) 0%,
rgba(255, 56, 46, 0.6) 50%,
rgba(255, 56, 46, 0.3) 100%
);
pointer-events: none;
z-index: 10;
}
.hero::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
background: linear-gradient(
to right,
rgba(255, 56, 46, 0.3) 0%,
rgba(255, 56, 46, 0.6) 50%,
rgba(255, 56, 46, 0.3) 100%
);
pointer-events: none;
z-index: 15;
}
.site-footer {
position: relative;
}
.site-footer::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 1px;
background: linear-gradient(
to right,
rgba(255, 56, 46, 0.3) 0%,
rgba(255, 56, 46, 0.6) 50%,
rgba(255, 56, 46, 0.3) 100%
);
pointer-events: none;
z-index: 15;
}
.featured-projects {
position: relative;
background-color: #000;
overflow: hidden;
}
.section {
position: relative;
}
.section.featured-projects {
position: relative;
overflow: hidden;
padding: 48px 0;
background-color: #000;
}
.featured-projects .cards {
position: relative;
z-index: 1;
}
.featured-projects .reveal {
position: relative;
z-index: 1;
}
.featured-projects {
position: relative;
overflow: hidden;
}
.featured-projects .container {
position: relative;
z-index: 2;
}
@media (min-width: 1200px) {
.section .container,
.hero__content,
.featured-projects .container,
.site-footer .container {
max-width: calc(1400px - 100px) !important;
margin-left: auto !important;
margin-right: auto !important;
}
.site-header .container {
max-width: 1400px !important;
}
}
.site-nav a:hover,
.site-nav a:focus {
box-shadow: none !important;
}
.site-footer {
position: relative;
padding: 48px 0 28px;
background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
color: var(--muted);
}
.site-footer .footer-grid {
display: flex;
gap: 28px;
align-items: flex-start;
justify-content: space-between;
flex-wrap: wrap;
}
.site-footer .footer-left,
.site-footer .footer-right {
flex: 1 1 320px;
min-width: 280px;
}
.site-footer .footer-logo .logo-box {
display:flex;
align-items:center;
gap:12px;
padding: 6px 0;
transform: none !important;
transition: none !important;
}
.site-footer .footer-logo .logo-glow {
width: 68px;
height: 68px;
margin-right: 8px;
transition: none !important;
}
.site-footer .footer-logo .logo-glow::before {
filter: blur(10px);
opacity: .95;
}
.site-footer .footer-logo .logo-text h1,
.site-footer .footer-logo .logo-text h2 {
color: var(--white);
opacity: .95;
}
.site-footer .footer-desc {
margin-top: 12px;
color: #cdcdcd;
font-size: 18px;
max-width: 480px;
}
.site-footer .footer-social {
display:flex;
gap:12px;
margin-top:14px;
flex-wrap:wrap;
}
.site-footer .footer-social .social-btn {
display:inline-flex;
align-items:center;
justify-content:center;
width:50px;
height:50px;
border-radius: 10px;
background: rgba(255,255,255,0.04);
color: var(--muted);
text-decoration: none;
font-size: 18px;
transition:
transform 160ms var(--easing),
background 180ms var(--easing),
color 180ms var(--easing),
box-shadow 180ms var(--easing);
-webkit-tap-highlight-color: transparent;
user-select: none;
}
.site-footer .footer-social .social-btn:hover {
transform: scale(1.08);
background: var(--social-brand, var(--brand-accent));
color: #fff;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.site-footer .footer-right .footer-legal-title {
color: var(--brand-accent);
font-size: 18px;
font-weight: 600;
margin-bottom: 10px;
}
.site-footer .footer-right .footer-legal-link {
display: block;
color: var(--muted);
font-size: 15px;
margin-bottom: 8px;
text-decoration: none;
transition: color 180ms var(--easing), opacity 180ms var(--easing);
}
.site-footer .footer-right .footer-legal-link:hover {
color: var(--brand-accent);
opacity: 1;
}
.site-footer .footer-divider-wrap {
width: 100%;
margin-top: 24px;
margin-bottom: 14px;
display:flex;
justify-content:center;
}
.site-footer .footer-divider {
height: 1px;
width: 100%;
max-width: 100%;
background: linear-gradient(90deg,
rgba(255,56,46,0.0) 0%,
rgba(255,56,46,0.9) 50%,
rgba(255,56,46,0.0) 100%);
opacity: 0.85;
}
.site-footer .footer-bottom {
padding-top: 6px;
padding-bottom: 6px;
display:flex;
justify-content: center;
align-items:center;
}
.site-footer .footer-bottom p {
color: var(--muted);
font-size: 13px;
margin: 0;
}
@media (max-width: 899px) {
.site-footer .footer-grid { flex-direction: column; gap: 18px; align-items: flex-start; }
.site-footer .footer-left,
.site-footer .footer-right { width:100%; min-width: 0; }
.site-footer .footer-social { justify-content: flex-start; }
.site-footer .footer-bottom { padding-top: 14px; }
}
.site-footer .footer-social .social-btn:focus-visible {
outline: 3px solid rgba(255,56,46,0.12);
outline-offset: 2px;
border-radius: 10px;
}
.site-footer .logo-box:hover { transform: none !important; }
@media (min-width: 1200px) {
.section .container,
.hero__content,
.featured-projects .container,
.site-footer .container {
max-width: 1250px !important;
margin-left: auto !important;
margin-right: auto !important;
}
.site-header .container {
max-width: 1400px !important;
}
}
.site-footer .footer-social .social-btn {
display:inline-flex;
align-items:center;
justify-content:center;
width:45px;
height:45px;
border-radius:10px;
background: rgba(255,255,255,0.04);
color: var(--muted);
text-decoration:none;
font-size: 16px;
transition:
transform 160ms var(--easing),
background 180ms var(--easing),
color 180ms var(--easing),
box-shadow 180ms var(--easing),
border-color 160ms var(--easing);
border: 1px solid rgba(255,255,255,0.08);
-webkit-tap-highlight-color: transparent;
user-select: none;
overflow: hidden;
box-sizing: border-box;
}
.site-footer .footer-social .social-btn svg {
width:20px;
height:20px;
display:block;
fill: currentColor;
}
.site-footer .footer-social .social-btn:hover,
.site-footer .footer-social .social-btn:focus {
transform: scale(1.08);
background: var(--social-brand, var(--brand-accent));
color: #fff;
box-shadow: 0 10px 30px rgba(0,0,0,0.45);
border-color: rgba(0,0,0,0.15);
}
.site-footer .footer-social .social-btn:focus-visible {
outline: 3px solid rgba(255,56,46,0.12);
outline-offset: 2px;
border-radius: 10px;
}
.site-footer .footer-divider-wrap {
width: 100%;
margin-top: 70px;
margin-bottom: 14px;
display:flex;
justify-content:center;
}
.site-footer .footer-divider {
height: 1px;
width: 100%;
max-width: 100%;
background: var(--brand-accent);
opacity: .3;
}
.site-footer .footer-bottom {
padding-top: 26px;
padding-bottom: 52px;
display:flex;
justify-content: flex-start;
align-items:center;
}
.site-footer .footer-bottom p {
color: var(--muted);
font-size: 14px;
margin: 0;
}
@media (max-width: 899px) {
.site-footer .footer-grid { flex-direction: column; gap: 18px; align-items: flex-start; }
.site-footer .footer-left,
.site-footer .footer-right { width:100%; min-width: 0; }
.site-footer .footer-social { justify-content: flex-start; }
}
.site-footer .logo-box,
.site-footer .logo-box:hover { transform: none !important; transition: none !important; }

.hero--project {
  position: relative;
  overflow: hidden;
  height: 169px;
  min-height: 169px;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark, #fff);
  text-align: center;
}
.hero--projects {
  position: relative;
  overflow: hidden;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark, #fff);
  text-align: center;
}

.hero--project .hero__overlay,
.hero--projects .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero--project .hero__grid,
.hero--project .hero__vignette,
.hero--projects .hero__grid,
.hero--projects .hero__vignette {
  z-index: 3;
}

.hero--project .hero__content,
.hero--projects .hero__content {
  position: relative;
  z-index: 4;
  max-width: 800px;
}

.hero--projects .title {
  font-size: 3rem;
  margin-bottom: 0.75em;
}

.hero--projects .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  line-height: 1.6;
}

.all-projects .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1100px) {
  .all-projects .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .all-projects .cards {
    grid-template-columns: 1fr;
  }
}

.all-projects .card {
  display: block;
  text-decoration: none;
  background: rgba(12, 12, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing), box-shadow 0.3s var(--easing);
  max-width: 100%;
}

.all-projects .card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 56, 46, 0.4);
  box-shadow: var(--shadow-lg);
}
.all-projects .card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.all-projects .card__title {
  margin: 0.75rem 1rem 0.25rem;
  font-size: 1.25rem;
  color: #fff;
}

.all-projects .card__meta {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #bbb;
}

.hero__content {
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  text-align: center;
}

.hero__dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.all-projects {
  position: relative;
  background-image: radial-gradient(rgba(255, 56, 46, 0.3) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero {
  margin-bottom: 0;
}

.hero + .section {
  margin-top: 0;
}

.featured-projects {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  background-color: inherit;
  background-image: 
    linear-gradient(to right, rgba(255, 56, 46, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 56, 46, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.featured-projects .container {
  padding-top: 48px;
  padding-bottom: 48px;
}

.all-projects .container {
  padding-top: 48px;
  padding-bottom: 48px;
}

.site-footer {
  margin-top: 0;
  padding-top: 48px;
  padding-bottom: 28px;
}

/* ==================== TOP ROW (3 cards) ==================== */
.cards-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-top {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 56, 46, 0.5);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease;
  background-color: #000;
}

.card-top__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.card-top__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 40%, transparent 100%);
  z-index: 2;
}

.card-top__featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--brand-accent);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-top__text {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #fff;
  z-index: 3;
}

.card-top__text h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-top__text p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Open icon in center (hidden by default) */
.card-top__icon {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.card-top__icon span {
  background: none;
  padding: 0;
  font-size: 24px;
  color: #fff;
}

/* Hover Effects */
.card-top:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 56, 46, 1);
}

.card-top:hover .card-top__image {
  transform: scale(1.1);
}

.card-top:hover .card-top__icon {
  opacity: 1;
}

/* ==================== BOTTOM ROW (4 cards) ==================== */
.card-bottom {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 56, 46, 0.5);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease;
  background-color: #000;
}

.card-bottom__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.card-bottom__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 2;
  transition: background 0.3s ease;
}

.card-bottom__icon {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.card-bottom__icon span {
  font-size: 20px;
  color: #fff;
}

/* Title hidden by default, shown on hover */
.card-bottom__title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #fff;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover Effects */
.card-bottom:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 56, 46, 1);
}

.card-bottom:hover .card-bottom__image {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.card-bottom:hover .card-bottom__overlay {
  background: rgba(0,0,0,0.3);
}

.card-bottom:hover .card-bottom__icon {
  opacity: 1;
}

.card-bottom:hover .card-bottom__title {
  opacity: 1;
}

.card-bottom__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  pointer-events: none; /* so hover passes through to the card */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-bottom:hover .card-bottom__overlay {
  opacity: 1;
}

.card-bottom__text-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.card-bottom__title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.card-bottom__icon {
  font-size: 1.5rem;
  color: #fff;
}

.card-top__overlay {
  background: none; /* remove darkening */
}

.card-top__featured {
  border-radius: 999px; /* fully rounded */
  padding: 4px 10px;
}

.card-bottom__game-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(128,128,128,0.4); /* semi-transparent grey */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  z-index: 5;
  pointer-events: none; /* so it doesn't block hover */
}

.card-bottom__overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* stack text and icon vertically */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-bottom:hover .card-bottom__overlay {
  opacity: 1;
}

.card-bottom__text-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.card-bottom:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 56, 46, 1);
}

.card-bottom:hover .card-bottom__image {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.card-top__overlay {
  background: none; /* default: no darkening */
  z-index: 2;
  transition: background 0.3s ease;
}

.card-top:hover .card-top__overlay {
  background: rgba(0, 0, 0, 0.35); /* darken entire card on hover */
}

.card-top__overlay {
  transition: background 0.3s ease, transform 0.3s ease;
}


/* Hover effects remain the same */
.card-bottom:hover .card-bottom__overlay {
  opacity: 1;
}

.card-bottom:hover .card-bottom__title {
  opacity: 1;
}

/* ==================== CARD COMMON STYLES ==================== */
.card-top,
.card-bottom {
  position: relative;
  border: 1px solid rgba(255, 56, 46, 0.5);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease;
  background-color: #000;
}

.card-top__image,
.card-bottom__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, filter 0.3s ease;
}

/* ==================== HOVER EFFECTS ==================== */
.card-top:hover,
.card-bottom:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 56, 46, 1);
}

/* Darken entire card on hover */
.card-top__overlay,
.card-bottom__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0); /* default transparent */
  z-index: 2;
  transition: background 0.3s ease;
}

.card-top:hover .card-top__overlay,
.card-bottom:hover .card-bottom__overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* Image scale on hover */
.card-top:hover .card-top__image,
.card-bottom:hover .card-bottom__image {
  transform: scale(1.1);
  filter: brightness(0.7);
}

/* ==================== TOP CARDS ==================== */
.cards-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-top {
  aspect-ratio: 4 / 3;
}

/* Text overlay */
.card-top__text {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #fff;
  z-index: 3;
}

.card-top__text h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-top__text p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Remove circle behind icon */
.card-top__icon span {
  background: none;
  padding: 0;
  font-size: 24px;
  color: #fff;
}

/* Show icon on hover */
.card-top__icon {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.card-top:hover .card-top__icon {
  opacity: 1;
}

.card-bottom {
  aspect-ratio: 1 / 1;
}

.card-bottom__title {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show text on hover */
.card-bottom:hover .card-bottom__overlay,
.card-bottom:hover .card-bottom__title {
  opacity: 1;
}

/* Optional: icon inside overlay (if needed) */
.card-bottom__icon {
  font-size: 1.5rem;
  color: #fff;
}

/* ==================== FEATURED BADGES ==================== */
.card-top__featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--brand-accent);
  color: #fff;
  border-radius: 999px; /* fully rounded */
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==================== BOTTOM ROW (4 cards) ==================== */
.cards-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -45px;
}

/* Optional: make images responsive */
.card-top__image,
.card-bottom__image {
  width: 100%;
  height: 100%;
}

.intro-featured {
  padding: 30px 20px 0px;
  text-align: center;
}

.intro-featured .intro-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.intro-featured .intro-text {
  font-size: 20px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.text-highlight {
  color: var(--brand-accent);
}

/* ===================== PROJECT DETAILS ===================== */
.project-details {
  position: relative;
  padding: 60px 0;
  min-height: 100vh;
  background: var(--bg);
}

.project-details__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 56, 46, 0.3) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
}

.project-details__grid {
  display: grid;
  grid-template-columns: 1fr 375px;
  gap: 30px;
  align-items: start;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Column Container with Box Styling */
.project-details__column {
   background: rgba(12, 12, 12, 0.8); /* 80% opacity */
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all 0.3s var(--easing);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.project-details__column:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 56, 46, 0.4);
  box-shadow: var(--shadow-lg);
}

.project-details__content {
  padding: 30px;
}

/* Right Column Cover Image */
.project-cover {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-cover__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Left Column Styles */
.project-details__left {
  max-width: 100%;
}

.project-description h2 {
  font-size: 26px;
  margin-bottom: 18px;
  color: var(--white);
}

.project-description h3 {
  font-size: 18px;
  margin: 25px 0 12px 0;
  color: var(--white);
}

.project-description p {
  font-size: 15px;
  line-height: 1.6;
  color: #eaeaea;
  margin-bottom: 18px;
}

.divider {
  height: 1px;
  background: rgba(255,56,46,0.3);
  margin: 25px 0;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  color: #eaeaea;
  font-size: 14px;
}

.feature-list li::before {
  content: "•";
  color: var(--brand-accent);
  position: absolute;
  left: 8px;
  font-weight: bold;
}

/* Right Column Styles */
.project-details__right {
  position: sticky;
  top: 90px;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.project-title {
  font-size: 24px;
  font-weight: var(--fw-bold);
  color: var(--white);
  margin: 0;
  line-height: 1.1;
}

.store-button {
  white-space: nowrap;
  align-self: flex-start;
}

.overview-section {
  margin-bottom: 20px;
}

.overview-section h3 {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--white);
  margin-bottom: 10px;
}

.overview-text {
  font-size: 14px;
  line-height: 1.5;
  color: #cdcdcd;
}

/* Skills Section */
.skills-section {
  margin-bottom: 18px;
}

.skills-section h3 {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--white);
  margin-bottom: 14px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all 0.3s var(--easing);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.skill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 56, 46, 0.3);
  box-shadow: var(--shadow-xs);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.skill-icon-container {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--brand-accent); /* Fully opaque brand color */
  border: 1px solid var(--brand-accent); /* Matching border */
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--easing);
}

.skill-card:hover .skill-icon-container {
  background: var(--brand-accent); /* Stay opaque on hover */
  border-color: var(--brand-accent); /* Stay matching on hover */
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(255, 56, 46, 0.3); /* Add glow effect on hover */
}

.skill-icon {
  width: 20px;
  height: 20px;
  color: var(--white); /* White icons */
  transition: all 0.3s var(--easing);
}

.skill-card:hover .skill-icon {
  color: var(--white); /* Stay white on hover */
  transform: scale(1.1);
}

.skill-content {
  flex: 1;
  min-width: 0;
}

.skill-name {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--white);
  margin: 0 0 3px 0;
  line-height: 1.2;
}

.skill-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Project Meta */
.project-meta {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 18px;
}

.project-meta h3 {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--white);
  margin-bottom: 10px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.meta-item:last-child,
.meta-item:has(+ .divider) {
  border-bottom: none;
}

.meta-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: var(--fw-regular);
}

.meta-value {
  font-size: 13px;
  color: var(--white);
  font-weight: var(--fw-medium);
}

.status-released {
  color: var(--success);
  font-weight: var(--fw-semibold);
}

.status-private {
  color: var(--warning);
  font-weight: var(--fw-semibold);
}

.status-development {
  color: var(--brand-accent);
  font-weight: var(--fw-semibold);
}

/* Responsive Design */
@media (max-width: 1100px) {
  .project-details__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .project-details__right {
    position: static;
  }
  
  .project-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .project-details {
    padding: 40px 0;
  }
  
  .project-details__grid {
    gap: 20px;
  }
  
  .project-details__content {
    padding: 25px 20px;
  }
  
  .project-header {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 22px;
  }
  
  .project-description h2 {
    font-size: 22px;
  }
  
  .project-description h3 {
    font-size: 17px;
  }
  
  .project-details__content {
    padding: 20px 18px;
  }
}

/* ==================== CARD STYLING UPDATES ==================== */

/* Update main card component */
.card {
  background: rgba(12, 12, 12, 0.8); /* 80% opacity like project columns */
  border: 1px solid rgba(255, 255, 255, 0.06); /* Grey outline */
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: all 0.3s var(--easing);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 56, 46, 0.4);
  box-shadow: var(--shadow-sm);
}

/* Update featured top cards */
.card-top {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.06); /* Changed to grey outline */
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing);
  background: rgba(12, 12, 12, 0.8); /* 80% opacity background */
}

.card-top:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 56, 46, 0.4); /* Brand color on hover */
}

/* Update bottom square cards */
.card-bottom {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.06); /* Changed to grey outline */
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing);
  background: rgba(12, 12, 12, 0.8); /* 80% opacity background */
}

.card-bottom:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 56, 46, 0.4); /* Brand color on hover */
}

/* Update all-projects page cards */
.all-projects .card {
  display: block;
  text-decoration: none;
  background: rgba(12, 12, 12, 0.8); /* 80% opacity background */
  border: 1px solid rgba(255, 255, 255, 0.06); /* Grey outline */
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing), box-shadow 0.3s var(--easing);
}

.all-projects .card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 56, 46, 0.4); /* Brand color on hover */
  box-shadow: var(--shadow-lg);
}

/* Update card media for all-projects page */
.all-projects .card__media {
  border-radius: calc(var(--radius-lg) - 4px) calc(var(--radius-lg) - 4px) 0 0;
  overflow: hidden;
  margin-bottom: 0;
}

.all-projects .card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.all-projects .card__title {
  margin: 0.75rem 1rem 0.25rem;
  font-size: 1.25rem;
  color: #fff;
}

.all-projects .card__meta {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #bbb;
}

/* Ensure card content areas maintain proper styling */
.card__media { 
  border-radius: calc(var(--radius-md) - 4px); 
  overflow: hidden; 
  margin-bottom: 12px; 
}

.card__title { 
  font-weight: 600; 
  font-size: 16px; 
  margin-bottom: 6px; 
  color: var(--white);
}

.card__meta { 
  color: var(--muted); 
  font-size: 13px; 
}

/* Keep the featured badge styling the same */
.card-top__featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--brand-accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Update the card overlay colors to work with new backgrounds */
.card-top__overlay,
.card-bottom__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 2;
  transition: background 0.3s ease;
}

.card-top:hover .card-top__overlay,
.card-bottom:hover .card-bottom__overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* Ensure images still scale on hover */
.card-top:hover .card-top__image,
.card-bottom:hover .card-bottom__image {
  transform: scale(1.1);
  filter: brightness(0.7);
}

/* Keep the icon visibility on hover */
.card-top:hover .card-top__icon,
.card-bottom:hover .card-bottom__overlay {
  opacity: 1;
}

.media-grid {
  display: grid;
  gap: 0.75rem;
}

/* === Layout presets === */
.grid-1 { grid-template-columns: repeat(1, 1fr);}
.grid-2 { grid-template-columns: repeat(2, 1fr);}
.grid-3 { grid-template-columns: repeat(3, 1fr);}
.grid-4 { grid-template-columns: repeat(4, 1fr);}
.grid-5 { grid-template-columns: repeat(5, 1fr);}

/* === Media items === */
.media-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Aspect ratios */
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-9-20 { aspect-ratio: 9 / 20; }
.ar-1-1 { aspect-ratio: 1 / 1; }
.ar-4-3 { aspect-ratio: 4 / 3; }

/* Content fits nicely */
.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-item + p,
.media-item + h1,
.media-item + h2,
.media-item + h3,
.media-item + h4{
  margin-top: 18px;
}
.media-grid + p,
.media-grid + h1,
.media-grid + h2,
.media-grid + h3,
.media-grid + h4{
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .project-details__grid {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* ==================== BREADCRUMB NAVIGATION ==================== */
    .breadcrumb-nav {
      position: absolute;
	  top: calc(59px + (100% - 59px) / 2);
      left: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      width: 100%;
      max-width: var(--max-width);
	  height: 20px;
      padding: 0 20px;
      box-sizing: border-box;
    }
	
    .breadcrumb-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: transparent;
      border: 1px solid transparent;
      border-radius: var(--btn-radius);
      transition: all 0.3s var(--easing);
      color: var(--muted);
    }
	
	
    .breadcrumb-item img{
      fill: currentColor;
    }
    
    .breadcrumb-item:hover {
      transform: translateY(-2px);
      background: rgba(255, 56, 46, 0.1);
      border-color: rgba(255, 56, 46, 0.4);
      color: var(--brand-accent);
      box-shadow: var(--shadow-xs);
    }
    
.breadcrumb-item.active:hover {
  background: rgba(255, 56, 46, 0.1);
  border-color: rgba(255, 56, 46, 0.3);
  color: var(--brand-accent);
  transform: none;
  box-shadow: none;
}
    .breadcrumb-item.active {
      background: rgba(255, 56, 46, 0.1);
      border-color: rgba(255, 56, 46, 0.3);
      color: var(--brand-accent);
    }
    
    .breadcrumb-item.clickable {
      cursor: pointer;
    }
    
    .breadcrumb-item.not-clickable {
      cursor: default;
    }
    
    .breadcrumb-separator {
      color: var(--muted);
      font-weight: 600;
    }
    
.breadcrumb-container {
	position: absolute;
	bottom: 0px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	width: 100%;
	height: 100%;
	max-width: var(--max-width);
	padding: 0 20px;
	box-sizing: border-box;
	}

.breadcrumb-item svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

/* ==================== SEARCH STYLES ==================== */
.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -45px;
  margin-bottom: 60px;
  max-width: 525px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar {
  position: relative;
  width: 100%;
  background: rgba(12, 12, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 12px;
  transition: all 0.3s var(--easing);
  box-shadow: var(--shadow-sm);
}
.search-bar:focus-within {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(255, 56, 46, 0.1);
  transform: translateY(-2px);
}

.search-bar input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 16px;
  padding: 4px;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar input:focus {
  outline: none;
}

.search-divider {
  height: 1px;
  background: rgba(255, 56, 46, 0.3);
  margin: 8px 0px;
  width: 100%;
}

.project-count {
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  padding: 4px;
}

.count-number {
  color: var(--brand-accent);
  font-weight: var(--fw-semibold);
}

/* ==================== NO RESULTS STYLES ==================== */
.no-projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  color: var(--muted);
  grid-column: 1 / -1; /* Make it span all columns */
}

.no-projects h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--white) !important;
  font-weight: 900 !important;
}

.no-projects p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
  color: var(--muted) !important;
  margin: 0 auto;
}

/* ==================== RESPONSIVE BREAKPOINTS FOR FEATURED CARDS ==================== */

/* Shared breakpoint: Top row 3→1, Bottom row 4→2 */
@media (max-width: 850px) {
  /* Top row: switch to single column */
  .cards-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Bottom row: switch to 2x2 grid */
  .cards-bottom {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Force bottom row to stay 2 columns even on mobile */
@media (max-width: 480px) {
  .cards-bottom {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}

/* ==================== HAMBURGER MENU & SIDEBAR ==================== */

/* Hamburger Button (Mobile Only) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 65;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.5s var(--easing);
  margin: 2px 0;
}

/* Sidebar Styles - FIXED */
.sidebar {
  position: fixed;
  top: 0;
  right: 0; /* FIXED: Changed from left to right */
  width: 280px;
  height: 100vh;
  background: var(--bg); /* FIXED: Opaque dark background */
  border-left: 1px solid rgba(255, 56, 46, 0.3); /* FIXED: Changed from right to left border */
  z-index: 70;
  transform: translateX(100%); /* FIXED: Changed from -100% to 100% */
  transition: transform 0.5s var(--easing);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar.active {
  transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky; /* FIXED: Keep header visible while scrolling */
  top: 0;
  background: var(--bg); /* FIXED: Match sidebar background */
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
}

.sidebar-brand .logo-glow {
  width: 40px;
  height: 40px;
}

.sidebar-menu-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

/* Close Button */
.sidebar-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.35s ease;
}

.sidebar-close:hover {
  color: var(--brand-accent);
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  flex-grow: 1; /* FIXED: Take remaining space */
}

.sidebar-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0; /* FIXED: Prevent items from shrinking */
}

.sidebar-nav a:hover {
  color: var(--white);
  background: rgba(255, 56, 46, 0.1);
  transform: translateX(4px);
}

body.sidebar-open .hero,
body.sidebar-open .section,
body.sidebar-open .site-footer {
  filter: blur(4px);
  transition: filter 0.5s var(--easing);
}

/* Keep header visible and unblurred */
body.sidebar-open .site-header {
  filter: none;
  position: relative; /* Ensure proper stacking */
  z-index: 68; /* Below overlay */
}

/* Prevent body scroll when sidebar open */
body.sidebar-open {
  overflow: hidden;
}

/* ==================== MEDIA QUERIES ==================== */

/* Desktop: Show regular nav, hide hamburger */
@media (min-width: 769px) {
  .hamburger-btn,
  .sidebar,
  .sidebar-overlay {
    display: none !important;
  }
}

/* Mobile: Show hamburger, hide desktop nav */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  
  .site-nav {
    display: none;
  }
}

/* ==================== SIDEBAR ACTIVE STATE ==================== */

.sidebar-nav a.active {
  color: var(--brand-accent);
  background: rgba(255, 56, 46, 0.1);
  border-left: 3px solid var(--brand-accent);
}

/* Remove hover transform for active state */
.sidebar-nav a.active:hover {
  transform: none;
  background: rgba(255, 56, 46, 0.15);
}

/* Hide regular header when sidebar is open (mobile only) */
@media (max-width: 768px) {
  body.sidebar-open .site-header {
    display: none;
  }
}
