/* ════════════════════════════════════════════════════════
   DTech extra.css — All fixes v6
   Loaded AFTER main.css — overrides and additions
════════════════════════════════════════════════════════ */

/* ── FOOTER FIX ──────────────────────────────────────── */
.footer-bottom {
  text-align: center !important;
  justify-content: center !important;
}

/* ── TESTIMONIAL SLIDER — Complete rewrite ───────────── */
.tslider-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -8px;
  padding: 0 8px;
}
.tslider-track {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  align-items: stretch;
}
.tslider-card {
  background: white;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  padding: 1.75rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(108,71,255,.06);
  transition: box-shadow .3s;
}
.tslider-card:hover { box-shadow: 0 8px 32px rgba(108,71,255,.12); }
.tslider-stars { color: #f59e0b; font-size: .95rem; margin-bottom: .875rem; letter-spacing: 2px; }
.tslider-text-wrap { flex: 1; margin-bottom: 1.25rem; }
.tslider-text {
  font-size: .9rem; line-height: 1.8;
  color: #64748b; font-style: italic; margin: 0 0 .5rem;
}
.tslider-seemore {
  background: none; border: none; cursor: pointer;
  color: #6C47FF; font-size: .78rem; font-weight: 700;
  padding: 0; font-family: inherit; display: inline-flex;
  align-items: center; gap: 4px; transition: opacity .2s;
}
.tslider-seemore:hover { opacity: .7; }
.tslider-author { display: flex; align-items: center; gap: 12px; }
.tslider-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #6C47FF, #FF6B35);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
  font-family: 'Syne', sans-serif;
  overflow: hidden;
}
.tslider-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tslider-name { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.tslider-role { font-size: .75rem; color: #94a3b8; }
.tslider-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 2rem;
}
.tslider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.08); background: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #64748b; transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tslider-btn:hover { border-color: #6C47FF; color: #6C47FF; background: rgba(108,71,255,.04); }
.tslider-dots { display: flex; gap: 8px; align-items: center; }
.tslider-dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(0,0,0,.12); cursor: pointer;
  transition: all .3s; border: none; padding: 0;
}
.tslider-dot.active { width: 24px; background: #6C47FF; }

/* Review popup */
#review-popup { display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,10,15,.75); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1.25rem; }
#review-popup.open { display: flex !important; }
.review-popup-inner {
  background: white; border-radius: 20px; max-width: 520px; width: 100%;
  padding: 2rem; position: relative; max-height: 90vh; overflow-y: auto;
}
.review-popup-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: #f1f3fd; cursor: pointer; font-size: 1.1rem; color: #64748b;
  display: flex; align-items: center; justify-content: center;
}

/* ── ARCHED TEAM CARDS ──────────────────────────────── */
.arch-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.arch-card {
  cursor: default;
}

/* Photo wrap - arch shape matching screenshot exactly */
.arch-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
  /* arch top + rectangle bottom */
  aspect-ratio: .82;
  background: linear-gradient(160deg, #f0eeff, #ddd6fe);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  transition: box-shadow .4s, transform .4s cubic-bezier(.34,1.56,.64,1);
  margin-bottom: 1.1rem;
  /* Card border like screenshot */
  border: 1px solid rgba(0,0,0,.06);
}
.arch-card:hover .arch-photo-wrap {
  box-shadow: 0 20px 56px rgba(108,71,255,.2);
  transform: translateY(-8px);
}

.arch-photo {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .55s, filter .4s;
}
.arch-card:hover .arch-photo {
  transform: scale(1.05);
  filter: brightness(.78);
}

.arch-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ede9fe, #ddd6fe);
  transition: filter .4s;
}
.arch-card:hover .arch-placeholder { filter: brightness(.9); }
.arch-initial {
  font-family: 'Syne', sans-serif;
  font-size: 5rem; font-weight: 900;
  color: rgba(108,71,255,.2); user-select: none;
  transition: color .3s, transform .3s;
}
.arch-card:hover .arch-initial { color: rgba(108,71,255,.4); transform: scale(1.05); }

/* Social icons — slide up on hover */
.arch-socials {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; gap: .625rem;
  padding: 1.1rem .75rem;
  background: linear-gradient(to top, rgba(10,10,15,.72) 0%, transparent 100%);
  transform: translateY(105%);
  opacity: 0;
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), opacity .25s;
}
.arch-card:hover .arch-socials {
  transform: translateY(0);
  opacity: 1;
}
.arch-social {
  width: 38px; height: 38px; border-radius: 50%;
  background: white;
  display: flex; align-items: center; justify-content: center;
  color: #1a1a2e; font-size: .9rem; text-decoration: none;
  transition: all .22s;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.arch-social:hover {
  background: #6C47FF; color: white;
  transform: scale(1.12) translateY(-3px);
}

/* Info below card */
.arch-info { text-align: center; padding: 0 .25rem; }
.arch-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  color: #1a1a2e; letter-spacing: -.01em;
  margin-bottom: 3px; transition: color .2s;
}
.arch-card:hover .arch-name { color: #6C47FF; }
.arch-role { font-size: .8rem; color: #64748b; line-height: 1.5; }

/* Responsive */
@media (max-width: 1100px) { .arch-team-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .arch-team-grid { grid-template-columns: repeat(2,1fr); gap: 1.25rem; } }
@media (max-width: 460px)  {
  .arch-team-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .arch-photo-wrap { border-radius: 50% 50% 12px 12px / 35% 35% 12px 12px; }
  .arch-initial { font-size: 3rem; }
}

/* ── MOBILE ADMIN SIDEBAR ────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform .3s ease;
    box-shadow: none;
  }
  .admin-sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 8px 0 40px rgba(0,0,0,.25);
  }
  .admin-main { margin-left: 0 !important; }

  /* Overlay when sidebar open */
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10,10,15,.5); z-index: 199;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.active { display: block; }

  #sidebar-toggle {
    display: flex !important;
    background: none; border: none; cursor: pointer;
    color: var(--text); padding: 4px; font-size: 1.25rem;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
  }
}

/* ── HERO — Full mobile fix ──────────────────────────── */
.hero { padding: 120px 2rem 80px; min-height: 100vh; }

@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .floating-cards { right: 0; }
}
@media (max-width: 768px) {
  .hero { padding: 96px 1.25rem 60px; min-height: auto; }
  .hero-content { gap: 2rem; }
  .hero-title { font-size: clamp(1.85rem, 6.5vw, 2.8rem) !important; line-height: 1.1; }
  .hero-subtitle { font-size: .9rem; margin-bottom: 1.75rem; }
  .hero-badge { font-size: .7rem; padding: 6px 12px; }
  .hero-actions { flex-direction: column; gap: .75rem; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-stats { gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
  .hero-stat-number { font-size: 1.6rem; }
  .hero-stat-label { font-size: .72rem; }
}
@media (max-width: 560px) {
  .hero { padding: 88px 1rem 52px; }
  .hero-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem) !important; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1rem; }
  .hero-stat { min-width: calc(50% - .5rem); }
}
@media (max-width: 360px) {
  .hero-title { font-size: 1.55rem !important; }
  .hero-stats { flex-direction: column; gap: .5rem; }
}

/* ── ALL HEADINGS RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .section-title { font-size: clamp(1.45rem, 5.5vw, 2rem) !important; }
  .page-hero-title { font-size: clamp(1.75rem, 6.5vw, 2.5rem) !important; }
  .cta-title { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  .section { padding: 56px 1.25rem !important; }
  .section-sm { padding: 40px 1.25rem !important; }
}
@media (max-width: 480px) {
  .section-title { font-size: clamp(1.35rem, 5vw, 1.7rem) !important; }
  .page-hero-title { font-size: clamp(1.55rem, 6vw, 2rem) !important; }
  .page-hero { padding: 110px 1.25rem 60px !important; }
}

/* ── BUTTONS responsive ──────────────────────────────── */
@media (max-width: 480px) {
  .btn-lg { padding: 13px 24px; font-size: .9rem; }
  .btn { padding: 11px 20px; font-size: .875rem; }
  .cta-section { padding: 44px 1.25rem !important; border-radius: 16px !important; }
  .cta-actions { flex-direction: column; align-items: center; gap: .75rem; }
  .cta-actions .btn { width: 100%; justify-content: center; max-width: 300px; }
}

/* ── SERVICES GRID ───────────────────────────────────── */
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px)  { .services-grid { grid-template-columns: 1fr; } .service-card { padding: 1.5rem; } }

/* ── PORTFOLIO ───────────────────────────────────────── */
@media (max-width: 900px)  { .portfolio-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
  .filter-btn { flex-shrink: 0; }
}

/* ── CONTACT ─────────────────────────────────────────── */
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 540px) { .contact-form { padding: 1.5rem; } .form-row { grid-template-columns: 1fr; } }

/* ── FOOTER ──────────────────────────────────────────── */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 56px 1.25rem 32px; }
}

/* ── ABOUT PAGE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .about-main-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .mission-vision-grid { grid-template-columns: 1fr; }
}

/* ── TESTIMONIALS ────────────────────────────────────── */
@media (max-width: 900px) { .tslider-card { /* width handled by JS */ } }

/* ── MODAL bottom-sheet on mobile ───────────────────── */
@media (max-width: 560px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 88vh; margin: 0; width: 100%; }
}

/* ── ADMIN panel mobile ──────────────────────────────── */
@media (max-width: 520px) {
  .admin-content { padding: 1rem; }
  .admin-topbar { padding: .875rem 1rem; }
  .admin-card-body { padding: 1rem; }
  .admin-form-grid { grid-template-columns: 1fr !important; }
  .stats-grid, .dash-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .stats-grid, .dash-stat-grid { grid-template-columns: 1fr; }
}

/* ── TOUCH targets ───────────────────────────────────── */
@media (pointer: coarse) {
  .btn, .btn-nav, .service-btn, .filter-btn { min-height: 44px; }
  .action-btn { min-height: 36px; min-width: 36px; }
  .tslider-btn { min-height: 44px; min-width: 44px; }
  .arch-social { min-height: 44px; min-width: 44px; }
}

/* ── NAV — transparent on dark pages ────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-nav { display: none !important; }
  .menu-toggle { display: flex !important; }
  .nav-inner { height: 64px; padding: 0 1.25rem; }
}
@media (min-width: 901px) {
  .menu-toggle { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* Nav links color on dark hero */
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.8); }
.navbar:not(.scrolled) .nav-links a:hover { color: white; background: rgba(255,255,255,.1); }
.navbar.scrolled .nav-links a { color: #64748b; }
.navbar.scrolled .nav-logo-text,
.navbar.scrolled .nav-logo { color: #1a1a2e; }
.navbar:not(.scrolled) .nav-logo-text,
.navbar:not(.scrolled) .nav-logo { color: white; }

/* ── FEATURES grid ───────────────────────────────────── */
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

/* ── TESTIMONIALS on small screens ──────────────────── */
@media (max-width: 540px) {
  .tslider-card { padding: 1.5rem; border-radius: 16px; }
}

/* ── Profile page ────────────────────────────────────── */
@media (max-width: 720px) { .profile-grid { grid-template-columns: 1fr !important; } }

/* ── Google Reviews section ──────────────────────────── */
@media (max-width: 768px) { .google-reviews-section { padding: 48px 1.25rem; } }

/* Large screens */
@media (min-width: 1400px) { .container { max-width: 1380px; } }
