:root {
    --gold: #c5a059;
    --gold-dark: #a38345;
    --bg: #0f0f0f;
    --bg-darker: #080808;
    --bg-panel: #161616;
    --white: #ffffff;
    --ink: #e0e0e0;
    --ink-soft: #aaaaaa;
    --line: rgba(255, 255, 255, 0.08);
    --gold-line: rgba(197, 160, 89, 0.25);
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --font-display: 'Cairo', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cairo', sans-serif; background: var(--bg); color: var(--ink); direction: rtl; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; font-family: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 25px; }

/* Section spacing */
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }

/* Header */
.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(15, 15, 15, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 15px 0; transition: 0.4s; }
.nav { display: flex; justify-content: space-between; align-items: center; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { background: var(--gold); color: var(--bg); font-weight: 900; padding: 5px 12px; font-size: 20px; }
.brand-text span { color: var(--white); font-weight: 700; display: block; font-size: 16px; }
.brand-text small { color: var(--gold); font-size: 10px; letter-spacing: 1px; display: block; }

.nav-links a { color: var(--white); text-decoration: none; margin: 0 12px; font-size: 14px; font-weight: 600; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--white); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 15px; transition: 0.3s; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: none; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; right: 8px; left: 8px; height: 2px; background: var(--white); transition: 0.3s; }
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; font-weight: 700; cursor: pointer; text-decoration: none; transition: 0.3s; font-size: 14px; border-radius: 2px; font-family: inherit; }
.btn-solid { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.btn-solid:hover { background: transparent; color: var(--gold); }
.btn-outline, .btn-gold-outline { border: 1px solid var(--gold); color: var(--gold); padding: 12px 28px; text-decoration: none; font-size: 14px; font-weight: 700; background: transparent; }
.btn-outline:hover, .btn-gold-outline:hover { background: var(--gold); color: var(--bg); }

/* Typography */
.eyebrow { display: inline-block; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.lede { color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.display-2 { font-family: var(--font-display); color: var(--white); font-size: 42px; font-weight: 800; line-height: 1.3; }
.display-3 { font-family: var(--font-display); color: var(--white); font-size: 30px; font-weight: 800; line-height: 1.3; }
.display-1 { font-family: var(--font-display); color: var(--white); font-size: 50px; font-weight: 900; line-height: 1.25; }
.badge { display: inline-block; border: 1px solid var(--gold-line); color: var(--gold); background: rgba(197,160,89,0.08); padding: 6px 16px; border-radius: 30px; font-size: 12.5px; font-weight: 700; }
.card { background: var(--bg-panel); border: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.card:hover { border-color: var(--gold); }

.filter-wrapper { margin: 40px 0; overflow-x: auto; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-bar button { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); padding: 9px 20px; border-radius: 30px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: 0.3s; white-space: nowrap; }
.filter-bar button:hover { border-color: var(--gold); color: var(--gold); }
.filter-bar button.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* Portfolio Grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.project-card { background: var(--bg-panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: 0.4s; text-decoration: none; }
.project-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.project-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: grayscale(30%); transition: 0.5s; }
.project-card:hover .project-img { filter: grayscale(0%); }
.project-info { padding: 20px; }
.project-info h3 { color: var(--white); font-size: 18px; margin-bottom: 5px; }
.project-info p { color: var(--gold); font-size: 13px; }

/* Footer */
.site-footer { background: var(--bg-darker); padding: 80px 0 30px; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--ink-soft); font-size: 14px; max-width: 320px; }
.footer-col h4 { color: var(--gold); margin-bottom: 25px; font-size: 18px; }
.footer-links a { display: block; color: var(--ink-soft); text-decoration: none; margin-bottom: 12px; transition: 0.3s; font-size: 14px; }
.footer-links a:hover { color: var(--gold); transform: translateX(-5px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 30px; border-top: 1px solid var(--line); }
.footer-bottom p { color: var(--ink-soft); font-size: 13px; }

/* Utils */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 38px; color: var(--white); margin-bottom: 15px; font-weight: 800; }
.gold-text { color: var(--gold); }
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .nav-links { position: fixed; top: 0; right: -100%; width: 78%; max-width: 340px; height: 100vh; background: var(--bg-darker); flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 40px; transition: right 0.4s var(--ease); display: flex; box-shadow: -20px 0 60px rgba(0,0,0,.4); }
    .nav-links.is-open { right: 0; }
    .nav-links a { margin: 0; font-size: 17px; }
    .nav-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
   Room Planner (free 2D room-design tool)
   ============================================================ */
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--white); padding: 12px 28px; font-weight: 700; cursor: pointer; font-size: 14px; font-family: inherit; transition: 0.3s; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.planner-app { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .planner-app { grid-template-columns: 1fr; } }

.planner-sidebar { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.planner-block h4 { font-size: 13px; font-weight: 700; color: var(--white); margin: 0 0 12px; }

.room-type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.room-type-chips button { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-size: 12.5px; font-family: inherit; padding: 8px 14px; border-radius: 30px; cursor: pointer; transition: 0.25s; }
.room-type-chips button.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }

.tool-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool-buttons button { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-size: 12.5px; font-family: inherit; padding: 10px 12px; border-radius: 4px; cursor: pointer; transition: 0.25s; }
.tool-buttons button.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }

.furniture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.furniture-grid button { border: 1px solid var(--line); background: var(--bg-darker); color: var(--ink-soft); font-size: 12px; font-family: inherit; padding: 12px 8px; border-radius: 4px; text-align: center; cursor: pointer; transition: 0.25s; }
.furniture-grid button:hover { border-color: var(--gold); color: var(--white); }

.planner-canvas-wrap { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 12px; overflow: hidden; }
#plannerCanvas { width: 100%; height: auto; display: block; border-radius: 4px; touch-action: none; cursor: crosshair; }

.planner-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
