/* ==========================================================================
   RJ Brandings - Official Design System | White / Light Theme
   Brand: Royal Blue, Deep Indigo, Electric Cyan
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Light Theme Backgrounds */
  --bg-dark: #ffffff;
  --bg-section-alt: #f7f8fc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(248, 250, 252, 1);
  --border-glow: rgba(26, 79, 189, 0.25);
  --border-subtle: rgba(0, 0, 0, 0.08);

  /* Brand Accents */
  --magenta: #1a4fbd;
  --magenta-glow: rgba(26, 79, 189, 0.35);
  --indigo: #6366f1;
  --cyan: #0284c7;
  --amber: #f59e0b;

  /* Light Theme Text */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 35px rgba(26, 79, 189, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* Ambient subtle background */
.bg-ambient {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 15%, rgba(26, 79, 189, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(99, 102, 241, 0.04) 0%, transparent 45%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Glass / Card ---- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* ---- Header & Navigation ---- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
  padding: 10px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 80px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.brand-logo-img:hover {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--magenta);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--magenta);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--magenta), var(--indigo));
  color: #fff;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--magenta-glow);
  transition: var(--transition);
  font-size: 0.92rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(26, 79, 189, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--magenta);
  border: 1.5px solid var(--magenta);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.92rem;
}

.btn-outline:hover {
  background: var(--magenta);
  color: #fff;
}

/* ---- Page Banner ---- */
.page-banner {
  padding: 160px 0 70px;
  text-align: center;
  background: linear-gradient(180deg, #fff8f9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-banner h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

.page-banner h1 span {
  color: var(--magenta);
}

.page-banner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 750px;
  margin: 0 auto;
}

/* ---- Hero Section ---- */
.hero {
  padding: 150px 0 90px;
  background: linear-gradient(160deg, #fff9fa 0%, #f8f9ff 50%, #ffffff 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 79, 189, 0.08);
  border: 1px solid rgba(26, 79, 189, 0.2);
  color: var(--magenta);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-title span {
  color: var(--magenta);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* Floating WhatsApp Chat Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.65);
  color: #ffffff !important;
}

.stat-item h4 {
  font-size: 1.6rem;
  color: var(--magenta);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual { position: relative; }

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glow);
}

.hero-image-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.visual-badge {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.visual-badge strong { color: var(--text-main); }

/* ---- Section Common ---- */
.section {
  padding: 90px 0;
  background: #ffffff;
}

.section-alt {
  padding: 90px 0;
  background: var(--bg-section-alt);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--magenta);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-description {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---- P3 Method ---- */
.p3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.p3-card {
  padding: 36px;
  text-align: center;
  border-top: 3px solid var(--magenta);
}

.p3-letter {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--magenta);
  margin-bottom: 12px;
  line-height: 1;
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card { padding: 32px; position: relative; }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(26, 79, 189, 0.08);
  border: 1px solid rgba(26, 79, 189, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 18px; }

.service-list { list-style: none; margin-bottom: 24px; }
.service-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 8px;
}
.service-list li::before { content: "✓"; color: var(--magenta); font-weight: 700; }

/* ---- Process Timeline ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-card { padding: 28px; }
.process-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--magenta);
  margin-bottom: 12px;
}

/* ---- FAQ Accordion ---- */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
  display: none;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-toggle { transform: rotate(45deg); color: var(--magenta); }

/* ---- Before & After Sliders ---- */
.ba-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ba-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.ba-card-title {
  background: var(--bg-section-alt);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ba-card-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.ba-card-title span {
  font-size: 1.4rem;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}

.slider-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.slider-after {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid var(--magenta);
  box-shadow: 4px 0 18px rgba(26, 79, 189, 0.4);
}

.slider-after img {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  min-width: 100%;
  max-width: none;
  object-fit: cover;
}

.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-handle-btn {
  width: 42px; height: 42px;
  background: var(--magenta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 18px var(--magenta-glow);
  border: 2px solid #fff;
}

.slider-label {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 5;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-label.before-label { left: 14px; }
.slider-label.after-label { right: 14px; color: var(--magenta); }

/* ---- Portfolio / Showcase ---- */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 20px;
  background: #fff;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--magenta);
  color: #fff;
  border-color: var(--magenta);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

.portfolio-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay {
  padding: 18px 20px;
  background: #fff;
  border-top: 1px solid var(--border-subtle);
}

.portfolio-overlay h4 { font-size: 1.05rem; margin-bottom: 4px; }
.portfolio-overlay p { color: var(--text-muted); font-size: 0.82rem; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 11px 15px;
  background: #f9fafb;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.93rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--magenta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 79, 189, 0.12);
}

.dim-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- Hero Grid Two-Column Util ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ---- Footer ---- */
footer {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: #94a3b8; margin-top: 14px; font-size: 0.88rem; }

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: #f8fafc;
  letter-spacing: 0.04em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }

.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--magenta); }

.footer-bottom {
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-box {
  background: #fff;
  border: 1px solid var(--border-subtle);
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal-icon { font-size: 2.8rem; margin-bottom: 16px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid, .p3-grid, .process-grid, .ba-section-grid {
    grid-template-columns: 1fr;
  }
  .hero-title { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* 3-col slider grid → 1 col on tablet */
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .dim-inputs { grid-template-columns: 1fr; }
  .ba-section-grid { grid-template-columns: 1fr; }
}
