/* General Spacing */
.main-spacing {
    margin-top: 5rem; /* Adjust as needed */
}

/* Header Section */
.header-section {
    position: relative;
    text-align: center;
    padding-top: 3.5rem;
}

@media (min-width: 1024px) {
    .header-section {
        padding-top: 7rem;
    }
}

/* Container */
.container-width {
    max-width: 64rem;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .container-width {
        margin-bottom: 4rem;
    }
}

/* Typography */
.heading-primary {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

@media (min-width: 1024px) {
    .heading-primary {
        font-size: 3rem;
        line-height: 1.3;
    }
}

.text-bold-lg {
    font-size: 1.125rem;
    font-weight: bold;
    color: #24223E;
}

@media (min-width: 1024px) {
    .text-bold-lg {
        font-size: 1.25rem;
    }
}

/* Solution Section */
.solution-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .solution-container {
        gap: 5rem;
    }
}

/* Solution Image Container */
.solution-image {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .solution-image {
        width: auto;
        max-width: 500px;
        height: auto;
    }
}

@media (min-width: 1280px) {
    .solution-image {
        width: auto;
        max-width: 500px;
        height: auto;
    }
}

/* Solution Image - img inside container */
.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Solution Title */
.solution-title {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: bold;
 background: -webkit-linear-gradient(#613A96, #ED2C85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 1024px) {
    .solution-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .solution-title {
        font-size: 1.875rem;
    }
}

/* Solution Description */
.solution-description {
    font-size: 1rem;
    color: #24223E;
}

@media (min-width: 1024px) {
    .solution-description {
        font-size: 1.125rem;
    }
}

/* Image */
.img-full {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Footer App Links Hover */
footer a.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
}

footer a.transition-opacity:hover {
    opacity: 0.7;
}

/* Fix horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.steps {
    max-width: 100%;
    padding: 0 1rem;
}

/* Performance: Prevent CLS (Cumulative Layout Shift) - Home page only */
.home-page header.relative {
    min-height: 500px;
    contain: layout;
}

@media (min-width: 1024px) {
    .home-page header.relative {
        min-height: 700px;
    }
}

/* Optimize blur rendering */
.blur-\[200px\] {
    contain: layout style paint;
    transform: translateZ(0);
}

/* Font optimization to prevent layout shift */
.text-2xl, .text-5xl, h1, h2, h3 {
    font-display: swap;
}

/* Optimize images rendering */
img {
    content-visibility: auto;
}

/* Prevent box-shadow animations causing CLS */
.step {
    will-change: box-shadow;
    contain: layout style;
}

/* Start now image styling */
.start-now-image {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(97, 58, 150, 0.3),
                0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Swiper slide images styling */
.swiper-slide-image {
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Accordion styles moved to main.css - DO NOT override here */

/* Solution image shadow */
.solution-image {
    box-shadow: 0 20px 60px rgba(97, 58, 150, 0.3), 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.solution-image img {
    box-shadow: 0 20px 60px rgba(97, 58, 150, 0.3), 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Force hide navbar button on mobile */
.navbar__btn {
    display: none !important;
}

@media (min-width: 1024px) {
    .navbar__btn {
        display: inline-flex !important;
    }
}

/* Version: 2024-11-19 - Improved spacing for platforms guide */
/* DEBUG: If you see this comment, custom.css is loaded correctly */

/* Platforms Guide Spacing Improvements */
.platforms-guide section {
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .platforms-guide section {
        margin-bottom: 4rem;
    }
}

.platforms-guide h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .platforms-guide h2 {
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
}

.platforms-guide table {
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .platforms-guide table {
        margin-bottom: 2rem;
    }
}

/* Navigation Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    transition: color 0.3s;
}

.nav-dropdown-toggle:hover {
    color: #613A96;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
}

html[dir="ltr"] .nav-dropdown-menu {
    right: auto;
    left: 0;
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #24223E;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-dropdown-item:hover {
    background: #f8f5fc;
    color: #613A96;
    padding-right: 1.5rem;
}

html[dir="ltr"] .nav-dropdown-item:hover {
    padding-right: 1.25rem;
    padding-left: 1.5rem;
}

/* Hide dropdown on mobile - use accordion instead */
@media (max-width: 1023px) {
    .nav-dropdown {
        display: none;
    }
}

/* ============================================
   OPTION 1: GLASSMORPHISM CARDS STYLE
   ============================================ */
.guides-glassmorphism .libraries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.guides-glassmorphism .library {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(97, 58, 150, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Gradient background glow */
.guides-glassmorphism .library::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(97, 58, 150, 0.2) 0%, rgba(237, 44, 133, 0.2) 100%);
    opacity: 0.8;
    z-index: -1;
    border-radius: 24px;
    transition: opacity 0.4s ease;
}

.guides-glassmorphism .library:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(237, 44, 133, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow:
        0 20px 60px rgba(97, 58, 150, 0.3),
        0 8px 24px rgba(237, 44, 133, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.guides-glassmorphism .library:hover::before {
    opacity: 1;
}

.guides-glassmorphism .library-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    position: relative;
}

/* Gradient overlay on image */
.guides-glassmorphism .library-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(97, 58, 150, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guides-glassmorphism .library:hover .library-img::after {
    opacity: 1;
}

.guides-glassmorphism .library-info {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.guides-glassmorphism .library-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #613A96 0%, #ED2C85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.guides-glassmorphism .library:hover .library-info h2 {
    transform: translateX(4px);
}

html[dir="ltr"] .guides-glassmorphism .library:hover .library-info h2 {
    transform: translateX(-4px);
}

.guides-glassmorphism .library-info p {
    color: #24223E;
    opacity: 0.85;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Shine effect on hover */
.guides-glassmorphism .library::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.guides-glassmorphism .library:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ============================================
   OPTION 3: GRADIENT GLOW CARDS STYLE
   ============================================ */
.guides-gradient-glow .libraries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.guides-gradient-glow .library {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Animated gradient border */
.guides-gradient-glow .library::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        135deg,
        #613A96,
        #ED2C85,
        #613A96,
        #ED2C85
    );
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: gradientFlow 8s ease infinite;
}

.guides-gradient-glow .library:hover::before {
    opacity: 1;
}

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

/* Glow effect on hover */
.guides-gradient-glow .library::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(237, 44, 133, 0.15) 0%,
        rgba(97, 58, 150, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 20px;
}

.guides-gradient-glow .library:hover::after {
    opacity: 1;
}

.guides-gradient-glow .library:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(97, 58, 150, 0.25),
        0 10px 20px rgba(237, 44, 133, 0.15);
}

.guides-gradient-glow .library-img {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

/* Gradient overlay on image */
.guides-gradient-glow .library-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(97, 58, 150, 0.85) 0%,
        rgba(237, 44, 133, 0.75) 100%
    );
    opacity: 0.15;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.guides-gradient-glow .library:hover .library-img::before {
    opacity: 0.25;
}

/* Logo styling inside image */
.guides-gradient-glow .library-img img {
    transition: transform 0.5s ease;
}

.guides-gradient-glow .library:hover .library-img img {
    transform: scale(1.1);
}

.guides-gradient-glow .library-info {
    padding: 2rem;
    background: #fff;
    position: relative;
}

.guides-gradient-glow .library-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #613A96 0%, #ED2C85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.guides-gradient-glow .library:hover .library-info h2 {
    letter-spacing: 0.5px;
}

.guides-gradient-glow .library-info p {
    color: #5a5a5a;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Coming Soon badge */
.guides-gradient-glow .library-info h2 .text-sm {
    display: inline-block;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: #9ca3af;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    vertical-align: middle;
}

html[dir="ltr"] .guides-gradient-glow .library-info h2 .text-sm {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Pulse animation for active cards */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.guides-gradient-glow .library:hover {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   OPTION 4: MINIMAL PREMIUM CARDS STYLE
   ============================================ */
.guides-minimal-premium .libraries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.guides-minimal-premium .library {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(97, 58, 150, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    min-height: 160px;
}

.guides-minimal-premium .library:hover {
    transform: translateY(-6px);
    border-color: #e5e7eb;
    box-shadow:
        0 20px 40px -5px rgba(97, 58, 150, 0.2),
        0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.guides-minimal-premium .library-img {
    width: 150px;
    min-width: 150px;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

html[dir="rtl"] .guides-minimal-premium .library-img {
    border-radius: 0 14px 14px 0;
}

.guides-minimal-premium .library-img img {
    transition: all 0.4s ease;
    filter: grayscale(0%);
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.guides-minimal-premium .library:hover .library-img img {
    transform: scale(1.05);
}

.guides-minimal-premium .library-info {
    padding: 1.5rem;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guides-minimal-premium .library-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: #613A96;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.guides-minimal-premium .library:hover .library-info h2 {
    background: linear-gradient(135deg, #613A96 0%, #ED2C85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guides-minimal-premium .library-info p {
    color: #613A96;
    opacity: 0.75;
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Subtle indicator */
.guides-minimal-premium .library::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #613A96 0%, #ED2C85 100%);
    transition: width 0.4s ease;
}

html[dir="ltr"] .guides-minimal-premium .library::after {
    right: auto;
    left: 0;
}

.guides-minimal-premium .library:hover::after {
    width: 100%;
}

/* Coming Soon badge */
.guides-minimal-premium .library-info h2 .text-sm {
    display: inline-block;
    background: #f3f4f6;
    color: #9ca3af;
    padding: 0.3rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* ============================================
   LIBRARY MINIMAL PREMIUM CARDS STYLE
   ============================================ */
.library-minimal-premium .libraries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.library-minimal-premium .library {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(97, 58, 150, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    min-height: 160px;
}

.library-minimal-premium .library:hover {
    transform: translateY(-6px);
    border-color: #e5e7eb;
    box-shadow:
        0 20px 40px -5px rgba(97, 58, 150, 0.2),
        0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.library-minimal-premium .library-img {
    width: 150px;
    min-width: 150px;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

html[dir="rtl"] .library-minimal-premium .library-img {
    border-radius: 0 14px 14px 0;
}

.library-minimal-premium .library-img img {
    transition: all 0.4s ease;
    filter: grayscale(0%);
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important;
    max-height: none !important;
}

.library-minimal-premium .library:hover .library-img img {
    transform: scale(1.05);
}

.library-minimal-premium .library-info {
    padding: 1.5rem;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.library-minimal-premium .library-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: #613A96;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.library-minimal-premium .library:hover .library-info h2 {
    background: linear-gradient(135deg, #613A96 0%, #ED2C85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.library-minimal-premium .library-info p {
    color: #613A96;
    opacity: 0.75;
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Subtle indicator */
.library-minimal-premium .library::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #613A96 0%, #ED2C85 100%);
    transition: width 0.4s ease;
}

html[dir="ltr"] .library-minimal-premium .library::after {
    right: auto;
    left: 0;
}

.library-minimal-premium .library:hover::after {
    width: 100%;
}

html[dir="ltr"] .guides-minimal-premium .library-info h2 .text-sm {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive adjustments for Guides, Library & Blog - Mobile only */
@media (max-width: 768px) {
    /* Container padding */
    .guides-minimal-premium .libraries,
    .library-minimal-premium .libraries {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    /* Vertical layout with image on top */
    .guides-minimal-premium .library,
    .library-minimal-premium .library {
        flex-direction: column;
        gap: 0;
    }

    .guides-minimal-premium .library-img,
    .library-minimal-premium .library-img {
        width: 100%;
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    /* Guides - icons inside */
    .guides-minimal-premium .library-img img {
        max-width: 120px;
        max-height: 120px;
        object-fit: contain;
    }

    /* Library & Blog - full cover images */
    .library-minimal-premium .library-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        max-width: none !important;
        max-height: none !important;
    }

    .guides-minimal-premium .library-info,
    .library-minimal-premium .library-info {
        padding: 1rem;
    }

    .guides-minimal-premium .library-info h2,
    .library-minimal-premium .library-info h2 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .guides-minimal-premium .library-info p,
    .library-minimal-premium .library-info p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* ============================================
   OPTION 2: 3D FLOATING CARDS STYLE
   ============================================ */
.guides-3d-floating .libraries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
    perspective: 1000px;
}

.guides-3d-floating .library {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    overflow: visible;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.08);
    animation: floatIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guides-3d-floating .library:nth-child(1) {
    animation-delay: 0.1s;
}

.guides-3d-floating .library:nth-child(2) {
    animation-delay: 0.2s;
}

.guides-3d-floating .library:nth-child(3) {
    animation-delay: 0.3s;
}

.guides-3d-floating .library:hover {
    transform: translateY(-20px) rotateX(5deg) scale(1.02);
    box-shadow:
        0 30px 60px rgba(97, 58, 150, 0.25),
        0 15px 30px rgba(237, 44, 133, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Multiple shadow layers for 3D effect */
.guides-3d-floating .library::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(97, 58, 150, 0.1), rgba(237, 44, 133, 0.1));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}

.guides-3d-floating .library:hover::before {
    opacity: 1;
}

/* Gradient overlay that moves */
.guides-3d-floating .library::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(97, 58, 150, 0.05) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
}

.guides-3d-floating .library:hover::after {
    opacity: 1;
}

.guides-3d-floating .library-img {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #613A96 0%, #ED2C85 100%);
}

/* Animated gradient background */
.guides-3d-floating .library-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(97, 58, 150, 0.9) 0%,
        rgba(237, 44, 133, 0.8) 100%
    );
    opacity: 0.2;
    transition: opacity 0.4s ease;
}

.guides-3d-floating .library:hover .library-img::before {
    opacity: 0.35;
}

.guides-3d-floating .library-img img {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.guides-3d-floating .library:hover .library-img img {
    transform: scale(1.15) rotate(-2deg);
}

.guides-3d-floating .library-info {
    padding: 2rem;
    background: #fff;
    position: relative;
    z-index: 1;
}

.guides-3d-floating .library-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #613A96 0%, #ED2C85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    line-height: 1.5;
    transform-style: preserve-3d;
}

.guides-3d-floating .library:hover .library-info h2 {
    transform: translateZ(20px);
    letter-spacing: 0.3px;
}

.guides-3d-floating .library-info p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.guides-3d-floating .library:hover .library-info p {
    transform: translateZ(10px);
    color: #4b5563;
}

/* Floating particles effect */
.guides-3d-floating .library:hover {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-20px) rotateX(5deg) scale(1.02);
    }
    50% {
        transform: translateY(-25px) rotateX(5deg) scale(1.02);
    }
}

/* Coming Soon styling */
.guides-3d-floating .library-info h2 .text-sm {
    display: inline-block;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #9ca3af;
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

html[dir="ltr"] .guides-3d-floating .library-info h2 .text-sm {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .guides-3d-floating .libraries {
        grid-template-columns: 1fr;
        gap: 2rem;
        perspective: none;
    }

    .guides-3d-floating .library:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .guides-3d-floating .library-img {
        height: 200px;
    }
}

/* Interactive Tabs */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-button.active {
    background-color: var(--primary-color, #613a96);
    color: white;
    border-color: var(--primary-color, #613a96);
}

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