:root {
    --primary-color: #E53935;      /* Red */
    --primary-hover: #ff5252;      /* Brighter red for hover states */
    --secondary-color: #B71C1C;    /* Darker red */
    --dark-bg: #f0f0f0;            /* Slightly darker grey background */
    --darker-bg: #d6d6d6;          /* Darker grey for sections */
    --light-text: #333333;         /* Dark text for better contrast */
    --muted-text: #555555;         /* Muted text */
    --card-bg: #ffffff;            /* White card background */
    --card-hover: #f5f5f5;         /* Slightly off-white for hover */
    --border-color: #d0d0d0;       /* Slightly darker border color */
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Update header styles */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style the header links */
.header-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.header-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Update section styles */
.section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    position: relative;
}

.section.bg-light {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bg-light {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

/* Update button and link styles */
.btn, .connect-btn {
    background-color: var(--primary-color);
    color: white;
}

.btn:hover, .connect-btn:hover {
    background-color: var(--secondary-color);
}

/* Skills and Projects Grid Layout */
.skills-container, .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Skill and Project Cards */
.skill-category, .project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 0 1.5rem 1.5rem;  /* Added horizontal padding */
    text-align: center;        /* Center text */
}

.skill-category {
    padding: 1.8rem 1.5rem;
    border-top: 4px solid var(--primary-color);
    background: white;
    color: #333;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
}

.skill-category h3 {
    color: var(--primary-color);
    margin: 0 auto 1.2rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.8rem;
    max-width: 90%;
    text-align: center;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    padding: 0.5rem 0.5rem;
    position: relative;
    color: var(--muted-text);
    line-height: 1.6;
    text-align: center;
    list-style: none;
    margin: 0 auto;
    max-width: 90%;
}

.skill-category ul {
    padding: 0;
    margin: 0 auto;
    max-width: 90%;
}

.skill-category li::before {
    content: '';
    display: none;
}

.skill-category:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.project-card {
    background: white;
    color: #333;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary-color);
}

/* Section Headers */
.section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #333;
    position: relative;
    font-size: 2.2rem;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Update footer */
footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* Update all links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Update buttons */
.btn, .connect-btn, .header-link {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover, .connect-btn:hover, .header-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Update form elements */
input, textarea, select {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--light-text);
    padding: 0.5rem;
    border-radius: 4px;
}

/* Update code blocks */
pre, code {
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
}

/* Update blockquotes */
blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    color: var(--muted-text);
    font-style: italic;
}