:root {
    --product-primary: #0a0f1c;
    --product-secondary: #1a1f3a;
    --product-accent: #3b82f6;
    --product-accent-light: #60a5fa;
    --product-text: #ffffff;
    --product-text-muted: #94a3b8;
    --product-border: rgba(59, 130, 246, 0.2);
    --product-glass: rgba(30, 58, 138, 0.1);
    --product-gradient: linear-gradient(135deg, #0a0f1c 0%, #1a1f3a 50%, #2a2f5a 100%);
}

body {
    background: var(--product-gradient);
    color: var(--product-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Immersive Hero Section - REDUCED HEIGHT */
.product-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 25%),
        var(--product-gradient);
    padding: 100px 0 30px;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 58, 138, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--product-accent-light);
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--product-text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--product-accent-light);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--product-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content Layout with Sidebar */
.product-main-content {
    display: flex;
    gap: 30px;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 20px 30px;
}

.product-posts-area {
    flex: 1;
}

.product-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Search and Sort Section */
.search-sort-section {
    position: sticky;
    top: 50px;
    z-index: 100;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--product-border);
    transition: all 0.3s ease;
}

.search-sort-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: rgba(30, 58, 138, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.search-input::placeholder {
    color: rgba(219, 234, 254, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(30, 58, 138, 0.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #60a5fa;
}

.sort-dropdown {
    position: relative;
    min-width: 180px;
}

.sort-select {
    width: 100%;
    padding: 14px 20px;
    background: rgba(30, 58, 138, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.sort-select:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(30, 58, 138, 0.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.sort-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #60a5fa;
    pointer-events: none;
}

/* product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
}

@media (min-width: 1700px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(300px, 1fr));
    }
}

.product-card {
    background: var(--product-glass);
    border: 1px solid var(--product-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--product-accent), var(--product-accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--product-accent);
}

.card-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-service {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--product-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--product-text-muted);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--product-text);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card:hover .card-title {
    color: var(--product-accent-light);
}

.card-excerpt {
    color: var(--product-text-muted);
    line-height: 1.4;
    margin-bottom: 0px;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--product-accent-light);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--product-accent);
    transform: translateX(4px);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--product-text-muted);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--product-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Sidebar Styles */
.sidebar-widget {
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid var(--product-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
}

.product-sidebar {
    position: sticky;
    top: 200px;
    height: fit-content;
    z-index: 50;
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--product-border);
}

/* Services Widget */
.services-widget {
    position: relative;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-btn {
    background: rgba(59, 130, 246, 0.1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: rotate(90deg);
}

.toggle-btn.minimized .toggle-icon {
    transform: rotate(180deg);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    overflow: hidden;
}

.service-list.minimized {
    max-height: 0;
    opacity: 0;
}

.service-list li {
    margin-bottom: 12px;
}

.service-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #bfdbfe;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-list a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--product-accent-light);
    transform: translateX(5px);
}

.service-count {
    background: rgba(59, 130, 246, 0.2);
    color: var(--product-accent-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.subservice-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 20px;
}

.subservice-list li {
    margin-bottom: 8px;
}

.subservice-list a {
    font-size: 0.9rem;
    color: #94a3b8;
    padding: 6px 10px;
}

.subservice-list a:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--product-accent-light);
    transform: translateX(10px);
}

.subservice-list .service-count {
    background: rgba(59, 130, 246, 0.15);
}

/* Services Button for Mobile */
.services-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    transition: all 0.3s ease;
}

.services-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.5);
}

/* Services Modal */
.services-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid var(--product-border);
    border-radius: 20px;
    padding: 25px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(59, 130, 246, 0.1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: rotate(90deg);
}

.modal-close svg {
    color: var(--product-accent-light);
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-main-content {
        flex-direction: column;
    }

    .product-sidebar {
        width: 100%;
        order: -1;
        margin-bottom: 30px;
        display: none;
        /* Hide sidebar on mobile */
    }

    .services-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-list {
        max-height: none !important;
        opacity: 1 !important;
    }

    .toggle-btn {
        display: none;
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.solution-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    margin-top: auto;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.solution-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

li.active {
    background: rgba(30, 58, 138, 0.2);
    border-radius: 10px;
}

.hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem) !important;
}

.card-title {
    margin-bottom: 7px !important;
}

.product-sidebar {
    position: sticky;
    top: 200px;
    height: 75vh;
    z-index: 50;
    overflow-x: scroll;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--product-border) transparent; /* For Firefox */
}
/* For WebKit browsers (Chrome, Edge, Safari) */
.product-sidebar::-webkit-scrollbar {
    height: 5px; /* Horizontal scrollbar height */
}

.product-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.product-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--product-border);
    border-radius: 4px;
}
li > a {
    cursor: pointer;
}