/* =============================================
   ADDITIONAL STYLES FOR PHP SITE
   ============================================= */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,131,136,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,131,136,0.4); }
.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1.5px solid var(--border-color-light);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(14,131,136,0.04); }

/* ── Section Tags ── */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* ── Forms ── */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color-light);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  background: var(--bg-white);
  color: var(--text-dark);
  transition: border-color var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,131,136,0.12);
}
textarea.form-input { resize: vertical; min-height: 100px; }

/* ── Grid 4 cols ── */
.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .grid-cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-cols-4 { grid-template-columns: 1fr; } }

/* ── Footer Styles ── */
.site-footer {
  background-color: var(--primary-bg);
  color: var(--text-muted-dark);
}
.footer-values-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}
.values-container {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
@media (max-width: 900px) { .values-container { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .values-container { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-icon-wrapper { flex-shrink: 0; }
.value-title { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.value-desc { font-size: 0.82rem; color: var(--text-muted-dark); }
.footer-main { padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col-title { font-family: var(--font-primary); font-size: 0.9rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-about-text { font-size: 0.88rem; color: var(--text-muted-dark); line-height: 1.7; }
.footer-info-list { display: flex; flex-direction: column; gap: 12px; }
.footer-info-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted-dark); }
.footer-info-item a { color: var(--text-muted-dark); text-decoration: none; transition: color 0.2s; }
.footer-info-item a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-bottom-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 0.85rem; }

/* ── Contact CTA Banner ── */
.contact-cta-banner { background: linear-gradient(135deg, #1E3E62 0%, var(--primary) 100%); color: #fff; text-align: center; padding: 60px 0; }
.contact-cta-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact-cta-title { color: #fff; font-size: 2rem; }
.contact-cta-desc { color: rgba(255,255,255,0.88); font-size: 1.05rem; }

/* Nav links as <a> tags */
a.nav-link {
  text-decoration: none;
  display: inline-block;
}

/* Cart icon button */
.cart-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px;
  border-radius: 50%;
  color: var(--primary-bg);
  text-decoration: none;
  transition: background var(--transition-fast);
}
.cart-icon-btn:hover {
  background-color: #F1F5F9;
}

/* Topbar button */
.btn-topbar {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(14,131,136,0.3);
  border-radius: 20px;
  transition: all 0.2s;
}
.btn-topbar:hover {
  background: rgba(14,131,136,0.1);
}

/* Footer nav list */
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-list li a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-nav-list li a:hover {
  color: var(--primary);
}

/* General form styles */
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color-light);
}

/* Alert messages */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.alert-error {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.2);
}
.alert-success {
  background: rgba(16,185,129,0.08);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
}

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th {
  background: var(--primary-bg);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color-light);
}
.admin-table tr:hover td {
  background: var(--bg-light);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.status-badge.status-pending { background: #fef3c7 !important; color: #92400e !important; border: 1px solid #fde68a !important; }
.status-badge.status-processing, .status-badge.status-in_progress { background: #e0f2fe !important; color: #0369a1 !important; border: 1px solid #bae6fd !important; }
.status-badge.status-confirmed { background: #dcfce7 !important; color: #15803d !important; border: 1px solid #bbf7d0 !important; }
.status-badge.status-shipped   { background: #f3e8ff !important; color: #6b21a8 !important; border: 1px solid #e9d5ff !important; }
.status-badge.status-delivered, .status-badge.status-completed { background: #d1fae5 !important; color: #065f46 !important; border: 1px solid #a7f3d0 !important; }
.status-badge.status-cancelled, .status-badge.status-rejected  { background: #fee2e2 !important; color: #991b1b !important; border: 1px solid #fca5a5 !important; }
.status-badge.status-offered   { background: #dbeafe !important; color: #1e40af !important; border: 1px solid #bfdbfe !important; }

/* ── Infinite Scrolling Marquee ── */
.marquee-container {
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-content {
  display: flex;
  gap: 20px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-content:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}
.brand-badge {
  padding: 12px 24px;
  background: var(--bg-white);
  border: 1.5px solid #e2e8f0;
  color: var(--brand-color, var(--primary));
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 900;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s;
  cursor: default;
}
.brand-badge:hover {
  transform: translateY(-3px);
  border-color: var(--brand-color, var(--primary));
  box-shadow: 0 8px 16px rgba(14, 131, 136, 0.12);
}

/* ── Project Cards ── */
.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 131, 136, 0.25);
}

/* ── Responsive Spacing & Layout Queries ── */

/* Stats Grid responsive layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 992px) {
  /* Show hamburger button, hide desktop nav links */
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px 16px;
  }
}

@media (max-width: 768px) {
  /* Scale titles on mobile screens */
  h1, .demo-title {
    font-size: 2.1rem !important;
  }
  h2, .section-title {
    font-size: 1.65rem !important;
  }
  
  /* Hero section adjustments */
  section[style*="padding:140px"] {
    padding: 80px 0 !important;
  }
  
  /* Slogan banner adjustments */
  .slogan-container {
    flex-direction: column !important;
    text-align: center;
    gap: 32px;
  }
  .slogan-visual {
    margin: 0 auto;
  }
  .why-bullet-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

/* ══ FACEBOOK MESSENGER POPUP CHAT DOCK ══ */
#fb-chat-dock {
  position: fixed !important;
  bottom: 0 !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: flex-end !important;
  gap: 12px !important;
  z-index: 999999 !important;
  pointer-events: none !important;
  max-width: calc(100vw - 40px) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.fb-popup-window {
  width: 460px !important;
  height: 550px !important;
  background: #ffffff !important;
  border-radius: 18px 18px 0 0 !important;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid #cbd5e1 !important;
  border-bottom: none !important;
  display: flex !important;
  flex-direction: column !important;
  pointer-events: auto !important;
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
  font-family: var(--font-body, inherit) !important;
  margin: 0 !important;
  position: relative !important;
}

.fb-popup-window.minimized {
  height: 50px !important;
}

@media (max-width: 600px) {
  #fb-chat-dock {
    right: 5px !important;
    left: 5px !important;
    max-width: 100vw !important;
  }
  .fb-popup-window {
    width: 95vw !important;
    max-width: 460px !important;
  }
}

.fb-popup-header {
  background: linear-gradient(135deg, #0E8388, #00ADB5);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(14, 131, 136, 0.25);
  flex-shrink: 0;
}

.fb-popup-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.fb-popup-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0E8388;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-popup-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fb-popup-name {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.fb-popup-sub {
  font-size: 0.75rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-popup-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.fb-popup-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}

.fb-popup-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.fb-popup-body {
  flex: 1;
  background: #ffffff;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-popup-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-popup-bubble-wrap.me {
  align-items: flex-end;
}

.fb-popup-bubble-wrap.other {
  align-items: flex-start;
}

.fb-popup-sender {
  font-size: 0.65rem;
  color: #64748b;
  padding: 0 4px;
}

.fb-popup-bubble {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
  max-width: 82%;
}

.fb-popup-bubble-wrap.me .fb-popup-bubble {
  background: #0E8388;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.fb-popup-bubble-wrap.other .fb-popup-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.fb-popup-price-tag {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Inside sender bubble (me = dark teal background) */
.fb-popup-bubble-wrap.me .fb-popup-price-tag {
  background: #ffffff !important;
  color: #072E33 !important;
  border: 1.5px solid #00ADB5 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Inside recipient bubble (other = light gray background) */
.fb-popup-bubble-wrap.other .fb-popup-price-tag {
  background: linear-gradient(135deg, #0E8388 0%, #00ADB5 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(14, 131, 136, 0.3) !important;
}

.fb-popup-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
  flex-shrink: 0;
}

.fb-popup-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-popup-input {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  outline: none;
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 0.95rem;
  color: #0f172a;
  transition: border-color 0.2s, background 0.2s;
}

.fb-popup-input:focus {
  background: #ffffff;
  border-color: #0E8388;
}

.fb-popup-send-btn {
  background: linear-gradient(135deg, #0E8388, #00ADB5);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(14, 131, 136, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fb-popup-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(14, 131, 136, 0.5);
}

/* ==========================================================================
   FRONTEND-DESIGN SKILL ENHANCEMENTS — 2RTECH DESIGN SYSTEM
   ========================================================================== */

/* 1. Prestation Cards & Hover Elevation */
.prestation-item-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}
.prestation-item-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(14, 131, 136, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(14, 131, 136, 0.3) !important;
}

/* 2. Interactive Buttons & Form Feedback */
button, input[type="submit"], .btn-primary {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
button:active, input[type="submit"]:active, .btn-primary:active {
  transform: scale(0.98) translateY(1px);
}

/* 3. Smooth Collapsible Transitions for Messenger & Details Boxes */
.fb-messenger-card {
  animation: fadeInDown 0.25s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Enhanced Status Badges Glow */
.status-badge {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.status-badge:hover {
  transform: scale(1.04);
  filter: brightness(1.03);
}

/* 5. Custom Scrollbar for Chat Windows */
.fb-messenger-body::-webkit-scrollbar {
  width: 6px;
}
.fb-messenger-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.fb-messenger-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.fb-messenger-body::-webkit-scrollbar-thumb:hover {
  background: #0E8388;
}

/* ==========================================================================
   HIGH-END SCROLL REVEAL ANIMATIONS ("NADII" SCROLL SYSTEM)
   ========================================================================== */

#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #0E8388, #00ADB5, #38bdf8, #818cf8);
  box-shadow: 0 0 12px rgba(0, 173, 181, 0.8), 0 0 6px rgba(14, 131, 136, 0.6);
  z-index: 999999;
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed,
.reveal-up.is-revealed,
.reveal-left.is-revealed,
.reveal-right.is-revealed,
.reveal-scale.is-revealed,
.reveal-child.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Responsive Grid Form Rows */
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-grid-uneven {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .form-row-grid, .form-row-grid-uneven {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Contact Grid Layout */
.contact-grid-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 991px) {
  .contact-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}
