/* =============================================================================
   TRIZ AI LAB - Components CSS
   Reusable UI components extracted from inline styles
   ============================================================================= */

/* =============================================================================
   CARD SYSTEM
   ============================================================================= */

.card-base {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    padding: 2rem;
}

.solution-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    padding: 2rem;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.software-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    padding: 2rem;
}

.software-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.about-feature {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

.about-feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.about-feature:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   ICON SYSTEM
   ============================================================================= */

.icon-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
    font-size: 1.5rem;
}

/* =============================================================================
   GRID LAYOUTS
   ============================================================================= */

.grid-auto-fit {
    display: grid;
    gap: 2rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* =============================================================================
   BUTTON ENHANCEMENTS
   ============================================================================= */

.btn-icon-spacing i {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* CTA Section Button Variants - Improved */
.btn-secondary-cta {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-purple);
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary-cta:hover {
    background: var(--text-white);
    color: var(--accent-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    filter: brightness(1.05);
}

/* =============================================================================
   LIST STYLES
   ============================================================================= */

.list-checkmarks {
    list-style: none;
    padding: 0;
}

.list-checkmarks li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.list-checkmarks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

/* =============================================================================
   CONTENT CONTAINERS
   ============================================================================= */

.content-centered {
    max-width: 900px;
    margin: 0 auto;
}

.section-title-centered {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
}

/* =============================================================================
   PHOTO GALLERIES
   ============================================================================= */

.founders-photos {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0;
}

.founder-photo {
    text-align: center;
}

.founder-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--bg-primary);
    transition: var(--transition);
}

.founder-photo:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.founder-photo h4 {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* =============================================================================
   FEATURE SECTIONS
   ============================================================================= */

.solution-feature {
    margin-top: 1.5rem;
}

.solution-feature h4 {
    color: var(--accent-purple);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.solution-feature ul {
    margin-left: 0;
    list-style: none;
    padding: 0;
}

.solution-feature ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.solution-feature ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

/* =============================================================================
   GALLERY SYSTEM
   ============================================================================= */

.project-gallery {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 3px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    padding: 4px;
}

.gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border-color: var(--accent-purple);
}

/* =============================================================================
   PROJECT CARDS ENHANCEMENT
   ============================================================================= */

.projects-category {
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.project-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.project-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
}

.project-video {
    margin-top: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.project-video iframe {
    display: block;
    border-radius: var(--border-radius);
}

.software-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #fcb69f 100%);
    border-radius: 16px 16px 0 0;
}

.software-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(102, 126, 234, 0.1);
}

.software-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-headings);
    letter-spacing: -0.015em;
}

.software-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.software-card ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.software-card ul li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =============================================================================
   CATEGORY HEADERS
   ============================================================================= */

.category-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title.category-title-success {
    border-bottom: 2px solid var(--accent-green);
    color: var(--accent-green);
}

.category-title i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* =============================================================================
   PHILOSOPHY SECTION
   ============================================================================= */

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.philosophy-item {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-5px);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: var(--font-size-3xl);
    color: var(--text-white);
    transition: var(--transition);
}

.philosophy-item:hover .philosophy-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.philosophy-item h4 {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.philosophy-item p {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    color: var(--text-secondary);
}

.philosophy-statement {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    margin-top: 1.5rem;
}

.philosophy-statement p {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin: 0;
}

/* =============================================================================
   TESTIMONIALS SECTION
   ============================================================================= */

.testimonials-content {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-description {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.05);
}

.testimonial-info {
    padding: 1.5rem;
    background: white;
}

.testimonial-info h4 {
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.testimonial-project {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.testimonials-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 3rem 2rem;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

/* =============================================================================
   BOTS SECTION
   ============================================================================= */

.bots-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
}

.bots-intro h4 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bot-card {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.bot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #fcb69f 100%);
    border-radius: 16px 16px 0 0;
}

.bot-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(102, 126, 234, 0.1);
}

.bot-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-white);
    font-size: 1.25rem;
}

.bot-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-headings);
    letter-spacing: -0.015em;
}

.bot-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bot-subtitle {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem;
}

/* =============================================================================
   INTEGRATIONS SECTION
   ============================================================================= */

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.integration-card {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.integration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #fcb69f 100%);
    border-radius: 16px 16px 0 0;
}

.integration-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(102, 126, 234, 0.1);
}

.integration-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-headings);
    letter-spacing: -0.015em;
}

.integration-card p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.integration-card ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.integration-card ol li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =============================================================================
   INFRASTRUCTURE SECTION
   ============================================================================= */

.infrastructure-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    color: var(--text-white);
}

.infrastructure-card h4 {
    color: var(--text-white);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.infrastructure-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-regular);
    margin-bottom: 2rem;
}

.infrastructure-features {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.infrastructure-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.infrastructure-item i {
    font-size: var(--font-size-2xl);
    color: var(--accent-orange);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.infrastructure-item strong {
    display: block;
    color: var(--text-white);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.25rem;
}

.infrastructure-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    margin: 0;
}

.infrastructure-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-orange);
}

.infrastructure-note p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.infrastructure-timeline {
    color: var(--accent-orange) !important;
    font-size: var(--font-size-lg) !important;
    font-weight: var(--font-weight-medium) !important;
    margin-top: 1rem !important;
}

/* =============================================================================
   ERROR PAGE
   ============================================================================= */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.error-content {
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-content h2 {
    margin-bottom: 1rem;
}

.error-content p {
    margin-bottom: 2rem;
}

/* =============================================================================
   LANGUAGE SWITCHER
   ============================================================================= */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.language-switcher.visible {
    opacity: 1;
    transform: translateX(0);
}

.language-switcher.scrolled {
    top: 10px;
}

.current-lang {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent-purple);
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.current-lang:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.flag {
    font-size: 1.2rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: none;
    min-width: 60px;
}

.lang-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--accent-purple);
}

.lang-option.active {
    background: var(--primary-gradient);
    color: white;
}

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

@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .current-lang {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .flag {
        font-size: 1rem;
    }
}