/* ══════════════════════════════════════
   COMMON STYLES — DABAR TECHNOLOGY
   Shared across pages
   ══════════════════════════════════════ */
:root {
  --safira:     #1A4F8A;
  --safira-light: #2563A8;
  --midnight:   #0D2B4E;
  --midnight-deep: #071a30;
  --gold:       #C8922A;
  --gold-light: #D9A843;
  --stone:      #F5F3EE;
  --stone-dark: #E8E4DC;
  --white:      #ffffff;
  --text-main:  #F5F3EE;
  --text-muted: rgba(245,243,238,0.55);
  --border:     rgba(245,243,238,0.1);
  --border-gold: rgba(200,146,42,0.3);

  --font-body: 'Poppins', system-ui, sans-serif;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body,
a,
button,
input,
textarea,
select,
label,
.nav-cta,
.menu-mobile-btn,
.mobile-close,
.btn-submit,
.contact-item,
.service-card,
.project-row {
  cursor: none !important;
}

body {
  background: var(--midnight);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  width: 14px; height: 14px;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  will-change: transform;
  mix-blend-mode: difference;
  transition: width 0.15s ease, height 0.15s ease, transform 0.15s ease;
  opacity: 0;
}
.cursor-dot.active {
  opacity: 1;
}
.cursor-ring {
  width: 44px; height: 44px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  will-change: transform;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, opacity 0.2s ease;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor-ring.active {
  opacity: 1;
}
.cursor-ring.hovered {
  width: 72px; height: 72px;
  border-color: #ffffff;
}
.cursor-dot.hovered {
  width: 18px; height: 18px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--midnight-deep); }
::-webkit-scrollbar-thumb { background: var(--safira); border-radius: 2px; }

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,26,48,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
header.scrolled {
  padding: 1rem 3rem;
  background: rgba(7,26,48,0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.logo-image {
  display: block;
  max-height: 30px;
  width: auto;
}
.logo-symbol {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.logo-name {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--stone);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--safira-light);
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
nav a:hover { color: var(--text-main); }
nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.18em;
  transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--midnight) !important;
}
.nav-cta::after { display: none; }

.menu-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--midnight);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s var(--ease-spring), box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200,146,42,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover {
  border-color: var(--stone);
  color: var(--stone);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--stone);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-title strong {
  font-weight: 400;
  color: var(--safira-light);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(245,243,238,0.04);
  border: 1px solid var(--border);
  color: var(--stone);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245,243,238,0.2);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--safira-light);
  background: rgba(245,243,238,0.06);
}
.form-group select option { background: var(--midnight-deep); }
.form-group textarea { min-height: 120px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--midnight);
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s var(--ease-spring);
  margin-top: 0.5rem;
  align-self: flex-start;
}
.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, background 0.3s;
}
.contact-item:hover {
  border-color: var(--border-gold);
  background: rgba(200,146,42,0.04);
}
.contact-item-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  border-radius: 2px;
}
.contact-item h4 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.2rem;
}
.contact-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer {
  background: var(--midnight-deep);
  border-top: 1px solid var(--border);
  padding: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.footer-brand .symbol {
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--gold);
}
.footer-brand .name {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,26,48,0.98);
  z-index: 200;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay a {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.mobile-overlay a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
}
.mobile-symbol {
  font-family: var(--font-body);
  font-size: 4rem;
  color: rgba(200,146,42,0.2);
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  header { padding: 1.2rem 1.5rem; }
  header nav { display: none; }
  .menu-mobile-btn { display: block; }
}

/* ── NOTIFICATION ── */
.notify {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--safira);
  color: var(--stone);
  padding: 1rem 1.5rem;
  border-radius: 2px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  z-index: 500;
  border-left: 3px solid var(--gold);
}
.notify.show { transform: translateY(0); opacity: 1; }
