/* Connecttoservice — Professional Portfolio */

:root {
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-primary: #0f2b4c;
    --color-primary-light: #1a4170;
    --color-accent: #e8a020;
    --color-accent-hover: #cf8f18;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-timeline: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(15, 43, 76, 0.08);
    --shadow-md: 0 4px 20px rgba(15, 43, 76, 0.1);
    --shadow-lg: 0 8px 40px rgba(15, 43, 76, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-height: 64px;
    --max-width: 960px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent);
}

/* ── Navigation ── */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav__brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav__links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav__links a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav__links a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

/* ── Layout ── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    padding-bottom: 3rem;
}

/* ── Hero ── */

.hero {
    padding: 3.5rem 0 3rem;
}

.hero__card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #fff;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero__card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: rgba(232, 160, 32, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.hero__photo-wrap {
    position: relative;
    z-index: 1;
}

.hero__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hero__subtitle {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

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

.btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ── Sections ── */

.section {
    padding: 2.5rem 0 0;
}

.section__header {
    margin-bottom: 1.5rem;
}

.section__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.35rem;
}

.section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* ── Cards ── */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.card p {
    color: var(--color-text);
}

.card p + p {
    margin-top: 1rem;
}

/* ── Experience Timeline ── */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-left: 2.25rem;
    transition: box-shadow 0.2s;
}

.timeline__item:hover {
    box-shadow: var(--shadow-md);
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 1.85rem;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.25);
}

.timeline__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(0.85rem + 4px);
    top: calc(1.85rem + 14px);
    width: 2px;
    height: calc(100% + 1.25rem);
    background: var(--color-timeline);
}

.timeline__company {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.timeline__role {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.timeline__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline__description {
    font-size: 0.95rem;
    line-height: 1.7;
}

.timeline__placeholder {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ── Skills ── */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}

.skill-tag {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 999px;
    transition: background 0.2s;
}

.skill-tag:hover {
    background: var(--color-primary-light);
}

/* ── Two-column grid ── */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.grid-2 .card__institution,
.grid-2 .card__issuer {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.grid-2 .card__detail {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.grid-2 .card__period {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ── Contact / Footer ── */

.footer {
    margin-top: 3rem;
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.footer__item {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: center;
}

/* ── Responsive ── */

@media (max-width: 720px) {
    .hero__card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero__photo-wrap {
        display: flex;
        justify-content: center;
    }

    .hero__subtitle {
        margin: 0 auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav__brand {
        font-size: 0.85rem;
    }

    .nav__links a {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 1.5rem;
    }

    .section {
        padding-top: 2rem;
    }

    .timeline__item {
        padding: 1.25rem 1.25rem 1.25rem 2rem;
    }
}
