html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

a {
    text-decoration: none;
}

body {
    min-height: 100vh;
    font-family: 'cho', sans-serif;
    cursor: url('img/cur271.cur'), auto;
}

.container {
  max-width: 1190px;
  width: 100%;
  padding: 0 8px;
  margin: 0 auto;
  box-sizing: border-box;
}

.header {
    padding-top: 0px; 
    font-family: 'cho', sans-serif;
    background-color: rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header__inner {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.menu__list {
    display: flex; 
    list-style: none; 
}

.menu__list-item {
    margin-right: 20px; 
}

.menu__list-link {
    padding: 10px 20px;
    font-size: 20px; 
    color: rgb(195, 54, 54) ; 
    transition: all 0.3s; 
}

.menu__list-link:hover {
    color: rgb(91, 17, 17);
}

.logo-image {
    margin-left: 30x;  
}

@font-face {
    font-family: 'cho';
    src: url(CHNOPixelCodeProRegular.woff2) format('woff');
}

#main {
  padding-top: 0px;
}

.main-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px; 
}

.main-title {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;  
  gap: 10px;
}

.main-title h1 {
    margin-top: 0px;
    font-size: 64px;
    color: #e66;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 100px;
}

.main-title h2 {
    font-size: 24px;
    color: #f3c9c9;
    font-weight: normal;    
    margin: 0;
}

.about-me {
    width: 100vw;
    margin-left: calc(-1 * 8px);
    padding-left: 25px;
    width: 100%;
    margin-top: 30px;
    padding: 20px; 
    font-size: 18px;
    line-height: 1.6;
    color: #f3c9c9;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 4px solid #e66;
    border-radius: 8px;
    box-sizing: border-box;
}

.about-me ul {
    padding-left: 20px;
    margin: 10px 0 20px 0;
}

.about-me li {
    list-style: none;
    padding-left: 0;
    margin-bottom: 6px;
}

.about-me strong {
  color: #ff9a9a;
}

.fun-fact {
    margin-top: 20px;
    font-style: italic;
    color: #ff9a9a;
}
.icon-heart {
    width: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

#works {
  position: relative; 
  background-color: #f3f3f3;
  padding: 60px 20px 20px; 
  width: 100%;
  box-sizing: border-box;
}

.works-gallery {
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 15px;
  box-sizing: border-box;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px; 
  box-sizing: border-box;
  overflow-y: auto; 
  z-index: 9999;
}

.overlay-content {
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.overlay-content img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 90vh;
}

.work-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 0;
}

.work-item img,
.work-item video {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.work-item img:hover,
.work-item video:hover {
  transform: scale(1.05);
  z-index: 1;
}

.work-item p {
  margin-top: 10px;
  transition: none;
}

.work-item:hover {
  z-index: 1;
}

.overlay-content img,
.overlay-content video {
  width: 100%;
  height: auto;
  display: block;
}

#works h1 {
  height: 150px;
  line-height: 150px;
  margin: 0 0 40px 0;
  font-size: 36px;
  font-weight: bold;
  color: #c33636;
  text-align: center;
  text-transform: uppercase;
  font-family: 'cho', sans-serif;
  user-select: none;
}

.work-item p {
  margin-top: 10px;
  font-size: 16px;
  color: #c33636;
  font-weight: normal;
  font-family: 'cho', sans-serif;
  line-height: 1.4;
  text-align: center;
  pointer-events: auto;
  padding: 0 5px;
}

  .work-item .caption {
  font-size: 14px; 
  color: #ff9a9a; 
 margin-top: -10px;
  user-select: text; 
  pointer-events: auto; 
}

.contacts-section {
  padding: 60px 20px;
  color: #911;
  font-family: 'cho', sans-serif;
}

.contacts-section h1 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
  color: #e66;
}

.contacts-section p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #911;
}

.contact-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.contact-list li {
  font-size: 18px;
  margin-bottom: 15px;
}

.contact-list a {
  color: #e66;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: #911;
  text-decoration: underline;
}

.fixed-gif {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: auto;
  z-index: 10000;
  pointer-events: none;
}

.fixed-gif img {
  width: 100%;
  height: auto;
}



@media (max-width: 768px) {
  body {
    padding-top: 0px; 
  }

  .header__inner {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
  }

  .menu__list {
    display: flex;   
    flex-direction: row; 
    gap: 30px;       
  }

  .logo-image {
    margin: 0 0 10px 0;
    width: 120px;
    height: auto;
  }

  .menu {
    width: 100%;
  }

  .menu__list-item {
    width: 100%;
    margin: 0 0 10px 0;
  }

  .menu__list-link {
    display: block;
    width: 100%;
    font-size: 18px;
    padding: 10px 0;
  }

  .main-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .main-title h1 {
    font-size: 36px;
    margin-left: 0;
    white-space: normal;
    text-align: center;
  }

  .main-title h2 {
    font-size: 18px;
    text-align: center;
  }

  .fixed-gif {
    width: 140px;
    bottom: 10px;
    right: 10px;
  }
}
