@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 18px;
  color: white;
  background-color: #121212;
  /*background-color: #ffffff;*/
  padding-left: 50px;
  padding-right: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  max-width: 1200px;
}

hr {
  border: none;
  height: 2px;
  background-color: gray;
  margin: 5px 0px;
  width: 100%;
}

img {
    width: 100%;
}

.hidden {
  display: none;
}

.name {
    font-size: clamp(20px, 3vw, 25px);
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.name:hover {
    text-decoration: underline;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.menu li {
  padding: 0;
  margin: 0;
}

.navbar a {
  color: gray;
  text-decoration: none;
  font-weight: 400;
  /*transition: color 0.3s ease;*/
}

.navbar a:hover {
  color: white;
}

.navbar .github {
  border-size: 1px;
  border-style: solid;
  border-color: #f05252;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.navbar .github:hover {
  border-color: white;
  color: white;
}

main {
  width: 100%;
  max-width: 1200px;
  padding-top: 40px;
  flex: 1;
}

.section {
    padding-bottom: 20px;
}

.projects h1 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: normal;
}

.project {
    display: flex;
    gap: 20px;
    padding: 15px;
    /*padding-left: 15px;*/
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background-color: #111111;
}
.project:nth-child(odd) {
    display: flex;
    gap: 20px;
    padding: 15px;
    /*padding-left: 15px;*/
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background-color: #222222;
}

.project:hover {
    display: flex;
    gap: 20px;
    padding: 15px;
    /*padding-left: 15px;*/
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background-color: #333333;
}

.project:last-child {
    border-bottom: none;
}

/* Obrazek po lewej */
.project .thumbnail {
    flex-shrink: 0;
    width: 250px;
    height: 130px;
    /*border-radius: 8px;*/
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.project .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid gray;
}

.project .thumbnail img:hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid white;
}

/* Treść po prawej */
.project .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project .content .title {
    font-size: 16px;
    color: white;
    text-decoration: none;
    font-weight: normal;
    margin: 0 0 3px 0;
}

.project .content .title:hover {
    color: #fa903d;
}

.project .content .date {
    font-size: 13px;
    color: #666;
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.project .content .description {
    font-size: 14px;
    color: #888;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

.links {
    font-variant-numeric: tabular-nums;
}

.links a {
  text-decoration: none;
  color: gray;
  padding: 0;
  margin: 0;
}

.links a:hover {
  color: white;
  text-decoration: underline;
}

.links ul {
  list-style: none;
  gap: 20px;
}

.links li {
/*  display: flex;*/
  color: lightgray;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.links li:hover {
    color: white;
    
}

.center {
    flex: 1;
    text-align: center;
}

.tooltip {
    display: none;
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    /*padding: 8px 12px;*/
    color: white;
    font-size: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    max-width: 300px;
    white-space: nowrap;
}

.tooltip img {
    display: block;
    max-width: 200px;
    max-height: 150px;
/*    border-radius: 4px;
    margin-bottom: 5px;*/
}

.tooltip .text {
    text-align: center;
}

footer {
  font-size: 15px;
  width: 100%;
  color: gray;

  align-items: center;
  max-width: 1200px;
  /*margin: 5px 0px;*/
}

footer .menu {
  display: flex;
  justify-content: space-between;
}

footer p:hover {
    color: lightgray;
}

.orange-color {
    color: #fa903d; 
}

footer a {
    text-decoration: none;
}

.icon img {
    filter: invert(1) opacity(0.3);
    width: 20px !important;
    height: 20px !important;
    margin-right: 15px;
}

.icon img:hover {
    filter: invert(1) opacity(1.0);
    width: 20px !important;
    height: 20px !important;
    margin-right: 15px;
}
