.product-section {
  background: linear-gradient(90deg, #2c3e50, #34495e);
  /* border-radius: 20px; */
  padding: 20px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  margin: 20px 0;
  border: 1px solid rgba(44, 62, 80, 0.3);
}

.product-section h1 {
  text-align: center;
  font-size: 2.5em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 50px;
  position: relative;
}

.product-section h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2c3e50, #34495e);
  border-radius: 2px;
}

.product-card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding: 40px 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(44, 62, 80, 0.4);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2c3e50, #34495e);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(44, 62, 80, 0.3);
}

.product-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  color: white;
  transition: all 0.3s ease;
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.4);
}

.product-sub-title h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-description {
  color: #bdc3c7;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.learn-more-btn {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.4;
}

.learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
  color: white;
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

@media (max-width: 768px) {
  .product-section {
    padding: 40px 20px;
  }

  .product-section h1 {
    /* font-size: 2.5em; */
    margin-bottom: 40px;
  }

  .product-card {
    padding: 30px 20px;
  }

  .product-sub-title h3 {
    font-size: 1.3em;
  }

  .product-description {
    color: #bdc3c7;
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  .learn-more-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/*blog*/
/* Blog Hero Section */
/* Blog Hero Section */
.blog-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.blog-hero-container {
  width: 100%;
  height: 100%;
}

.blog-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.blog-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-content {
  position: relative;
  /* Added for absolute child positioning */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.blog-hero-title {
  color: white;
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 15%;
}

.blog-hero-subtitle {
  color: white;
  font-size: 2.6rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 75%;
}

/* Gradient Button */
.blog-hero-button .blog-btn {
  /* Changed from .btn to .blog-btn */
  display: inline-block;
  font-weight: 600;
  border-radius: 50px;
  padding: 9px 30px;
  font-size: 18px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.blog-btn-outline {
  border: 2px solid #ff6b35;
  /* Define outline style */
}

.blog-btn-warning {
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: 2px solid #ff6b35;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.blog-btn-warning:hover {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  text-decoration: none;
}

/* Ripple Effect */
.blog-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.blog-btn:active::before {
  width: 300px;
  height: 300px;
}

.blog-btn * {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero {
    height: 300px;
  }

  .blog-hero-title {
    font-size: 2.8rem;
    position: absolute;
    top: 10%;
  }

  .blog-hero-subtitle {
    font-size: 1.7rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 75%;
  }

  .blog-hero-button .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .blog-hero {
    height: 250px;
  }

  .blog-hero-title {
    font-size: 2.4rem;
  }

  .blog-hero-subtitle {
    font-size: 1.7rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 75%;
  }

  .blog-hero-button .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Services Grid - responsive equal height cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* Force 4 cards per row on large screens */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Service Card consistency */
.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* ✅ equal height */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Icon consistency */
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  /* background: linear-gradient(135deg, #5DA5E4 0%, #764ba2 100%); */
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(6deg);
}

/* Titles & description */
.service-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.service-description {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #555;
  margin-top: auto;
  /* ✅ text stays aligned */
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 per row on tablets */
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
    /* 1 per row on mobile */
  }
}

.CTA-section {
  padding: 55px 0;
  background-image: url(http://localhost/intellimax/img/intro_bg.jpg);
  text-align: center;
  position: relative;
  z-index: 99;
color: black;
}

.CTA-section h3 {
 color: black;
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 177.9%;
  letter-spacing: 0.4px;
}

.CTA-section span {
  color: black;
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  line-height: 177.9%;
  letter-spacing: 0.3px;
}

.btn-black {
  background: linear-gradient(45deg, #667eea, #764ba2);
  display: inline-flex;
  padding: 14px 22px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  border: none;
  text-decoration: none;
}

/* Hover effect for gradient button */
.btn-black:hover {
  background: linear-gradient(45deg, #5a67d8, #6b46c1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  color: #fff;
}

/* Optional: Disabled state */
.btn:not(:disabled):not(.disabled) {
  cursor: pointer;
}

/* ===== Intellimax Section Style ===== */
.intellimax-section {
  padding: 40px 0;
  background: #f7f9fc;
}

/* Image Styling */
.intellimax-img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.intellimax-img:hover {
  transform: scale(1.03);
}

/* Text Box */
.textbox {
  padding: 20px 30px;
}

/* Title */
.intellimax-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
}

.intellimax-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #2c3e50, #34495e);
  border-radius: 2px;
}

/* Paragraph Text */
.intellimax-text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .intellimax-title {
    font-size: 2rem;
  }

  .intellimax-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .intellimax-section {
    /* padding: 50px 0; */
  }

  .textbox {
    padding: 20px 10px;
    text-align: center;
  }

  /* Stack image on top of text on smaller screens */
  .row.flex-md-row {
    flex-direction: column !important;
  }

  .intellimax-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .intellimax-title {
    font-size: 1.8rem;
  }

  .intellimax-text {
    font-size: 1.4rem;
  }
}


.portfolio-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.portfolio-section .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.portfolio-section .section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 1.6rem;
    line-height: 1.8;
}

.portfolio-highlights .row {
    display: flex;
    flex-wrap: wrap;
}

.portfolio-highlights .col-md-4 {
    display: flex;
}

.portfolio-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.portfolio-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-icon {
    transform: scale(1.1) rotate(5deg);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.portfolio-card:hover::before {
    left: 100%;
}

.portfolio-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.portfolio-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.portfolio-card:hover h3::after {
    width: 100%;
}

.portfolio-card p {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.8;
    position: relative;
    flex-grow: 1;
}

.portfolio-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

.portfolio-btn {
    padding: 16px 40px;
    font-size: 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    /* display: inline-block; */
    text-decoration: none;
    margin: 0 10px;
    min-width: 220px;
}

/* Primary button styles */
.portfolio-btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    border: none;
    text-decoration: none; 
}

.portfolio-btn-primary:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.portfolio-btn-primary a {
    color: white !important; 
    text-decoration: none; 
}

/* Outline button styles */
.portfolio-btn-outline {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.portfolio-btn-outline:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 992px) {
    .portfolio-section {
        padding: 50px 0;
    }
    
    .portfolio-section .section-title {
        font-size: 3rem;
    }
    
    .portfolio-section .section-description {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 40px 0;
    }
    
    .portfolio-section .section-title {
        font-size: 2.8rem;
    }
    
    .portfolio-section .section-description {
        font-size: 1.4rem;
        padding: 0 15px;
    }
    
    .portfolio-card {
        margin-bottom: 20px;
        padding: 35px 25px;
    }
    
    .portfolio-card h3 {
        font-size: 2rem;
    }
    
    .portfolio-card p {
        font-size: 1.4rem;
    }
    
    .portfolio-icon {
        font-size: 3.5rem;
    }
    
    .portfolio-btn {
        display: block;
        width: 85%;
        margin: 10px auto;
        min-width: auto;
        padding: 14px 30px;
    }
}

@media (max-width: 576px) {
    .portfolio-section {
        padding: 30px 0;
    }
    
    .portfolio-section .section-title {
        font-size: 2.4rem;
    }
    
    .portfolio-section .section-description {
        font-size: 1.3rem;
    }
    
    .portfolio-card {
        padding: 30px 20px;
    }
    
    .portfolio-card h3 {
        font-size: 1.8rem;
    }
    
    .portfolio-card p {
        font-size: 1.3rem;
    }
    
    .portfolio-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .portfolio-btn {
        width: 90%;
        font-size: 1.5rem;
        padding: 12px 25px;
    }
}
