/* Global Styles */
html {
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(to bottom, #e9edff 0%, #bfd1ff 100%);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
}

/* Floating Animation for Banner */
.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}
.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated Buttons */
.animated-btn {
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.animated-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease-in-out;
}

.animated-btn:hover::after {
  left: 0;
}

.animated-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.top-logo {
  height: 50px;
}

/* Why Choose Us Section */
.why-choose-us {
  background: linear-gradient(to bottom, #ffffff 0%, #dbe3ff 100%);
  overflow: hidden;
}

.why-choose-us h2 {
  color: #000;
}

.why-choose-us .floating {
  animation: float 6s ease-in-out infinite;
  max-width: 80%;
  border-radius: 12px;
}

/* Fade-in animation reuse */
.why-choose-us .fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.why-choose-us .fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

@media (max-width: 768px) {
  .why-choose-us h2 {
    font-size: 2rem;
  }
}

/* Core Features Section */
.core-features {
  background: #ffffff;
}

.core-features .feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.core-features .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.feature-img {
  width: 80%;
  transition: transform 0.5s ease-in-out;
}

.feature-card:hover .feature-img {
  transform: scale(1.05) rotate(3deg);
}

/* Floating animation reuse */
.floating {
  animation: float 6s ease-in-out infinite;
}

/* Fade-in reuse */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

@media (max-width: 768px) {
  .core-features h2 {
    font-size: 2rem;
  }

  .feature-img {
    width: 60%;
  }
}

/* ROI & Support Section */
.roi-support {
  background: #ffffff;
}

.roi-support img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Fade-in Reuse */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

/* Spacing Adjustments */
.roi-support h3 {
  font-size: 1.75rem;
}

@media (max-width: 768px) {
  .roi-support h3 {
    font-size: 1.5rem;
  }
}

/* Industries Section */
.industries {
  background: #ffffff;
}

.industry-icon {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.industry-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Fade-in Reuse */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
  .industries h2 {
    font-size: 1.8rem;
  }
  .industry-icon {
    width: 60px;
    height: 60px;
  }
}

/* How It Works Section */
.how-it-works {
  background: linear-gradient(to bottom, #ffffff 0%, #dfe6ff 100%);
  color: #000;
}

.how-it-works h2 {
  font-size: 2.2rem;
}

.how-it-works p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.how-it-works .btn {
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

/* Fade-in Animations (reuse) */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
  .how-it-works h2 {
    font-size: 1.8rem;
  }
}

/* Data Security Section */
.data-security {
  background: #f2f2f2;
}

.data-security h2 {
  color: #000;
  font-size: 2.2rem;
}

.data-security p {
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Light Button Styling */
.data-security .btn {
  border-radius: 10px;
  padding: 0.7rem 2rem;
  transition: all 0.3s ease-in-out;
}

.data-security .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Fade-in Reuse */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

@media (max-width: 768px) {
  .data-security h2 {
    font-size: 1.8rem;
  }
}

/* Footer Section */
.footer {
  background: #000;
  color: #fff;
}

.footer img {
  filter: brightness(1.2);
}

.footer p {
  line-height: 1.6;
}

.footer .hover-link {
  transition: color 0.3s ease;
}

.footer .hover-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer .text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer ul {
    padding-left: 0;
  }
}

/* How It Works (Steps) Section */
.how-it-works-steps {
  background: #ffffff;
}

.how-it-works-steps .step-card {
  background: #fff;
  border: 1px solid #f1f1f1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-steps .step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Number styling */
.how-it-works-steps h3 {
  font-size: 2rem;
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
  .how-it-works-steps h2 {
    font-size: 1.8rem;
  }

  .how-it-works-steps h3 {
    font-size: 1.5rem;
  }
}

/* Why Choose Doccuman Section */
.why-choose-doccuman {
  background: #ffffff;
}

.why-choose-doccuman .why-card {
  background: #fff;
  border: 1px solid #f1f1f1;
  transition: all 0.3s ease;
}

.why-choose-doccuman .why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.why-choose-doccuman img {
  transition: transform 0.4s ease;
}

.why-choose-doccuman .why-card:hover img {
  transform: scale(1.03);
}

/* Floating animation reuse */
.floating {
  animation: float 6s ease-in-out infinite;
}

/* Fade-in animation reuse */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
  .why-choose-doccuman h2 {
    font-size: 1.8rem;
  }

  .why-choose-doccuman img {
    width: 100%;
  }
}

.privacy-banner {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 5rem;
  padding-top: 5rem;
}

/* Privacy Policy Section */
.privacy-policy {
  background: #fff;
}

.policy-card {
  border: 1px solid #f1f1f1;
  background: #fff;
  transition: all 0.3s ease;
}

.policy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Fade-in Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
  .policy-card {
    padding: 1.5rem;
  }
}

/* Terms & Conditions Section */
.terms-and-conditions {
  background: #ffffff;
}

.terms-card {
  border: 1px solid #f1f1f1;
  background: #fff;
  transition: all 0.3s ease;
}

.terms-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.terms-and-conditions ul {
  padding-left: 1.2rem;
}

/* Fade-in animation reuse */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
  .terms-card {
    padding: 1.5rem;
  }
}

/* Contact Us Section */
.contact-us {
  background: #ffffff;
}

.contact-us .form-control {
  background: #f7f7f7;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.contact-us .form-control:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.contact-us .btn {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-us .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-us .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* smooth anchor/scrollTo */
.to-top-btn {
  --size: 52px;
  --ring: rgba(124, 58, 237, 0.25); /* ring color */
  --grad: linear-gradient(135deg, #0d6efd, #0d6efd);
  background: var(--grad);
  background-clip: content-box, border-box;

  /* progress ring */
  background-image: conic-gradient(
      #ffffff00 0 var(--p, 0deg),
      var(--ring) var(--p, 0deg) 360deg
    ),
    var(--grad);
  background-origin: border-box;
  border: 0;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: grid;
  height: var(--size);
  opacity: 0;
  padding: 3px; /* ring thickness */
  place-items: center;
  position: fixed;
  right: 22px;

  /* slide-in/out */
  transform: translateY(18px);
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.2s ease;
  visibility: hidden;
  width: var(--size);
  z-index: 1040;
}
.to-top-btn i {
  font-size: 1.1rem;
}
.to-top-btn:hover {
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.to-top-btn.show {
  animation: bump 0.28s ease-out 1;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
@keyframes bump {
  0% {
    transform: translateY(10px) scale(0.96);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .to-top-btn {
    animation: none;
    transition: none;
  }
}
