/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f9f5;
    color: #222;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(to bottom, #5b795f, #49674c);
    color: #fff;
    padding: 10px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar .container-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    border-radius: 5px;
    font-weight: 600;
}

.navbar a:hover {
    background: #4a6a56;
    transform: scale(1.05);
}

/* Main Container */
.container {
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 25px;
    margin: 10px;
    max-width: 1200px;
    width: 90%;
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #3d5949;
}

h2 {
    font-size: 1.8em;
    color: #3d5949;
    margin-bottom: 10px;
    border-bottom: 2px solid #a49787;
    display: inline-block;
    padding-bottom: 5px;
}

p {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #333;
}

.intro {
    max-width: 850px;
    margin: 0 auto 25px auto;
}

/* Project Cards */
.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.project-card {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 340px;
    padding: 18px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card h3 {
    font-size: 1.25em;
    color: #2f4f3a;
    margin: 10px 0;
}

.project-card p {
    font-size: 0.95em;
    color: #333;
    margin: 12px 0;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.18);
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 12px 0 14px 0;
}

.project-tags span {
    background: #e6ece7;
    color: #2f4f3a;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid #c7d2c8;
}

/* Buttons */
.project-btn,
.contact-buttons .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 14px;
    font-size: 0.95rem;
    color: #fff;
    background-color: #4a6a56;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease, color 0.2s ease;
    font-weight: 600;
}

.project-btn:hover,
.contact-buttons .btn:hover {
    background-color: #3d5949;
    color: #f8f9f5;
    transform: scale(1.05);
}

/* About Section */
.section-layout {
    justify-content: center;
    margin: 60px auto;
    padding: 20px;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.about-text h2 {
    font-size: 2rem;
    color: #3d5949;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

.about-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 1 1 360px;
    max-width: 500px;
    gap: 20px;
}

.contact-section,
.resume-section {
    margin-bottom: 20px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-section h2,
.resume-section h2 {
    font-size: 1.5rem;
    color: #3d5949;
    margin-bottom: 10px;
}

.contact-section p,
.resume-section p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #415d4d;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    width: 100%;
    border-top: 2px solid #3d5949;
    font-size: 0.9em;
}

footer p,
span#currentYear {
    color: #fcfcfc;
}

footer a {
    color: #fcfcfc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f8f9f5;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        width: 95%;
        padding: 18px;
    }

    .project-card {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-text,
    .about-actions {
        width: 100%;
    }

    .contact-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .project-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 92%;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .navbar .container-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .navbar a {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }

    .project-card h3 {
        font-size: 1.1em;
    }

    .project-card p {
        font-size: 0.9em;
    }

    .project-tags span {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    footer {
        font-size: 0.8em;
    }
}