
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

body {
    font-family:'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #fdfbfb, #ebedee);
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}


@media (max-width: 649px){
    .nav-menu {
      display: none !important;
    }
    .navbar0 {
        grid-template-columns: repeat(2, auto) !important;
    }
    .main_change_language {
        display: none;
    }
    #menu_icon {
        display: block;
    }
    .main_change_language {
        display: none;
    }
}
@media (min-width: 649px) {
  #menu_icon {
    display: none !important;
  }
}

a{
  text-decoration: none;
  color: #ffffff;
}

ul{
    list-style: none;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: -20px 30px 10px 20px;
  height: 100px;
}

#menu_icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2rem;
  margin-right: 1.3rem;
  display: block;
}

#close_icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2rem;
  margin-right: 16px;
  display: none;
  z-index: 1000;
}

.close_icon_active {
  display: block !important;
}

.menu_icon_active {
  display: none !important;
}

.main_change_language {
  background-color: #0078ff;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 1.4rem;
}

.navbar0 {
    display: grid;
    grid-template-columns: repeat(3,auto);
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
 
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 15px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  margin-right: -10px;
}

.nav-menu a:hover {
  color: #0078ff;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #005fcc;
  transition: 0.3s;
}

.img_header{
  width: 100px;
  margin-right: 50px;
  margin-left: 30px;
  margin-top: -.5rem;
}

.side_bar {
  background-color: #ffffffec;
  position: fixed;
  z-index: 100;
  width: 200px;
  height: 100svh;
  right: 0;
  top: 0;
  border-left: 2px solid #494949;
  transform: translateX(300px);
  -webkit-transform: translateX(300px);
  -moz-transform: translateX(300px);
  -ms-transform: translateX(300px);
  -o-transform: translateX(300px);
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}

.side_bar > ul li a {
  color: #323232;
}

.side_bar ul {
    position: absolute;
    right: 1.5rem;
    top: 95px;
    font-weight: 600;
    line-height: 40px;
    font-size: 18px;
    padding: 0;
}



.side_bar_language {
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 17px;
}

.menu1_active {
  transform: translateX(0);
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
}



.change_language > a {
  margin-right: -4.5rem;
  position: absolute;
  bottom: 20px;
}

#close_icon {
  position: relative;
}

.container {
    width: 80%;
    max-width: 1200px;
    background: white;
    margin-top: 50px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    margin-bottom: 50px;
}

.container:hover {
    transform: scale(1.02);
}

.profile img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #333;
    margin-bottom: 20px;
}

.bio {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    margin-top: 20px;
    color: #555;
}

.projects {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-item {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.project-item:hover {
    background: #4169E1;
    color: white;
    transform: translateY(-5px);
}

/* Footer */
.custom-footer {
    background-color: #00489b;
    color: #fff;
    padding: 30px 15px;
    width: 100%;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-box {
    flex: 1 1 30%;
    margin: 10px;
    min-width: 250px;
}

.footer-box h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-box p,
.footer-box ul,
.footer-box li {
    font-size: 0.95em;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: #ffffff;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-box ul li a:hover {
    color: #f1f1f1;
}

.footer-box .contact-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-box .contact-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.85em;
}

.social-media {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-media a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-media a:hover {
    background-color: #0078ff;
}

.contact-info p a {
    color: #ffffff;
}