/* =========================================
   VARIABLES
========================================= */

:root {
    --primary: #16365c;
    --primary-hover: #102b4c;
    --accent: #2563eb;

    --text: #1f2937;
    --text-secondary: #5f6b7a;
    --muted: #64748b;

    --background: #ffffff;
    --background-light: #f8fafc;

    --border: #e2e8f0;
}


/* =========================================
   GLOBAL
========================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;

    font-family: "Inter", sans-serif;

    color: var(--text);
    background-color: var(--background);

    line-height: 1.6;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    min-height: 70px;
}

.navbar-brand {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.navbar-brand:hover {
    color: var(--primary);
}

.nav-link {
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;

    margin-left: 10px;

    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.language-button {
    background: transparent;

    border: 1px solid var(--border);
    border-radius: 6px;

    color: var(--primary);

    padding: 6px 11px;

    font-size: 0.85rem;
    font-weight: 600;

    transition: all 0.2s ease;
}

.language-button:hover {
    background-color: var(--background-light);
}


/* =========================================
   HERO
========================================= */

.hero {
    background-color: var(--background);
}

.hero-content {
    min-height: calc(100vh - 70px);

    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-label {
    color: var(--accent);

    font-size: 0.9rem;
    font-weight: 600;

    letter-spacing: 0.04em;

    margin-bottom: 20px;
}

.hero-title {
    color: var(--primary);

    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;

    line-height: 1.02;

    margin-bottom: 28px;
}

.hero-description {
    max-width: 680px;

    color: var(--text-secondary);

    font-size: 1.15rem;
    line-height: 1.7;

    margin-bottom: 28px;
}

.hero-interests {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 35px;
}

.hero-interests span {
    color: #334155;
    background-color: var(--background-light);

    border: 1px solid var(--border);
    border-radius: 6px;

    padding: 7px 13px;

    font-size: 0.88rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================
   BUTTONS
========================================= */

.btn-primary-custom,
.btn-outline-custom {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    border-radius: 6px;

    padding: 11px 19px;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary-custom {
    color: white;
    background-color: var(--primary);

    border: 1px solid var(--primary);
}

.btn-primary-custom:hover {
    color: white;
    background-color: var(--primary-hover);
}

.btn-outline-custom {
    color: var(--primary);
    background-color: white;

    border: 1px solid #cbd5e1;
}

.btn-outline-custom:hover {
    color: var(--primary);
    background-color: var(--background-light);
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    padding: 95px 0;
}

.section-light {
    background-color: var(--background-light);
}

.section-heading {
    margin-bottom: 42px;
}

.section-label {
    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.14em;

    margin-bottom: 8px;
}

.section-heading h2 {
    color: var(--primary);

    font-size: clamp(1.8rem, 4vw, 2.25rem);
    font-weight: 700;

    margin-bottom: 0;
}

.section-subtitle {
    max-width: 650px;

    color: var(--muted);

    margin-top: 12px;
    margin-bottom: 0;
}

.section-text {
    color: #4b5563;

    font-size: 1.03rem;
    line-height: 1.85;

    margin-bottom: 18px;
}


/* =========================================
   EXPERIENCE
========================================= */

.experience-item {
    max-width: 950px;

    border-left: 3px solid var(--accent);

    padding-left: 28px;
}

.experience-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: 20px;
}

.experience-header h3 {
    color: var(--primary);

    font-size: 1.25rem;
    font-weight: 700;

    margin-bottom: 6px;
}

.experience-place {
    color: var(--muted);

    margin-bottom: 0;
}

.experience-date {
    color: var(--muted);

    font-size: 0.88rem;

    white-space: nowrap;
}

.experience-list {
    color: #4b5563;

    line-height: 1.8;

    padding-left: 20px;

    margin-bottom: 0;
}

.experience-list li {
    margin-bottom: 7px;
}


/* =========================================
   PROJECTS
========================================= */

.project-card {
    height: 100%;

    background-color: white;

    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 27px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.project-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.project-card h3 {
    color: var(--primary);

    font-size: 1.25rem;
    font-weight: 700;

    margin-top: 4px;
    margin-bottom: 0;
}

.project-type {
    color: var(--accent);

    font-size: 0.75rem;
    font-weight: 600;
}

.project-year {
    color: var(--muted);

    font-size: 0.82rem;

    white-space: nowrap;
}

.project-description {
    color: #4b5563;

    line-height: 1.7;

    margin-bottom: 20px;
}

.technology-list,
.skill-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.technology-list span,
.skill-list span {
    color: #334155;
    background-color: var(--background-light);

    border: 1px solid var(--border);
    border-radius: 5px;

    padding: 5px 9px;

    font-size: 0.78rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--primary);

    font-size: 0.85rem;
    font-weight: 600;

    margin-top: 22px;
}

.project-link:hover {
    color: var(--accent);
}


/* =========================================
   SKILLS
========================================= */

.skill-group {
    height: 100%;

    border-top: 2px solid var(--accent);

    padding-top: 18px;
}

.skill-group h3 {
    color: var(--primary);

    font-size: 1rem;
    font-weight: 700;

    margin-bottom: 15px;
}


/* =========================================
   CERTIFICATIONS
========================================= */

.certification-list {
    max-width: 950px;
}

.certification-item {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    border-bottom: 1px solid var(--border);

    padding: 20px 0;
}

.certification-item:first-child {
    padding-top: 0;
}

.certification-item h3 {
    color: var(--primary);

    font-size: 1rem;
    font-weight: 600;

    margin-bottom: 5px;
}

.certification-item p {
    color: var(--muted);

    font-size: 0.88rem;

    margin-bottom: 0;
}

.certification-item > span {
    color: var(--muted);

    font-size: 0.85rem;

    white-space: nowrap;
}


/* =========================================
   EDUCATION
========================================= */

.education-item {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    max-width: 950px;
}

.education-item h3 {
    color: var(--primary);

    font-size: 1.25rem;
    font-weight: 700;

    margin-bottom: 7px;
}

.education-degree {
    color: #475569;

    font-weight: 500;

    margin-bottom: 4px;
}

.education-details {
    color: var(--muted);

    margin-bottom: 0;
}

.education-item > span {
    color: var(--muted);

    font-size: 0.88rem;

    white-space: nowrap;
}

.additional-experience {
    max-width: 950px;

    border-top: 1px solid var(--border);

    margin-top: 45px;
    padding-top: 35px;
}

.additional-experience h3 {
    color: var(--primary);

    font-size: 1.05rem;
    font-weight: 600;

    margin-bottom: 5px;
}

.additional-experience > p:last-child {
    color: var(--muted);

    margin-bottom: 0;
}


/* =========================================
   CONTACT
========================================= */

.contact-section {
    color: white;

    background-color: var(--primary);
}

.contact-section .section-label {
    color: #93c5fd;
}

.contact-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;

    margin-bottom: 20px;
}

.contact-text {
    max-width: 620px;

    color: #dbeafe;

    font-size: 1.05rem;
    line-height: 1.7;

    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 12px;
}

.contact-links a {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: white;

    font-weight: 500;
}

.contact-links a:hover {
    color: #bfdbfe;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background-color: #102b4c;

    padding: 22px 0;
}

.footer-content {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.footer-content p,
.footer-content a {
    color: #cbd5e1;

    font-size: 0.82rem;

    margin: 0;
}

.footer-content a:hover {
    color: white;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {

    .navbar-nav {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .nav-link {
        margin-left: 0;
    }

    .language-button {
        margin-top: 10px;
    }

}


@media (max-width: 768px) {

    .section {
        padding: 70px 0;
    }

    .hero-content {
        min-height: auto;

        padding-top: 100px;
        padding-bottom: 90px;
    }

    .hero-title {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .experience-header,
    .education-item,
    .certification-item {
        flex-direction: column;

        gap: 7px;
    }

    .project-card {
        padding: 23px;
    }

    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 480px) {

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        justify-content: center;
    }

    .project-card-header {
        flex-direction: column;

        gap: 5px;
    }

}

.hero-image {
    width: 100%;
    max-width: 460px;
    height: auto;
}

@media (max-width: 992px) {
    .hero-image {
        max-width: 380px;
        margin-top: 50px;
    }
}