/* ==========================================================================
   Ieva Bagdonaviciute — portfolio
   Plain CSS rebuild of the original Elementor site. Values mirror the
   Elementor settings (percent widths, vh heights, 1024/767 breakpoints) so
   the layout tracks the original at every screen width.
   ========================================================================== */

:root {
  --dark: #0e1013;
  --accent: #009fbb;
  --light: #f5f8fa;
  --white: #fff;
  --text-dark: rgba(0, 0, 0, .81);
  --muted-white: rgba(255, 255, 255, .64);
  --caption-white: rgba(255, 255, 255, .77);
  --font: "Montserrat", sans-serif;
  --hand: "Delicious Handrawn", sans-serif;
  --container: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }

/* ---------- layout helpers ---------- */
.dark  { background: var(--dark); }
.light { background: var(--light); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- typography ---------- */
.t-hero    { font: 500 50px/1 var(--font); color: #fff; text-align: center; }
.t-section { font: 600 33px/1 var(--font); color: var(--dark); }
.t-sub     { font: 600 20px/1 var(--font); color: var(--dark); }
.t-body    { font: 400 15px/25px var(--font); color: var(--text-dark); }
.t-list    { font: 400 15px/29px var(--font); color: var(--text-dark); padding-left: 40px; }
.t-hand    { font: 400 26px/33px var(--hand); color: #fff; }

.dark .t-section,
.dark .t-body { color: #fff; }

.t-meta    { color: var(--muted-white) !important; }
.t-caption { color: var(--caption-white) !important; }

.u { text-decoration: underline; }

/* accent divider */
.divider { padding: 15px 0; }
.divider span {
  display: block;
  width: 11%;
  border-top: 3px solid var(--accent);
}

/* button */
.btn-wrap { padding: 30px 0 0; }
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: 500 15px/1 var(--font);
  transition: opacity .3s;
}
.btn:hover { opacity: .9; }

/* rounded images */
.rounded { border-radius: 10px; width: 100%; }

/* ==========================================================================
   Header (home only — the inner pages have none)
   ========================================================================== */
.site-header { padding: 40px 20px; }
.site-header .logo { display: block; max-width: var(--container); margin: 0 auto; text-align: center; }
/* inline in a 24px line box, like Elementor's image widget */
.site-header .logo svg { display: inline-block; vertical-align: middle; width: 5%; height: auto; }

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero { min-height: 70vh; padding: 80px 0 50px; }
.hero .wrap { align-items: center; }
.hero-intro { width: 51%; text-align: center; color: #fff; margin-top: 10px; }
.hero-photo { width: min(312px, 39%); border-radius: 10px; margin: 20px 0 30px; }

.lottie { min-height: 25vh; }
.lottie .wrap { align-items: center; }
.lottie dotlottie-player { width: 70px; height: 70px; display: block; }

/* ==========================================================================
   About / Education
   ========================================================================== */
.about { padding: 100px 0; }
.about .wrap { flex-direction: row; gap: 0; }
.about .col { flex: 0 0 50%; }
.about .w-422 { max-width: 74%; }
.about .w-496 { max-width: 87%; }
.about .t-section { color: var(--dark); }

/* ==========================================================================
   Experience
   ========================================================================== */
.section-head { padding: 100px 0 0; }
.cv-link { font: 500 18px/1 var(--font); color: #fff; text-decoration: underline; }

.exp-row .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}
.exp-row.pad-a { padding: 30px 0 60px; }
.exp-row.pad-b { padding: 20px 0 60px; }
.exp-row.pad-c { padding: 20px 0 100px; }

.job-title,
.job-meta,
.caption  { max-width: 87%; }
.caption.wide { max-width: 90%; }

.bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0 10px 30px;
  border-left: 3px solid var(--accent);
}
.bullets p { max-width: 87%; }

/* ==========================================================================
   Projects / Coursework (3 columns)
   ========================================================================== */
.three .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.three.pad { padding: 20px 0 100px; }
.three .w-312 { max-width: 85%; }
.three .w-319 { max-width: 87%; }

.light .t-section,
.light .t-sub,
.light .t-body,
.light .t-list { color: #000; }
.course-list { line-height: 34px; }

/* ==========================================================================
   Free time
   ========================================================================== */
.free-a { padding: 30px 0 60px; }
.free-a .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
.free-a .text { justify-content: center; }
.free-a .text p { max-width: 66%; }

.free-b { padding: 50px 0 60px; }
.free-b .wrap { flex-direction: row; gap: 0; }
/* both columns ask for 100% and shrink, as the Elementor containers do */
.free-b .col { flex: 0 1 100%; }
.free-b .text {
  justify-content: flex-end;
  padding-left: 50px;
}
.free-b .text p { max-width: 84%; line-height: 32px; }

/* collages — the main photo sets the height; the others float at fixed offsets */
.collage { position: relative; }
.collage img { border-radius: 10px; }
.collage .main { margin: 0 auto; }
.collage .float { position: absolute; z-index: 1; }

.collage.sing .main { width: 65%; }
.collage.sing .f1   { width: 265px; top: 129px; left: -74px; }
.collage.sing .f2   { width: 254px; top: 231px; right: 21px; }

.collage.hike .main { width: 72%; }
.collage.hike .f1   { width: 234px; top: 149px; left: -45px; }
.collage.hike .f2   { width: 274px; top: 62px; right: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  min-height: 70vh;
  padding: 100px 0 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact .wrap { justify-content: center; align-items: center; }
.contact .t-body { width: 51%; text-align: center; color: #fff; margin-top: 10px; }
.contact.compact { min-height: 0; padding: 200px 0; }

.social { display: flex; gap: 5px; justify-content: center; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10%;
  color: rgba(255, 255, 255, .78);
  transition: transform .3s;
}
.social a:hover { transform: translateY(-8px); }
.social svg { width: 25px; height: 25px; fill: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Blog list
   ========================================================================== */
.page-hero { padding: 160px 0; }
.page-hero h1 { font: 600 34px/1 var(--font); color: #fff; text-align: center; }

.blog-grid { padding: 100px 0; }
.blog-grid .wrap { max-width: 1200px; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
}
.card {
  position: relative;
  min-height: 400px;
  padding: 50px 50px 36px 36px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .36) 0%, #000 100%);
}
.card > * { position: relative; }
.card h2 { font: 600 24px/1.4em var(--font); color: #fff; }
.card p  { font: 400 16px/1.5 var(--font); color: rgba(255, 255, 255, .84); }
.card .btn-wrap { padding: 0; }

/* ==========================================================================
   Blog post
   ========================================================================== */
.post-hero {
  position: relative;
  padding: 160px 0;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
}
.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .56) 0%, #000 100%);
}
.post-hero h1 {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  font: 600 34px/1.4em var(--font);
  color: #fff;
}

.post-body { padding: 100px 0; }
.post-body .wrap { max-width: 1000px; padding: 10px; }
.post-body p { font: 400 16px/1.5 var(--font); color: rgba(0, 0, 0, .84); }
.post-body .ref-cite { font-weight: 500; font-style: italic; }

/* ==========================================================================
   Responsive — Elementor's mobile breakpoint
   ========================================================================== */
@media (max-width: 767px) {
  .wrap { padding-left: 20px; padding-right: 20px; }

  /* Elementor's wrapping flex row clips the logo's line box to 24px */
  .site-header .logo { height: 24px; }
  .site-header .logo svg { width: 11%; }

  .hero { min-height: 60vh; padding: 50px 0 40px; }
  .t-hero { font-size: 36px; line-height: 1.2em; }
  .hero .hero-intro { width: 294px; max-width: 100%; font-size: 12px; }
  .hero-photo { width: 90%; }
  .lottie { min-height: 20vh; }
  .lottie .wrap { padding: 0; }

  .t-section { font-size: 30px; line-height: 1.2em; }
  .section-head.light .t-section { font-size: 28px; }
  .t-sub { line-height: 1.2em; }
  .t-body, .t-list { font-size: 14px; }
  .divider { padding: 2px 0; }
  #projects .divider { padding: 15px 0; }
  .cv-link { font-size: 16px; line-height: 1.2em; }

  .about { padding: 70px 0; }
  .about .wrap { flex-direction: column; }
  .about .col { flex-basis: auto; }
  .about .col + .col .t-section { margin-top: 30px; }
  .about .w-422, .about .w-496,
  .caption, .caption.wide, .bullets p,
  .three .w-312, .three .w-319 { max-width: 100%; }
  .about .w-422, .about .w-496,
  .job-title, .job-meta,
  .bullets .m-294, .three .m-294 { max-width: 294px; }

  .section-head { padding: 70px 0 0; }
  .exp-row .wrap,
  .three .wrap,
  .free-a .wrap { grid-template-columns: 1fr; }
  .exp-row.pad-a, .exp-row.pad-b { padding: 20px 0 30px; }
  .exp-row.pad-c { padding: 20px 0 70px; }
  .three.pad { padding: 20px 0 70px; }

  .free-a { padding: 20px 0 30px; }
  .free-a .text p, .free-b .text p { max-width: 100%; }
  .t-hand { font-size: 22px; }
  .free-b { padding: 60px 0 30px; }
  .free-b .wrap { flex-direction: column-reverse; }
  .free-b .col { flex-basis: auto; }
  .free-b .text { padding-left: 0; }

  .collage.sing { padding-top: 20px; }
  .collage.sing .main { width: 57%; }
  .collage.sing .f1   { width: 157px; top: 142px; left: -4px; }
  .collage.sing .f2   { width: 130px; top: 134px; }
  .collage.hike { padding-top: 30px; }
  .collage.hike .main { width: 77%; }
  .collage.hike .f1   { width: 141px; top: 147px; left: -4px; }
  .collage.hike .f2   { width: 145px; top: 122px; }

  .contact { min-height: 60vh; padding: 100px 0 20px; }
  .t-hero.contact-title { font-size: 34px; }
  .contact .t-body { width: 294px; max-width: 100%; font-size: 12px; }
  .contact.compact { min-height: 60vh; padding: 100px 0 20px; }

  .page-hero { padding: 100px 0 60px; }
  .page-hero h1 { font-size: 24px; line-height: 1.2em; }
  .blog-grid { padding: 50px 0; }
  .blog-grid .wrap { padding-left: 24px; padding-right: 24px; }
  .cards { grid-template-columns: 1fr; padding: 0; }
  .card { padding: 0 20px 24px 24px; }
  .card h2 { font-size: 16px; }
  .card p, .card .btn { font-size: 14px; }

  .post-hero { padding: 100px 20px 60px; }
  .post-hero h1 { font-size: 23px; }
  .post-body { padding: 50px 0; }
  .post-body .wrap { padding: 0 24px; }
  .post-body p { font-size: 14px; }
}
