/* =============================================================================
   TRIZ AI LAB - Utilities CSS
   Professional utility classes and helpers
   ============================================================================= */

/* =============================================================================
   PROFESSIONAL UTILITY CLASSES
   ============================================================================= */

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shadow-medium {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.shadow-strong {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.border-gradient {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--primary-gradient);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
}

.text-balance {
    text-wrap: balance;
}

/* =============================================================================
   RESPONSIVE UTILITIES
   ============================================================================= */

/* Mobile logo sizes */
@media (max-width: 768px) {
    .logo {
        font-size: var(--font-size-xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-links,
    .footer-contact {
        text-align: left;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 1rem;
        color: var(--text-white);
    }
    
    .footer-contact p {
        margin-bottom: 1rem;
    }
    
    .founders-photos {
        gap: 2rem;
    }

    .founder-photo img {
        width: 120px;
        height: 120px;
    }

    .founder-photo h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: var(--font-size-lg);
    }
    
    .founders-photos {
        gap: 1.5rem;
    }

    .founder-photo img {
        width: 100px;
        height: 100px;
    }
}

/* =============================================================================
   SPACING UTILITIES
   ============================================================================= */

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.ml-1 { margin-left: 1.5rem !important; }

/* =============================================================================
   FLEX UTILITIES
   ============================================================================= */

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-1 { gap: 0.75rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* =============================================================================
   TEXT UTILITIES
   ============================================================================= */

.text-center { text-align: center; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-white { color: var(--text-white) !important; }

.font-size-sm { font-size: var(--font-size-sm); }
.font-size-base { font-size: var(--font-size-base); }
.font-size-lg { font-size: var(--font-size-lg); }
.font-size-xl { font-size: var(--font-size-xl); }

.font-weight-medium { font-weight: var(--font-weight-medium); }
.font-weight-bold { font-weight: var(--font-weight-bold); }

/* =============================================================================
   BACKGROUND UTILITIES
   ============================================================================= */

.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }

/* =============================================================================
   GRADIENT UTILITIES
   ============================================================================= */

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================================================
   POSITION UTILITIES
   ============================================================================= */

.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* =============================================================================
   LIGHTBOX SYSTEM
   ============================================================================= */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 80px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10001;
}

.lightbox-zoom-reset {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(102, 126, 234, 0.9);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-zoom-reset:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateX(-50%) scale(1.1);
}

.lightbox-video-wrapper {
    width: 80vw;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.lightbox-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* Testimonial lightbox */
.testimonial-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.testimonial-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.testimonial-lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.testimonial-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Lightbox responsive */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-content img {
        max-height: 80vh;
    }
    
    .lightbox-video-wrapper {
        width: 95vw;
    }
    
    .gallery-thumbnails {
        gap: 0.75rem;
    }
    
    .gallery-thumb {
        width: 120px;
        height: 80px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .testimonial-image {
        height: 200px;
    }
    
    .testimonials-stats {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-description {
        font-size: 1.1rem;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-category {
        padding: 1rem;
    }
    
    .tech-category h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .tech-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

/* =============================================================================
   DISPLAY UTILITIES
   ============================================================================= */

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }