/* ========================================================================
   COMPLETE STYLES FOR EVENT HOMEPAGE (styles/home.css)
   This file is additive and styles only the new homepage sections.
   ======================================================================== */

/* --- Hero Section --- */
.hero-section {
    background-color: #1a2632;
    color: #ffffff;
    padding: 8rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(26, 38, 50, 0.95), rgba(26, 38, 50, 0.95)), url('https://www.mescius.com/images/backgrounds/blazor-background-v2.jpg');
    background-size: cover;
    background-position: center;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}
.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-cta-button {
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.hero-cta-button.primary {
    background-color: #EF5350;
    color: #ffffff;
}
.hero-cta-button.primary:hover {
    background-color: #d32f2f;
    transform: translateY(-3px);
}
.hero-cta-button.secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.hero-cta-button.secondary:hover {
    background-color: #EF5350;
    color: #1a2632;
    transform: translateY(-3px);
}
.hero-cta-button i { margin-left: 0.5rem; }

/* --- Stats Section --- */
.stats-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2d5a87;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Updated Pillars Section --- */
.pillars-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.pillars-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pillars-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.pillars-section .section-header p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Logo Strip Section --- */
.logo-strip-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.logo-strip-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-strip-section .section-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0.8;
    min-height: 120px;
    padding: 2rem 0;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 140px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-item img,
.logo-item svg {
    max-height: 50px;
    max-width: 120px;
    height: auto;
    width: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    object-fit: contain;
    display: block;
}

.logo-item:hover img,
.logo-item:hover svg {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Ensure consistent sizing for all logo types */
.logo-item svg {
    height: 50px !important;
    width: auto !important;
    max-width: 120px !important;
}

/* Specific adjustments for known logo types */
.logo-item img[alt="Microsoft"] {
    max-height: 45px;
}

.logo-item img[alt="Tesla"] {
    max-height: 45px;
}

.logo-item img[alt="Classmethod"] {
    max-height: 40px;
}

.logo-item img[alt="Calsoft"] {
    max-height: 35px;
}

/* --- Ecosystem Showcase Section --- */
.ecosystem-section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: #555; max-width: 600px; margin: 0 auto; }
.product-tabs { display: flex; justify-content: center; margin-bottom: 3rem; border-bottom: 1px solid #dee2e6; }
.tab-link {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    position: relative;
    transition: color 0.3s ease;
}
.tab-link:hover { color: #333; }
.tab-link.active { color: #EF5350; }
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #EF5350;
}
.tab-link i { margin-right: 0.75rem; }

/* ========================================================================
   PROPERLY FIXED CARD DESIGN
   ======================================================================== */

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-grid:not(.active) {
    display: none;
}

.product-grid.active {
    display: grid;
}

/* Product Cards - Enhanced Hover Effects */
.product-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease-in-out; /* Smooth hover transition */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 350px; /* Fixed height for all cards */
    min-height: 350px;
}

.product-card:hover {
    transform: translateY(-4px); /* Subtle lift effect */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
    border-color: var(--product-color); /* Product-specific border color */
}

/* Logo Section - Fixed Height */
.logo-section {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    flex-shrink: 0; /* Don't shrink */
}

.product-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Title Section - Flexible Middle */
.title-section {
    padding: 1rem 1.5rem;
    text-align: center;
    flex-grow: 1; /* This grows to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-tagline {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
}

/* Remove product title completely */
.product-title {
    display: none;
}

/* Remove description section completely */
.description-section {
    display: none;
}

/* Action Button - Fixed at Bottom */
.action-section {
    padding: 1.5rem;
    flex-shrink: 0; /* Don't shrink */
}

.product-cta {
    display: block;
    background: var(--product-color);
    color: #ffffff !important;
    text-decoration: none;
    text-align: center;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px; /* Consistent button height */
    line-height: 1.2;
}

.product-cta:hover {
    background: var(--product-color);
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none;
}

/* Pillar Cards */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Pillar Cards - Clean & Minimal with Hover Effects */
.pillar {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease-in-out; /* Smooth hover transition */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 420px; /* Fixed height for all pillars */
    min-height: 420px;
}

.pillar:hover {
    transform: translateY(-4px); /* Subtle lift effect */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
    border-color: #2d5a87; /* Accent border color */
}

/* Icon Section - Fixed Height */
.pillar-icon {
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* Don't shrink */
}

.pillar-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    background: #2d5a87;
    padding: 1rem;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Title Section - Fixed Height */
.pillar h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
    flex-shrink: 0; /* Don't shrink */
    min-height: 2.6rem; /* Two lines of text */
    line-height: 1.2;
}

/* Description - Clean Text on White Background */
.pillar p {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    margin-top: 1rem; /* Consistent spacing from title */
    text-align: left;
    flex-grow: 1; /* Fill remaining space */
    display: flex;
    align-items: flex-start;
    /* Removed gray background box completely */
    background: none;
    border: none;
    padding: 0;
}

/* Responsive Design */
/* Responsive Design - Clean & Minimal */
@media (max-width: 1200px) {
    .product-grid,
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pillars-grid {
        grid-template-rows: repeat(4, 1fr);
    }
    
    .product-card {
        height: 330px; /* Adjust for tablet */
        min-height: 330px;
    }
    
    .pillar {
        height: 400px; /* Adjust for tablet */
        min-height: 400px;
        padding: 1.75rem;
    }
    
    .pillar h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .pillar p {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 768px) {
    .product-grid,
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pillars-grid {
        grid-template-rows: repeat(8, 1fr);
    }
    
    .product-card {
        height: 320px; /* Adjust for mobile */
        min-height: 320px;
    }
    
    .pillar {
        height: 380px; /* Adjust for mobile */
        min-height: 380px;
        padding: 1.5rem;
    }
    
    .pillar h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .pillar p {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
    
    .logo-section {
        height: 100px; /* Smaller logo area on mobile */
        padding: 1.5rem;
    }
    
    .product-logo {
        height: 50px; /* Smaller logo on mobile */
    }
}
    
    .logo-section {
        height: 70px;
    }
    
    .product-logo {
        height: 35px;
    }
    
    .title-section {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .description-section {
        padding: 0 0.75rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .action-section {
        padding: 0.75rem;
    }
    
    .pillar-icon i {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        padding: 0.75rem;
    }
    
    .pillar h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .pillar p {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
}

/* --- Solutions Teaser Section (Renamed to Challenge Section) --- */
.solutions-teaser-section {
    padding: 6rem 0;
    background-color: #1a2632; /* The darkest background */
    color: #ffffff;
}
.solutions-teaser-section .section-header p { 
    color: rgba(255,255,255,0.8); 
}
.challenge-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.challenge-card {
    background-color: #2c3e50; /* A lighter shade of dark blue */
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    border: 1px solid #384b5f;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.challenge-card:hover {
    transform: translateY(-5px);
    border-color: #EF5350; /* The red accent color on hover */
}
.challenge-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}
.challenge-card p {
    color: rgba(255,255,255,0.8);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.challenge-card span {
    font-weight: 600;
    color: #EF5350;
}
.challenge-card span i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
.challenge-card:hover span i {
    transform: translateX(5px);
}

/* --- Responsive Design For New Sections --- */
@media (max-width: 1100px) {
    /* handled in main responsive section above */
}
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-strip {
        gap: 2rem;
    }
    .logo-item {
        width: 130px;
        height: 75px;
    }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 6rem 0; }
    .hero-cta-group { flex-direction: column; }
    .challenge-cards-container {
        grid-template-columns: 1fr;
    }
    .tab-link { font-size: 1rem; padding: 1rem; }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .logo-strip {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .logo-item {
        width: 120px;
        height: 70px;
        padding: 0.75rem;
    }
    .logo-item img,
    .logo-item svg {
        max-height: 40px;
        max-width: 100px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
}