:root {
    --primary-color: #1e3a5f;
    --secondary-color: #4a5568;
    --background-color: #1a202c;
    --surface-color: #2d3748;
    --text-color: #e2e8f0;
    --text-color-secondary: #a0aec0;
    --card-background: #2d3748;
    --projects-bg: #283344;
    --title-color: #81a1c1;
    --sub-title-color: #88c0d0;
    --button-hover-color: #3498db;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.section {
    padding: 80px 20px;
}

#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40vh;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../images/hero/header.png");
    background-size: cover;
    background-position: center;
}

h1 {
    margin: 0;
    color: #ffffff;
    font-family: "Roboto Slab", serif;
    font-size: 3.5em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subheader {
    max-width: 800px;
    margin-top: 15px;
    color: #f0f0f0;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.section-title {
    margin-top: 0;
    margin-bottom: 40px;
    color: var(--title-color);
    font-family: "Roboto Slab", serif;
    font-size: 2.5em;
    text-align: center;
}

#projects {
    background-color: var(--projects-bg);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--card-background);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--surface-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding: 25px;
}

.project-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--sub-title-color);
    font-size: 1.5em;
}

.project-info p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text-color-secondary);
}

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--sub-title-color);
    background-color: var(--surface-color);
    color: var(--sub-title-color);
}

.btn-secondary:hover {
    background-color: var(--sub-title-color);
    color: var(--background-color);
}

footer.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    background-color: var(--surface-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: var(--sub-title-color);
    transform: translateY(-3px);
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    filter: invert(1);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    .section-title {
        font-size: 2em;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    footer.social-links {
        flex-direction: column;
        gap: 15px;
    }
}
