@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #4D4D4D;
    background: #fff;
}

a {
    color: #DB9A64;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FD8E5E;
}

h1, h2, h3, h4 {
    color: #001D38;
    font-weight: 700;
}

/* ===== HEADER / HERO ===== */
header {
    background: #311E25;
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #DB9A64;
}

header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

header .subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #C9C9C9;
    margin-bottom: 1.5rem;
}

header .header-links a {
    color: #DB9A64;
    border: 1px solid #DB9A64;
    padding: 0.5rem 1.5rem;
    border-radius: 3px;
    margin: 0 0.5rem;
    display: inline-block;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

header .header-links a:hover {
    background: #DB9A64;
    color: #fff;
}

/* ===== NAVIGATION ===== */
nav {
    background: #311E25;
    padding: 0.75rem 2rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #3B2930;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 0;
}

nav a {
    color: #C9C9C9;
    margin: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #DB9A64;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SECTIONS ===== */
section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e6e9;
    scroll-margin-top: 60px;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #DB9A64;
}

/* ===== SUMMARY ===== */
#summary p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4D4D4D;
}

/* ===== PROFICIENCIES ===== */
#proficiencies ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#proficiencies li {
    background: #3B2930;
    color: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 4px;
    border-left: 3px solid #DB9A64;
    transition: transform 0.3s ease;
}

#proficiencies li:hover {
    transform: translateY(-2px);
}

#proficiencies li strong {
    color: #DB9A64;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CERTIFICATIONS & EDUCATION ===== */
#certifications h3 {
    font-size: 1.1rem;
    color: #DB9A64;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.75rem;
}

#certifications h3:first-of-type {
    margin-top: 0;
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    background: #f9f9ff;
    padding: 0.75rem 1.5rem;
    border-left: 3px solid #DB9A64;
    margin-bottom: 0.5rem;
    border-radius: 0 4px 4px 0;
    color: #1F1F1F;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-list li strong {
    color: #001D38;
}

.cert-list li span {
    color: #7e7e7e;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 1rem;
}

#certifications p,
#education p {
    background: #f9f9ff;
    padding: 1rem 1.5rem;
    border-left: 3px solid #DB9A64;
    margin-bottom: 0.75rem;
    border-radius: 0 4px 4px 0;
    color: #1F1F1F;
}

/* ===== EXPERIENCE ===== */
.job {
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border: 1px solid #e5e6e9;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.job:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job h3 {
    font-size: 1.2rem;
    color: #001D38;
    margin-bottom: 0.25rem;
}

.job > p {
    color: #DB9A64;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.job ul {
    list-style: none;
    padding: 0;
}

.job li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: #4D4D4D;
    line-height: 1.7;
}

.job li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: #DB9A64;
    border-radius: 50%;
}

.job li strong {
    color: #001D38;
}

/* ===== TESTIMONIALS ===== */
.testimonial {
    background: #fff;
    border: 1px solid #e5e6e9;
    border-radius: 4px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.testimonial:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.testimonial-header strong {
    color: #001D38;
    font-size: 1.1rem;
    display: block;
}

.testimonial-header span {
    color: #7e7e7e;
    font-size: 0.85rem;
}

.testimonial-date {
    white-space: nowrap;
    color: #DB9A64 !important;
    font-weight: 500;
}

.testimonial-relation {
    font-size: 0.8rem;
    color: #919191;
    font-style: italic;
    margin: 0 0 1rem;
}

.testimonial blockquote {
    margin: 0;
    padding-left: 1.25rem;
    border-left: 3px solid #DB9A64;
    color: #4D4D4D;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
#contact {
    background: #3B2930;
    padding: 3rem 2rem;
    color: #fff;
}

#contact h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
}

#contact h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form label {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #C9C9C9;
}

#contact-form input,
#contact-form textarea {
    padding: 0.85rem 1rem;
    border: 1px solid #6B4B40;
    border-radius: 4px;
    background: #311E25;
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #DB9A64;
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    background: transparent;
    color: #DB9A64;
    border: 2px solid #DB9A64;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

#contact-form button:hover {
    background: #DB9A64;
    color: #fff;
}

#form-message {
    text-align: center;
    color: #DB9A64;
    font-weight: 500;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: #311E25;
    color: #919191;
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #3B2930;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: transparent;
    border: 1px solid #6B4B40;
    color: #C9C9C9;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: #DB9A64;
    color: #DB9A64;
}

/* ===== DARK THEME ===== */
body.dark-theme {
    background: #1a1a2e;
    color: #C9C9C9;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4 {
    color: #e0e0e0;
}

body.dark-theme header {
    background: #16213e;
}

body.dark-theme header h1 {
    color: #fff;
}

body.dark-theme nav {
    background: #16213e;
    border-bottom-color: #1a1a2e;
}

body.dark-theme main {
    background: transparent;
}

body.dark-theme section {
    border-bottom-color: #2a2a4a;
}

body.dark-theme #summary p {
    color: #b0b0b0;
}

body.dark-theme #proficiencies li {
    background: #16213e;
}

body.dark-theme #certifications h3 {
    color: #DB9A64;
}

body.dark-theme .cert-list li {
    background: #16213e;
    color: #C9C9C9;
}

body.dark-theme .cert-list li strong {
    color: #e0e0e0;
}

body.dark-theme .cert-list li span {
    color: #919191;
}

body.dark-theme #certifications p,
body.dark-theme #education p {
    background: #16213e;
    color: #C9C9C9;
}

body.dark-theme .job {
    background: #16213e;
    border-color: #2a2a4a;
}

body.dark-theme .job:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .job h3 {
    color: #e0e0e0;
}

body.dark-theme .job li {
    color: #b0b0b0;
}

body.dark-theme .job li strong {
    color: #e0e0e0;
}

body.dark-theme .testimonial {
    background: #16213e;
    border-color: #2a2a4a;
}

body.dark-theme .testimonial:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .testimonial-header strong {
    color: #e0e0e0;
}

body.dark-theme .testimonial blockquote {
    color: #b0b0b0;
}

body.dark-theme #contact {
    background: #0f3460;
}

body.dark-theme #contact-form input,
body.dark-theme #contact-form textarea {
    background: #16213e;
    border-color: #2a2a4a;
}

body.dark-theme footer {
    background: #16213e;
    border-top-color: #1a1a2e;
    color: #777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header {
        padding: 3rem 1.5rem;
    }

    #proficiencies ul {
        grid-template-columns: 1fr;
    }

    nav a {
        margin: 0 0.4rem;
        font-size: 0.75rem;
    }

    .job {
        padding: 1.2rem 1.5rem;
    }

    .cert-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .cert-list li span {
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .testimonial {
        padding: 1.2rem 1.5rem;
    }

    .testimonial-header {
        flex-direction: column;
    }

    .testimonial-date {
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    header .header-links a {
        display: block;
        margin: 0.3rem 0;
    }

    nav {
        padding: 0.5rem 0.75rem;
    }

    nav a {
        margin: 0 0.3rem;
        font-size: 0.7rem;
        letter-spacing: 0;
    }

    .theme-toggle {
        margin-left: 0.3rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}
