:root {
    --paper: #f7f8f5;
    --surface: #ffffff;
    --surface-tint: #eef5f2;
    --ink: #172522;
    --muted: #60706c;
    --line: #d9e3df;
    --teal: #087f73;
    --teal-dark: #075b53;
    --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; color: var(--ink); background: var(--paper); font-family: "Avenir Next", "Segoe UI", sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--teal); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .45; background-image: linear-gradient(rgba(8, 127, 115, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 127, 115, .035) 1px, transparent 1px); background-size: 56px 56px; }

.navbar { position: sticky; top: 0; z-index: 10; background: rgba(247, 248, 245, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-container { width: min(var(--max-width), calc(100% - 56px)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 28px; }
.logo, .footer-logo { font-size: 25px; font-weight: 800; letter-spacing: -.06em; }
.logo span, .footer-logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 27px; margin-left: auto; }
.nav-links a, .hero-socials a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover, .hero-socials a:hover, .footer-links a:hover { color: var(--teal); }
.nav-cv, .btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.nav-cv { min-width: 58px; height: 42px; border: 1px solid var(--teal); color: var(--teal); font-size: 13px; }
.nav-cv:hover { color: #fff; background: var(--teal); }

.hero { position: relative; width: min(var(--max-width), calc(100% - 56px)); min-height: calc(100vh - 76px); margin: auto; padding: 86px 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); align-items: center; gap: 70px; }
.hero::after { content: ""; position: absolute; right: 0; top: 12%; width: 360px; height: 360px; border-radius: 50%; background: #dcefe9; filter: blur(70px); opacity: .7; z-index: -1; }
.hero-content, .hero-image { position: relative; z-index: 1; }
.hero-eyebrow, .section-label, .contact-card-label, .contact-link-label { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.hero-eyebrow { margin-bottom: 22px; }
.hero h1, .section-heading h2, .project-card h3, .education-item h3, .certificate-content h3, .contact-card h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.hero h1 { max-width: 680px; font-size: clamp(58px, 7.3vw, 98px); line-height: .92; }
.hero h2 { margin: 26px 0 18px; font-size: clamp(24px, 3vw, 37px); font-weight: 500; }
.hero-description { max-width: 650px; color: var(--muted); font-size: 17px; }
.hero-location { margin: 18px 0 31px; color: var(--muted); font-size: 14px; }
.hero-buttons, .hero-socials { display: flex; align-items: center; gap: 12px; }
.hero-buttons { margin-bottom: 23px; }
.btn { min-height: 50px; padding: 0 20px; border: 1px solid transparent; font-size: 14px; transition: transform .2s, background .2s, color .2s; }
.btn:hover, .contact-primary-button:hover { transform: translateY(-2px); }
.btn span { margin-left: 9px; }
.btn-primary, .contact-primary-button { color: #fff; background: var(--teal); }
.btn-primary:hover, .contact-primary-button:hover { background: var(--teal-dark); }
.btn-secondary { border-color: var(--line); background: var(--surface); }
.btn-secondary:hover { color: var(--teal); border-color: var(--teal); }
.hero-socials { gap: 22px; }
.hero-image { display: flex; justify-content: center; align-items: center; min-width: 0; }
.hero-image::before { content: ""; position: absolute; width: min(430px, 94%); aspect-ratio: 1; border: 1px solid var(--teal); border-radius: 50%; opacity: .65; }
.hero-image img { position: relative; width: min(370px, 82%); aspect-ratio: 1; object-fit: cover; object-position: center top; border: 10px solid rgba(255,255,255,.75); outline: 1px solid var(--teal); border-radius: 50%; box-shadow: 0 22px 55px rgba(23, 37, 34, .12); }

.section { width: min(var(--max-width), calc(100% - 56px)); margin: auto; padding: 112px 0; }
.section-heading { max-width: 820px; margin-bottom: 48px; }
.section-label { margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1.02; }
.section-heading > p:last-child { max-width: 720px; margin-top: 18px; color: var(--muted); font-size: 16px; }
.about-content { max-width: 960px; display: flex; flex-direction: column; gap: 20px; }
.about-content p { color: var(--muted); font-size: 17px; line-height: 1.82; }
.about-content strong { color: var(--ink); }
.about-highlights, .skills-grid, .projects-grid, .certificates-grid { display: grid; gap: 18px; }
.about-highlights { grid-template-columns: repeat(2, 1fr); margin-top: 25px; }
.about-highlight, .skill-card, .project-card, .certificate-card, .contact-link-card { background: rgba(255,255,255,.84); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(23,37,34,.035); transition: transform .2s, border-color .2s, box-shadow .2s; }
.about-highlight, .skill-card { padding: 25px; }
.about-highlight { display: grid; grid-template-columns: 35px 1fr; gap: 15px; }
.about-highlight:hover, .skill-card:hover, .project-card:hover, .certificate-card:hover, .contact-link-card:hover { border-color: #8dc8bd; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23,37,34,.07); }
.about-highlight-number, .project-number, .certificate-number { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.about-highlight h3, .skill-card h3 { font-size: 17px; margin-bottom: 5px; }
.about-highlight p { font-size: 14px; line-height: 1.55; }

.skills-grid { grid-template-columns: repeat(3, 1fr); }
.skill-card { min-height: 180px; }
.skill-card h3 { margin-bottom: 19px; }
.skill-tags, .project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span, .project-tech span { padding: 6px 10px; color: var(--muted); background: var(--surface-tint); border: 1px solid #dbeae5; font-size: 12px; }

.projects-grid { grid-template-columns: repeat(2, 1fr); }
.project-card { display: flex; flex-direction: column; overflow: hidden; }
.project-image { height: 205px; overflow: hidden; background: var(--surface-tint); border-bottom: 1px solid var(--line); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-content { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.project-number { margin-bottom: 17px; }
.project-card h3 { font-size: 28px; line-height: 1.1; }
.project-subtitle { margin: 9px 0 17px; color: var(--teal); font-size: 13px; font-weight: 700; }
.project-card > p:not(.project-subtitle), .project-card ul { color: var(--muted); font-size: 14px; line-height: 1.72; }
.project-card > p:not(.project-subtitle) { margin-bottom: 18px; }
.project-highlights { margin-bottom: 22px; }
.project-highlights h4 { margin-bottom: 7px; font-size: 13px; }
.project-card ul { padding-left: 18px; }
.project-card li { margin-bottom: 3px; }
.project-tech { margin-top: auto; padding-top: 20px; }
.project-link, .certificate-link { display: inline-flex; width: fit-content; margin-top: 22px; color: var(--teal); font-size: 13px; font-weight: 800; }
.project-link:hover, .certificate-link:hover { color: var(--teal-dark); }

.education-list { display: flex; flex-direction: column; }
.education-item { display: grid; grid-template-columns: 180px 1fr; gap: 42px; padding: 30px 0; border-top: 1px solid var(--line); }
.education-item:last-child { border-bottom: 1px solid var(--line); }
.education-year { color: var(--teal); font-size: 14px; font-weight: 800; }
.education-item h3 { font-size: 25px; line-height: 1.2; }
.education-item p { color: var(--muted); font-size: 14px; }
.education-institution { margin-top: 10px; }

.certificates-grid { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
.certificate-card { overflow: hidden; }
.certificate-image-wrapper { height: 270px; display: flex; justify-content: center; align-items: center; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.certificate-image { width: 100%; height: 100%; object-fit: contain; }
.certificate-content { padding: 24px; }
.certificate-number { display: block; margin-bottom: 10px; }
.certificate-content h3 { font-size: 23px; line-height: 1.2; }
.certificate-issuer { margin: 9px 0 15px; color: var(--teal); font-size: 13px; font-weight: 700; }
.certificate-content > p:not(.certificate-issuer) { color: var(--muted); font-size: 14px; line-height: 1.7; }

.contact-section { padding-bottom: 120px; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 50px; }
.contact-card { min-height: 330px; padding: 40px; background: var(--surface-tint); border: 1px solid #cfe3dd; }
.contact-card-label { display: block; margin-bottom: 17px; }
.contact-card h3 { max-width: 580px; margin-bottom: 17px; font-size: 34px; line-height: 1.1; }
.contact-card p { max-width: 580px; margin-bottom: 27px; color: var(--muted); font-size: 15px; }
.contact-primary-button { display: inline-flex; padding: 13px 20px; font-size: 13px; font-weight: 800; }
.contact-links { display: grid; gap: 13px; }
.contact-link-card { display: flex; align-items: center; gap: 16px; min-height: 100px; padding: 20px; }
.contact-link-icon { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #bcd9d2; color: var(--teal); font-size: 14px; font-weight: 800; }
.contact-link-content { display: flex; flex-direction: column; gap: 2px; }
.contact-link-label { font-size: 10px; }
.contact-link-content strong { font-size: 15px; }
.contact-link-action { color: var(--muted); font-size: 12px; }

.site-footer { padding: 52px 0 24px; border-top: 1px solid var(--line); background: #edf3f0; }
.footer-container, .footer-bottom { width: min(var(--max-width), calc(100% - 56px)); margin: auto; }
.footer-container { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 40px; }
.footer-brand p, .footer-description p, .footer-links a { color: var(--muted); font-size: 13px; }
.footer-brand p { margin-top: 6px; }
.footer-description p { max-width: 420px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 950px) {
    .nav-links { gap: 15px; }
    .hero { grid-template-columns: 1fr .8fr; gap: 35px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .nav-container, .hero, .section, .footer-container, .footer-bottom { width: min(100% - 40px, var(--max-width)); }
    .navbar { position: relative; }
    .nav-container { min-height: auto; padding: 18px 0; flex-wrap: wrap; }
    .nav-links { order: 3; width: 100%; flex-wrap: wrap; gap: 8px 16px; }
    .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; padding: 70px 0 90px; gap: 52px; }
    .hero h1 { font-size: clamp(52px, 15vw, 72px); }
    .hero-image { min-height: 320px; }
    .hero-image img { width: 280px; }
    .hero-image::before { width: 315px; }
    .section { padding: 82px 0; }
    .section-heading h2 { font-size: 40px; }
    .about-highlights, .skills-grid, .projects-grid, .certificates-grid, .contact-grid { grid-template-columns: 1fr; }
    .project-image { height: 190px; }
    .education-item { grid-template-columns: 1fr; gap: 8px; }
    .contact-card { padding: 30px; }
    .contact-card h3 { font-size: 29px; }
    .footer-container { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 7px; }
}
@media (max-width: 420px) {
    .logo { font-size: 23px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .hero-image { min-height: 280px; }
    .hero-image img { width: 245px; }
    .hero-image::before { width: 275px; }
    .section-heading h2 { font-size: 36px; }
}