:root {
    --background-dark: black;
    --text-light: #E6F1FF;
    --accent-color: var(--red);
}

.data-expertise-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: -6%;
}

.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
    align-items: stretch;
}

.code-panel {
    flex: 1;
    background: linear-gradient(to bottom right, #112240, #0A192F);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.code-header {
    background: #0A192F;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    opacity: 0.6;
}

.dot:nth-child(1) { background-color: #FF5F56; }
.dot:nth-child(2) { background-color: #FFBD2E; }
.dot:nth-child(3) { background-color: #27C93F; }

.filename {
    color: #8892B0;
    font-size: 0.8rem;
    margin-left: auto;
}

.code-content {
    padding: 1.5rem;
    color: #A8B2D1;
    font-family: 'PoppinsSemiBold';
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    background: linear-gradient(to bottom right, #112240, #0A192F);
    overflow-x: auto; /* Allow horizontal scrolling for code */
}

.expertise-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}




.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
}

.expertise-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 209, 197, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all cards same height */
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.card-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.expertise-card h3 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.expertise-card p {
    color: #8892B0;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.learn-more {
    color: var(--accent-color);
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: var(--text-light);
}

/* Enhanced responsive breakpoints */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }


}

@media (max-width: 768px) {
    .data-expertise-section {
        padding: 1.5rem;
    }

    .code-panel {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .data-expertise-section {
        padding: 1rem;
        margin-top: -3%;
    }

    .expertise-card {
        padding: 1.25rem;
    }

    .code-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
}
