/* assets/css/style.css */
:root {
  --bg: #f7f9fc;
  --bg-soft: #ffffff;
  --text: #1c2230;
  --muted: #6b7483;
  --primary: #14246c;
  --accent: #ffff03;
  --success: #22c55e;
  --info: #38bdf8;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #eef2ff, #f7f9fc 40%, #fff);
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
}


.fbip-btn-solid {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
}

.fbip-btn-solid:hover {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* Outline Button */
.fbip-btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 12px 28px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Line with moving ball animation */
.fbip-slider {
  position: relative;
  width: 150px;       /* line length */
  height: 2px;        /* line thickness */
  background: var(--accent);
  border-radius: 10px;
  margin: 10px auto;

}

.fbip-slider::after {
content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translate(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    animation: fbip-moveBall 2s ease-in-out infinite alternate;
}

@keyframes fbip-moveBall {
  0% {
    left: 0;
  }
  100% {
    left: 100%;
    transform: translateX(-100%);
  }
}

.fbip-special-text{
  position: relative;
  display: inline-block;
  font-weight: 800;
  letter-spacing: .5px;
  /* gradient text */
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* subtle glow */
  text-shadow: 0 0 0 rgba(0,0,0,0);
  /* shimmer animation */
  --shine: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  background-size: 200% 100%;
  animation: fbip-shine 3s linear infinite;
}

/* animated underline */
.fbip-special-text::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  height:3px;
  width:100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s ease;
}

/* hover/focus effects */
.fbip-special-text:hover,
.fbip-special-text:focus{
  letter-spacing: .8px;
}

.fbip-special-text:hover::after,
.fbip-special-text:focus::after{
  transform: scaleX(1);
}

/* optional soft glow on dark sections */
.dark .fbip-special-text{
  text-shadow: 0 4px 18px rgba(20,36,108,.25);
}

/* motion-safe */
@media (prefers-reduced-motion: reduce){
  .fbip-special-text{ animation: none; }
  .fbip-special-text::after{ transition: none; }
}

/* keyframes */
@keyframes fbip-shine{
  0%   { background-position: 200% 0; }
  100% { background-position:   0% 0; }
}

/* Buttons */
.btn-primary-soft {
  background: #eef2ff;
  color: #27306a;
  border: 1px solid #e2e7ff;
}
.btn-primary-soft:hover {
  filter: brightness(0.98);
}

.btn-gradient {
  background: linear-gradient(135deg, #4b6bfb, #7aa2ff);
  color: #fff;
  border: none;
}
.btn-gradient:hover {
  filter: brightness(0.97);
}
.btn-outline-secondary:hover {
  background: #f3f4f6;
}

/* Sections */
.section-soft {
  background: var(--gradient);
}
.section-title p {
  color: var(--muted);
}
.section-title h2 {
  letter-spacing: -0.3px;
}

/* Hero */
.hero-section {
  background: radial-gradient(
      1200px 600px at 10% 10%,
      #eef2ff 0%,
      transparent 50%
    ),
    radial-gradient(1200px 600px at 90% 20%, #fef3c7 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
  position: relative;
}
.particles-layer {
  position: absolute;
  inset: 0;
}
.badge-soft {
  background: #f3f6ff;
  border: 1px solid #e8edff;
  color: #334155;
  border-radius: 30px;
}

/* Cards and elements */
.card,
.tool-card,
.service-card {
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.card:hover {
  transform: translateY(-3px);
  transition: 0.3s ease;
}

.img-rounded {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5ff;
  color: #4b6bfb;
}
.icon-safe {
  background: #ecfdf5 !important;
  color: var(--success) !important;
}
.icon-warm {
  background: #fffbeb !important;
  color: #f59e0b !important;
}
.icon-danger {
  background: #fef2f2 !important;
  color: var(--danger) !important;
}
.icon-info {
  background: #f0f9ff !important;
  color: var(--info) !important;
}

.link-clean {
  color: var(--text);
  text-decoration: none;
}
.link-clean:hover {
  color: var(--primary);
}

/* Stats */
.stat-item {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Hero image ratio */
.ratio-hero {
  position: relative;
  width: 100%;
  padding-bottom: 68%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.ratio-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utilities */
a {
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

body {
  font-family: "Inter", sans-serif;
  color: #1c2230;
}
.section-header h2 {
  letter-spacing: -0.5px;
}
.hero-section {
  position: relative;
  background: #f8f9fa;
}
.particles-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stat-item {
  background: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}
img {
  max-width: 100%;
  height: auto;
}

/* Custom gradient background */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* Hero section minimum height */
.min-vh-75 {
  min-height: 75vh;
}

/* Card hover effects */
.tool-card,
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Portfolio item hover effect */
.portfolio-item {
  transition: transform 0.3s ease;
}

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

/* Custom text colors */
.text-purple {
  color: var(--purple-color) !important;
}

/* Service icon styling */
.service-icon {
  height: 60px;
  display: flex;
  align-items: center;
}

/* Stats animation */
.stat-item {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.stat-item:nth-child(1) {
  animation-delay: 0.1s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}
.stat-item:nth-child(3) {
  animation-delay: 0.3s;
}
.stat-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation active state */
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Button hover effects */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .hero-section {
    text-align: center;
  }

  .hero-section .col-lg-6:first-child {
    order: 2;
  }

  .hero-section .col-lg-6:last-child {
    order: 1;
    margin-bottom: 2rem;
  }
}

/* Loading animation for tools */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Result styling */
.result-box {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
}

.result-success {
  border-left-color: var(--success-color);
  background: #d1e7dd;
}

.result-warning {
  border-left-color: var(--warning-color);
  background: #fff3cd;
}

.result-danger {
  border-left-color: var(--danger-color);
  background: #f8d7da;
}

/* Navbar Container */
.custom-navbar {
  transition: all 0.3s ease-in-out;
  padding: 0.7rem 0;
}

/* Logo Image Styling */
.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Logo Hover Effect */
.navbar-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Site Name Styling */
.site-name {
  font-size: 1.2rem;
  color: #222;
  transition: color 0.3s ease;
}

/* Hover on Brand Name */
.navbar-brand:hover .site-name {
  color: #ff9800;
}

/* Navbar Links */
.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.6rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

/* Hover Effect on Links */
.navbar-nav .nav-link:hover {
  color: #000000;
  border-bottom: 1px solid var(--info);
}

/* Active Link */
.navbar-nav .nav-link.active {
  color: #ff9800;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar-logo {
    height: 35px;
  }
  .site-name {
    font-size: 1rem;
  }
}

