:root {
  --navy-950: #061923;
  --navy-900: #0b2532;
  --navy-800: #123747;
  --blue-500: #36a8c7;
  --blue-300: #89d4e5;
  --mist: #eaf5f7;
  --paper: #f7f9f9;
  --white: #ffffff;
  --ink: #112832;
  --muted: #63757c;
  --line: #d9e5e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
body, button, input, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 82px;
  padding: 0 clamp(22px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 249, 249, 0.88);
  border-bottom: 1px solid rgba(18, 55, 71, 0.09);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: white; font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 13px; letter-spacing: .16em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .26em; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.main-nav a { position: relative; color: #38515b; font-size: 13px; font-weight: 700; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--blue-500); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.language-switch { min-width: 82px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); background: white; cursor: pointer; font-weight: 700; }
.language-switch:hover { border-color: var(--blue-500); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; place-items: center; cursor: pointer; }
.menu-button span { display: block; width: 17px; height: 1.5px; margin: 3px; background: var(--navy-900); }
.translate[dir="rtl"], .copy-block[dir="rtl"] { text-align: right; }

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: clamp(72px, 9vw, 130px) clamp(24px, 7vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbfb 0%, #edf6f7 62%, #e3f0f2 100%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb-one { width: 360px; height: 360px; top: -170px; right: 14%; background: rgba(54, 168, 199, .1); }
.hero-orb-two { width: 210px; height: 210px; bottom: -90px; left: 8%; border: 1px solid rgba(54, 168, 199, .2); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 28px; color: var(--blue-500); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: var(--blue-500); }
.hero-intro { margin: 0 0 4px; color: #61757d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 2.3vw, 34px); }
.hero h1 { max-width: 760px; margin: 0; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(53px, 7.3vw, 106px); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.hero-summary { max-width: 640px; margin: 30px 0 0; color: #536a73; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.75; }
.hero-actions { direction: ltr; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy-900); color: white; box-shadow: 0 12px 28px rgba(6, 25, 35, .15); }
.button-primary:hover { background: var(--navy-800); box-shadow: 0 15px 34px rgba(6, 25, 35, .22); }
.button-secondary { border: 1px solid #bcd2d7; background: rgba(255,255,255,.55); color: var(--navy-900); }
.hero-visual { position: relative; z-index: 2; min-height: 570px; display: grid; place-items: center; }
.portrait-frame { position: relative; width: min(100%, 470px); aspect-ratio: .79; padding: 12px; border: 1px solid rgba(54, 168, 199, .32); border-radius: 230px 230px 34px 34px; }
.portrait-frame::before { content: ""; position: absolute; inset: 30px -30px -25px 40px; z-index: -1; border-radius: inherit; background: linear-gradient(155deg, #a9dce6, #d8ebee 55%, #9fcbd5); }
.portrait-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 73% center; border-radius: 220px 220px 24px 24px; filter: saturate(.88) contrast(1.02); }
.credential-card { position: absolute; padding: 18px 20px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.75); border-radius: 10px; background: rgba(255,255,255,.9); box-shadow: 0 22px 45px rgba(11, 37, 50, .14); backdrop-filter: blur(12px); }
.credential-card strong { color: var(--navy-900); font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.credential-card span { max-width: 150px; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.credential-one { left: -8px; bottom: 58px; }
.credential-two { top: 55px; right: -25px; }

.section { padding: clamp(85px, 10vw, 145px) clamp(24px, 7vw, 112px); }
.section-heading { max-width: 850px; }
.section-kicker { margin-bottom: 20px; }
.section h2 { margin: 0; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; }
.about { background: white; }
.about-layout { margin-top: 70px; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(60px, 8vw, 120px); }
.about-copy { color: #52676f; font-size: 17px; line-height: 1.8; }
.about-copy p { margin: 0 0 24px; }
.text-link { display: inline-flex; gap: 22px; margin-top: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--blue-500); color: var(--navy-900); font-size: 13px; font-weight: 800; text-decoration: none; }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill-card { position: relative; min-height: 230px; padding: 35px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease, transform .2s ease; }
.skill-card:hover { z-index: 2; background: var(--mist); transform: translateY(-3px); }
.skill-number { color: var(--blue-500); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.skill-card h3 { margin: 42px 0 12px; color: var(--navy-900); font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.skill-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.portfolio { background: var(--navy-950); color: white; }
.section-kicker.light { color: var(--blue-300); }
.portfolio h2 { max-width: 750px; color: white; }
.portfolio-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 60px; align-items: end; }
.portfolio-heading > p { margin: 0 0 7px; color: #9db0b8; line-height: 1.75; }
.project-grid { margin-top: 65px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.project-card { overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 6px; background: #0c222c; }
.project-media { position: relative; aspect-ratio: 1.2; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 30%, #265267 0%, #112f3d 50%, #0b202a 100%); }
.project-media::before { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(137,212,229,.32); border-radius: 50%; }
.project-media::after { content: "+"; position: absolute; color: rgba(255,255,255,.7); font-size: 34px; font-weight: 200; }
.project-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) brightness(.72) saturate(.78); }
.project-media-1 img { object-position: center; }
.project-media-2 img { object-position: center; image-rendering: auto; }
.project-media-3 { background: linear-gradient(140deg, #123c4c, #0b222d 55%, #1e5266); }
.project-media span { position: absolute; right: 16px; bottom: 15px; z-index: 3; padding: 6px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(6,25,35,.6); color: #dcebee; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.project-copy { min-height: 210px; padding: 28px; }
.project-copy > span { color: var(--blue-300); font-size: 10px; letter-spacing: .12em; }
.project-copy h3 { margin: 20px 0 10px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.project-copy p { margin: 0; color: #9db0b8; font-size: 14px; line-height: 1.65; }
.portfolio-link { direction: ltr; width: fit-content; margin: 45px auto 0; padding-bottom: 8px; display: flex; gap: 20px; border-bottom: 1px solid var(--blue-300); color: white; font-size: 13px; font-weight: 800; text-decoration: none; }

.contact { display: grid; grid-template-columns: minmax(0,.88fr) minmax(360px,1.12fr); gap: clamp(60px, 9vw, 135px); background: #edf4f5; }
.contact-intro > p:not(.section-kicker) { max-width: 560px; margin: 30px 0 0; color: #60757c; font-size: 17px; line-height: 1.75; }
.direct-contact { margin-top: 48px; border-top: 1px solid #cadadd; }
.direct-label { display: block; margin: 23px 0 12px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.social-row { direction: ltr; min-height: 58px; display: grid; grid-template-columns: 38px 1fr auto 18px; gap: 13px; align-items: center; border-bottom: 1px solid #cadadd; text-decoration: none; }
.social-row:hover .social-icon { color: white; background: var(--blue-500); }
.social-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #b9d0d5; border-radius: 50%; color: var(--navy-900); font-size: 9px; font-weight: 900; transition: .2s ease; }
.social-row strong { color: var(--navy-900); font-size: 13px; }
.social-row small { color: #6c7f86; font-size: 10px; }
.social-arrow { color: var(--blue-500); }
.social-row.pending { opacity: .72; }
.contact-form { padding: clamp(30px, 4vw, 54px); align-self: start; border-radius: 8px; background: white; box-shadow: 0 28px 70px rgba(13,48,62,.1); }
.contact-form h3 { margin: 0 0 36px; color: var(--navy-900); font-family: Georgia, serif; font-size: 31px; font-weight: 400; }
.contact-form label { display: block; margin-bottom: 24px; }
.contact-form label > span { display: block; margin-bottom: 9px; color: #536870; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #cadadd; border-radius: 0; outline: none; background: transparent; color: var(--navy-900); resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue-500); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #a1afb4; }
.form-button { width: 100%; margin-top: 8px; }
.form-note { min-height: 18px; margin: 14px 0 0; color: #7b8b91; font-size: 10px; line-height: 1.5; text-align: center; }

footer { min-height: 115px; padding: 30px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; background: var(--navy-950); color: #9eb1b9; }
.footer-brand { color: white; }
.footer-brand .brand-mark { color: var(--navy-950); background: white; }
.footer-brand .brand-copy small { color: #8fa4ad; }
footer p { margin: 0; font-size: 11px; }
.back-to-top { width: 38px; height: 38px; justify-self: end; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; text-decoration: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .8fr; gap: 45px; }
  .hero-visual { min-height: 480px; }
  .credential-two { right: -5px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-copy { max-width: 760px; }
  .contact { gap: 55px; }
}

@media (max-width: 800px) {
  .site-header { height: 72px; }
  .menu-button { display: grid; }
  .main-nav { position: absolute; top: 71px; right: 0; left: 0; padding: 22px 24px 28px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(247,249,249,.98); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(6,25,35,.08); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; }
  .main-nav a::after { display: none; }
  .language-switch { margin-top: 12px; align-self: flex-start; }
  .hero { min-height: auto; padding-top: 70px; grid-template-columns: 1fr; }
  .hero-content { max-width: 680px; }
  .hero-visual { min-height: 540px; }
  .portrait-frame { max-width: 420px; }
  .credential-one { left: max(0px, calc(50% - 250px)); }
  .credential-two { right: max(0px, calc(50% - 250px)); }
  .portfolio-heading, .contact { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .project-media { aspect-ratio: auto; min-height: 280px; }
  .project-copy { min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 18px; }
  .brand-copy { display: none; }
  .hero { padding: 58px 20px 78px; }
  .eyebrow { margin-bottom: 24px; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .hero-summary { margin-top: 24px; font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 430px; margin-top: 12px; }
  .portrait-frame { width: calc(100% - 40px); }
  .credential-card { padding: 13px 15px; }
  .credential-card strong { font-size: 18px; }
  .credential-card span { max-width: 105px; font-size: 9px; }
  .credential-one { left: 0; bottom: 18px; }
  .credential-two { top: 30px; right: 0; }
  .section { padding: 78px 20px; }
  .about-layout { margin-top: 45px; gap: 50px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 205px; }
  .project-grid { margin-top: 45px; }
  .project-card { display: block; }
  .project-media { min-height: 300px; }
  .project-copy { min-height: 215px; }
  .portfolio-heading { gap: 25px; }
  .social-row { grid-template-columns: 36px 1fr 18px; }
  .social-row small { display: none; }
  .contact-form { padding: 30px 22px; }
  footer { padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
