/* Page-specific styles for index.html */

/* Content sections */
.content-section {
    padding: 2rem 0;
}

.carousel-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.content-paragraphs {
    max-width: 900px;
    margin: 4rem auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.content-paragraphs h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 1rem;
}


.content-paragraphs-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.3);
}

.intro, .intro-dark {
    margin-bottom: 2rem;
}
.content-paragraphs .intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    font-weight: 400; /* Make sure it's not too bold */
    margin-bottom: 1.5rem;
}
.paragraph-section {
    margin: 2rem 0;
}

.paragraph-section:last-child {
    margin-bottom: 0;
}

.paragraph-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.paragraph-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* colorTXT logo styling */
.colortxt-logo {
    font-weight: bold;
    font-family: inherit;
}
.colortxt-logo .gray { 
    color: #888; 
}

.colortxt-logo .t1 { 
    color: #ff4757; 
}

.colortxt-logo .x { 
    color: #2ed573; 
}

.colortxt-logo .t2 { 
    color: #3742fa; 
}

.slogan-sub {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;
}

.dark-block-title {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.dark-block-text {
    color: #bdc3c7;
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.95;
}

.dark-block-text a {
    color: #3498db;
    text-decoration: none;
}
/* Action block dark - unified styling for both action sections */
.action-block-dark {
    max-width: 800px;
    margin: 4rem auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.4);
}

.action-block-dark h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #ecf0f1;
}

.action-block-dark p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
    color: #ea0f0f;
}
.action-block-dark code {
    color: white;
    font-size: 0.85rem;
    /* or font-size: 14px; if you prefer pixels */
}
.action-block-dark .cta-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Experience CTA section */
.experience-cta {
    max-width: 800px;
    margin: 4rem auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.4);
}
.experience-cta h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.experience-cta p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
}

.cta-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-section {
    margin: 4rem 0;
}

.demo-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.demo-subsection {
    margin: 3rem 0;
    text-align: center;
}

/* Color guide table styles */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.color-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.color-guide-table td {
    padding: 1rem;
    border: 1px solid #ddd;
    vertical-align: top;
}

.color-guide-table tr:hover {
    background-color: #f5f5f5;
}

.color-guide-table td:first-child {
    font-weight: bold;
    width: 200px;
}

/* Animation classes */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}
.colortxt-feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 100%;
}

.colortxt-feature-row img {
    width: 460px;
    height: auto;
    flex-shrink: 0; /* prevent shrinking below 460px */
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.colortxt-feature-row .feature-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    min-width: 200px; /* avoid collapse */
}

.colortxt-feature-row .feature-text p {
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .demo-section h2 {
        font-size: 2rem;
    }
    
    .content-paragraphs {
        padding: 2rem;
    }
    
    .content-paragraphs-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.4);
    }
    .paragraph-section h3 {
        font-size: 1.3rem;
    }
    
    .carousel-wrapper {
        margin: 1rem 0;
    }
    
    .content-section {
        padding: 1rem 0;
    }
    
    .demo-section {
        margin: 2rem 0;
    }

    .experience-cta {
        padding: 2rem;
        margin: 3rem auto;
    }

    .experience-cta h3 {
        font-size: 1.8rem;
    }

    .experience-cta p {
        font-size: 1.2rem;
    }
    
    .action-block-dark {
        padding: 2rem;
        margin: 3rem auto;
    }
    
    .action-block-dark h3 {
        font-size: 1.8rem;
    }
    
    .action-block-dark p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem 0;
    }
    
    .content-paragraphs, .content-paragraphs-dark {
        margin: 2rem 0;
        padding: 1rem;
    }
    
    .demo-section {
        margin: 2rem 0;
    }
    
    .slogan-sub {
        font-size: 1rem;
    }

    .experience-cta {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .experience-cta h3 {
        font-size: 1.5rem;
    }

    .experience-cta p {
        font-size: 1rem;
    }
    .action-block-dark {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .action-block-dark h3 {
        font-size: 1.5rem;
    }
    
    .action-block-dark p {
        font-size: 1rem;
    }

    @media (max-width: 768px) {
        .colortxt-feature-row {
            flex-direction: column;
            text-align: center;
        }

        .colortxt-feature-row img,
        .colortxt-feature-row .feature-text {
            flex: unset;
            width: 100%;
        }

        .colortxt-feature-row .feature-text {
            margin-top: 1rem;
            text-align: left;
        }
    }
}