/*────────────────────────────────────────────────────────────────────────────
  1) IMPORTS & RESET
────────────────────────────────────────────────────────────────────────────*/
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700&family=Fira+Sans+Extra+Condensed:ital,wght@1,600&display=swap');

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/*────────────────────────────────────────────────────────────────────────────
  2) BASE BODY & CONTAINER
────────────────────────────────────────────────────────────────────────────*/
body {
  font-family: 'Ubuntu', sans-serif;
  background: linear-gradient(135deg, #f5fafd 0%, #dfe6f2 100%) fixed;
  color: #333;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2% 2%;
  display: grid;
  gap: 1.5rem;
  animation: fadeIn 0.6s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/*────────────────────────────────────────────────────────────────────────────
  3) HEADER
────────────────────────────────────────────────────────────────────────────*/
.profile-header {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin: 0.2rem 0 0.7rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid #e5eaf3;
}
.profile-pic {
  width: 235px;
  height: 235px;
  border-radius: 50%;
  object-fit: cover;
  background: #f7fafd;
  box-shadow: 0 6px 24px rgba(0,0,0,.16);
  border: 5px solid #fff;
  flex-shrink: 0;
  transition: width .3s, height .3s;
}
.header-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .7rem;
  min-width: 0;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: .25rem;
}
.header-name {
  font-size: 2.7rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -1px;
  white-space: nowrap;
}

/*────────────────────────────────────────────────────────────────────────────
  4) BUTTONS
────────────────────────────────────────────────────────────────────────────*/
.resume-btn, #downloadBtnInline {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-left: 2rem;
  padding: 6px 17px 6px 14px;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: .05em;
  background: rgba(255,255,255,.42);
  color: #273049;
  border: 1px solid rgba(180,180,200,.22);
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(160,170,200,.09);
  backdrop-filter: blur(7px);
  transition: background .22s, color .18s, box-shadow .22s;
  cursor: pointer;
  outline: none;
}
.resume-btn i {
  font-size: 1.13em;
  color: #9094aa;
  opacity: .55;
  margin-right: 3px;
}
.resume-btn:hover {
  background: rgba(233,237,250,.55);
  color: #1d2235;
  box-shadow: 0 4px 18px rgba(100,110,140,.13);
}

/*────────────────────────────────────────────────────────────────────────────
  5) HEADER TEXT
────────────────────────────────────────────────────────────────────────────*/
.header-title {
  font-size: 1.08rem;
  font-weight: 500;
  color: #444;
  margin-bottom: .2rem;
}
.header-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .3rem;
}
.glass-kw {
  display: inline-block;
  width: 100%;
  padding: 7px 16px;
  font-size: 1.05rem;
  font-weight: 200;
  font-style: italic;
  letter-spacing: .01em;
  line-height: 1.45;
  color: #242628;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(220,220,220,.18);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(80,90,110,.07);
  backdrop-filter: blur(8px);
  min-width: 0;
}

/*────────────────────────────────────────────────────────────────────────────
  6) CARDS
────────────────────────────────────────────────────────────────────────────*/
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
  transition: transform .3s, box-shadow .3s;
}

 .card:hover {
      transform: scale(1.01);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

/*────────────────────────────────────────────────────────────────────────────
  7) LAYOUT GRIDS
────────────────────────────────────────────────────────────────────────────*/
.header-split, .horizontal-split, .two-columns {
  display: grid;
  gap: 2%;
}
.header-split { grid-template-columns: 64% 34%; }
.horizontal-split { grid-template-columns: 35% 63%; }
.two-columns { grid-template-columns: 68% 28%; margin-top:10px; align-items:start; }

@media (max-width: 900px) {
  .header-split,
  .horizontal-split,
  .two-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/*────────────────────────────────────────────────────────────────────────────
  8) SECTION TITLES
────────────────────────────────────────────────────────────────────────────*/
.section-title {
  margin-bottom: .5rem;
  padding-bottom: .25rem;
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #3a3a3a;
  border-bottom: 1px solid #ccc;
}
.icon-title::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: .5rem;
  color: #444;
}
.about::before        { content: '\f007'; }
.experience::before   { content: '\f0b1'; }
.education::before    { content: '\f19d'; }
.projects::before     { content: '\f0ae'; }
.skills::before       { content: '\f121'; }
.certificates::before { content: '\f02d'; }
.languages::before    { content: '\f1ab'; }
.contact::before      { content: '\f2b9'; }
.portfolio::before    { content: '\f5fd'; }

/*────────────────────────────────────────────────────────────────────────────
  9) LISTS & LINKS
────────────────────────────────────────────────────────────────────────────*/
ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}
li {
  margin-bottom: 1rem;
  word-break: break-word;
}
li span {
  display: block;
  margin-top: .25rem;
  font-size: .95rem;
  font-weight: 300;
  color: #555;
}
a {
  color: #333;
  text-decoration: underline .5px;
  text-underline-offset: 2px;
  transition: color .3s;
}
a:hover { color: #000; }

/*────────────────────────────────────────────────────────────────────────────
 10) QUOTES & CONTACT
────────────────────────────────────────────────────────────────────────────*/
.subtitle,
.header-contact {
  font-size: .95rem;
  color: #555;
  padding-left: .4rem;
  word-break: break-word;
}
.quote-line {
  margin-top: .8rem;
  text-align: right;
  font-style: italic;
  font-weight: 300;
  color: #666;
}
.quote-line i { margin-right: .4rem; color: #888; }

/*────────────────────────────────────────────────────────────────────────────
 11) PORTFOLIO GRID & CARDS
────────────────────────────────────────────────────────────────────────────*/
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(210,220,240,.25);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .19s, box-shadow .18s;
  min-height: 320px;
}
.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: scale(1.035);
  box-shadow: 0 12px 30px rgba(50,80,140,.16);
  z-index: 2;
}
.portfolio-card:active {
  transform: scale(.99);
}

/* remove underline & dark-grey links */
.portfolio-card a {
  text-decoration: none;
  color: #333;
}

/* divider above link */
.portfolio-card .article-body hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1rem 0 .5rem;
}

/* light text inside */
.portfolio-card .article-body p,
.portfolio-card .article-body span {
  font-weight: 300;
}

/* images fill/center */
.portfolio-card .article-wrapper figure {
  margin: 0;
  padding: 0;
}
.portfolio-card .article-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* doula focus top */
.portfolio-card:nth-child(4) .article-wrapper img {
  object-position: top center;
}

/*────────────────────────────────────────────────────────────────────────────
 12) ARTICLE & SKILLS
────────────────────────────────────────────────────────────────────────────*/
.article-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-wrapper figure {
  width: 100%;
  height: 58vw;
  min-height: 90px;
  max-height: 180px;
  background: #f6f9fd;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(45,50,90,.1);
}
.article-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-body h2 {
  margin: 0 0 .3em;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c3238;
}
.article-body p {
  flex: 1;
  margin-bottom: 1.1em;
  font-size: .97rem;
  color: #49536d;
}
.article-body b {
  margin-top: auto;
  font-weight: 600;
  color: #333;
  font-size: 1.04em;
  padding-top: .12em;
  letter-spacing: .02em;
}
.article-body a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  transition: color .14s;
  color: #2c3757;
}
.article-body a:hover {
  color: #4281ff;
}

.skills-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}
.skill-glass-card {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(140,180,255,.28);
  border-radius: 15px;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .2em;
  font-size: 1.03rem;
  color: #2c3238;
  box-shadow: 0 2px 10px rgba(160,200,255,.07);
  backdrop-filter: blur(10px);
  transition: border .19s, box-shadow .19s;
}
.skill-glass-card:hover {
  border-color: #82b6ff;
  box-shadow: 0 4px 22px rgba(120,180,255,.1);
}
.skill-glass-card strong {
  font-weight: 600;
}

/*────────────────────────────────────────────────────────────────────────────
 13) MOBILE RESPONSIVE
────────────────────────────────────────────────────────────────────────────*/
@media (max-width: 600px) {
  /* keep 2% margin both sides */
  .container {
    padding: 0 2%;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card,
  .portfolio-card {
    width: 100%;
    box-sizing: border-box;
  }
  .profile-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .profile-pic {
    width: 80vw !important;
    height: 80vw !important;
    max-width: 350px;
    max-height: 350px;
    border-radius: 50% !important;
    margin: 0 auto .7em;
  }

  .html, body {
    padding: 2%;
    overflow: scroll;
  }
}

/* Horizontal article layout inside card */
.article-wrapper.horizontal-layout {
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  font-weight: 300;
}

.article-wrapper.horizontal-layout figure {
  flex: 0 0 40%;
  height: auto;
  max-height: none;
    object-fit: contain;
  zoom: 30%;
  border-radius: 12px;

}

.article-wrapper.horizontal-layout img {
  width: 100%;
  height: auto;


}

.article-wrapper.horizontal-layout .article-body {
  flex: 1;
  padding: 0;
}