:root {
  --bg: #f5f7fa;
  --text: #222;
  --textmenu: #000000;
  --card-bg: #fff;
  --title-text: #0078ff;
  --shadow: rgba(0, 0, 0, 0.1);
  --overlay-opacity: 0.2;
}

a {
  text-decoration: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cinzel", serif;
  font-weight: 600;
  transition: all 0.3s ease-in;
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

ul {
  list-style: none;
}

body html{
  height: 100%;
}

.headerMainPage {
  padding: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.headerMainPage h1 {
  font-size: 2.5rem;
  color: var(--title-text);
}

.headerMainPage p {
  font-size: 1.1rem;
  opacity: 0.8;
}

#toggle-theme {
  display: none;
}

.theme-label {
  position: fixed;
  top: 20px;
  right: 20px;
  border: 2px solid rgba(0, 0, 0, 0.6);
  color: var(--text);
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  -webkit-user-select: none;
   -moz-user-select: none;
    user-select: none;
  box-shadow: 0 2px 8px var(--shadow);
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1700;
}

#toggle-theme:checked ~ .theme-label {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode {
  --bg: #121212;
  --text: #f1f1f1;
  --card-bg: #1f1f1f;
  --title-text: #4aa3ff;
  --shadow: rgba(255, 255, 255, 0.1);
  --overlay-opacity: 0.7;
  --textmenu: #f1f1f1;
}

.card{
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow);
}

.card h2 {
  color: var(--title-text);
  margin-bottom: 10px;
}

.card_content li {
  padding: 6px 0;
  border-bottom: 1px solid var(--shadow);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--shadow);
  opacity: 0.8;
}

footer a {
  color: var(--title-text);
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

.skillsbody {
  height: auto;
  min-height: 100%;
  width: 100vw;
  position: absolute;
  top: 0;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  z-index: 1;
}

.skillsheader {
  z-index: 1500;
  font-size: 20px;
  background-color: var(--hud);
  display: flex;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  box-shadow: 0 4px 12px var(--shadow);
}

.navigation {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.navigation a:hover {
  color: var(--title-text);
}

.navi_item {
  display: flex;
  align-items: center;
  border: 20px;
}

.skills-showcase {
  padding: 100px 20px 50px;
  text-align: center;
}

.skills-title {
  font-size: 2.8rem;
  color: var(--title-text);
  margin-bottom: 10px;
}

.skills-subtitle {
  opacity: 0.8;
  margin-bottom: 40px;
  font-size: 1.2rem;
}

.grid-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
  justify-items: center;
}

.skill-card {
  background: var(--card-bg);
  box-shadow: 0 4px 12px var(--shadow);
  border-radius: 15px;
  padding: 25px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.skill-card:hover {
  transform: translateY(-10px) rotateX(6deg);
  box-shadow: 0 10px 25px var(--shadow);
}

.skill-card h2 {
  color: var(--title-text);
  margin-bottom: 15px;
}

.grid-example {
  display: grid;
  grid-template-columns: repeat(2, 60px);
  grid-template-rows: repeat(2, 60px);
  gap: 8px;
  justify-content: center;
  margin-bottom: 15px;
}

.grid-example .box {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.red {
  background: #ff5252;
}

.blue {
  background: #2196f3;
}

.yellow {
  background: #ffeb3b;
}

.green {
  background: #4caf50;
}

.grid-example .box:hover {
  transform: scale(1.2) rotate(10deg);
}

.flex-example {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.flex-example .circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.a {
  background: #ff9800;
}

.b {
  background: #03a9f4;
}

.c {
  background: #e91e63;
}

.flex-example .circle:hover {
  transform: translateY(-10px) scale(1.2);
}

.transition-example {
  width: 100%;
  height: 100px;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.mover {
  width: 50px;
  height: 50px;
  background: var(--title-text);
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.fade-in,
.slide-up {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s ease;
}

.fade-in.visible,
.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/*modal*/

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.modal.show {
  opacity: 1;
  pointer-events: auto; 
}

.modal-content {
  background: var(--card-bg);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--title-text);
  transition: tarnsform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

.open-modal-btn {
  background-color: var(--title-text);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.open-modal-btn:hover {
  background-color: #005fcc;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: 700;
  color: var(--title-text);
}

.contact-form input,
.contact-form textarea {
  padding: 10px 14px;
  border: 2px solid var(--shadow);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--title-text);
}

.contact-form button {
  background-color: var(--title-text);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #005fcc;
}

.container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  position: relative;
}

.wrapper{
  height: auto;
  min-height: 100%;
  width: 100vw;
  position: absolute;
  top: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }
  .headerMainPage h1 {
    font-size: 2rem;
  }
  .theme-label {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  .skillsbody {
    font-size: 10px;
    background-attachment: scroll;
  }
  .skillsheader {
    background-color: rgba(0, 0, 0, 0);
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 35px;
    height: 30px;
  }
  .hamburger span {
    z-index: 1600;
    width: 30px;
    height: 3px;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
  .navi {
    position: fixed;
    top: 0;
    left: 0;
    width: 70vw;
    height: 100vh;
    background: rgba(0, 0, 0, var(--overlay-opacity));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateX(-100%);
    opacity: 0;
    z-index: 999;
  }
  .navi.active {
    transform: translateX(0);
    opacity: 1;
  }
  .navigation a {
    color: var(--textmenu);
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }
  .navigation a:hover {
    color: var(--title-text);
  }
}