﻿/* ─── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #F5F0E8;
  --cream-dark:   #EDE6D6;
  --cream-border: rgba(28,26,22,0.1);
  --ink:          #1C1A16;
  --ink-muted:    #5C5648;
  --terra:        #C4512A;
  --terra-light:  #F0C9B8;
  --terra-dark:   #8C3318;
  --forest:       #2D5A3D;
  --forest-light: #BDD9C5;
  --forest-dark:  #1A3825;
  --gold:         #C8922A;
  --gold-light:   #F5DFA8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 12px rgba(28,26,22,0.07), 0 0 0 0.5px rgba(28,26,22,0.06);
  --shadow-lift: 0 6px 28px rgba(28,26,22,0.11), 0 0 0 0.5px rgba(28,26,22,0.06);
  --transition:  0.18s ease;

  /* Legacy mappings for compatibility */
  --bg:        var(--cream);
  --bg-alt:    var(--cream-dark);
  --accent:    var(--terra);
  --accent2:   var(--gold);
  --text:      var(--ink);
  --muted:     var(--ink-muted);
  --border:    var(--cream-border);
  --radius:    var(--radius-md);
  --font:      var(--font-body);
}

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

a { color: var(--terra); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terra-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

ul { list-style: none; }

/* ─── UTILITY ──────────────────────────────────────── */
.hidden { display: none !important; }

/* ════════════════════════════════════════════════════
   LANDING PAGE (index.html)
   ════════════════════════════════════════════════════ */

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 6%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Card (left column) ─── */
.landing-card {
    flex-shrink: 0;
    width: 400px;
    background: #fff;
    border: 1px solid var(--cream-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.landing-photo-wrapper {
    width: 350px; height: 350px;
    border-radius: 50%;
    padding: 4px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--terra), var(--gold));
    box-shadow: 0 0 30px rgba(196, 81, 42, 0.2);
}

.landing-photo {
    width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover;
    border: 4px solid var(--cream);
    background: var(--cream);
}

.landing-name {
    font-size: 1.4rem; font-weight: 700;
    margin-bottom: .15rem;
}

.landing-role {
    color: var(--terra); font-size: 1rem;
    font-weight: 600; margin-bottom: .4rem;
}

.landing-location {
    color: var(--ink-muted); font-size: .88rem;
    margin-bottom: 1.5rem;
}
.landing-location i { margin-right: .3rem; color: var(--terra); }

.landing-socials {
    display: flex; justify-content: center; gap: 1rem;
}
.landing-socials a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(196, 81, 42, .1);
    border: 1px solid rgba(196, 81, 42, .2);
    color: var(--ink-muted); font-size: 1.05rem;
    transition: all var(--transition);
}
.landing-socials a:hover {
    background: var(--terra);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(196, 81, 42, .3);
}

/* ─── Body (right column) ─── */
.landing-body {
    flex: 1;
    max-width: 560px;
}

.landing-about,
.landing-tools,
.landing-nav { margin-bottom: 2.25rem; }

.landing-about h2,
.landing-tools h2,
.landing-nav h2 {
    font-size: 1rem; font-weight: 600;
    color: var(--terra);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: .75rem;
    font-family: var(--font-body);
}

.landing-about p {
    color: var(--ink-muted); font-size: .95rem; line-height: 1.8;
}

.landing-about p strong {
    color: var(--terra);
    font-weight: 600;
}

/* ─── Highlights Section ─── */
.landing-highlights { margin-bottom: 2.25rem; }

.landing-highlights h2 {
    font-size: 1rem; font-weight: 600;
    color: var(--terra);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.highlight-item {
    background: #fff;
    border: 1px solid var(--cream-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.highlight-item:hover {
    border-color: var(--terra);
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.highlight-icon {
    font-size: 1.5rem;
    color: var(--terra);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 81, 42, .1);
    border-radius: var(--radius-sm);
}

.highlight-item strong {
    font-size: .95rem;
    color: var(--ink);
    font-family: var(--font-display);
}

.highlight-item span {
    font-size: .82rem;
    color: var(--ink-muted);
}

/* ─── Skills Grouped ─── */
.skills-grouped {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-group h4 {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--terra);
    margin-bottom: .5rem;
    font-family: var(--font-body);
}

/* ─── Tool tags ─── */
.tool-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-tags span {
    background: rgba(196, 81, 42, .1);
    color: var(--terra);
    border: 1px solid rgba(196, 81, 42, .2);
    padding: .3rem .85rem; border-radius: 20px;
    font-size: .82rem; font-weight: 500;
}

/* ─── Navigation links ─── */
.landing-links { display: flex; flex-direction: column; gap: .75rem; }

.landing-link {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff;
    border: 1px solid var(--cream-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}
.landing-link:hover {
    border-color: var(--terra);
    transform: translateX(4px);
    box-shadow: var(--shadow-lift);
}

.landing-link-inner {
    display: flex; align-items: center; gap: 1rem;
}

.landing-link-inner > i {
    font-size: 1.3rem;
    color: var(--terra);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(196, 81, 42, .1);
    border-radius: 10px;
}

.landing-link-inner strong {
    display: block; font-size: .95rem; font-weight: 600;
    color: var(--text);
}

.landing-link-inner span {
    display: block; font-size: .82rem;
    color: var(--ink-muted);
}

.landing-link > .fa-arrow-right {
    color: var(--ink-muted); font-size: .85rem;
    transition: color var(--transition), transform var(--transition);
}
.landing-link:hover > .fa-arrow-right {
    color: var(--terra);
    transform: translateX(3px);
}

/* ════════════════════════════════════════════════════
   PORTFOLIO PAGE (portfolio.html)
   ════════════════════════════════════════════════════ */

/* ─── NAVBAR ──────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 6%;
    background: rgba(245, 240, 232, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-border);
}

.nav-logo {
    font-size: 1.1rem; font-weight: 700;
    background: linear-gradient(90deg, var(--terra), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-display);
}
.nav-logo i {
    -webkit-text-fill-color: var(--terra);
    font-size: .85rem;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--ink-muted); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--terra); }

.menu-btn {
    display: none;
    background: none; border: none; color: var(--muted);
    font-size: 1.3rem; cursor: pointer;
}

/* ─── MOBILE MENU ──────────────────────────────────── */
.mobile-menu {
    position: fixed; top: 57px; left: 0; width: 100%;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-border);
    z-index: 99;
}

.mobile-menu ul {
    display: flex; flex-direction: column;
    align-items: center; gap: 1rem; padding: 1.5rem 0;
}

.mobile-menu a {
    color: var(--ink-muted); font-size: .95rem; font-weight: 500;
    transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--terra); }

/* ─── PORT CONTAINER ──────────────────────────────── */
.port-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5.5rem 1.5rem 2rem;
}

/* ─── PORT CARD (reusable) ────────────────────────── */
.port-card {
    background: #fff;
    border: 1px solid var(--cream-border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.port-card-body {
    padding: 1.75rem;
}

/* ─── PROFILE CARD (top) ─────────────────────────── */
.port-card-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
}

/* Reversed layout: info first, photo second */
.port-card-reverse {
    flex-direction: row;
}

.port-card-reverse .port-card-info {
    order: 1;
}

.port-card-reverse .port-card-photo-col {
    order: 2;
}

.port-card-photo-col {
    flex-shrink: 0;
    width: 220px;
}

.port-card-photo {
    width: 220px; height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--cream-border);
    box-shadow: 0 0 24px rgba(196, 81, 42, 0.15);
}

.port-card-info {
    flex: 1;
}

.port-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
    flex-wrap: wrap;
    gap: .75rem;
}

.port-card-heading h1 {
    font-size: 1.8rem; font-weight: 700;
    margin: 0;
}

.btn-resume {
    font-size: .82rem;
    padding: .5rem 1.2rem;
}

.port-card-role {
    color: var(--ink-muted);
    font-size: 1rem; font-weight: 500;
    margin-bottom: .75rem;
}

.port-card-info p {
    color: var(--ink-muted); font-size: .9rem;
    margin-bottom: .35rem;
}
.port-card-info p i {
    width: 20px; text-align: center;
    margin-right: .5rem;
    color: var(--terra);
}
.port-card-info a {
    color: var(--terra);
    font-weight: 500;
}
.port-card-info a:hover {
    text-decoration: underline;
}

/* ─── TWO-COLUMN LAYOUT ─────────────────────────── */
.port-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.port-col-left,
.port-col-right {
    display: flex;
    flex-direction: column;
}

/* ─── SECTION TITLES ─────────────────────────────── */
.port-section-title {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
}

.port-full-title {
    font-size: 1.5rem; font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
}

.port-sub-heading {
    font-size: 1rem; font-weight: 600;
    color: var(--terra);
    text-align: center;
    margin: 1.5rem 0 1rem;
}

/* ─── ENTRIES ────────────────────────────────────── */
.port-entry { margin-bottom: .5rem; }

.port-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.port-entry p {
    margin: .2rem 0;
    color: var(--text);
    font-size: .92rem;
}

.port-dim {
    color: var(--ink-muted);
    font-size: .85rem;
}

.port-divider {
    border: none;
    border-top: 1px solid var(--cream-border);
    margin: 1.25rem 0;
    opacity: 1;
}

.port-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin-top: .75rem;
}
.port-list li {
    color: var(--ink-muted);
    font-size: .9rem;
    margin-bottom: .35rem;
}

/* ─── TECH GRID ─────────────────────────────────── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem .5rem;
    text-align: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.tech-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.tech-item span {
    font-size: .78rem;
    color: var(--ink-muted);
    font-weight: 500;
}

/* ─── LANGUAGE LIST ──────────────────────────────── */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    background: rgba(196, 81, 42, .08);
    border-radius: 8px;
    border: 1px solid rgba(196, 81, 42, .15);
}

.lang-item strong {
    font-size: .9rem;
}

/* ─── SKILL TAGS (also used on portfolio page) ──── */
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tags span {
    background: rgba(196, 81, 42, .1); color: var(--terra);
    border: 1px solid rgba(196, 81, 42, .2);
    padding: .25rem .75rem; border-radius: 20px; font-size: .82rem;
}

/* ─── PROJECTS ───────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1000px; margin: 0 auto;
}

.project-card {
    background: #fff; border: 1px solid var(--cream-border);
    border-radius: var(--radius); padding: 1.75rem;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-card);
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.project-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.project-header > i { font-size: 1.8rem; color: var(--terra); }

.project-links { display: flex; gap: .75rem; }
.project-links a { color: var(--ink-muted); font-size: 1.1rem; transition: color var(--transition); }
.project-links a:hover { color: var(--terra); }

.project-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.project-card p  { color: var(--ink-muted); font-size: .9rem; margin-bottom: 1rem; }

.project-date {
    display: block; color: var(--muted); font-size: .82rem;
    margin-bottom: .75rem;
}

.project-details {
    padding-left: 1.1rem; list-style: disc; margin-bottom: 1rem;
}
.project-details li {
    color: var(--ink-muted); font-size: .9rem; margin-bottom: .3rem;
}

.project-techs { display: flex; flex-wrap: wrap; gap: .45rem; }
.project-techs span {
    color: var(--terra); font-size: .78rem; font-family: monospace;
    font-weight: 500;
}
.project-techs span:not(:last-child)::after { content: ' ·'; margin-left: .45rem; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.5rem; border-radius: 8px;
    font-weight: 600; font-size: .9rem; transition: all var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover {
    background: var(--terra-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 81, 42, .35);
}

.btn-outline { border: 2px solid var(--terra); color: var(--terra); }
.btn-outline:hover { background: var(--terra); color: #fff; transform: translateY(-2px); }

.btn-large { padding: .85rem 2.5rem; font-size: 1rem; }

/* ─── CONTACT ────────────────────────────────────── */
#contact { margin-top: 1.5rem; }
.contact-wrapper { text-align: center; }
.contact-sub { color: var(--ink-muted); margin-bottom: 2rem; font-size: 1rem; }
.contact-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.contact-links a {
    color: var(--ink-muted); font-size: .95rem;
    display: flex; align-items: center; gap: .4rem;
    transition: color var(--transition);
}
.contact-links a:hover { color: var(--terra); }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
    background: var(--cream); text-align: center;
    padding: 1.5rem; color: var(--ink-muted); font-size: .85rem;
    border-top: 1px solid var(--cream-border);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
    /* Landing */
    .landing {
        flex-direction: column;
        gap: 2rem; padding: 2rem 5%;
    }
    .landing-card { width: 100%; max-width: 340px; }
    .landing-photo-wrapper { width: 180px; height: 180px; }
    .landing-body { max-width: 100%; }

    /* Portfolio */
    .portfolio-hero-inner { flex-direction: column; text-align: center; }

    .nav-desktop    { display: none; }
    .menu-btn       { display: block; }

    .timeline-item  { gap: 1.5rem; }
    .timeline::before { left: 12px; }

    .skill-wide     { grid-column: span 1; }

    .contact-links  { flex-direction: column; align-items: center; gap: 1rem; }

    /* Tech grid 3 cols on mobile */
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
}