/* Theme-Aware Content Styles - All Pages */
/* Comprehensive theming for dark blueish purple and orange accent system */

/* ========================================================================== 
   PAGE SECTIONS & CONTAINERS
   ========================================================================== */

/* Section Headers */
.section-title,
.section-header h1,
.section-header h2,
.page-header h1 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.section-header p,
.page-header p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Page Headers */
.page-header {
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 60px 0;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ========================================================================== 
   FEATURE CARDS & COMPONENTS
   ========================================================================== */

/* Feature Cards */
.feature-card,
.service-card,
.value-card,
.team-card {
    background: var(--background-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover,
.service-card:hover,
.value-card:hover,
.team-card:hover {
    background: var(--background-secondary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-title,
.service-card h3,
.value-card h3,
.team-card h3 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature-description,
.service-card p,
.value-card p,
.team-bio {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Feature Icons */
.feature-icon,
.service-icon,
.value-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transition: background 0.3s ease;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* ========================================================================== 
   STATISTICS SECTION
   ========================================================================== */

.stats-section {
    background: var(--background-tertiary);
    padding: 60px 0;
    transition: background 0.3s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--background-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-medium);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--background-secondary);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* ========================================================================== 
   SERVICES SECTION
   ========================================================================== */

.services-preview,
.services-grid {
    background: var(--background-primary);
    transition: background 0.3s ease;
    padding: 80px 0;
}

.services-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    border: 2px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li {
    color: var(--text-secondary);
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;
}

.service-features li:before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-link,
.service-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.service-link:hover,
.service-btn:hover {
    color: var(--secondary-color);
}

/* ========================================================================== 
   PORTFOLIO SECTION
   ========================================================================== */

.portfolio-showcase {
    background: var(--background-secondary);
    padding: 80px 0;
    transition: background 0.3s ease;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.portfolio-item {
    background: var(--background-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-large);
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    background: var(--background-primary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.portfolio-image {
    height: 200px;
    background: var(--background-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.portfolio-placeholder {
    font-size: 4rem;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: var(--background-accent);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* ========================================================================== 
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
    background: var(--background-primary);
    padding: 80px 0;
    transition: background 0.3s ease;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--background-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-large);
    padding: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: var(--background-secondary);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    margin-bottom: 25px;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.testimonial-content p {
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: var(--background-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.author-info h4 {
    color: var(--text-primary);
    margin: 0 0 5px;
    transition: color 0.3s ease;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* ========================================================================== 
   TECHNOLOGY STACK SECTION
   ========================================================================== */

.tech-stack-section {
    background: var(--background-secondary);
    padding: 80px 0;
    transition: background 0.3s ease;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.tech-category {
    text-align: center;
}

.tech-category h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-item {
    background: var(--background-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-medium);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========================================================================== 
   ABOUT PAGE SPECIFIC STYLES
   ========================================================================== */

.values-section {
    padding: 80px 0;
    background: var(--background-primary);
    transition: background 0.3s ease;
}

.values-header {
    text-align: center;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-section {
    padding: 80px 0;
    background: var(--background-secondary);
    transition: background 0.3s ease;
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-avatar {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    background: var(--background-tertiary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* ========================================================================== 
   CTA SECTIONS
   ========================================================================== */

.final-cta-section,
.cta-section {
    background: var(--background-tertiary);
    padding: 80px 0;
    text-align: center;
    transition: background 0.3s ease;
}

.cta-content h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

.cta-buttons,
.cta-buttons-large {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button,
.cta-btn-primary,
.cta-btn-secondary {
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.cta-button.primary-large,
.cta-btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cta-button.primary-large:hover,
.cta-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary-large,
.cta-btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-button.secondary-large:hover,
.cta-btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========================================================================== 
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .stats-grid,
    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .tech-categories,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons,
    .cta-buttons-large {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button,
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* ========================================================================== 
   ANIMATIONS & TRANSITIONS
   ========================================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grids */
.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.6s; }

.portfolio-grid .portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-grid .portfolio-item:nth-child(2) { transition-delay: 0.2s; }
.portfolio-grid .portfolio-item:nth-child(3) { transition-delay: 0.3s; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0.1s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.2s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.3s; }

/* ========================================================================== 
   DARK THEME SPECIFIC OVERRIDES
   ========================================================================== */


[data-theme="dark"] .portfolio-placeholder,
.dark .portfolio-placeholder,
html.dark .portfolio-placeholder,
body.dark .portfolio-placeholder {
    color: var(--text-secondary);
}

[data-theme="dark"] .quote-icon,
.dark .quote-icon,
html.dark .quote-icon,
body.dark .quote-icon {
    color: var(--secondary-color);
}

/* Ensure proper contrast in dark mode */
[data-theme="dark"] .service-card:hover,
.dark .service-card:hover,
html.dark .service-card:hover,
body.dark .service-card:hover {
    background: var(--background-tertiary);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .portfolio-item:hover,
.dark .portfolio-item:hover,
html.dark .portfolio-item:hover,
body.dark .portfolio-item:hover {
    background: var(--background-tertiary);
    border-color: var(--secondary-color);
}