/* --- Light Theme Variables & Reset --- */
:root {
    --bg-light: #f9f9f9;
    --primary: #3419AB;
    --accent: #A539C5;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

body {
    background-color: var(--bg-light) !important;
    color: var(--text-main);
}

/* --- Hero Section --- */
.product-hero {
    position: relative;
    /* height: 90vh; */
    padding: 150px 0 100px;
    background: transparent;
    overflow: hidden;
}

/* Background Blobs */
.hero-blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3419AB 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #A539C5 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -30px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Typography */
.text-blue-dark {
    color: #1a1053;
}

.text-gradient {
    background: -webkit-linear-gradient(45deg, #3419AB, #1BB0D4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Glassmorphism Cards --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(165, 57, 197, 0.3);
}

/* Product Images */
.product-showcase-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.glass-card:hover .product-showcase-wrapper {
    transform: scale(1.02);
}

.product-showcase-img {
    width: 100%;
    display: block;
}

/* Feature Icons */
.feature-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(52, 25, 171, 0.1);
    color: #3419AB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.glass-card:hover .feature-icon-box {
    background: #3419AB;
    color: white;
}

/* --- Partner Grid Cards --- */
.partner-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.partner-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.partner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.partner-card:hover .partner-img {
    transform: scale(1.05);
}

.partner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #3419AB;
}

/* --- Cards (Tech & Eco) --- */
.tech-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.showcase-wrapper {
    height: 100%;
    min-height: 400px;
    background: #f8faff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.showcase-img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 20px;
    /* Rounded corners for showcase images */
}

.tech-card:hover .showcase-img {
    transform: scale(1.05);
}

.card-body-custom {
    padding: 3rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #3419AB;
}

.card-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid;
    letter-spacing: 0.5px;
}

.card-desc {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(52, 25, 171, 0.05);
    color: #3419AB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.f-title {
    font-weight: 600;
    color: #343a40;
    font-size: 0.95rem;
}

/* --- Immersive Partner Cards (Asymmetric Floating Style) --- */
.immersive-card {
    background: #fff;
    border-radius: 24px;
    overflow: visible;
    /* Needed for optional shadow expansion or overlapping elements */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.immersive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(52, 25, 171, 0.15);
    border-color: rgba(52, 25, 171, 0.1);
}

/* Floating Image Block */
.immersive-bg {
    position: relative;
    height: 220px;
    margin: 10px 10px 0 10px;
    border-radius: 16px 16px 40px 40px;
    /* Unique shape */
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.immersive-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(1);
}

.immersive-card:hover .immersive-bg img {
    transform: scale(1.1);
}

.immersive-overlay {
    display: none;
    /* Removed for this style to keep it clean/bright */
}

.immersive-content {
    padding: 2.5rem 2rem 2rem 2rem;
    /* Top padding enables bubble space */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border-radius: 0 0 24px 24px;
    z-index: 2;
    /* Increased to sit above immersive-bg */
}

/* Overlapping Icon Bubble */
.icon-bubble {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #fff;
    color: #3419AB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: -32.5px;
    /* Perfect overlap center */
    right: 30px;
    z-index: 10;
    border: 4px solid #fff;
    /* Separation border */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.immersive-card:hover .icon-bubble {
    background: #3419AB;
    color: #fff;
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 10px 25px rgba(52, 25, 171, 0.3);
}

.immersive-content h4 {
    color: #212529 !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.immersive-content p {
    color: #6c757d !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.immersive-btn {
    margin-top: auto;
    width: 100%;
    justify-content: space-between;
    background: #f8faff;
    color: #3419AB;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(52, 25, 171, 0.1);
    opacity: 1;
    transform: none;
    padding: 14px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.immersive-btn:hover {
    background: #3419AB;
    color: #fff;
    border-color: #3419AB;
    box-shadow: 0 5px 15px rgba(52, 25, 171, 0.2);
}

.immersive-btn i {
    transition: transform 0.3s ease;
}

.immersive-btn:hover i {
    transform: translateX(5px);
}

/* --- Section Heads --- */
.section-tag {
    display: inline-block;
    color: #3419AB;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: rgba(52, 25, 171, 0.05);
    padding: 6px 15px;
    border-radius: 50px;
}

.section-head {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

/* --- Promise Section (Copied from Home) --- */
.promise-bg {
    background: url("../../assests/icons/patterns/pattern1.png") center center/contain no-repeat;
    position: relative;
}

.promise {
    background: none !important;
    box-shadow: none !important;
    max-width: 800px;
    border-radius: 20px !important;
    border: none !important;
}

.ecosystem-section {
    background: transparent;
    padding: 60px 0;
    position: relative;
    border: none;
    overflow: hidden;
}

/* Force Text Dark for Light Mode */
.ecosystem-section h2.text-white {
    color: #3419AB !important;
}

.ecosystem-section p.text-white {
    color: #6c757d !important;
}

/* Floating particles/glow */
.ecosystem-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(27, 176, 212, 0.05) 0%, transparent 60%);
    animation: spin-slow 60s linear infinite;
    pointer-events: none;
}

.ecosystem-section .section-tag {
    background: rgba(52, 25, 171, 0.1);
    color: #3419AB;
}

/* --- Utilities --- */
.section-subtitle {
    text-transform: uppercase;
    color: #A539C5;
    /* Accent color */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    color: #3419AB;
    /* Primary Brand Color */
    font-weight: 700;
}

/* Fix line-clamp if needed, usually requires vendor prefixes */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Button Refined Interactions --- */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Solid Brand Buttons */
.btn.bg-blue:hover {
    color: #ffffff !important;
    background-color: var(--primary) !important;
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 25, 171, 0.25);
}

/* Outline/Secondary Buttons */
.btn.border-secondary:hover {
    color: #ffffff !important;
    background-color: var(--text-main) !important;
    border-color: var(--text-main) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn2:hover {
    color: white !important;
    background-color: var(--primary) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Partner Mini Cards (Grid Layout) --- */
.partner-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-mini-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.partner-banner {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid #f0f0f0;
}

.partner-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Focus on the top of the website */
    transition: transform 0.5s ease;
}

.partner-mini-card:hover .partner-banner img {
    transform: scale(1.05);
}

.partner-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.partner-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(52, 25, 171, 0.08);
    border-color: rgba(52, 25, 171, 0.2);
}

.p-logo-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.p-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    /* Start clean/brand-neutral */
    transition: all 0.3s ease;
}

.partner-mini-card:hover .p-logo-wrapper {
    background: #fff;
    border-color: #3419AB;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 5px 15px rgba(52, 25, 171, 0.15);
}

.partner-mini-card:hover .p-logo {
    filter: grayscale(0%);
    /* Color on hover */
}

.p-content h5 {
    color: #212529;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.p-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Subtle decoration */
.partner-mini-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(52, 25, 171, 0.03) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
    pointer-events: none;
}

/* New Button Style */
.p-btn {
    margin-top: auto;
    /* Push to bottom */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3419AB;
    background: rgba(52, 25, 171, 0.05);
    border-radius: 8px;
    transition: all 0.2s;
    width: 100%;
    text-decoration: none;
}

.partner-mini-card:hover .p-btn {
    background: #3419AB;
    color: white;
}

/* Calendar Modal Styles */
.cal-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
}

.cal-modal.show {
    display: flex;
}

.cal-modal-content {
    width: 100%;
    max-width: 900px;
    height: 80vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.cal-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 576px) {
    .cal-modal-close {
        right: 12px;
        top: 12px;
        width: 34px;
        height: 34px;
    }

    .cal-modal-content {
        height: 86vh;
    }
}

/* Enhanced Partner Modal Styles */
.partner-modal-content {
    width: 100% !important;
    max-width: 950px !important;
    background: #fff;
    border-radius: 12px;
    position: relative;
    padding: 0;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Sidebar Styles */
.partner-modal-sidebar {
    width: 35%;
    background: #3419AB;
    color: white;
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.partner-modal-sidebar::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    z-index: 1;
}

.partner-modal-sidebar img {
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) brightness(0) invert(1) !important;
}

.sidebar-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.partner-benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.partner-benefits-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.partner-benefits-list li i {
    color: #fff;
}

/* Form Styles Override */
.partner-form-wrapper {
    width: 65%;
    background: #fff;
    padding: 2rem;
    overflow-y: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.partner-form-wrapper::-webkit-scrollbar {
    display: none;
}

.form-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.partner-form-wrapper .form-control,
.partner-form-wrapper .form-select {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    color: #333 !important;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.partner-form-wrapper .form-control:focus,
.partner-form-wrapper .form-select:focus {
    background: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.partner-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: #f8f9fa;
    color: #666;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.partner-modal-close:hover {
    background: #e9ecef;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .partner-modal-content {
        flex-direction: column;
        height: 90vh !important;
        overflow-y: auto;
    }

    .partner-modal-sidebar {
        width: 100%;
        padding: 2rem;
        min-height: 200px;
    }

    .partner-form-wrapper {
        width: 100%;
        padding: 1.5rem;
        height: auto;
    }

    .sidebar-decoration {
        width: 150px;
        height: 150px;
    }

    .partner-benefits-list {
        display: none;
        /* Hide bullets on mobile to save space if needed */
    }
}