/* ===================================
   Homepage Custom Styles - Mobilrut
   SEO Optimized Modern Design
====================================== */

/* Gradient Backgrounds */
.bg-gradient-purple-light {
    background: linear-gradient(135deg, #672884 0%, #8e44ad 50%, #9b59b6 100%);
}

.bg-gradient-purple-dark {
    background: linear-gradient(135deg, #4a1d6b 0%, #672884 50%, #7d3c98 100%);
}

/* Breadcrumb Styling */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "›";
    font-size: 16px;
}

.breadcrumb-item a:hover {
    opacity: 1 !important;
}

/* Button Outline White */
.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    background: transparent;
}

.btn-outline-white:hover {
    background: #fff;
    color: #672884;
    border-color: #fff;
}

/* Gap Utilities */
.gap-3 {
    gap: 1rem !important;
}

/* Purple Theme Color */
.text-purple {
    color: #672884 !important;
}

.bg-purple {
    background-color: #672884 !important;
}

.btn-purple {
    background-color: #672884 !important;
    border-color: #672884 !important;
    color: #fff !important;
}

.btn-purple:hover {
    background-color: #4a1d6b !important;
    border-color: #4a1d6b !important;
    color: #fff !important;
}

/* Jade Color */
.text-jade {
    color: #00AF6B !important;
}

.bg-jade {
    background-color: #00AF6B !important;
}

.btn-jade {
    background-color: #00AF6B !important;
    border-color: #00AF6B !important;
    color: #fff !important;
}

.btn-jade:hover {
    background-color: #009959 !important;
    border-color: #009959 !important;
    color: #fff !important;
}

/* Orange Color */
.text-orange {
    color: #ef991f !important;
}

.bg-orange {
    background-color: #ef991f !important;
}

/* Red Color */
.text-red {
    color: #dc3131 !important;
}

.bg-red {
    background-color: #dc3131 !important;
}

/* Majorelle Blue Color */
.text-majorelle-blue {
    color: #724ade !important;
}

.bg-majorelle-blue {
    background-color: #724ade !important;
}

.btn-majorelle-blue {
    background-color: #724ade !important;
    border-color: #724ade !important;
    color: #fff !important;
}

.btn-majorelle-blue:hover {
    background-color: #5c3ab8 !important;
    border-color: #5c3ab8 !important;
    color: #fff !important;
}

/* Spacing */
.ps-lg-50px {
    padding-left: 50px;
}

.pe-lg-50px {
    padding-right: 50px;
}

@media (max-width: 991.98px) {
    .ps-lg-50px,
    .pe-lg-50px {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Hero Section */
.min-vh-75 {
    min-height: 75vh;
}

/* Solution Cards */
.flex-grow-1 {
    flex-grow: 1;
}

/* Icon Circles */
.w-80px {
    width: 80px;
}

.h-80px {
    height: 80px;
}

.w-50px {
    width: 50px;
}

.h-50px {
    height: 50px;
}

/* Opacity Classes */
.opacity-7 {
    opacity: 0.7;
}

.opacity-8 {
    opacity: 0.8;
}

/* Gap Utilities */
.gap-3 {
    gap: 1rem;
}

/* Z-index */
.z-index-1 {
    z-index: 1;
}

/* Star Rating */
.text-warning {
    color: #ffc107 !important;
}

/* Swiper Pagination Fix */
.swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
}

/* Accordion Styling */
.accordion-style-02 .accordion-button {
    background-color: #fff;
    color: #232323;
    padding: 20px 25px;
}

.accordion-style-02 .accordion-button:not(.collapsed) {
    background-color: #f7f7f7;
    color: #672884;
    box-shadow: none;
}

.accordion-style-02 .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-style-02 .accordion-body {
    padding: 0 25px 25px 25px;
}

/* Pricing Page Styles */
.transition-all {
    transition: all 0.3s ease;
}

.hover-border-purple:hover {
    border-color: #672884 !important;
}

.hover-border-orange:hover {
    border-color: #ef991f !important;
}

.bg-white-transparent-light {
    background-color: rgba(255, 255, 255, 0.15);
}

.w-60px {
    width: 60px;
}

.h-60px {
    height: 60px;
}

.w-70px {
    width: 70px;
}

.h-70px {
    height: 70px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .min-vh-75 {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .row.g-0 > .col-sm-5,
    .row.g-0 > .col-sm-7 {
        width: 100%;
    }

    .row.g-0 > .col-sm-5 img {
        min-height: 180px !important;
    }
}

/* ===================================
   Form Validation Styles
====================================== */

/* Form Input Validation States */
.form-control.is-invalid {
    border-color: #dc3131 !important;
    background-image: none;
}

.form-control.is-invalid:focus {
    border-color: #dc3131 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 49, 49, 0.25);
}

.form-check-input.is-invalid {
    border-color: #dc3131 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 13px;
    color: #dc3131;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
}

.alert-success {
    background-color: rgba(0, 175, 107, 0.1);
    border: 1px solid rgba(0, 175, 107, 0.3);
    color: #00AF6B;
}

.alert-danger {
    background-color: rgba(220, 49, 49, 0.1);
    border: 1px solid rgba(220, 49, 49, 0.3);
    color: #dc3131;
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Newsletter Form Response */
#newsletter-form-response {
    text-align: center;
}

#newsletter-form-response.text-success {
    color: #00AF6B !important;
}

#newsletter-form-response.text-danger {
    color: #dc3131 !important;
}

/* Form Focus States */
.form-control:focus {
    border-color: #672884;
    box-shadow: 0 0 0 0.2rem rgba(103, 40, 132, 0.15);
}

.form-check-input:checked {
    background-color: #672884;
    border-color: #672884;
}

.form-check-input:focus {
    border-color: #672884;
    box-shadow: 0 0 0 0.2rem rgba(103, 40, 132, 0.15);
}

/* ===================================
   Image Optimization Styles
====================================== */

/* Lazy Loading Fade-in Effect */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Image Placeholder Skeleton */
.img-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Picture Element */
picture {
    display: block;
}

picture img {
    width: 100%;
    height: auto;
}

/* Object Fit for Fixed Size Containers */
.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.img-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Aspect Ratio Containers */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.aspect-ratio-3-2 {
    aspect-ratio: 3 / 2;
}

/* Image Hover Effects */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.4s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Blur-up Lazy Loading Effect */
.blur-up {
    filter: blur(5px);
    transition: filter 0.4s ease;
}

.blur-up.loaded {
    filter: blur(0);
}

/* WebP Fallback Notice (Debug) */
.webp-notice {
    display: none;
}

/* Low Quality Image Placeholder (LQIP) */
.lqip-container {
    position: relative;
    overflow: hidden;
}

.lqip-container .lqip-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 0.4s ease;
}

.lqip-container .lqip-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

/* SVG Icon Optimization */
.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}
