:root {
  --primary: #0d6efd;
  --primary-light: #e3f2fd;
  --primary-dark: #0b5ed7;
  --primary-soft: #f0f7ff;
  --accent: #0284c7;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(13, 110, 253, 0.1);
  --shadow-hover: 0 8px 30px rgba(13, 110, 253, 0.2);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  color: var(--text-dark);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-light);
  color: var(--primary) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--primary-light) 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
}

.hero-img-wrapper {
  position: relative;
  z-index: 1;
}

.hero-img-wrapper .floating-icon {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.hero-img-wrapper .floating-icon:nth-child(1) {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.hero-img-wrapper .floating-icon:nth-child(2) {
  bottom: 15%;
  left: 5%;
  animation-delay: 1s;
}

.hero-img-wrapper .floating-icon:nth-child(3) {
  top: 50%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Section Styling */
.section-padding {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 15px auto 0;
}

.bg-light-blue {
  background: var(--primary-soft);
}

/* Cards */
.card-custom {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 35px 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-custom .icon-box {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--primary);
  transition: var(--transition);
}

.card-custom:hover .icon-box {
  background: var(--primary);
  color: var(--white);
}

.card-custom h5 {
  font-weight: 700;
  margin-bottom: 12px;
}

.card-custom p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Blog Cards */
.blog-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.blog-card .blog-img {
  height: 220px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
  position: relative;
}

.blog-card .blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-card .blog-body {
  padding: 25px;
}

.blog-card .blog-body h5 {
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-card .blog-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.blog-card .blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* About Preview Section */
.about-preview {
  position: relative;
}

.about-preview .about-image {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 350px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: var(--primary);
}

.about-preview .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-hover);
}

.experience-badge .number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.experience-badge .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Why Choose Us */
.why-item {
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
}

.why-item .why-icon {
  width: 55px;
  height: 55px;
  min-width: 55px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.why-item .why-text h6 {
  font-weight: 700;
  margin-bottom: 6px;
}

.why-item .why-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* How It Works */
.step-card {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.step-card .step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.15);
}

.step-card h6 {
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  top: 45px;
  right: -30px;
  font-size: 24px;
  color: var(--primary);
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(13, 110, 253, 0.1);
  font-family: Georgia, serif;
}

.testimonial-card .stars {
  color: #ffc107;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
}

.testimonial-author .author-info h6 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.testimonial-author .author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-section p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Footer */
.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  padding: 3px 0;
}

.footer a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer .footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary) !important;
  margin-bottom: 12px;
}

.footer .footer-brand span {
  color: var(--white);
}

.footer p {
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
}

.footer .footer-links li {
  margin-bottom: 8px;
}

.footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Page Hero (Inner Pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  padding: 130px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Contact Form */
.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
}

.contact-info-item .ci-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
}

.contact-info-item .ci-text h6 {
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-item .ci-text p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.92rem;
}

/* Service Detail */
.service-detail-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 20px;
}

/* Blog Detail */
.blog-detail-content h2 {
  font-weight: 700;
  margin: 30px 0 15px;
  font-size: 1.6rem;
}

.blog-detail-content h3 {
  font-weight: 700;
  margin: 25px 0 12px;
  font-size: 1.3rem;
}

.blog-detail-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.blog-detail-content ul,
.blog-detail-content ol {
  color: var(--text-muted);
  line-height: 1.9;
  padding-left: 20px;
  margin-bottom: 20px;
}

.blog-detail-content ul li,
.blog-detail-content ol li {
  margin-bottom: 8px;
}

.blog-detail-content .tip-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 25px 0;
}

.tip-box strong {
  color: var(--primary);
}

/* Legal Pages */
.legal-content h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 35px 0 15px;
  color: var(--text-dark);
}

.legal-content h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 25px 0 12px;
  color: var(--text-dark);
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 15px;
}

.legal-content ul {
  color: var(--text-muted);
  line-height: 1.9;
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

.last-updated {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 30px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1199.98px) {
  .hero h1 { font-size: 2.6rem; }
}

@media (max-width: 991.98px) {
  .hero { padding: 120px 0 70px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .section-padding { padding: 70px 0; }
  .section-title h2 { font-size: 1.8rem; }
  .step-connector { display: none; }
  .about-preview .experience-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
  }
  .page-hero h1 { font-size: 2rem; }
  .navbar-collapse {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 767.98px) {
  .hero { padding: 110px 0 60px; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { margin: 0 auto 20px; }
  .hero-img-wrapper { margin-top: 40px; }
  .section-padding { padding: 55px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .cta-section h2 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero { padding: 110px 0 40px; }
  .footer { padding: 40px 0 20px; }
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 18px; }
  .blog-card .blog-img { height: 180px; }
}

@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.5rem; }
  .section-title h2 { font-size: 1.3rem; }
  .card-custom { padding: 25px 20px; }
  .cta-section h2 { font-size: 1.3rem; }
  .cta-section p { font-size: 0.95rem; }
  .navbar-brand { font-size: 1.3rem; }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page loader / transitions */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper > .footer {
  margin-top: auto;
}
