*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Arial, sans-serif;
}

body{
  background-color: #f5f5f5;
  color: #222;
  transition: 0.3s;
}

body.dark{
  background-color: #121212;
  color: #f5f5f5;
}

header{
  position: fixed;
  width: 100%;
  top:0;
  left:0;
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 20px;
  background-color: inherit;
  z-index: 1000;
}
.logo img{
  height:50px;
}
#themeToggle{
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
}
.hamburger{
  display:flex;
  flex-direction: column;
  cursor:pointer;
}
.hamburger span{
  width:25px;
  height:3px;
  background-color:#222;
  margin:4px 0;
  transition: 0.3s;
}
body.dark .hamburger span{
  background-color:#f5f5f5;
}

nav{
  position: fixed;
  top:0;
  right:-250px;
  width: 250px;
  height:100%;
  background-color: #333;
  color:#fff;
  padding:50px 20px;
  transition: 0.3s;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 999;
}
nav.active{
  right:0;
}
nav ul{
  list-style:none;
}
nav ul li{
  margin:20px 0;
}
nav ul li a{
  color:#fff;
  text-decoration:none;
  font-size:18px;
  display:flex;
  align-items:center;
}
nav ul li a i{
  margin-right:10px;
}
.contact-icons a{
  margin-right:15px;
  color:#fff;
  font-size:22px;
}

section{
  padding:100px 20px;
  min-height:100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

section h1, section h2{
  margin-bottom:20px;
}

footer{
  text-align:center;
  padding:20px;
}

/* Back to top button - round */
#backToTop{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border:none;
  background-color:#222;
  color:#fff;
  cursor:pointer;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

body.dark #backToTop{
  background-color:#f5f5f5;
  color:#222;
}

/* Projects Section */
.projects-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 20px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}
.project-card h3 {
  margin-bottom: 10px;
  color: #222;
}
.project-card p {
  font-size: 14px;
  margin-bottom: 15px;
}
.project-card a {
  text-decoration: none;
  color: #00d4ff;
  font-weight: bold;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
body.dark .project-card {
  background-color: #222;
  color: #f5f5f5;
}
body.dark .project-card a {
  color: #00d4ff;
}

@media(max-width:768px){
  nav{
    width:200px;
    padding:50px 15px;
  }
  nav ul li a{
    font-size:16px;
  }
  .logo img{
    height:40px;
  }
  .projects-container {
    flex-direction: column;
    align-items: center;
  }
}