/* Global Variables & Responsive Spacing */
:root {
  --accent: #10b981;
  --accent-soft: #ecfdf5;
  --bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #f1f5f9;
  --section-py: 4rem; /* Mobile: 64px */
}

@media (min-width: 768px) {
  :root {
    --section-py: 8rem; /* Desktop: 128px */
  }
}

/* Global Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', 'Hind Siliguri', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typography Optimizations */
h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
h1, .hero-title { 
  font-size: 4rem !important; 
  font-size: clamp(4rem, 15vw, 6.5rem) !important; 
  font-weight: 950 !important;
  line-height: 1 !important;
}

h2 { font-size: clamp(2.2rem, 8vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; }
h4, h5, h6 { font-weight: 600; }
p { font-weight: 400; line-height: 1.7; color: var(--text-muted); }

.hero-title { font-weight: 950; }
.section-title { font-weight: 700; }

/* Responsive Container Padding */
.section-wrap {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Base Buttons - Ultra Responsive */
.btn-primary, .btn-clean {
  background: var(--text);
  color: white;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  width: 100%; /* Mobile full width */
}
@media (min-width: 640px) {
  .btn-primary, .btn-clean { width: auto; font-size: 11px; padding: 1.15rem 2.5rem; }
}

.btn-primary:hover, .btn-clean:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.btn-outline, .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 640px) {
  .btn-outline, .btn-ghost { width: auto; font-size: 11px; padding: 1.15rem 2.5rem; }
}
.btn-outline:hover, .btn-ghost:hover {
  background: #f8fafc;
  border-color: var(--accent);
  color: var(--accent);
}

/* Stats - Optimized for Mobile Grid */
.stat-card {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stat-card { padding: 2.5rem; border-radius: 2rem; }
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
  .stat-number { font-size: 2.8rem; }
}
.stat-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .stat-label { font-size: 10px; }
}

/* Service Cards - Mobile Optimized */
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
@media (min-width: 768px) {
  .service-card { padding: 3rem; border-radius: 2.5rem; }
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.05);
}
.service-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .service-icon { width: 64px; height: 64px; font-size: 1.5rem; margin-bottom: 2rem; }
}
.service-badge {
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Portfolio */
.portfolio-item {
  border-radius: 2.5rem;
  background: white;
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}
.portfolio-item:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.04);
}

/* Input Fields */
.input-field {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 1rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: all 0.3s ease;
  outline: none;
}
.input-field:focus {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.05);
}

/* Modal - Luxury Glass */
.review-modal-overlay {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
}
.review-modal {
  background: white;
  width: 95%;
  max-width: 500px;
  border-radius: 2.5rem;
  padding: 2.5rem;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.5);
}
.review-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.review-modal-title { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.review-modal-close { font-size: 2rem; color: var(--text-muted); cursor: pointer; border: none; background: none; }

/* Toast Styling */
.toast-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.toast-success .toast-dot { background: var(--accent); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; }
.toast-title { font-weight: 800; font-size: 13px; }

/* Floating Support - Premium */
.wa-float {
  width: 65px;
  height: 65px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  border: none;
  position: relative;
}
.wa-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Standard Chat Components (Preserved Parity but Cleaned) */
.chat-float { position: fixed; right: 25px; bottom: 25px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.chat-toggle { width: 65px; height: 65px; background: #22c55e; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer; border: 3px solid #000; box-shadow: 0 0 0 4px #fff, 0 8px 25px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.chat-menu { width: 330px; max-width: calc(100vw - 50px); background: white; border-radius: 32px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 1px solid var(--border); transform-origin: bottom right; }
.chat-header-clean { padding: 20px 10px; display: flex; align-items: center; gap: 15px; }
.chat-header-icon { width: 48px; height: 48px; background: #e7f9f0; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #059669; font-size: 22px; }
.chat-link-card { display: flex; align-items: center; gap: 15px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 20px; background: white; color: var(--text); font-weight: 800; font-size: 15px; transition: all 0.2s ease; text-decoration: none; }
.chat-link-card:hover { border-color: #22c55e; background: #fcfdfd; }
.icon-box { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.bg-messenger { background: #e7f0ff; color: #0084ff; }
.bg-telegram { background: #e3f2fd; color: #0088cc; }
.bg-whatsapp { background: #e8f5e9; color: #25d366; }
.bg-call { background: #fff3e0; color: #ff9800; }
