:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --light-text: #7f8c8d;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1,
h2,
h3 {
    color: var(--primary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.header h1 {
    font-size: 2.8em;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.header h2 {
    font-size: 1.3em;
    font-weight: 400;
    color: var(--light-text);
    margin-top: 0;
}

.contact-links {
    margin-top: 20px;
    font-size: 1.1em;
}

/* Added a subtle scale effect to the links on hover */
.contact-links a {
    margin: 0 12px;
    display: inline-block;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.contact-links a:hover {
    transform: translateY(-2px);
}

.section {
    background: white;
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

/* The section shadow gets slightly deeper when hovered */
.section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.section h2 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.8em;
}

.about-text {
    font-size: 1.1em;
    line-height: 1.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Added smooth transition for transform and shadow */
.card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Cards now lift up and cast a shadow when hovered */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.card h4 {
    margin: 0 0 10px 0;
    color: var(--light-text);
    font-weight: 500;
    font-size: 1em;
}

.card p {
    margin: 10px 0;
    font-size: 0.95em;
}

.date {
    font-size: 0.9em;
    color: var(--light-text);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

/* Added cursor pointer and smooth transition */
.skill-badge {
    background: #e8f4f8;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid #bce0ef;
    transition: all 0.3s ease;
    cursor: default;
}

/* Skill badges change color and grow slightly on hover */
.skill-badge:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.skill-category {
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    color: var(--primary-color);
    font-size: 1.1em;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}
