/* ========================================
   PRODUCT LAYER CARDS
   ======================================== */

.product-layer-col {
  margin-bottom: 30px;
}

.product-layer-card {
  position: relative;
  padding: 36px 28px 30px;
  background: white;
  border-radius: 18px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.08);
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.06);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-layer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(var(--primary-color-rgb), 0.18);
  border-color: rgba(var(--accent-color-rgb), 0.25);
}

/* Colored top accent bar */
.product-layer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--primary-color);
}

.product-layer-card:hover .product-layer-accent {
  height: 6px;
  background: var(--accent-color);
}

/* Layer Badge */
.product-layer-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-layer-card:hover .product-layer-badge {
  transform: scale(1.15);
  background: var(--accent-color);
}

/* Layer Icon */
.product-layer-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  background: rgba(var(--primary-color-rgb), 0.08);
  color: var(--primary-color);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-layer-card:hover .product-layer-icon {
  transform: scale(1.1) rotate(4deg);
  background: rgba(var(--accent-color-rgb), 0.12);
  color: var(--accent-color);
}

/* Layer Title */
.product-layer-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.product-layer-card:hover h4 {
  color: var(--accent-color);
}

/* Layer Description */
.product-layer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgb(50, 50, 50);
  margin-bottom: 18px;
  flex: 1;
}

/* Layer Feature List */
.product-layer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-layer-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13px;
  line-height: 1.5;
  color: rgb(50, 50, 50);
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.06);
  transition: all 0.3s ease;
}

.product-layer-list li:last-child {
  border-bottom: none;
}

.product-layer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.product-layer-card:hover .product-layer-list li {
  color: rgb(15, 23, 42);
}

.product-layer-card:hover .product-layer-list li::before {
  background: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
  .product-layer-card {
    padding: 28px 22px 24px;
  }
  .product-layer-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .product-layer-card h4 {
    font-size: 18px;
  }
  .product-layer-desc {
    font-size: 12px;
  }
  .product-layer-list li {
    font-size: 12px;
    padding: 6px 0 6px 20px;
  }
}

@media (max-width: 480px) {
  .product-layer-card {
    padding: 24px 18px 20px;
  }
}


/* ========================================
   SECTION 7: PRODUCT PHILOSOPHY
   ANIMATED BACKGROUND - NO BOXES
   ======================================== */

.product-philosophy {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.product-philosophy .mi-invert-fix {
    height: 100%;
    position: relative;
    pointer-events: none;
    z-index: 3;
}

.product-philosophy .mi-invert-fix .container {
    pointer-events: all;
}

/* Animated Glow Background */
.philosophy-glow-bg {
    position: absolute;
    top: -30%;
    left: -10%;
    width: 120%;
    height: 160%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(var(--accent-color-rgb), 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(var(--accent-color-rgb), 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: philosophyGlow 8s ease-in-out infinite alternate;
}

/* Light animation shapes on dark background */
.product-philosophy .shastra-animation.shastra-dark .shastra-pentagon div {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

@keyframes philosophyGlow {
    0% { opacity: 0.4; transform: scale(1) translateX(0); }
    100% { opacity: 1; transform: scale(1.08) translateX(2%); }
}

/* Philosophy content */
.philosophy-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.philosophy-content .shastra-service-tag {
    color: var(--accent-color);
    background: rgba(var(--accent-color-rgb), 0.15);
}

.philosophy-content h2 {
    color: rgb(255, 255, 255);
    font-size: 52px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    animation: slideInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.philosophy-content h2 .shastra-thin {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.philosophy-intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.1s;
}

.philosophy-intro .shastra-thin {
    color: var(--accent-color);
    font-weight: 600;
}

.philosophy-content h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    animation: slideInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.2s;
}

.philosophy-content h4 .shastra-thin {
    color: var(--accent-color);
    font-weight: 300;
}

.philosophy-content .shastra-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    width: 80px;
    opacity: 0.8;
    animation: slideInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.15s;
    margin-left: auto;
    margin-right: auto;
}

/* Philosophy Benefits - Centered text blocks */
.philosophy-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    animation: slideInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.25s;
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-benefit {
    flex: 0 0 calc(33.33% - 16px);
    text-align: center;
    padding: 24px 20px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.04);
}

.philosophy-benefit:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.philosophy-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--accent-color-rgb), 0.2);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 14px;
    transition: all 0.4s ease;
}

.philosophy-benefit:hover .philosophy-benefit-icon {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.philosophy-benefit h5 {
    font-size: 16px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}

.philosophy-benefit:hover h5 {
    color: var(--accent-color);
}

.philosophy-benefit p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
    animation: none !important;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .philosophy-content h2 {
        font-size: 40px;
    }

    .philosophy-content h4 {
        font-size: 24px;
    }

    .philosophy-intro {
        font-size: 15px;
    }

    .philosophy-benefits {
        gap: 20px;
    }

    .philosophy-benefit {
        flex: 0 0 calc(50% - 10px);
        padding: 20px 18px;
    }
}

@media (max-width: 768px) {
    .philosophy-content h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .philosophy-content h4 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .philosophy-intro {
        font-size: 14px;
    }

    .philosophy-benefits {
        gap: 16px;
        max-width: 400px;
    }

    .philosophy-benefit {
        flex: 0 0 100%;
        padding: 18px 18px;
    }

    .philosophy-benefit h5 {
        font-size: 15px;
    }

    .philosophy-benefit p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .philosophy-content h2 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .philosophy-content h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .philosophy-intro {
        font-size: 13px;
    }

    .philosophy-benefits {
        gap: 12px;
    }

    .philosophy-benefit {
        padding: 14px 16px;
    }

    .philosophy-benefit-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .philosophy-benefit h5 {
        font-size: 14px;
    }

    .philosophy-benefit p {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .philosophy-content h2,
    .philosophy-intro,
    .philosophy-content h4,
    .philosophy-content .shastra-divider,
    .philosophy-benefits,
    .philosophy-glow-bg {
        animation: none !important;
    }
}





 
/* Main Heading Style */
h2, .shastra-dark-bg h2 {
    color: var(--primary-color);
}
/* Main Heading Style */
h1, .shastra-dark-bg h1 {
    color: var(--primary-color);
}

h2 .shastra-thin, .shastra-dark-bg h2 .shastra-thin {
    color: rgb(15, 23, 42);
}
h1 .shastra-thin, .shastra-dark-bg h1 .shastra-thin {
    color: rgb(15, 23, 42);
}

/* Paragraph Style */
p, .shastra-dark-bg p {
    color: rgb(50, 50, 50);

}

p .shastra-thin, .shastra-dark-bg p .shastra-thin {
    color: var(--primary-color);
 
}

/* Philosophy Heading */
h4, .shastra-dark-bg h4 {
    color: rgb(15, 23, 42);
}

h4 .shastra-thin, .shastra-dark-bg h4 .shastra-thin {
    color: var(--primary-color);
}




#shastra-cta-final {
    position: relative;
    overflow: hidden;
}

/* CTA Background with Enhanced Gradient and Image Overlay */
.shastra-cta-background {
    background-image: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.88) 0%, rgba(15, 23, 42, 0.95) 100%), url('../img/cta-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Decorative Motion Lines */
.shastra-motion-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.15;
    overflow: hidden;
}

.shastra-motion-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    width: 200%;
}

.shastra-line-1 {
    top: 15%;
    animation: slideRightSmooth 10s linear infinite;
    transform: skewY(-2deg);
}

.shastra-line-2 {
    top: 50%;
    animation: slideRightSmooth 12s linear infinite;
    animation-delay: 3s;
}

.shastra-line-3 {
    top: 85%;
    animation: slideRightSmooth 14s linear infinite;
    animation-delay: 6s;
    transform: skewY(2deg);
}

@keyframes slideRightSmooth {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Floating Particles */
.shastra-motion-lines::before,
.shastra-motion-lines::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: floatParticle 20s ease-in-out infinite;
}

.shastra-motion-lines::before {
    top: 20%;
    left: 10%;
}

.shastra-motion-lines::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.2);
    }
}

/* CTA Content */
.shastra-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* CTA Heading */
.shastra-cta-heading {
    color: rgb(255, 255, 255);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: headingSlideUp 0.8s ease-out 0.2s both;
}

.shastra-cta-heading .shastra-thin {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

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

/* CTA Text */
.shastra-cta-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1.8;
    max-width: 700px;
    /* margin: 0 auto; */
    margin-left: auto;
    margin-right: auto;
    animation: textSlideUp 0.8s ease-out 0.4s both;
}

.shastra-cta-text .shastra-accent {
    color: rgb(255, 255, 255);
    font-weight: 700;
}

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

/* CTA Buttons - FLEX ROW */
.shastra-cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: buttonsSlideUp 0.8s ease-out 0.6s both;
}

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

/* CTA Button Base */
.shastra-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.shastra-cta-btn i {
    font-size: 18px;
    transition: all 0.4s ease;
}

/* Primary Button */
.shastra-cta-primary {
    background-color: rgb(255, 255, 255);
    color: var(--primary-color);
    border-color: rgb(255, 255, 255);
}

.shastra-cta-primary:hover {
    background-color: transparent;
    color: rgb(255, 255, 255);
    border-color: rgb(255, 255, 255);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.shastra-cta-primary:hover i {
    transform: translateX(3px);
}

/* Secondary Button */
.shastra-cta-secondary {
    background-color: transparent;
    color: rgb(255, 255, 255);
    border-color: rgb(255, 255, 255);
}

.shastra-cta-secondary:hover {
    background-color: rgb(255, 255, 255);
    color: var(--primary-color);
    border-color: rgb(255, 255, 255);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.shastra-cta-secondary:hover i {
    transform: translateX(3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .shastra-cta-heading {
        font-size: 40px;
    }

    .shastra-cta-text {
        font-size: 16px;
    }

    .shastra-cta-btn {
        padding: 16px 40px;
        font-size: 15px;
    }

    .shastra-cta-buttons {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #shastra-cta-final {
        padding: 0;
    }

    .shastra-cta-heading {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .shastra-cta-text {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .shastra-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .shastra-cta-btn {
        padding: 16px 40px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }

    .shastra-motion-lines::before,
    .shastra-motion-lines::after {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .shastra-cta-heading {
        font-size: 24px;
    }

    .shastra-cta-text {
        font-size: 14px;
    }

    .shastra-cta-btn {
        padding: 14px 30px;
        font-size: 14px;
        max-width: 100%;
    }

    .shastra-cta-btn i {
        font-size: 16px;
    }

    .shastra-motion-lines {
        opacity: 0.08;
    }
}


/* ========== SERVICE TAG ========== */
.shastra-service-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.shastra-service-tag:hover {
    background: rgba(var(--primary-color-rgb), 0.15);
}