/* root */
:root {
  --bg: #fff;
  --text: #000;
  --border: #ccc;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.container {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 0 1rem;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1200;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.brand {
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
}

.header-socials {
  display: flex;
  gap: 0.6rem;
}

.header-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--bg);
  transition: background 0.2s, transform 0.2s;
}

.header-socials a:hover {
  background: var(--text);
  transform: scale(1.05);
}

.header-socials img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: invert(0);
}

.header-socials a:hover img {
  filter: invert(1);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  background: var(--text);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .header-inner {
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .brand-block {
    align-items: flex-start;
  }
}


/* hero */
.hero {
  position: relative;
  height: 60vh;
  background: url("../img/hero-img.png") center 75% / cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-text {
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.hero-text h1 {
  margin: 0 0 0.5rem;
  font-size: 3rem;
}

.hero-text p {
  margin-top: 0rem;
}


/* content */
.section {
  padding: 2rem 0;
}

.section .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section h2,
.section p,
.section ul {
  text-align: left;
}

/* news group */
/* tiles */
.news-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
  transition: background 0.2s;
}

.news-item:hover {
  background: #f8f8f8;
}

/* date style */
.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  border-right: 1px solid #000;
  padding-right: 1rem;
  text-transform: uppercase;
}

.news-date .day {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1;
}

.news-date .month {
  font-size: 0.9rem;
}

.news-date .year {
  font-size: 0.75rem;
  color: #555;
}

/* news */
.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title a {
  color: #000;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.news-title a:hover {
  border-bottom-color: #000;
}

.news-tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
  color: #000;
}

/* experiences */
.experience-list {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.experience-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
}

/*date*/
.experience-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  border-right: 1px solid #000;
  padding-right: 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.experience-date .day {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1;
}

.experience-date .month {
  font-size: 0.9rem;
}

.experience-date .year {
  font-size: 0.75rem;
  color: #555;
}

.experience-content {
  flex: 1;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.experience-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.location {
  font-size: 0.9rem;
  color: #555;
}

.tasks {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.tasks li {
  position: relative;
  padding-left: 1rem;
  margin: 0.4rem 0;
  color: #111;
  line-height: 1.5;
}

.tasks li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: #000;
  font-size: 1.1em;
}

/* exp tags */
.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
  color: #000;
}

.experience-mentors {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.experience-mentors a {
  color: #000;
  text-decoration: underline;
  font-size: 0.85rem;
}

.experience-mentors a:hover {
  text-decoration: none;
}

@media (max-width: 600px) {
  .experience-item {
    flex-direction: column;
  }

  .experience-date {
    flex-direction: row;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid #000;
    padding: 0 0 0.5rem 0;
    gap: 0.5rem;
  }
}


/* projects grid */
.project-grid {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* project */
.project-card {
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* image project */
.project-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #000;
}

.project-body {
  padding: 0.9rem;
}

.project-title {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}

.project-body p {
  margin: .4rem 0 .7rem;
}


.project-features {
  list-style: none;      
  padding-left: 0;
  margin-top: 0.5rem;
}

.project-features li {
  position: relative;
  padding-left: 1rem;   
  margin: 0.4rem 0;
  color: #111;
  line-height: 1.5;
}

.project-features li::before {
  content: "•";         
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: #000;   
  font-size: 1.1em;
}

/* tags skills */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .2rem;
}

.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .5rem;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
  color: #000;
}

@media (max-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-cover {
    height: 160px;
  }
}

/* skills */
.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


.skill-title {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
}

/* tags */
.tag {
  display: inline-block;
  font-size: .8rem;
  padding: .2rem .55rem;
  border: 1px solid #000;
  border-radius: var(--radius, 10px);
  background: #fff;
  color: #000;
}

@media (min-width: 900px) {
  .skills-groups {
    grid-template-columns: 1fr 1fr;
  }
}



/* education */
.education-list {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.education-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
}

.education-date {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  border-right: 1px solid #000;
  padding-right: 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.education-date .period {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.education-date .dash {
  margin: 0.1rem 0;
}

.education-content {
  flex: 1;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
}

.education-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.education-header .location {
  color: #555;
  font-size: .9rem;
}

.courses {
  padding-left: 1.2rem;
  margin: .5rem 0 0;
}

.courses li {
  margin: .2rem 0;
}

.education-school {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.4rem;
}

.education-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.education-tags .tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
  color: #000;
}


/* mobile */
@media (max-width: 640px) {
  .education-item {
    flex-direction: column;
  }

  .education-date {
    border-right: none;
    border-bottom: 1px solid #000;
    justify-content: flex-start;
    padding: 0 0 .5rem 0;
  }

  .education-date .period {
    flex-direction: row;
    gap: .3rem;
  }
}

/* certifications */
.cert-grid {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cert-card {
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cert-cover {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-bottom: 1px solid #000;
}

.cert-body {
  padding: .9rem;
}

.cert-title {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .5rem;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #fff;
  color: #000;
}

/* responsive certif */
@media (max-width: 1000px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-cover {
    height: 150px;
  }
}


/* buttons etc */
.news-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  opacity: .9;
}

.btn.outline {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}



/*other media etc*/
@media (max-width: 820px) {
  .hero {
    height: 50vh;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-text p {
    font-size: 1.05rem;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    gap: .5rem;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 40vh;
  }

  .hero-text {
    padding-top: 1.3rem;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #000;
    padding: 0 0 0.5rem 0;
    gap: 0.5rem;
    min-width: auto;
  }

  .news-date .day {
    font-size: 1.3rem;
  }
}

/* experiences */
@media (max-width: 600px) {
  .experience-item {
    flex-direction: column;
  }

  .experience-date {
    border-right: none;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }

  .experience-date .period {
    flex-direction: row;
    gap: 0.3rem;
  }
}

/* header over the hero */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
}

.nav-toggle {
  z-index: 1300;
}

.hero,
.hero-overlay {
  z-index: 100;
}
