/* Custom styles for EvinceTech */

body {
  font-size: 14px;
}

h1, h2, h3 {
  font-weight: 600;
}

.feature-card {
  background: #fff;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 150px; 
}
.feature-card:hover {
  background: #f5f7fa;
  transform: translateY(-3px);
}

/* Navbar */
nav {
position: sticky;
top: 0;
background: white;
z-index: 100;
box-shadow: 0 2px 10px rgb(0 0 0 / 0.05);
padding: 1rem 2rem;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
left: 0;
}

nav .navbar-brand {
font-weight: 700;
font-size: 1.5rem;
color: #121212;
}

nav .nav-link {
font-weight: 600;
color: #4a4a4a;
transition: color 0.3s ease;
text-transform: uppercase;
font-size: 0.875rem;
letter-spacing: 0.1em;
}

nav .nav-link:hover {
color: #007bff;
}



/* Hero Slider Fullscreen */
.hero-slider {
position: relative;
height: 60vh;
width: 100%;
overflow: hidden;
}

.hero-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: scale(1.05);
transition: opacity 1s ease, transform 2s ease;
}

.hero-slide.active {
opacity: 1;
transform: scale(1);
z-index: 1;
}

.hero-slide .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
/* dark overlay for readability */
z-index: 1;
}

.hero-content {
position: relative;
z-index: 2;
text-align: center;
color: #fff;
max-width: 800px;
padding: 0 1rem;
animation: fadeUp 1s ease;
}

.hero-content h1 {
font-size: 3rem;
margin-bottom: 1rem;
}

.hero-content p {
font-size: 1.25rem;
margin-bottom: 2rem;
color: #e0e0e0;
}

.bg-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}

/* Text fade up animation */
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(30px);
}

to {
opacity: 1;
transform: translateY(0);
}
}


#solutions .swiper-button-next,
#solutions .swiper-button-prev {
  color: #0d6efd;
}

#solutions .swiper-pagination-bullet-active {
  background: #0d6efd;
}


/*chatbox*/
.chat-box {
  max-height: 500px;
  overflow-y: auto;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.chat-message {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 75%;
  white-space: pre-wrap; /* ✅ preserves line breaks */
}

.chat-message.user {
  background: #007bff;
  color: #fff;
  margin-left: auto;
  text-align: right;
}

.chat-message.ai {
  background: #e9ecef;
  color: #000;
  margin-right: auto;
  text-align: left;
}

 /* Chat bubble styles */
  .chat-bubble {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 75%;
    word-wrap: break-word;
    white-space: pre-wrap; /* preserves line breaks */
    line-height: 1.4;
    font-size: 13px;
  }

  .chat-user {
    background-color: #0d6efd;
    color: white;
    align-self: flex-end;
  }

  .chat-ai {
    background-color: #e9ecef;
    color: #212529;
    align-self: flex-start;
  }

  .chat-loader {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
  }

  /*button*/
  .btn-gradient {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border: none;
  color: #fff !important;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-gradient:hover {
  background: linear-gradient(90deg, #4338ca, #0891b2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-glass {
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.4);
  color: #4f46e5 !important;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(79, 70, 229, 0.3);
  color: #fff !important;
  transform: translateY(-2px);
}


.btn-outline-elegant {
  border: 2px solid #4f46e5;
  color: #4f46e5 !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-elegant:hover {
  background: #4f46e5;
  color: #fff !important;
  transform: scale(1.05);
}


.btn-neon {
  background: #111;
  color: #fff !important;
  border: 2px solid #06b6d4;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(6, 182, 212, 0.6);
}

.btn-neon:hover {
  background: #06b6d4;
  color: #111 !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
  transform: translateY(-2px);
}

.btn-gradient-dark {
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-gradient-dark:hover {
  background: linear-gradient(90deg, #4f46e5, #0891b2);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}


.btn-glass-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.btn-glass-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #024551 !important;
  transform: translateY(-2px);
}

.form-label {
    margin-bottom: 0rem !important; 
    font-weight: 600;
    color: darkslategray;
}


.marker-underline {
  display: inline-block;
  position: relative;
}

.marker-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px; /* adjust underline distance */
  width: 100%;
  height: 0.6em; /* thickness of marker */
  background: rgba(255, 165, 0, 0.5); /* orange marker color */
  z-index: -1; /* keeps text above the marker */
  transform: skew(-8deg); /* makes it look hand-drawn */
  border-radius: 3px;
}

.row {  margin-right:0px} /*to avoid rightside scroll in mobile*/

