/* ================================================================
   DEMOS SECTION STYLES
   ================================================================ */

/* ================================================================
   BASE SECTION STYLES
   ================================================================ */

.demos-section {
    position: relative;
    z-index: 2;
    padding: 30px 15px 60px;
}

.demos-section .container {
    max-width: 100%;
    margin: 0 auto;
}

/* ================================================================
   HEADER STYLES
   ================================================================ */

.demos-header {
    text-align: center;
    margin-bottom: 40px;
}

.demos-title {
    font-family: 'Gilroy-semibold', sans-serif;
    font-weight: 500;
    color: #3F405B;
    font-size: 31px;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.demos-subtitle {
    font-family: 'Gilroy-light', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Accent color */
.text-demo-orange {
    color: #FFAF30;
}

/* ================================================================
   GRID LAYOUT
   ================================================================ */

.demos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* ================================================================
   DEMO CARDS BASE STYLES
   ================================================================ */

.demo-card {
    position: relative;
    border-radius: 20px;
    width: 100%;
    height: 450px;
    padding: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Card Variants */
.demo-card-individuals {
    background: linear-gradient(135deg, #635bfe 0%, #4f46e5 100%);
}

.demo-card-legal {
    background: radial-gradient(circle at center, #F4F3FF 0%, #E7E2F6 100%);
}

.demo-card-mobile {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* ================================================================
   CARD CONTENT STYLES
   ================================================================ */

.demo-card-title {
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.demo-card-individuals .demo-card-title {
    color: #ffffff;
}

.demo-card-legal .demo-card-title,
.demo-card-mobile .demo-card-title {
    color: #3F405B;
}

.demo-card-description {
    font-weight: 400;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
}

.demo-card-individuals .demo-card-description {
    color: #ffffff;
}

.demo-card-legal .demo-card-description,
.demo-card-mobile .demo-card-description {
    color: #6c757d;
}

.demo-card-mobile .demo-card-description {
    letter-spacing: -0.5px;
}

/* ================================================================
   CARD IMAGES
   ================================================================ */

.demo-card-image {
    position: absolute;
    bottom: 0;
    right: 0;
}

.demo-card-individuals .demo-card-image,
.demo-card-legal .demo-card-image {
    width: 67%;
    height: 300px;
    object-fit: cover;
}

.demo-card-mobile .demo-card-image {
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: auto;
    max-width: 280px;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* ================================================================
   MOBILE: 393px - 429px
   ================================================================ */
@media (min-width: 393px) and (max-width: 429px) {
    .demos-section {
        padding: 35px 20px 65px;
    }
    
    .demos-title {
        font-size: 32px;
    }
    
    .demos-subtitle {
        font-size: 15px;
    }
    
    .demo-card {
        height: 460px;
        padding: 26px;
    }
    
    .demo-card-title {
        font-size: 29px;
    }
    
    .demo-card-description {
        font-size: 15px;
    }
}

/* ================================================================
   MOBILE: 430px - 767px
   ================================================================ */
@media (min-width: 430px) and (max-width: 767px) {
    .demos-section {
        padding: 40px 25px 70px;
    }
    
    .demos-header {
        margin-bottom: 45px;
    }
    
    .demos-title {
        font-size: 34px;
        padding: 0 10px;
    }
    
    .demos-subtitle {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .demo-card {
        height: 480px;
        padding: 28px;
    }
    
    .demo-card-title {
        font-size: 30px;
    }
    
    .demo-card-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .demo-card-individuals .demo-card-image,
    .demo-card-legal .demo-card-image {
        width: 70%;
    }
}

/* ================================================================
   TABLETS: 768px - 1023px
   ================================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .demos-section {
        padding: 50px 30px 80px;
    }
    
    .demos-header {
        margin-bottom: 50px;
    }
    
    .demos-title {
        font-size: 40px;
        line-height: 40px;
    }
    
    .demos-subtitle {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .demos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 900px;
    }
    
    .demo-card {
        height: 500px;
        padding: 30px;
    }
    
    .demo-card-title {
        font-size: 30px;
        line-height: 1.2;
    }
    
    .demo-card-description {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .demo-card-individuals .demo-card-image,
    .demo-card-legal .demo-card-image {
        width: 100%;
        height: 280px;
    }
    
    .demo-card-mobile .demo-card-image {
        max-width: 320px;
    }
}

/* ================================================================
   DESKTOP: 1024px - 1440px
   ================================================================ */
@media (min-width: 1024px) and (max-width: 1440px) {
    .demos-section {
        padding: 60px 40px 90px;
    }
    
    .demos-header {
        margin-bottom: 60px;
    }
    
    .demos-title {
        font-size: 42px;
        line-height: 1.1;
    }
    
    .demos-subtitle {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .demos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        max-width: 1280px;
        justify-items: center;
    }
    
    .demo-card {
        height: 506px;
        padding: 32px;
        max-width: 400px;
    }
    
    .demo-card-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .demo-card-description {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .demo-card-individuals .demo-card-image,
    .demo-card-legal .demo-card-image {
        width: 100%;
        height: 300px;
    }
    
    .demo-card-mobile .demo-card-image {
        max-width: 360px;
    }
}

/* ================================================================
   DESKTOP LARGE: 1441px+
   ================================================================ */
@media (min-width: 1441px) {
    .demos-section {
        padding: 80px 60px 120px;
    }
    
    .demos-header {
        margin-bottom: 70px;
    }
    
    .demos-title {
        font-size: 45px;
        line-height: 1.05;
    }
    
    .demos-subtitle {
        font-size: 20px;
        line-height: 1.35;
    }
    
    .demos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        max-width: 1400px;
        justify-items: center;
    }
    
    .demo-card {
        height: 520px;
        padding: 36px;
        max-width: 420px;
    }
    
    .demo-card-title {
        font-size: 34px;
        line-height: 1.15;
    }
    
    .demo-card-description {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 28px;
    }
    
    .demo-card-individuals .demo-card-image,
    .demo-card-legal .demo-card-image {
        width: 100%;
        height: 320px;
    }
    
    .demo-card-mobile .demo-card-image {
        max-width: 380px;
    }
}

/* ================================================================
   DARK THEME SUPPORT
   ================================================================ */

body.dark .demos-title {
    color: #f9fafb;
}

body.dark .demos-subtitle {
    color: #d1d5db;
}

body.dark .demo-card-legal {
    background: radial-gradient(circle at center, #374151 0%, #3F405B 100%);
}

body.dark .demo-card-mobile {
    background: linear-gradient(135deg, #374151 0%, #3F405B 100%);
}

body.dark .demo-card-legal .demo-card-title,
body.dark .demo-card-mobile .demo-card-title {
    color: #f9fafb;
}

body.dark .demo-card-legal .demo-card-description,
body.dark .demo-card-mobile .demo-card-description {
    color: #d1d5db;
}

body.dark .demo-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ================================================================
   UTILITY CLASSES FOR DEBUGGING
   ================================================================ */

/* Uncomment for debugging layout issues */
/*
.demos-grid {
    border: 2px dashed red;
}

.demo-card {
    border: 1px solid blue;
}
*/