
html {
  scroll-behavior: smooth;
  
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* or your site's background color */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Spinner animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #2e5f5e; /* your brand color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Robo Section Styles */
.animated-robot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  z-index: 999;
  animation: floatBot 3s ease-in-out infinite;
}

.animated-robot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating effect */
@keyframes floatBot {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.back-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(60%);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Navbar brand color tweak */
.navbar-brand span {
  color: #e63946;
}

/* Smooth font scaling */
.hero-section h1 {
  font-size: 2.5rem;
}

@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
}


/* why-kanns.css */

.custom-card {
  background: linear-gradient(135deg, #212529, #343a40);
  transition: all 0.3s ease-in-out;
  border: none;
}

.custom-card:hover {
  background: linear-gradient(135deg, #2d2f4a, #40485a);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}




/* About Us Section */
.about-us-section {
  background-color: #fff;
}

.about-us-section .section-tag {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.about-us-section h2 {
  font-size: 2.1rem;
  font-weight: 700;
}

.about-us-section p.text-muted {
  font-size: 0.95rem;
  color: #6c757d;
}

.about-us-section .btn-danger {
  background-color: #f44336;
  border: none;
}

@media (min-width: 768px) {
  .about-us-section h2 {
    font-size: 2.5rem;
  }
}

/* Services Grid Section */

/* scope-services.css */

.scope-services-section .service-card {
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.scope-services-section .service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.scope-services-section .service-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 50%;
}

.scope-services-section .service-list {
  list-style: none;
  padding-left: 0;
  line-height: 1.7;
}

.scope-services-section .service-list li::before {
  content: "✔";
  color: #28a745;
  margin-right: 10px;
  font-weight: bold;
}



/* create for u section */
.project-cta-section {
  background: url('img/create.jpg') no-repeat center center;
  background-size: cover;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.project-cta-section .cta-card {
  max-width: 500px;
}

/* testimonial */
.testimonial-section .border-primary {
  border-color: #237004 !important;
}
.testimonial-section .fs-4 {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
}


/* Footer */

.footer-section {
  background: #f8f9fa;
}
.footer-section h6 {
  margin-bottom: 1rem;
}
.footer-section ul li {
  margin-bottom: 0.5rem;
  
}
.footer-section .form-control {
  border-radius: 0;
}
.footer-section .btn-danger {
  background-color: #f44336;
  border: none;
}
.footer-section .social-icons a {
  color: #063d6d;
  margin-right: 10px;
}
.footer-section .social-icons a:hover {
  color: #e63946;
}
.footer-section .social-icons i {
  font-size: 1.5rem;
}


/* About us (Why Kanns section styles) */
.why-kanns h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #2c3e50;
}

.why-kanns p,
.why-kanns li {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

.why-kanns ul {
  list-style: none;
  padding-left: 0;
}

.why-kanns li::before {
  content: '♦';
  color: #d63384;
  margin-right: 8px;
}

.why-kanns img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Cards */
.why-kanns .info-card {
  border-top: 4px solid #e74c3c;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease-in-out;
}

.why-kanns .info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.why-kanns .info-card h5 {
  margin-top: 15px;
  font-weight: 600;
}

.why-kanns .info-card img {
  width: 50px;
  margin-bottom: 10px;
}


/* Blog Hero Section Seperate Page */
.blog-hero {
  background: url('img/blog.jpg') center center/cover no-repeat;
  height: 150px;
  position: relative;
}

.blog-hero .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.blog-hero .z-1 {
  z-index: 2;
}

/* Blog Cards */


.blog-card {
  background-color: #fff;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

.blog-card .card-title {
  font-size: 1.2rem;
}

.blog-card .card-text {
  font-size: 0.95rem;
}



.service-section  {
  background: url('https://img.freepik.com/free-photo/top-view-tablet-wooden-table_23-2148511550.jpg') center center/cover no-repeat;
  height: 150px;
  position: relative;
}

.service-box {
  background: #fff;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  border-radius: 8px;
}
.service-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.cta-section {
  background-size: cover;
  background-position: center;
}


/* Contact Section Page*/
.contact-hero {
  background: url('img/contact.jpg') center/cover no-repeat;
  height: 20vh;
  background-color: #6c757d;
}

.contact-hero h1 {
  font-size: 3rem;
}


.contact-section input,
.contact-section textarea {
  background-color: #f6f8f9;
  border: 1px solid #e1e1e1;
  border-radius: 0.25rem;
}

.contact-section .btn {
  background-color: #ef3f3f;
  border: none;
  transition: background 0.3s ease;
}

.contact-section .btn:hover {
  background-color: #c12d2d;
}

.social-icons a {
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ef3f3f;
}

/* Portfolio Section */
.portfolio-hero {
  background: url('img/back.jpg') center/cover no-repeat;
  height: 20vh;
  position: relative;
  padding-top: 20px;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay */
}

.portfolio-hero .container {
  position: relative;
  z-index: 1;
}



/* Intro Section */
.portfolio-intro h2 {
  font-size: 2rem;
  color: #222;
}

/* Gallery Styling */


.portfolio-projects h3 {
  color: #222;
  margin-bottom: 15px;
}

.portfolio-projects p {
  color: #555;
}




 

