/* =====================================================
   Nexus Digital Agency – Premium Stylesheet
   ===================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(124,58,237,0.08) 100%);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Navbar ---- */
.agency-navbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.agency-navbar .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s;
}
.agency-navbar .nav-link:hover,
.agency-navbar .nav-link.active {
  color: #fff !important;
}
.brand-icon {
  display: inline-flex;
  width: 32px; height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}
.btn-primary-gradient {
  background: var(--gradient);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary-gradient:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff !important;
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-lg { padding: 0.75rem 2rem; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero-section .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ---- Cards ---- */
.service-card, .plan-card, .portfolio-card, .blog-card, .testimonial-card, .feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.service-card:hover, .portfolio-card:hover, .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--gradient-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.service-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 1rem; }
.service-card .price-tag {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ---- Pricing ---- */
.plan-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(79,70,229,0.15);
}
.plan-card .popular-badge {
  position: absolute;
  top: 16px; right: -32px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-card .plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
}
.plan-card .plan-billing {
  color: var(--gray);
  font-size: 0.85rem;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}
.plan-features li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--dark-2);
}
.plan-features li i {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* ---- Process Steps ---- */
.process-step {
  text-align: center;
  position: relative;
}
.process-number {
  width: 48px; height: 48px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ---- Trust indicators ---- */
.trust-item {
  text-align: center;
  padding: 1.5rem;
}
.trust-item i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.trust-item h6 { font-weight: 700; margin-bottom: 0.25rem; }
.trust-item p { color: var(--gray); font-size: 0.88rem; margin: 0; }

/* ---- Testimonials ---- */
.testimonial-card .stars { color: #f59e0b; margin-bottom: 0.75rem; }
.testimonial-card .client-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-card .client-role { color: var(--gray); font-size: 0.85rem; }

/* ---- FAQ ---- */
.accordion-button:not(.collapsed) {
  background: var(--gradient-soft);
  color: var(--primary);
  font-weight: 600;
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: #e2e8f0; }

/* ---- CTA Section ---- */
.cta-section {
  background: var(--gradient);
  color: #fff;
  padding: 70px 0;
  border-radius: var(--radius-lg);
  margin: 0 15px;
}
.cta-section h2 { font-weight: 800; }
.cta-section p { opacity: 0.9; }

/* ---- Forms ---- */
.form-control, .form-select {
  border-radius: 8px;
  border-color: #e2e8f0;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--dark-2); }

/* ---- Auth pages ---- */
.auth-wrapper {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 40px 0;
  background: var(--gradient-soft);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.auth-card h2 { font-weight: 800; margin-bottom: 0.5rem; }
.otp-input {
  letter-spacing: 0.5em;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 700;
}

/* ---- Dashboard ---- */
.dashboard-sidebar {
  background: var(--dark);
  min-height: calc(100vh - 60px);
  padding: 1.5rem 0;
}
.dashboard-sidebar .nav-link {
  color: rgba(255,255,255,0.7);
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-left-color: var(--primary);
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}
.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}
.stat-card .stat-label {
  color: var(--gray);
  font-size: 0.88rem;
}

/* ---- Admin ---- */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: #0f172a;
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar .brand {
  padding: 1.25rem 1.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.65);
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-left-color: #818cf8;
}
.admin-sidebar .nav-section {
  padding: 1rem 1.5rem 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}
.admin-content {
  margin-left: 260px;
  flex: 1;
  background: #f1f5f9;
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  padding: 0.85rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-main { padding: 1.75rem; }
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.table th { font-weight: 600; font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.03em; }
.badge-status-new { background: #dbeafe; color: #1d4ed8; }
.badge-status-contacted { background: #fef3c7; color: #b45309; }
.badge-status-in_progress { background: #e0e7ff; color: #4338ca; }
.badge-status-converted { background: #d1fae5; color: #047857; }
.badge-status-closed { background: #f1f5f9; color: #64748b; }

/* ---- Footer ---- */
.agency-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}
.footer-links a, .footer-contact a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-links li, .footer-contact li { margin-bottom: 0.4rem; }
.footer-contact i { margin-right: 0.5rem; color: var(--primary); }
.social-link {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.15s;
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ---- Portfolio / Blog ---- */
.portfolio-card img, .blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.category-badge {
  display: inline-block;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: capitalize;
}

/* ---- Misc ---- */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-soft { background: var(--gradient-soft); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .hero-section { padding: 70px 0 50px; }
  .section { padding: 50px 0; }
}
@media (max-width: 576px) {
  .auth-card { padding: 1.75rem; }
  .plan-card .plan-price { font-size: 1.8rem; }
}
