/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f4f4f4;
  color: #333;

  user-select: none;
  cursor: default;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 3rem;
  color: #333;
}

h2 {
  font-size: 2rem;
  color: #666;
}

h3 {
  font-size: 1.5rem;
  color: #888;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Background */
#background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(141, 141, 141, 0.164);
    z-index: -1;
}

/* Layout */
#default {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;

  padding: 0 20px;
}

#default h1, #default h2, #default h3, #default p {
  color: white;
  text-shadow:1px 1px 10px #333, -1px -1px 10px #333;
}

main {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}


/* Button */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #666;
}


/* Sections */
section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}


/* Skills */
.skills {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.skill-card {
  background-color: #e3eafc;
  padding: 1.5rem;
  border-radius: 8px;
  width: 30%;
  margin: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
}

/* Skill rating */
.rating {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.rating-square {
  width: 20px;
  height: 20px;
  margin: 0 3px;
  background-color: #333;
  display: inline-block;
  border-radius: 4px;
}

.rating-square.empty {
  background-color: #ccc;
}

.rating-square.half {
  background: linear-gradient(to right, #333 50%, #ccc 50%);
}


/* Projects */
.project-card {
  background-color: #e3eafc;
  padding: 1rem;
  border-radius: 8px;
  width: 48%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  margin-bottom: 1rem;
  color: #333;
}


/* Contact */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 7%;
  margin-bottom: 2%;
  text-align: center;
  color: white;
  text-shadow:1px 1px 10px #333, -1px -1px 10px #333;
}

.contact h1, .contact p, .contact a, .contact a:visited{
  color: white;
  text-shadow:1px 1px 10px #333, -1px -1px 10px #333;
}


/* Menu Styles */
.burger-icon {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 30px;
  cursor: pointer;
  z-index: 100;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background: rgb(40,40,40);
  background: linear-gradient(20deg, rgba(40,40,40,1) 0%, rgba(79,79,79,1) 36%, rgba(126,126,126,1) 100%);
  overflow-x: hidden;
  transition: 0.5s;
  z-index: 99;
}

.sidebar .logo {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);

  margin-top: 5%;
  margin-bottom: 7%;
  margin-right: auto;
  margin-left: auto;
}

.sidebar a {
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.3rem;
  color: #f4f4f4;
  display: block;
  transition: 0.3s;
  text-wrap: nowrap;
}

.sidebar a:hover {
  background-color: #575757;
}

.sidebar .closebtn {
  position: absolute;
  bottom: 1%;
  right: 37%;
  font-size: 30px;
  border-radius: 20%;
}


/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }

  main {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
  }

  .skill-card, .project-card {
    width: 100%;
  }
}
