/* ========================================================
   ANKA DESIGN - Luxury Architecture & Engineering Platform
   Updated Design System (v3 - Video Hero & Flawless Dropdown)
   ======================================================== */

:root {
  --bg-dark: #0f1318;
  --bg-dark-secondary: #141920;
  --bg-card: #181f28;
  --bg-light: #f7f6f2;
  --bg-white: #ffffff;
  --gold: #c5a880;
  --gold-hover: #b5966a;
  --gold-glow: rgba(197, 168, 128, 0.25);
  --text-primary: #111111;
  --text-muted: #6b7280;
  --text-light: #f3f4f6;
  --text-light-muted: #9ca3af;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: var(--font-sans); background-color: var(--bg-dark); color: var(--text-light); }
body { overflow-x: hidden; line-height: 1.65; background-color: var(--bg-dark); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }

/* ==========================================
   1. NAVBAR & DROP-DOWN MENU FIXES
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 3.5rem;
  background: linear-gradient(180deg, rgba(15,19,24,0.95) 0%, rgba(15,19,24,0.35) 80%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.navbar.scrolled, .navbar.navbar-solid {
  background: rgba(15, 19, 24, 0.98);
  padding: 0.9rem 3.5rem;
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Logo Image */
.brand-logo { display: flex; align-items: center; }
.header-logo-img { height: 42px; width: auto; object-fit: contain; }
.footer-logo-img { height: 46px; width: auto; object-fit: contain; }

/* Nav Links List */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active,
.nav-links li.active-parent > a {
  color: #ffffff;
}

/* Dropdown Container */
.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-chevron {
  font-size: 0.62rem;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--text-light-muted);
}

.has-dropdown:hover .dropdown-chevron,
.has-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Luxury Dropdown Card */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(18, 23, 30, 0.98);
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 6px;
  min-width: 220px;
  padding: 0.5rem 0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  list-style: none;
  z-index: 1020;
}

/* Invisible Hover Bridge (Prevents dropdown from closing when moving mouse from link to menu) */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 18px;
  background: transparent;
}

/* Top Subtle Arrow */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(18, 23, 30, 0.98);
  border-top: 1px solid rgba(197, 168, 128, 0.35);
  border-left: 1px solid rgba(197, 168, 128, 0.35);
}

/* Dropdown Open on Hover & Active */
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
  margin: 0;
  padding: 0;
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.4rem;
  font-size: 0.86rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-dropdown li:last-child a {
  border-bottom: none;
}

.sub-arrow {
  font-size: 0.65rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--gold);
}

.nav-dropdown li a:hover,
.nav-dropdown li a.active {
  background: rgba(197, 168, 128, 0.12);
  color: var(--gold);
  padding-left: 1.65rem;
}

.nav-dropdown li a:hover .sub-arrow,
.nav-dropdown li a.active .sub-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Language Selector */
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.lang-selector { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-size: 0.85rem; padding: 0.45rem 0.9rem; border: 1px solid var(--border-dark); border-radius: 4px; background: rgba(255, 255, 255, 0.04); }
.lang-btn:hover { border-color: var(--gold); }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #141920; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 0.5rem 0; min-width: 145px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); display: none; z-index: 1010; }
.lang-dropdown.show { display: block; }
.lang-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; width: 100%; font-size: 0.85rem; color: var(--text-light); text-align: left; }
.lang-option:hover, .lang-option.selected { background: rgba(197, 168, 128, 0.15); color: var(--gold); }
.mobile-toggle { display: none; font-size: 1.4rem; color: #fff; }

/* ==========================================
   2. BUTTONS
   ========================================== */
.btn-primary {
  background: var(--gold);
  color: #0f1318;
  padding: 0.95rem 2.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.95rem 2.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================
   3. HERO SECTION (SLIDER REPLACEMENT WITH VIDEO & FOREGROUND TEXT)
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 4rem;
  background-color: var(--bg-dark);
  /* High quality fallback image so background is never empty */
  background: #0f1318 url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=85') center/cover no-repeat;
}

/* Full Width/Height Background Video */
.hero-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Vignette Atmospheric Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 19, 24, 0.88) 0%,
    rgba(15, 19, 24, 0.45) 50%,
    rgba(15, 19, 24, 0.85) 100%
  );
  z-index: 2;
}

/* Left Margin Social Icons */
.hero-left-socials {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 10;
}

.hero-left-socials a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  transition: var(--transition);
}

.hero-left-socials a:hover {
  color: var(--gold);
  transform: scale(1.15);
}

/* Text Container Over Video */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 10;
}

.hero-tagline {
  font-size: 0.82rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.4rem;
  line-height: 1.1;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-light-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 540px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

/* Bottom Right Featured Project Card */
.hero-featured-card {
  position: absolute;
  bottom: 3.5rem;
  right: 3.5rem;
  background: rgba(15, 19, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hero-slide-counter {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.hero-card-sub {
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

.card-nav-btns {
  display: flex;
  gap: 0.6rem;
}

.card-nav-btns button, .card-nav-btns a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.card-nav-btns button:hover, .card-nav-btns a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 168, 128, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================
   4. INNER PAGE BANNER
   ========================================== */
.page-banner {
  padding: 10rem 0 5rem;
  background: linear-gradient(180deg, rgba(15,19,24,0.95) 0%, rgba(20,25,32,0.98) 100%);
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
}
.page-banner-badge {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.page-banner-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
}
.page-banner-desc {
  color: var(--text-light-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==========================================
   5. ABOUT SECTION
   ========================================== */
.about-section { background: var(--bg-light); color: var(--text-primary); padding: 8rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.about-badge { font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase; color: #92754e; font-weight: 600; margin-bottom: 1rem; }
.about-title { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 400; line-height: 1.25; margin-bottom: 1.5rem; color: #111; }
.about-desc { font-size: 1.05rem; color: #555; line-height: 1.8; margin-bottom: 2.5rem; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.value-card { background: #fff; padding: 1.75rem 1.25rem; border-radius: 2px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-top: 2px solid var(--gold); }
.value-card h4 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 0.5rem; color: #1a1a1a; }
.value-card p { font-size: 0.82rem; color: #666; line-height: 1.55; }
.about-stats { display: flex; align-items: center; gap: 3rem; }
.stat-item { display: flex; align-items: center; gap: 1rem; }
.stat-number { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1; color: #111; font-weight: 400; }
.stat-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.15em; color: #777; max-width: 110px; }
.about-visuals { position: relative; }
.about-main-img { width: 100%; height: 520px; object-fit: cover; border-radius: 3px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.about-sub-img { position: absolute; bottom: -30px; left: -30px; width: 55%; height: 240px; object-fit: cover; border: 8px solid #fff; box-shadow: 0 15px 35px rgba(0,0,0,0.15); }

/* ==========================================
   6. PROJECTS
   ========================================== */
.projects-section { padding: 8rem 0; background: var(--bg-dark); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3.5rem; }
.section-badge { font-size: 0.78rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; font-weight: 600; margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-serif); font-size: 3rem; font-weight: 400; color: #fff; }
.project-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5rem 1.4rem; border: 1px solid var(--border-dark); font-size: 0.82rem; color: var(--text-light-muted); border-radius: 30px; display: inline-block; }
.filter-btn.active, .filter-btn:hover { border-color: var(--gold); color: #fff; background: rgba(197, 168, 128, 0.12); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card { position: relative; background: var(--bg-dark-secondary); border-radius: 4px; overflow: hidden; border: 1px solid var(--border-dark); transition: var(--transition); }
.project-card:hover { transform: translateY(-8px); border-color: rgba(197, 168, 128, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.project-thumb { position: relative; width: 100%; height: 320px; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-thumb img { transform: scale(1.08); }
.project-info { padding: 1.6rem; }
.project-category { font-size: 0.72rem; letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.4rem; }
.project-title { font-family: var(--font-serif); font-size: 1.28rem; color: #fff; margin-bottom: 0.5rem; }
.project-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--text-light-muted); padding-top: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ==========================================
   7. SERVICES
   ========================================== */
.services-section { background: var(--bg-white); color: var(--text-primary); padding: 8rem 0; }
.services-header { text-align: center; max-width: 650px; margin: 0 auto 5rem; }
.services-list { display: flex; flex-direction: column; }
.service-item { display: grid; grid-template-columns: 80px 1.5fr 2fr 180px 60px; align-items: center; padding: 2.2rem 1.5rem; border-bottom: 1px solid var(--border-light); transition: var(--transition); }
.service-item:hover { background: #faf9f6; padding-left: 2rem; }
.service-num { font-family: var(--font-serif); font-size: 1.35rem; color: var(--gold); font-weight: 500; }
.service-name { font-family: var(--font-serif); font-size: 1.45rem; color: #111; }
.service-desc { font-size: 0.92rem; color: #666; padding-right: 2rem; }
.service-preview-img { width: 140px; height: 75px; object-fit: cover; border-radius: 3px; opacity: 0.88; transition: var(--transition); }
.service-item:hover .service-preview-img { opacity: 1; transform: scale(1.05); }
.service-arrow { color: #888; font-size: 1.25rem; display: flex; justify-content: flex-end; }
.service-item:hover .service-arrow { color: var(--gold); transform: translateX(5px); }

/* ==========================================
   8. SPACES THAT INSPIRE SPLIT SHOWCASE
   ========================================== */
.split-showcase { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-light); color: var(--text-primary); min-height: 550px; }
.showcase-text-pane { padding: 6rem 5rem; display: flex; flex-direction: column; justify-content: center; }
.showcase-img-pane { position: relative; background-size: cover; background-position: center; }

/* ==========================================
   9. BLOG & CONTACT
   ========================================== */
.blog-section { padding: 8rem 0; background: var(--bg-dark-secondary); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.blog-card { background: var(--bg-dark); border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-6px); border-color: rgba(197, 168, 128, 0.4); }
.blog-thumb { height: 280px; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-content { padding: 2rem; }
.blog-meta { font-size: 0.8rem; color: var(--gold); margin-bottom: 0.5rem; letter-spacing: 0.08em; }
.blog-title { font-family: var(--font-serif); font-size: 1.45rem; color: #fff; margin-bottom: 0.85rem; line-height: 1.35; }
.blog-summary { color: var(--text-light-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }

.contact-section { padding: 8rem 0; background: var(--bg-dark); position: relative; }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-dark); padding: 1.1rem 1.4rem; color: #fff; font-size: 0.92rem; border-radius: 2px; outline: none; transition: var(--transition); font-family: inherit; }
.form-group select option { background: #141920; color: #fff; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.contact-info-panel { display: flex; flex-direction: column; gap: 2.2rem; justify-content: center; border-left: 1px solid var(--border-dark); padding-left: 4.5rem; }
.info-box { display: flex; align-items: flex-start; gap: 1.2rem; }
.info-icon { width: 46px; height: 46px; background: rgba(197, 168, 128, 0.1); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.info-box h5 { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.info-box p { color: #ddd; font-size: 0.95rem; }

/* ==========================================
   10. FOOTER
   ========================================== */
.footer { background: #0a0d11; padding: 5rem 0 2rem; border-top: 1px solid var(--border-dark); font-size: 0.88rem; color: var(--text-light-muted); }
.footer-top-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3.5rem; margin-bottom: 4rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.7; color: #94a3b8; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; color: var(--text-light-muted); }
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); background: rgba(197, 168, 128, 0.1); }
.footer-heading { font-family: var(--font-serif); font-size: 1.05rem; color: #fff; margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 2rem; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ==========================================
   11. RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1200px) {
  .hero-left-socials { display: none; }
}

@media (max-width: 1024px) {
  .navbar { padding: 1.2rem 2rem; }
  .hero-title { font-size: 3.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item { grid-template-columns: 60px 1.5fr 1fr 40px; }
  .service-preview-img { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-panel { border-left: none; padding-left: 0; padding-top: 2rem; border-top: 1px solid var(--border-dark); }
  .footer-top-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 1.1rem 1.5rem; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 19, 24, 0.99);
    flex-direction: column;
    padding: 1.8rem 2rem 2.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-dark);
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-links.active { display: flex; }

  /* Mobile Dropdown Accordion */
  .has-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .has-dropdown .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0;
  }
  .has-dropdown .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    box-shadow: none;
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 4px;
    padding: 0.4rem 0;
    display: none;
  }
  .has-dropdown.mobile-open .nav-dropdown {
    display: block;
  }
  .has-dropdown .nav-dropdown::before,
  .has-dropdown .nav-dropdown::after {
    display: none;
  }
  .has-dropdown .nav-dropdown li a {
    padding: 0.7rem 1.2rem;
  }

  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.6rem; }
  .hero-featured-card { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .split-showcase { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 50px 1fr 30px; }
  .service-desc { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   12. REFERENCES & CLIENT LOGOS SHOWCASE (ankadesign.co.tz/references)
   ======================================================== */
.reference-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.ref-logo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ref-logo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 168, 128, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.ref-logo-wrap {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ref-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.2);
  opacity: 0.85;
  transition: var(--transition);
}

.ref-logo-card:hover .ref-logo-wrap img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

.ref-logo-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.ref-link {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ref-link:hover {
  text-decoration: underline;
}

/* ========================================================
   13. FLOATING SUPPORT CENTER & WHATSAPP MENU
   ======================================================== */
.support-floating-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  font-family: var(--font-sans);
}

/* Floating Trigger Button */
.support-floating-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: #0f1318;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(197, 168, 128, 0.4);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  border: none;
}

.support-floating-trigger:hover {
  transform: scale(1.08);
  background: var(--gold-hover);
}

.support-floating-trigger .icon-close {
  display: none;
}

.support-floating-wrapper.menu-active .support-floating-trigger .icon-default,
.support-floating-wrapper.chat-active .support-floating-trigger .icon-default {
  display: none;
}

.support-floating-wrapper.menu-active .support-floating-trigger .icon-close,
.support-floating-wrapper.chat-active .support-floating-trigger .icon-close {
  display: block;
}

.support-pulse {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: supportPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes supportPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Support Options Menu Popup */
.support-menu-popup {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background: #141920;
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.support-floating-wrapper.menu-active .support-menu-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.support-menu-header {
  background: #181f28;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-menu-header h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.support-menu-header p {
  font-size: 0.8rem;
  color: var(--gold);
}

.support-options-list {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.support-option-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.support-option-item:hover {
  background: rgba(197, 168, 128, 0.12);
  border-color: rgba(197, 168, 128, 0.4);
  transform: translateX(4px);
}

.support-option-item .opt-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.opt-whatsapp .opt-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.opt-chat .opt-icon {
  background: rgba(197, 168, 128, 0.15);
  color: var(--gold);
}

.support-option-item .opt-text {
  flex-grow: 1;
}

.support-option-item .opt-text strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.support-option-item .opt-text span {
  font-size: 0.78rem;
  color: var(--text-light-muted);
}

.opt-arrow {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  transition: transform 0.2s ease;
}

.support-option-item:hover .opt-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

/* Live Chat Modal Window */
.support-chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 350px;
  height: 480px;
  background: #141920;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
}

.support-floating-wrapper.chat-active .support-chat-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: #181f28;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.chat-header-info h5 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.1rem;
}

.chat-header-info span {
  font-size: 0.75rem;
  color: var(--gold);
}

.chat-close-btn {
  color: var(--text-light-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.chat-close-btn:hover {
  color: #fff;
}

.chat-messages-container {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #0f1318;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: #181f28;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 2px;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: var(--gold);
  color: #0f1318;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.chat-bubble-time {
  font-size: 0.68rem;
  margin-top: 4px;
  opacity: 0.7;
  text-align: right;
  display: block;
}

.chat-auth-prompt {
  padding: 0.75rem 1rem;
  background: #141920;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 0.5rem;
}

.chat-auth-prompt input {
  width: 50%;
  padding: 0.5rem 0.75rem;
  background: #0f1318;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}

.chat-auth-prompt input:focus {
  border-color: var(--gold);
}

.chat-input-bar {
  padding: 0.75rem 1rem;
  background: #181f28;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 0.5rem;
}

.chat-input-bar input {
  flex-grow: 1;
  background: #0f1318;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.88rem;
  border-radius: 6px;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--gold);
}

.chat-input-bar button {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--gold);
  color: #0f1318;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.chat-input-bar button:hover {
  background: var(--gold-hover);
}

@media (max-width: 1024px) {
  .reference-logos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .reference-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .support-floating-wrapper { bottom: 1.25rem; right: 1.25rem; }
  .support-menu-popup, .support-chat-window { width: calc(100vw - 2.5rem); right: 0; }
  .support-chat-window { height: 420px; }
}

