/* Component Cards - Shared Component Styles */
:root {
    --component-dark-blue: #051824;
    --component-medium-blue: #092740;
    --component-light-blue: #0d3a5a;
    --component-teal: #00d4aa;
    --component-light-teal: #4dffce;
    --component-gradient-primary: linear-gradient(135deg, var(--component-teal), var(--component-light-blue));
}

/* Components Section Container */
.components-section {
    padding: 6rem 0;
    position: relative;
    z-index: 0;
}

.components-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

/* Service Cards Grid */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

/* Animation for cards */
.service-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Component Card Link */
.component-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Basic Card Styling (shared between component and service cards) */
.component-card,
.service-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid transparent;
    position: relative;
    padding: var(--space-md) calc(var(--space-md) * 0.5) var(--space-md) calc(var(--space-md) * 0.5);
    padding-top: calc(var(--space-md) + 20px);
}

/* ERP Component Card specific styles */
.component-card {
    /* Specific styles moved to shared styling above */
}

/* Service Card specific styles */
.service-card {
    flex: 0 0 300px;
    max-width: 300px;
    padding-bottom: calc(var(--space-md) + 10px);
}

/* Hover states */
.component-card:hover, 
.component-card-link:hover .component-card,
.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-top: 3px solid var(--component-teal);
    box-shadow: 0 10px 25px rgba(0, 212, 170, 0.2);
}

/* Component Icon */
.component-icon,
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: var(--space-md);
    background: var(--component-gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
    margin-top: -35px;
    position: absolute;
    top: 20px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* Service icons need to be slightly larger */
.service-icon {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    font-size: 2rem;
}

/* Card Headings */
.component-card h3,
.service-card h3 {
    color: var(--component-teal);
    font-size: 1.5rem;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    list-style: none;
    position: relative;
}

/* Service card headings with larger font */
.service-card h3 {
    font-size: 1.875rem;
    margin-top: calc(var(--space-sm) + 15px);
}

/* Card paragraph text */
.component-card p,
.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Service card paragraph text with larger font */
.service-card p {
    font-size: 1.19rem; /* 0.95rem * 1.25 */
    line-height: 1.4;
}

/* Icon Type Styles */
.api-icon::before {
    content: "\1F310"; /* Globe with meridians emoji */
    font-size: 2rem;
}

.teams-icon::before {
    content: "\1F4AC"; /* Speech bubble emoji */
    font-size: 2rem;
}

.whatsapp-icon::before {
    content: "\1F4F1"; /* Mobile phone emoji */
    font-size: 2rem;
}

.nlq-icon::before {
    content: "\1F50D"; /* Magnifying glass emoji */
    font-size: 2rem;
}

.analytics-icon::before {
    content: "\1F4CA"; /* Chart emoji */
    font-size: 2rem;
}

/* Responsive styles */
@media (min-width: 1400px) {
    .components-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-md);
    }
}

@media (min-width: 1200px) {
    .component-card h3,
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: var(--space-xs);
    }
    
    /* Service card headings with larger font in this breakpoint */
    .service-card h3 {
        font-size: 1.56rem; /* 1.25rem * 1.25 */
    }
    
    .component-card p,
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Service card paragraph text with larger font in this breakpoint */
    .service-card p {
        font-size: 1.06rem; /* 0.85rem * 1.25 */
    }
    
    .component-icon,
    .service-icon {
        width: 65px;
        height: 65px;
        margin-bottom: var(--space-xs);
        margin-top: -32px;
        top: 18px;
    }
    
    /* Service icons adjustment for larger size */
    .service-icon {
        width: 75px;
        height: 75px;
        margin-top: -37px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .components-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-sm);
    }
    
    .component-card,
    .service-card {
        padding: var(--space-sm) calc(var(--space-sm) * 0.5) var(--space-sm) calc(var(--space-sm) * 0.5);
        padding-top: calc(var(--space-sm) + 18px);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .components-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
    }
    
    .component-card:nth-child(5) {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .component-card,
    .service-card {
        padding-top: calc(var(--space-sm) + 18px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .components-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .component-card,
    .service-card {
        padding: var(--space-sm) calc(var(--space-sm) * 0.5) var(--space-sm) calc(var(--space-sm) * 0.5);
        padding-top: calc(var(--space-sm) + 18px);
    }
    
    /* Additional padding for service cards to accommodate larger text */
    .service-card {
        padding-bottom: calc(var(--space-sm) + 10px);
    }
    
    .component-card p,
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Service card paragraph text with larger font in this breakpoint */
    .service-card p {
        font-size: 1.125rem; /* 0.9rem * 1.25 */
    }
    
    .component-icon,
    .service-icon {
        width: 65px;
        height: 65px;
        margin-top: -32px;
        margin-bottom: var(--space-xs);
        top: 18px;
    }
    
    /* Service icons adjustment for larger size */
    .service-icon {
        width: 75px;
        height: 75px;
        margin-top: -37px;
    }
    
    .component-card:nth-child(5) {
        grid-column: span 2;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .component-card,
    .service-card {
        padding: var(--space-sm);
        padding-top: calc(var(--space-sm) + 25px);
    }
    
    /* Additional padding for service cards to accommodate larger text */
    .service-card {
        padding-bottom: calc(var(--space-sm) + 15px);
        flex: 0 0 100%; /* Full width on mobile */
        max-width: 350px; /* Limit maximum width */
        margin: 0 auto;
    }
    
    .component-icon,
    .service-icon {
        width: 50px;
        height: 50px;
        margin-top: -25px;
        top: 15px;
        font-size: 1.4rem;
    }
    
    /* Service icons adjustment for larger size */
    .service-icon {
        width: 60px;
        height: 60px;
        margin-top: -30px;
        font-size: 1.6rem;
    }
    
    .component-card h3,
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Service card headings with larger font in this breakpoint */
    .service-card h3 {
        font-size: 1.5rem; /* 1.2rem * 1.25 */
        margin-top: calc(var(--space-sm) + 5px); /* Additional spacing for larger icon */
    }
    
    .component-card p,
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Service card paragraph text with larger font in this breakpoint */
    .service-card p {
        font-size: 1.125rem; /* 0.9rem * 1.25 */
    }
} 