/* ==========================================================================
   DTEC - MINIMAL LUXURY & 3D INTERACTIVE CARDS STYLESHEET
   Clean, Focused, High-Aesthetic Architectural Portfolio
   ========================================================================== */

:root {
  /* Colors */
  --c-bg: #07090e;
  --c-surface: #0d121c;
  --c-card: #121927;
  
  --c-gold: #ffbe58;
  --c-gold-glow: rgba(255, 190, 88, 0.3);
  --c-gold-grad: linear-gradient(135deg, #ffe082, #ffbe58 60%, #e6a14c);
  
  --c-cyan: #00f2fe;
  --c-cyan-glow: rgba(0, 242, 254, 0.2);
  
  --c-text: #f8fafc;
  --c-muted: #94a3b8;
  --c-dim: #64748b;
  
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-hover: rgba(255, 190, 88, 0.4);
  
  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 9999px;
  
  /* 3D Dynamics */
  --perspective: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body.minimal-luxury {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: 'Cairo', 'Space Grotesk', sans-serif;
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

::selection {
  background: var(--c-gold);
  color: #07090e;
}

::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--c-gold);
  border-radius: var(--r-full);
}

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

/* ==========================================================================
   AMBIENT MINIMAL BACKDROP
   ========================================================================== */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ffbe58, transparent 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #00f2fe, transparent 70%);
  bottom: 100px;
  left: -150px;
}

.noise-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ==========================================================================
   CLEAN TOP NAVIGATION
   ========================================================================== */
.clean-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--c-gold-grad);
  color: #07090e;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px var(--c-gold-glow);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--c-gold);
  letter-spacing: 1.5px;
}

.nav-links-clean {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clean-link {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
}

.clean-link:hover, .clean-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-action-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin-access {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 190, 88, 0.1);
  border: 1px solid rgba(255, 190, 88, 0.3);
  color: var(--c-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
}

.btn-admin-access:hover {
  background: var(--c-gold);
  color: #07090e;
  box-shadow: 0 4px 15px var(--c-gold-glow);
}

.btn-contact-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-gold-grad);
  color: #07090e;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: var(--r-full);
  box-shadow: 0 4px 15px var(--c-gold-glow);
  transition: all 0.2s ease;
}

.btn-contact-quick:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 190, 88, 0.45);
}

/* ==========================================================================
   MINIMAL HERO SECTION
   ========================================================================== */
.minimal-hero {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
}

.hero-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: var(--r-full);
  margin-bottom: 24px;
}

.pulse-point {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 10px var(--c-gold);
}

.hero-impact-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.22;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.gold-gradient {
  background: var(--c-gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtext {
  font-size: 1.12rem;
  color: var(--c-muted);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 34px;
}

.hero-quick-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

.btn-explore-work {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-gold-grad);
  color: #07090e;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  padding: 14px 32px;
  border-radius: var(--r-full);
  box-shadow: 0 8px 25px var(--c-gold-glow);
  transition: all 0.25s ease;
}

.btn-explore-work:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 190, 88, 0.45);
}

.btn-download-pdf {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
}

.btn-download-pdf:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px 40px;
  width: fit-content;
}

.ribbon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.r-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
}

.r-txt {
  font-size: 0.78rem;
  color: var(--c-dim);
  font-weight: 600;
  margin-top: 4px;
}

.r-divider {
  width: 1px;
  height: 36px;
  background: var(--c-border);
}

/* ==========================================================================
   THE 3D PROJECT SHOWCASE (MAIN WORK AREA)
   ========================================================================== */
.showcase-area {
  position: relative;
  z-index: 2;
  padding: 60px 0 80px;
}

.showcase-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-micro-tag {
  color: var(--c-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.showcase-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: #fff;
}

.showcase-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 10px 18px;
  border-radius: var(--r-full);
  width: 320px;
}

.showcase-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  width: 100%;
}

.categories-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: var(--c-gold-grad);
  color: #07090e;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--c-gold-glow);
}

.pill-count {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
}

.showcase-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.85rem;
  color: var(--c-dim);
}

.interactive-3d-hint {
  color: var(--c-gold);
  font-weight: 600;
}

/* ==========================================================================
   3D CARDS GRID & MOUSE-TRACKING TILT
   ========================================================================== */
.cards-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
  perspective: var(--perspective);
}

/* 3D Card Container */
.card-3d-wrap {
  perspective: 1000px;
  cursor: pointer;
}

.card-3d-inner {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-3d-wrap:hover .card-3d-inner {
  border-color: var(--c-border-hover);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 25px var(--c-gold-glow);
}

/* 3D Layers inside card */
.card-3d-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #000;
  transform: translateZ(20px);
}

.card-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d-wrap:hover .card-3d-img {
  transform: scale(1.08);
}

.card-media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--c-card) 0%, transparent 65%);
}

.card-code-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 190, 88, 0.4);
  color: var(--c-gold);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-full);
  transform: translateZ(35px);
}

.card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-full);
  transform: translateZ(35px);
}

.card-3d-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
  transform: translateZ(30px);
}

.card-title-3d {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.card-3d-wrap:hover .card-title-3d {
  color: var(--c-gold);
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-gold);
  font-weight: 700;
}

.card-loc-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--c-dim);
}

.card-desc-snippet {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-top: 4px;
}

.card-3d-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  transform: translateZ(25px);
}

.btn-card-explore {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.card-3d-wrap:hover .btn-card-explore {
  background: var(--c-gold);
  color: #07090e;
  border-color: var(--c-gold);
}

.card-status-verified {
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 700;
}

/* ==========================================================================
   CLIENTS STRIP
   ========================================================================== */
.minimal-clients {
  padding: 40px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: rgba(13, 18, 28, 0.4);
}

.clients-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.clients-tagline {
  font-size: 0.85rem;
  color: var(--c-dim);
  font-weight: 700;
}

.clients-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.client-chip {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
}

.client-chip:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* ==========================================================================
   CLEAN CONTACT
   ========================================================================== */
.clean-contact-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.contact-box-minimal {
  background: var(--c-surface);
  border: 1px solid rgba(255, 190, 88, 0.3);
  border-radius: var(--r-lg);
  padding: 50px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px var(--c-gold-glow);
}

.contact-pre {
  color: var(--c-gold);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
}

.contact-main-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.contact-sub {
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-wa-direct {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--r-full);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-wa-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.btn-call-direct {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
}

.btn-call-direct:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.clean-footer {
  background: #04060a;
  border-top: 1px solid var(--c-border);
  padding: 30px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--c-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-right a {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--c-gold);
}

.footer-admin-link {
  color: var(--c-gold) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */
.case-study-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.case-study-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card-3d {
  background: var(--c-surface);
  border: 1px solid var(--c-border-hover);
  border-radius: var(--r-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 35px var(--c-gold-glow);
}

.btn-close-lightbox {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--c-border);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-lightbox:hover {
  background: var(--c-gold);
  color: #07090e;
}

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-visual-side {
  position: relative;
  background: #000;
  min-height: 380px;
}

#modalImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-img-badge-id {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--r-full);
}

.modal-info-side {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-sector-tag {
  color: var(--c-cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.modal-heading {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}

.modal-data-table {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-row {
  display: flex;
  font-size: 0.88rem;
  gap: 8px;
}

.data-key {
  color: var(--c-gold);
  font-weight: 700;
  min-width: 100px;
}

.data-val { color: #fff; }

.btn-modal-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--r-full);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .modal-layout { grid-template-columns: 1fr; }
  .cards-3d-grid { grid-template-columns: 1fr; }
  .nav-links-clean { display: none; }
  .hero-ribbon { flex-direction: column; gap: 14px; }
  .r-divider { display: none; }
}
