*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #050505;
  color: #b4b4b4;
  font: 16px/1.65 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] .header-inner { flex-direction: row-reverse; }
body[dir="rtl"] .lang-switcher { left: 0; right: auto; }
body[dir="rtl"] #langMenu { left: 0; right: auto; }
body[dir="rtl"] .nav-links { flex-direction: row-reverse; }
body[dir="rtl"] .hero-badge { flex-direction: row-reverse; }
body[dir="rtl"] footer .container { flex-direction: row-reverse; }
body[dir="rtl"] .contact-grid { direction: rtl; }

#shaderCanvas {
  position: fixed; top: 0; left: 0;
  z-index: -1; pointer-events: none;
  display: block;
}
.shader-fallback #shaderCanvas {
  display: none !important;
}
.shader-fallback {
  background: radial-gradient(ellipse at 50% 30%, #0f1923 0%, #0a0f14 40%, #050505 100%) !important;
}

a { color: #c9923a; text-decoration: none; transition: color .2s; }
a:hover { color: #e0a84a; }
a:focus-visible { outline: 2px solid #c9923a; outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 1000;
  background: #c9923a; color: #000; padding: 10px 20px;
  font-weight: 500; border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 100;
  padding: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo:hover { color: #c9923a; text-decoration: none; }
.logo-img { border-radius: 8px; width: 36px; height: 36px; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #808080;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.nav-links .menu_active a,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher { position: relative; }
#langBtn {
  background: rgba(255, 255, 255, 0.06);
  color: #b4b4b4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
#langBtn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
#langMenu {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
  background: #111; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
#langMenu.visible { display: block; }
#langMenu a {
  display: block; padding: 10px 16px; color: #b4b4b4;
  font-size: 13px; transition: all .15s; cursor: pointer;
}
#langMenu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }

/* ── Hero Section ── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201, 146, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 146, 58, 0.1);
  border: 1px solid rgba(201, 146, 58, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #c9923a;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #c9923a 0%, #e0a84a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}
.hero p {
  font-size: 18px;
  color: #808080;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #c9923a;
  color: #000;
}
.btn-primary:hover {
  background: #e0a84a;
  color: #000;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 146, 58, 0.3);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Sections ── */
main { flex: 1; }

section {
  padding: 80px 0;
}
section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .overline {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #c9923a;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -1px;
}
.section-header p {
  font-size: 16px;
  color: #808080;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Page Title (for inner pages) ── */
.page-title {
  padding: 100px 0 40px;
  text-align: center;
}
.page-title h1 {
  font-size: 48px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -1.5px;
}
.page-title p {
  font-size: 18px;
  color: #808080;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: rgba(201, 146, 58, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.card-icon {
  width: 48px; height: 48px;
  background: rgba(201, 146, 58, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.card p {
  font-size: 14px;
  color: #808080;
  line-height: 1.7;
  flex: 1;
}
.card .card-meta {
  font-size: 12px;
  color: #555;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Featured Cards ── */
.card.featured {
  border-color: rgba(201, 146, 58, 0.2);
  background: rgba(201, 146, 58, 0.03);
}
.card.featured:hover {
  border-color: rgba(201, 146, 58, 0.5);
}

/* ── Projects Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 24px;
  transition: all .25s;
}
.project-card:hover {
  border-color: rgba(201, 146, 58, 0.3);
  transform: translateY(-1px);
}
.project-card .card-img {
  width: 100%; height: 120px; object-fit: cover;
  border-radius: 8px; margin-bottom: 14px;
  background: #111;
}
.project-card h3 { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 8px; }
.project-card h3 a { color: #fff; }
.project-card h3 a:hover { color: #c9923a; }
.project-card p { font-size: 13px; color: #808080; line-height: 1.6; }
.project-card .meta { font-size: 12px; color: #555; margin-top: 12px; }
.project-card .tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.project-card .tags span {
  background: rgba(255, 255, 255, 0.06);
  color: #b4b4b4;
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
}

/* ── Services ── */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.service-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 28px;
  transition: all .25s;
  text-align: center;
}
.service-item:hover {
  border-color: rgba(201, 146, 58, 0.3);
  transform: translateY(-2px);
}
.service-item h3 {
  font-size: 16px; color: #fff; font-weight: 600;
  margin-bottom: 10px;
}
.service-item p { color: #808080; font-size: 13px; line-height: 1.6; }

/* ── About / Content Blocks ── */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}
.content-block p {
  font-size: 16px;
  color: #b4b4b4;
  line-height: 1.8;
  margin-bottom: 20px;
}
.content-block p strong {
  color: #fff;
  font-weight: 500;
}

.photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
.photos-grid figure { text-align: center; }
.photos-grid figure img {
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%; max-width: 280px; margin: 0 auto 10px;
}
.photos-grid figcaption { font-size: 13px; color: #666; }

/* ── Experience Timeline ── */
.timeline {
  max-width: 800px;
  margin: 0 auto;
}
.timeline h2 {
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}
.exp-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.exp-item:last-child { border-bottom: none; }
.exp-item h3 {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}
.exp-item .company {
  font-size: 14px;
  color: #c9923a;
  margin-bottom: 2px;
}
.exp-item .period {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.exp-item p {
  font-size: 13px;
  color: #808080;
  line-height: 1.6;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px;
}
.contact-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.contact-box .row {
  margin-bottom: 12px;
  font-size: 14px;
}
.contact-box .label {
  color: #808080;
  display: inline-block;
  min-width: 90px;
}
.contact-box a { font-size: 14px; }

.contact-links ul { list-style: none; }
.contact-links li {
  margin-bottom: 10px;
  font-size: 14px;
}

/* ── Subpages viewer ── */
.pages-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.page-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.page-card:hover {
  border-color: rgba(201, 146, 58, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
  text-decoration: none;
}
.page-card-icon {
  width: 44px; height: 44px;
  background: rgba(201, 146, 58, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.page-card-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.page-card-info p {
  font-size: 13px;
  color: #808080;
}

/* ── Iframe Modal ── */
.iframe-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.iframe-overlay.visible { display: flex; flex-direction: column; }
.iframe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.iframe-header h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.iframe-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: background .2s;
}
.iframe-close:hover { background: rgba(255, 255, 255, 0.15); }
.iframe-overlay iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #050505;
}

/* ── Footer ── */
footer {
  background: #080808;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 40px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer p {
  font-size: 13px;
  color: #555;
  margin: 0;
}
footer a { color: #666; }
footer a:hover { color: #c9923a; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  background: #c9923a; color: #000; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 18px; opacity: 0;
  transition: all .3s; z-index: 99;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: #e0a84a; transform: translateY(-2px); }

/* ── Social Links ── */
.social-links {
  display: flex; gap: 12px; margin-top: 16px;
}
.social-links a {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #b4b4b4;
  padding: 10px 18px; border-radius: 8px; font-size: 13px;
  transition: all .2s;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.social-links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; }

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.stat-item { text-align: center; }
.stat-item .stat-number {
  font-size: 40px;
  font-weight: 300;
  color: #c9923a;
  letter-spacing: -1px;
}
.stat-item .stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Tag Cloud ── */
.tag-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 0;
}
.tag {
  background: rgba(255, 255, 255, 0.04);
  color: #808080;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero p { font-size: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .photos-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .pages-list { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item .stat-number { font-size: 32px; }
  .section-header h2 { font-size: 28px; }
  .page-title h1 { font-size: 36px; }
  .header-inner { height: 56px; }
  .nav-links a { font-size: 12px; padding: 6px 10px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
