:root {
    --global-font-size: 1rem; /* Responsive font size */
    --global-line-height: 1.6; /* Improved readability */
    --global-space: 10px; /* Default spacing */
    --font-stack: "Menlo", "Monaco", "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", serif;
    --mono-font-stack: "Menlo", "Monaco", "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", serif;

    /* Dark mode purple theme */
    --background-color: #121212; /* Deep dark background */
    --font-color: #e0e0e0; /* Light gray for main text */
    --invert-font-color: #121212; /* Inverted for lighter backgrounds */
    --primary-color: #a855f7; /* Vibrant purple for primary elements */
    --secondary-color: #9333ea; /* Darker purple for secondary accents */
    --accent-color: #f0abfc; /* Light pinkish purple for highlights */
    --error-color: #ef4444; /* Bright red for error states */
    --progress-bar-background: #4b5563; /* Neutral gray background for progress bars */
    --progress-bar-fill: #a855f7; /* Purple fill for progress bars */
    --code-bg-color: #1e1e2e; /* Dark purple-ish background for code blocks */
    --input-style: solid; /* Solid input borders */
    --display-h1-decoration: none;
    --block-background-color: #18181b; /* Slightly lighter dark background */
    --page-width: min(90%, 60em); /* Responsive page width */
}

h2 {
    margin-top: 1rem;
    margin-bottom: 1rem
}

 .skills-section {
     margin-top: 2rem;
     margin-bottom: 2rem;
     text-align: left;
 }

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.badge img {
    max-height: 40px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.badge:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.badge {
    text-align: center;
    padding: 5px;
    border-radius: 5px;
}

.badges img {
    max-height: 40px;
    object-fit: contain;
}
footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #a855f7;
}

.card-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Consistent spacing between cards */
    justify-content: center; /* Center the cards on all screen sizes */
    margin-top: 2rem;
}

.card {
    background-color: var(--block-background-color);
    color: var(--font-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    width: calc(33.333% - 20px); /* Default: Three cards per row */
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.card p {
    margin: 0.5rem 0 1rem;
    line-height: var(--global-line-height);
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--secondary-color);
}

/* Responsive Tweaks */
@media (max-width: 1024px) {
    .card {
        width: calc(50% - 20px); /* Two cards per row for tablets */
    }
}

@media (max-width: 768px) {
    .card {
        width: calc(100% - 20px); /* Full-width cards on mobile */
    }
}

