/* =========================
   CSS VARIABLES
========================= */

:root {
    --navy:       #1a3a5c;
    --navy-dark:  #122840;
    --navy-deep:  #0d1f30;
    --accent:     #2a7fba;
    --accent-lt:  #5ba3d0;
    --white:      #ffffff;
    --off-white:  #f4f7fa;
    --surface:    #eaf0f6;
    --border:     #d0dce8;
    --text-dark:  #1a2e42;
    --text-mid:   #3d5a73;
    --text-muted: #6b8599;
    --text-light: #c8dae8;
}

/* =========================
   GLOBAL STYLES
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
}

section {
    padding: 120px 8% 80px;
    min-height: 100vh;
}

/* =========================
   NAVBAR
========================= */

.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 40px;
    background: var(--navy-dark);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(10, 30, 50, 0.3);
}

.custom-navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--accent-lt);
    transition: 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================
   SECTIONS
========================= */

.odd-section {
    background-color: var(--navy-deep);
    color: var(--white);
}

.even-section {
    background-color: var(--off-white);
    color: var(--text-dark);
}

.light-section {
    background-color: var(--off-white);
    color: var(--text-dark);
}

/* =========================
   HEADINGS
========================= */

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sub-headings {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 16px;
    text-align: center;
    color: inherit;
    display: block;
}

.sub-headings::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-lt);
    margin: 12px auto 44px;
}

/* =========================
   HERO SECTION
========================= */

.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid var(--border);
    box-shadow: 0 8px 32px rgba(26, 58, 92, 0.12);
    background-color: var(--surface);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    text-align: left;
    margin-bottom: 12px;
}

.hero-text h2 {
    text-align: left;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-mid);
    margin-bottom: 24px;
}

.hero-text .icons {
    justify-content: flex-start;
    margin-top: 0;
    padding-left: 0;
}

@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1,
    .hero-text h2 {
        text-align: center;
    }

    .hero-text .icons {
        justify-content: center;
    }
}

.hero-badge {
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}

/* =========================
   ICONS
========================= */

.icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    list-style: none;
}

.icons a {
    color: var(--text-mid);
    font-size: 2rem;
    transition: 0.3s ease;
}

.icons a:hover {
    color: var(--accent);
    transform: translateY(-4px);
}

/* =========================
   ABOUT SECTION
========================= */

.flow-text {
    max-width: 860px;
    margin: auto;
}

.about-intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 28px;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.about-body {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 24px;
}

.about-interests {
    margin-top: 40px;
    padding: 30px;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.about-interests-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.interests-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.interests-list li {
    background: var(--navy);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s ease;
}

.interests-list li:hover {
    background: var(--accent);
    color: var(--white);
}

/* =========================
   EDUCATION
========================= */

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 0 auto 30px;
    max-width: 860px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.07);
}

.education-item:hover {
    box-shadow: 0 10px 32px rgba(26, 58, 92, 0.13);
}

.edu-logo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--surface);
    padding: 6px;
    border: 1px solid var(--border);
}

.details h2 {
    font-family: 'Playfair Display', serif;
    text-align: left;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.details h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
}

.edu-focus {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.edu-supervisor {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.edu-gpa {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.edu-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* =========================
   EXPERIENCE CARDS
========================= */

.experience-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.08);
    height: 100%;
}

.experience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(26, 58, 92, 0.14);
}

.experience-card .card-header {
    padding: 28px 25px 18px;
    text-align: center;
    border-bottom: none;
}

.experience-card .card-header--okaki {
    background-color: #16423C !important;
}

.experience-card .card-header--noralta {
    background-color: #921A40 !important;
}

.experience-card .card-header--cropmind {
    background-color: #2E073F !important;
}

.company-name {
    font-family: 'Playfair Display', serif;
    color: #ffffff !important;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.company-name:hover {
    color: #e2e8f0 !important;
    text-decoration: none;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-top: -28px;
    margin-bottom: 10px;
}

.company-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.experience-text-details {
    padding: 10px 28px 28px;
}

.experience-text-role {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 4px;
}

.experience-text-date {
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.exp-list {
    padding-left: 18px;
    margin: 0;
}

.exp-list li {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* =========================
   SKILLS
========================= */

.card {
    border: none;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.08);
    color: var(--text-dark);
}

.card-content h4 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-dark);
}

.skill-text {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--text-mid);
}

.responsive-img {
    width: 80px;
    transition: 0.3s ease;
}

.responsive-img:hover {
    transform: scale(1.1);
}

.card ul li {
    color: var(--text-mid);
}

/* =========================
   SKILLS PAGE
========================= */

.skills-intro {
    max-width: 700px;
    margin: 0 auto 10px;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-mid);
    text-align: center;
    line-height: 1.7;
}

.skills-wrapper {
    max-width: 900px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.skills-wrapper .skills-block:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.skills-block h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: left;
    color: var(--text-dark);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-row span {
    background: var(--white);
    color: var(--text-mid);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: 0.2s ease;
}

.skills-row span:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* =========================
   CONTACT PAGE
========================= */

.contact-page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-intro {
    max-width: 600px;
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin: 0 auto 50px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(26, 58, 92, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-link-item i {
    font-size: 1.4rem;
    color: var(--accent);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.contact-link-item:hover {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(26, 58, 92, 0.12);
    color: var(--text-dark);
    text-decoration: none;
}

.contact-link-label {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* =========================
   PROJECTS
========================= */

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.08);
    margin-bottom: 30px;
    height: 100%;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(26, 58, 92, 0.13);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-details {
    padding: 24px;
}

.project-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.project-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.project-details p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.project-button:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {

    .custom-navbar ul {
        gap: 15px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 14px;
    }

    h1 {
        font-size: 2.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .sub-headings {
        font-size: 2.3rem;
    }

    .education-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .details h2 {
        text-align: center;
    }

    .edu-date, .edu-gpa, .edu-focus, .edu-supervisor {
        text-align: center;
    }

    .project-image {
        height: 200px;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
    }
}

.publication-wrapper {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publication-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.06);
    transition: 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(26, 58, 92, 0.12);
}

.publication-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.pub-venue {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}
